
/* Otaru sea: quiet Japanese illustration behind the original content. */
body{isolation:isolate;background:#071b30;}
body::before{display:none;}
.otaru-ocean{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;contain:strict;background:radial-gradient(ellipse at 18% 0%,#24536570,transparent 62%),linear-gradient(180deg,#102e46 0%,#0b233c 45%,#06162b 100%);}
.otaru-ocean::before{content:"";position:absolute;inset:-15%;opacity:.16;background:repeating-linear-gradient(112deg,transparent 0 110px,#8eb8bb24 150px,transparent 205px,transparent 330px);transform:rotate(-4deg);animation:ocean-light 45s ease-in-out infinite alternate;}
.otaru-ocean::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 46%,#06152b70,transparent 85%);}
.ocean-waves{position:absolute;inset:0;width:100%;height:100%;opacity:.16;}
.ocean-waves path{fill:none;stroke:#8badae;stroke-width:1;vector-effect:non-scaling-stroke;}
.ocean-waves .wave-gold{stroke:#b5a47a;opacity:.5;}
.ocean-fish-school{position:absolute;left:0;top:var(--school-top);width:100%;height:130px;opacity:var(--school-opacity,.16);animation:ocean-swim var(--school-duration,95s) linear infinite;animation-delay:var(--school-delay,-30s);will-change:transform;}
.ocean-fish-school.is-reversed{animation-name:ocean-swim-reverse;}
.ocean-fish{position:absolute;width:var(--fish-size,145px);height:auto;left:var(--fish-x,0px);top:var(--fish-y,0px);filter:drop-shadow(0 2px 2px #020a1430);animation:ocean-drift 11s ease-in-out infinite alternate;animation-delay:var(--fish-delay,0s);}
.is-reversed .ocean-fish{scale:-1 1;}
@keyframes ocean-swim{from{transform:translateX(calc(100vw + 400px));}to{transform:translateX(-650px);}}
@keyframes ocean-swim-reverse{from{transform:translateX(-650px);}to{transform:translateX(calc(100vw + 400px));}}
@keyframes ocean-drift{from{translate:0 -5px;rotate:-1deg;}to{translate:0 7px;rotate:1deg;}}
@keyframes ocean-light{from{translate:-1.5% 0;opacity:.1;}to{translate:1.5% 1%;opacity:.2;}}
@media(max-width:600px){.ocean-fish-school{opacity:calc(var(--school-opacity,.16) * .8);}.ocean-fish{width:calc(var(--fish-size,145px) * .8);}.ocean-waves{opacity:.12;}}
@media(prefers-reduced-motion:reduce){.otaru-ocean::before,.ocean-fish-school,.ocean-fish{animation:none!important;}.ocean-fish-school{transform:translateX(12vw);}.ocean-fish-school.is-reversed{transform:translateX(50vw);}}

/* Slightly richer sea colors, with sparse, slow rising bubbles. */
.otaru-ocean{background:radial-gradient(ellipse at 18% 0%,#167b9070,transparent 62%),radial-gradient(ellipse at 88% 80%,#075e7138,transparent 55%),linear-gradient(180deg,#103b58 0%,#092e4b 45%,#061d35 100%);}
.ocean-waves{opacity:.20;}
.ocean-waves path{stroke:#78bcc2;}
.ocean-waves .wave-gold{stroke:#c5ae73;}
.ocean-fish{filter:saturate(1.2) drop-shadow(0 2px 2px #020a1430);}
.ocean-bubbles{position:absolute;inset:0;overflow:hidden;}
.ocean-bubble{position:absolute;left:var(--bubble-x);bottom:-24px;width:var(--bubble-size);height:var(--bubble-size);border:1px solid #9ed5d859;border-radius:50%;background:radial-gradient(circle at 32% 27%,#d5f4ed24,transparent 55%);opacity:0;animation:ocean-bubble-rise var(--bubble-duration) linear infinite;animation-delay:var(--bubble-delay);}
@keyframes ocean-bubble-rise{0%{transform:translate(0,0);opacity:0;}12%{opacity:.4;}50%{transform:translate(14px,-52vh);opacity:.28;}85%{opacity:.18;}100%{transform:translate(-8px,-110vh);opacity:0;}}
@media(max-width:600px){.ocean-waves{opacity:.16;}.ocean-bubble:nth-child(even){display:none;}}
@media(prefers-reduced-motion:reduce){.ocean-bubble{animation:none!important;display:none;}}

/* Brighter indigo sea, retaining readable pale text. */
body{background:#234f79;}
.otaru-ocean{background:radial-gradient(ellipse at 18% 0%,#479ca252,transparent 65%),radial-gradient(ellipse at 88% 80%,#327da24a,transparent 60%),linear-gradient(180deg,#356d96 0%,#2b5b89 48%,#234c79 100%);}
.otaru-ocean::after{background:radial-gradient(ellipse at 50% 46%,#203e5d18,transparent 85%);}

/* Broad, uneven tidal motion: slower pauses, longer flowing sweeps. */
.ocean-waves{inset:-8%;width:116%;height:116%;opacity:.24;animation:ocean-tide 25s infinite;transform-origin:50% 50%;}
.ocean-waves path{transform-box:fill-box;transform-origin:center;animation:ocean-wave-flow 19s infinite;}
.ocean-waves path:nth-child(2){animation-duration:27s;animation-delay:-8s;}
.ocean-waves path:nth-child(3){animation-duration:33s;animation-delay:-17s;}
@keyframes ocean-tide{
  0%,100%{transform:translate(-1.5%,1%) rotate(-1deg) scale(1.02);animation-timing-function:cubic-bezier(.45,0,.8,.4);}
  25%{transform:translate(2%,-1.5%) rotate(.6deg) scale(1.06);animation-timing-function:cubic-bezier(.15,.6,.35,1);}
  47%{transform:translate(3%,1%) rotate(1deg) scale(1.04);animation-timing-function:cubic-bezier(.6,0,.8,.4);}
  75%{transform:translate(-2%,2.5%) rotate(-.5deg) scale(1.07);animation-timing-function:cubic-bezier(.15,.6,.35,1);}
}
@keyframes ocean-wave-flow{0%,100%{transform:translate(-18px,4px) scaleY(.95);}35%{transform:translate(22px,-15px) scaleY(1.08);}58%{transform:translate(32px,-8px) scaleY(1.04);}80%{transform:translate(-8px,17px) scaleY(.97);}}
/* Three bubbles per burst, one burst every two seconds, rising in about four seconds. */
.ocean-bubble{bottom:-28px;border:1px solid rgba(210,247,255,.78);background:radial-gradient(circle at 30% 24%,rgba(241,255,255,.58) 0 8%,rgba(158,219,237,.10) 30%,transparent 65%);box-shadow:inset -1px -1px 2px rgba(185,235,245,.18),0 0 5px rgba(151,220,239,.15);animation-name:ocean-bubble-pop;animation-timing-function:linear;}
@keyframes ocean-bubble-pop{
  0%{transform:translate(0,0) scale(.7);opacity:0;}
  3%{opacity:.82;}
  15%{transform:translate(-5px,-23vh) scale(.85);opacity:.76;}
  30%{transform:translate(8px,-53vh) scale(1);opacity:.7;}
  45%{transform:translate(-3px,-88vh) scale(1.1);opacity:.6;}
  55%{transform:translate(6px,-116vh) scale(1.2);opacity:0;}
  100%{transform:translate(6px,-116vh) scale(1.2);opacity:0;}
}
@media(max-width:600px){.ocean-waves{opacity:.2;}.ocean-bubble:nth-child(even){display:block;}}
@media(prefers-reduced-motion:reduce){.ocean-waves,.ocean-waves path,.ocean-bubble{animation:none!important;}.ocean-waves{transform:none;}.ocean-bubble{display:none!important;}}

/* Five-second burst spacing; each bubble still crosses the screen in about four seconds. */
@keyframes ocean-bubble-pop{0%{transform:translate(0,0) scale(.7);opacity:0;}1%{opacity:.82;}6%{transform:translate(-5px,-23vh) scale(.85);opacity:.76;}12%{transform:translate(8px,-53vh) scale(1);opacity:.7;}18%{transform:translate(-3px,-88vh) scale(1.1);opacity:.6;}22%{transform:translate(6px,-116vh) scale(1.2);opacity:0;}100%{transform:translate(6px,-116vh) scale(1.2);opacity:0;}}
