.ocean-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #050608;
  transition: opacity .38s ease;
}

.ocean-stage .ocean-photo, .ocean-stage .ocean-relit {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--ocean-width, 100%);
  height: 100%;
  max-width: none;
  transform: translateX(-50%);
}
.ocean-relit { display: none; pointer-events: none; }
.is-relit .ocean-relit { display: block; }
.is-relit .ocean-photo { opacity: 0; }
.is-relit .ocean-sky { background-image: none; }
.ocean-sky canvas { position: absolute; left: 50%; top: 0; width: var(--ocean-sky-width, auto); height: 100%; transform: translateX(-50%); }

.ocean-water {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ocean-contact {
  position: absolute;
  left: var(--cx, 50%);
  top: var(--surf, 72%);
  width: var(--ocean-contact-width, 110px);
  height: 12px;
  translate: -50% -44%;
  opacity: var(--seat, 0);
  background: radial-gradient(ellipse, #06090dd1, #0a0c1155 42%, transparent 71%);
}
.in-story .ocean-stage { opacity: 0; }

.stage-name, .stage-name[data-title="1"] { color: #f2f4f6; text-shadow: 0 2px 8px #030508, 0 0 14px #030508; }
.scrub-track { background: linear-gradient(90deg, #66768552, #c3d8e4ac, #66768552); }
.scrub-thumb { background: linear-gradient(90deg, transparent, #e0ecf2, transparent); }
.scrub-thumb::after { background: #e0ecf2; }
.product-stage { height: min(56svh, 540px); }
.bake:is(:nth-of-type(2), :nth-of-type(3), :nth-of-type(11), :nth-of-type(12)) { filter: brightness(.65); }

@media (max-width: 700px) {
  .product-stage { height: min(47svh, 390px); }
}

@media (prefers-reduced-motion: reduce) {
  .ocean-stage { transition: none; }
  .ocean-water { display: none; }
}

.ocean-contact {
  height: 16px;
  background: radial-gradient(ellipse, #06090db8, #0a0c1133 49%, transparent 74%);
}
.bake { filter: saturate(.88); }
.bake:is(:nth-of-type(2), :nth-of-type(3), :nth-of-type(11), :nth-of-type(12)) {
  filter: brightness(.65) saturate(.76);
}
.ocean-sky { display: none; }

@media (max-width: 700px) {
  /* Keep the moon round without widening the tray in the mobile framing. */
  .ocean-sky {
    position: absolute;
    display: block;
    inset: 0;
    background: url("stage/night-ocean-moon.png") center / var(--ocean-sky-width, auto) 100% no-repeat;
    mask-image: linear-gradient(#000 27%, transparent 51%);
  }
}

.exposure-definitions { position: absolute; pointer-events: none; }
.bake:is(:nth-of-type(5), :nth-of-type(9)) { filter: url("#bottle-penumbra") saturate(.82); }
.bake:is(:nth-of-type(4), :nth-of-type(10)) { filter: url("#bottle-side") saturate(.76); }
.bake:is(:nth-of-type(3), :nth-of-type(11)) { filter: url("#bottle-dim") saturate(.66); }
.bake:is(:nth-of-type(2), :nth-of-type(12)) { filter: url("#bottle-edge") saturate(.55); }

.ocean-cloud-motion, .ocean-sky-lightning {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 62.2%;
  pointer-events: none;
}
.ocean-cloud-motion {
  opacity: .78;
  mask-image:
    radial-gradient(circle at 50% 28.3%, transparent var(--moon-guard, 47px), #000 calc(var(--moon-guard, 47px) + 27px)),
    linear-gradient(180deg, transparent, #000 9% 84%, transparent);
  mask-composite: intersect;
}
.ocean-sky-lightning { mask-image: linear-gradient(180deg, #000 76%, transparent); }
.ocean-scene-flash {
  position: absolute;
  inset: 0;
  z-index: 9;
  opacity: 0;
  pointer-events: none;
  background: #ccdcef;
  mix-blend-mode: screen;
}
@media (prefers-reduced-motion: reduce) {
  .ocean-cloud-motion, .ocean-sky-lightning, .ocean-scene-flash { display: none; }
}
