.ocean { --ink-forest: #103347; background: #073044; }
.ocean .full-world { background: #052b3b; }
.ocean [data-scene="ocean"] { --view: 61%; }
.ocean [data-scene="reef"] { --view: 53%; }
.ocean [data-scene="lighthouse"] { --view: 57%; }
.ocean [data-scene="stairs"] { --view: 50%; }
.ocean [data-scene="beacon"] { --view: 61%; }
.ocean .scene-shade {
  background: linear-gradient(180deg,#031b2bc9,#082c3b26 34%,transparent 55%,#041b2d91),
    linear-gradient(100deg,#0224388a,transparent 58%);
}
.ocean .sunbeams {
  background: repeating-conic-gradient(from 154deg at 51% 0%, #77effd00 0deg 8deg, #bdfff45c 13deg, #43d9fa00 23deg 27deg);
  filter: blur(18px);
  opacity: .48;
}
.ocean .rolling-mist { opacity: .64; }
.ocean .world-light {
  background: radial-gradient(ellipse at 64% 69%, #b7fffba8, #12f5d445 17%, transparent 54%);
}
.ocean .stage-brand, .ocean .stage-progress, .ocean .stage-bar .tools, .ocean .stage-location {
  background-color: #073043ea;
  border-color: #a7f8f67d;
}
.ocean .stage-heading .eyebrow, .ocean .counter { color: #bffcf0; }
.ocean .stage-progress .counter { background: #145469; }
.ocean .stage-progress .tracks li { background: #104354; border-color: #68acae; color: #e0fff9; }
.ocean .stage-progress .tracks .current { background: #e6fff9; border-color: #fff; color: #0e4a46; }
.ocean .stage-progress .tracks .is-lit { background: #7ffbe0; border-color: #ddfff9; color: #103d3b; }
.ocean .stage-task { background: #f3fcfffa; border-color: #a0ddd8; }
.ocean .stage-task .forms .gap { background: #dbf9fc; border-color: #50b0bc; color: #204c65; }
.ocean .stage-task .forms .resolved { background: #dbf6e8; border-color: #5ca18e; color: #1b5b3b; }
.ocean .stage-task .button, .ocean-finale .button { background: #0a6a79; color: #fff; }
.ocean .stage-task .button:hover, .ocean-finale .button:hover { background: #08505e; }
.ocean .stage-task .button:disabled { background: #dce9ee; color: #4e656e; }
.ocean .actor-stage { max-width: none; justify-items: end; padding-right: clamp(10px,6vw,105px); }
.ocean .actor-drift { animation: ray-glide 9s ease-in-out infinite alternate; }
.ocean .actor-motion { width: clamp(190px,32vw,470px); transform-origin: 55% 44%; }
.ocean .actor-motion::before { content: none; }
.ocean .actor img { filter: drop-shadow(0 13px 14px #0231458c); }
.ocean .actor span { background: #073044e8; border-color: #9df6ec96; }
.ocean .actor:hover span, .ocean .actor:focus-visible span { background: #136575; }
.ocean .actor-note { background: #d5fff7; color: #123d49; }
.ocean .actor-motion.reaction { animation: ray-bank .76s ease-in-out both; }
@keyframes ray-glide { from { transform: translate(0,5px); } to { transform: translate(-12vw,-18px); } }
@keyframes ray-bank { 0%,100% { transform: none; } 45% { transform: translate(-12px,-17px) rotate(-11deg) scale(1.07,.94); } }
.manta-shadow {
  position: absolute; top: 20%; right: -35%; width: 45%; height: 35%;
  background: radial-gradient(ellipse, #031825d9, transparent 64%); opacity: 0; filter: blur(14px);
}
[data-scene="ocean"] .manta-shadow { animation: crossing-shadow 13s 1.4s ease-in-out infinite; }
@keyframes crossing-shadow {
  0%,42% { transform: translateX(0); opacity: 0; }
  10%,22% { opacity: .85; }
  44%,100% { transform: translateX(-130vw); opacity: 0; }
}
.fish-school { display: none; position: absolute; inset: 35% 17% 25%; }
[data-scene="lighthouse"].scene-enter .fish-school { display: block; }
.fish-school i {
  position: absolute; top: var(--y,34%); left: var(--x,48%);
  height: clamp(5px,1vw,12px); aspect-ratio: 2.6;
  background: linear-gradient(0deg,#248b94,#e4ffff);
  clip-path: polygon(0 50%,24% 17%,53% 9%,78% 41%,100% 10%,94% 50%,100% 90%,78% 59%,53% 91%,24% 83%);
  animation: fish-part 1.45s var(--delay,0s) ease-out both;
}
.fish-school i:nth-child(2) { --y: 22%; --x: 34%; --dx: -32vw; --dy: -15vh; --delay: .13s; }
.fish-school i:nth-child(3) { --y: 45%; --x: 42%; --dx: -36vw; --dy: 14vh; --delay: .19s; }
.fish-school i:nth-child(4) { --y: 24%; --x: 58%; --dx: 34vw; --dy: -18vh; --delay: .07s; }
.fish-school i:nth-child(5) { --y: 32%; --x: 62%; --dx: 35vw; --dy: -5vh; --delay: .16s; }
.fish-school i:nth-child(6) { --y: 43%; --x: 57%; --dx: 35vw; --dy: 13vh; --delay: .21s; }
@keyframes fish-part {
  0% { transform: scale(.45); opacity: 0; }
  24% { opacity: .97; }
  100% { transform: translate(var(--dx,-31vw),var(--dy,-7vh)) scale(1.4); opacity: 0; }
}
@media (max-width: 640px) {
  .ocean .actor-motion { width: clamp(160px,62vw,340px); }
}
@media (max-height:540px) and (orientation:landscape) {
  .ocean .actor-motion { top: 26vh; width: min(25vw,213px); }
  .ocean .actor-drift { animation: none; }
}
@media (prefers-reduced-motion:reduce) {
  .ocean .actor-drift, .ocean .actor-motion.reaction, [data-scene="ocean"] .manta-shadow, .fish-school i { animation:none; }
  .fish-school { visibility:hidden; }
}

.ocean-finale {
  --pearl-x: 53%;
  --bracelet-y: 64%;
  background: #052a40;
}
.lens-chamber, .beacon-world, .beacon-ray {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
}
.lens-chamber {
  background: linear-gradient(0deg,#042438ec,transparent 50%),
    url("../images/stairs.webp") center / cover no-repeat;
}
.beacon-world {
  background: linear-gradient(0deg,#051d35e8,transparent 49%),
    url("../images/beacon.webp") 61% center / cover no-repeat;
}
.beacon-ray {
  inset: -25% -15%;
  z-index: -1;
  background: conic-gradient(from 241deg at 69% 30%,transparent 0deg,#fff9bc85 9deg,transparent 20deg);
  filter: blur(12px);
  mix-blend-mode: screen;
  opacity: 0;
}
.ocean-finale[open] .lens-chamber { animation: lens-pan 6.5s ease-out both; }
.ocean-finale[open] .beacon-world { animation: beacon-reveal 15s ease-out both; }
.ocean-finale[open] .beacon-ray { animation: beacon-sweep 15s ease-in-out both; }
@keyframes lens-pan { from { transform: scale(1.07); } to { transform: none; } }
@keyframes beacon-reveal {
  0%,35% { opacity: 0; transform: scale(1.065); }
  47%,100% { opacity: 1; transform: none; }
}
@keyframes beacon-sweep {
  0%,35%,100% { opacity: 0; }
  41%,54% { opacity: .95; }
  68% { opacity: .4; }
}
.pearl {
  position: absolute; left: var(--pearl-x); top: 22%;
  width: clamp(48px,10vw,131px); aspect-ratio: 1;
  border: 2px solid #f5ffff; border-radius: 50%;
  translate: -50% -50%; z-index: 2;
  background: radial-gradient(ellipse at 30% 25%,#fff 1%,#fff7f3 18%,#c5d4ff 37%,#bafdf2 55%,#8c93d7 78%,#f3d6f7 98%);
  box-shadow: 0 0 20px #f4ffff, 0 0 95px #7bf5ffb3, inset 0 -14px 20px #51669972;
  pointer-events: none;
}
.ocean-finale[open] .pearl { animation: pearl-route 15s ease-in-out both; }
@keyframes pearl-route {
  0% { top: 75%; opacity: 0; transform: scale(.17) rotate(-65deg); }
  9% { top: 73%; opacity: 1; transform: scale(.58) rotate(-29deg); }
  33%,39% { top: 22%; opacity: 1; transform: scale(1.05); }
  48%,59% { top: 24%; opacity: 0; transform: scale(.65); }
  69% { top: 39%; opacity: 1; transform: scale(.7); }
  72% { left: var(--pearl-x); }
  89% { left: calc(50% - 14px); top: var(--bracelet-y); opacity: 1; transform: scale(.18) rotate(170deg); }
  91%,100% { left: calc(50% - 14px); top: var(--bracelet-y); opacity: 0; transform: scale(.12) rotate(170deg); }
}
.finale-bracelet {
  position: absolute; left: 50%; top: var(--bracelet-y);
  translate: -50% -50%; display: flex; gap: 8px; align-items: center; justify-content: center;
  padding: 8px 14px; border: 2px solid #8ac2ca; border-radius: 24px;
  box-shadow: 0 12px 28px #03182cbc, inset 0 1px 5px #96fff577;
  background: linear-gradient(#386979,#0a354e 42%,#0e243b); pointer-events: none;
}
.finale-bracelet i { width: 20px; height: 20px; border: 1px solid #8eb1b9; border-radius: 6px; rotate:45deg; background: #0a2330; }
.finale-bracelet i:first-child { border-color: #fff1d4; background: #f6bd6b; box-shadow: 0 0 15px #ffb445d4; }
.finale-bracelet i:nth-child(2) { --pearl-sector: linear-gradient(145deg,#a8f8ff 0%,#50e1f5 46%,#18b8dc 100%); }
.ocean-finale[open] .finale-bracelet { animation: bracelet-arrive 15s ease-out both; }
.ocean-finale[open] .finale-bracelet i:nth-child(2) { animation: sector-on 15s linear both; }
@keyframes bracelet-arrive {
  0%,64% { opacity: 0; transform: translateY(24px); }
  74%,100% { opacity: 1; transform: none; }
}
@keyframes sector-on {
  0%,87% { background: #0a2330; }
  88%,100% { background: var(--pearl-sector); border-color: #b7faff; box-shadow: 0 0 13px #39dbf4b8; }
}
.ocean-finale .finale-copy { padding-bottom: clamp(6px,2vh,21px); }
.ocean-finale .finale-copy .eyebrow, .ocean-finale .finale-copy h2 { color: #e5fff8; }
.ocean-finale .finale-copy h2 { font-size: clamp(28px,5.4vw,73px); }
.ocean-finale .finale-copy p { color: #e9fffa; }
@media (max-width: 640px) {
  .ocean-finale { --bracelet-y: 62%; }
  .ocean-finale .finale-copy h2 { font-size: clamp(27px,8.4vw,48px); }
  .ocean .answer-status { min-height: 42px; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .ocean-finale { --bracelet-y: 48%; }
  .ocean-finale .finale-copy { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ocean-finale[open] :is(.lens-chamber,.beacon-world,.beacon-ray,.pearl,.finale-bracelet),
  .ocean-finale[open] .finale-bracelet i:nth-child(2) { animation:none; }
  .ocean-finale .pearl { visibility: hidden; }
  .ocean-finale .finale-bracelet i:nth-child(2) { background: var(--pearl-sector); border-color: #b7faff; box-shadow: 0 0 13px #39dbf4b8; }
}

.reef-lights { position: absolute; inset: 31% 8% 23% 25%; list-style: none; }
.reef-lights li {
  position: absolute; width: clamp(4px,.65vw,11px); aspect-ratio: 1;
  border-radius: 45%; opacity: 0; background: #defefd;
  box-shadow: 0 0 4px 1px #b7fff7,0 0 12px 4px #4dfdd9ad;
}
.reef-lights .is-lit { opacity: .76; }
.reef-lights .new-light { animation: new-lantern .56s ease-out both; }
@keyframes new-lantern {
  0% { transform: scale(.3); opacity: 0; }
  43% { transform: scale(2.2); opacity: 1; }
  100% { transform: none; opacity: .76; }
}
[data-scene="stairs"] .reef-lights { inset: 34% 20% 22% 38%; transform: rotate(-26deg); }
[data-scene="beacon"] .reef-lights { opacity: .62; }
@media (prefers-reduced-motion: reduce) { .reef-lights .new-light { animation: none; } }
