:root {
  --ink: #071a2d;
  --muted: #536778;
  --cream: #f5fbff;
  --aqua: #4fe0c2;
  --blue: #1679c5;
  --deep: #031b37;
  --night: #020e21;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 4px solid #ffd166;
  outline-offset: 3px;
}

.landing-page,
.complete-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 32px;
  background:
    radial-gradient(circle at 18% 12%, rgba(79, 224, 194, 0.34), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(46, 150, 220, 0.4), transparent 34%),
    linear-gradient(155deg, #083f67 0%, #05284a 42%, #020e21 100%);
}

.landing-page::after,
.complete-page::after {
  position: absolute;
  right: -14vw;
  bottom: -26vh;
  width: 68vw;
  height: 48vh;
  border-radius: 50%;
  background: linear-gradient(160deg, #123d43, #04182f 65%);
  content: "";
  box-shadow: -28vw 6vh 0 #082b3d;
}

.landing-bubbles span {
  --size: calc(8px + (var(--bubble-index) % 4) * 6px);
  position: absolute;
  z-index: 1;
  left: calc(4% + var(--bubble-index) * 7.8%);
  bottom: calc(-5% - (var(--bubble-index) % 3) * 8%);
  width: var(--size);
  height: var(--size);
  border: 2px solid rgba(166, 237, 255, 0.58);
  border-radius: 50%;
  animation: bubble-rise calc(7s + (var(--bubble-index) % 5) * 1.2s) linear infinite;
  animation-delay: calc(var(--bubble-index) * -0.75s);
}

@keyframes bubble-rise {
  from {
    opacity: 0;
    transform: translateY(0) scale(0.65);
  }
  12% {
    opacity: 0.75;
  }
  to {
    opacity: 0;
    transform: translateY(-115vh) translateX(35px) scale(1.08);
  }
}

.landing-card {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1180px, 96vw);
  min-height: min(720px, 88vh);
  overflow: hidden;
  grid-template-columns: 1.08fr 0.92fr;
  border: 1px solid rgba(181, 235, 255, 0.22);
  border-radius: 36px;
  background: rgba(244, 251, 255, 0.96);
  box-shadow: 0 34px 100px rgba(0, 7, 22, 0.44);
}

.landing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 6vw, 78px);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 16px;
  color: #077d86;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.landing-copy h1,
.complete-copy h1 {
  max-width: 680px;
  margin: 0;
  color: #05213a;
  font-size: clamp(3.6rem, 7vw, 6.9rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.landing-lead {
  max-width: 610px;
  margin: 28px 0 0;
  color: #405969;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.65;
}

.mission-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 34px 0;
  color: #406073;
  font-size: 0.78rem;
  font-weight: 750;
}

.mission-strip span {
  padding: 8px 11px;
  border: 1px solid #cbdde7;
  border-radius: 999px;
  background: #fff;
}

.mission-strip b {
  color: #1c9eb0;
}

.launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.sound-button,
.hint-button {
  min-height: 50px;
  cursor: pointer;
  border-radius: 14px;
  font-weight: 820;
}

.primary-button {
  border: 0;
  padding: 14px 24px;
  color: #04202c;
  background: linear-gradient(135deg, #5ce8c9, #65d4ed);
  box-shadow: 0 10px 28px rgba(22, 157, 174, 0.25);
}

.primary-button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.sound-button,
.hint-button {
  border: 1px solid #bfd2df;
  padding: 13px 18px;
  color: #21485f;
  background: #fff;
}

.control-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: #627786;
  font-size: 0.82rem;
}

.control-note span {
  width: 1px;
  height: 15px;
  margin: 0 8px;
  background: #c2d2dd;
}

.landing-art {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 22%, rgba(177, 247, 255, 0.54), transparent 25%),
    linear-gradient(180deg, #56d7df 0%, #1683bd 44%, #07517d 100%);
}

.landing-art::after {
  position: absolute;
  right: -15%;
  bottom: -8%;
  width: 125%;
  height: 35%;
  border-radius: 55% 45% 0 0;
  background: linear-gradient(175deg, #197f73, #073e4c 65%);
  content: "";
  box-shadow: -140px 42px 0 #0d5361;
}

.hero-dolphin {
  position: absolute;
  z-index: 3;
  top: 17%;
  left: 4%;
  width: 92%;
  height: auto;
  filter: drop-shadow(0 26px 20px rgba(0, 41, 74, 0.28));
  animation: hero-swim 4.4s ease-in-out infinite;
}

@keyframes hero-swim {
  0%,
  100% {
    transform: translateY(5px) rotate(-2deg);
  }
  50% {
    transform: translateY(-18px) rotate(2deg);
  }
}

.hero-ring {
  position: absolute;
  z-index: 1;
  border: 7px solid rgba(239, 255, 255, 0.56);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(163, 247, 255, 0.55);
}

.ring-one {
  top: 17%;
  left: 14%;
  width: 160px;
  height: 160px;
}

.ring-two {
  right: 5%;
  bottom: 19%;
  width: 105px;
  height: 105px;
}

.sun-ray {
  position: absolute;
  top: -12%;
  width: 72px;
  height: 66%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent);
  filter: blur(3px);
  transform: rotate(15deg);
}

.ray-one {
  left: 20%;
}

.ray-two {
  left: 55%;
  width: 110px;
  opacity: 0.48;
}

.lesson-badge {
  position: absolute;
  z-index: 4;
  right: 24px;
  bottom: 25px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  padding: 12px 16px;
  color: #fff;
  background: rgba(3, 35, 63, 0.66);
  backdrop-filter: blur(12px);
}

.lesson-badge span {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.game-page {
  min-height: 100vh;
  padding-bottom: 96px;
  color: #eafaff;
  background:
    radial-gradient(circle at 80% 5%, rgba(54, 171, 215, 0.22), transparent 26%),
    linear-gradient(155deg, #052b4c, #03172f 57%, #010b1d);
}

.game-header {
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) minmax(300px, 1.5fr) minmax(260px, 1fr);
  align-items: center;
  gap: 26px;
  min-height: 78px;
  border-bottom: 1px solid rgba(153, 222, 245, 0.16);
  padding: 13px clamp(18px, 3vw, 42px);
  background: rgba(2, 16, 35, 0.83);
  backdrop-filter: blur(18px);
}

.brand-block p,
.brand-block strong,
.progress-label span,
.progress-label b {
  display: block;
}

.brand-block p {
  margin: 0 0 2px;
  color: #66e2d0;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-block strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #c9dfeb;
  font-size: 0.75rem;
  font-weight: 750;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(181, 224, 239, 0.15);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4fe0c2, #4abbe5);
  box-shadow: 0 0 15px rgba(79, 224, 194, 0.65);
  transition: width 0.55s ease;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.question-clock,
.pearl-counter {
  display: flex;
  min-height: 43px;
  align-items: center;
  border: 1px solid rgba(183, 225, 240, 0.2);
  border-radius: 11px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
}

.question-clock {
  min-width: 82px;
  flex-direction: column;
  justify-content: center;
  padding: 4px 10px;
}

.question-clock span {
  color: #fff0b3;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1;
}

.question-clock small {
  margin-top: 3px;
  color: #91b7c7;
  font-size: 0.55rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pearl-counter {
  gap: 6px;
}

.pearl-counter i,
.reward-card i {
  display: inline-block;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 27%, #fff 0 10%, transparent 13%),
    linear-gradient(145deg, #fff9dd, #95dded 57%, #ad8fe8);
  box-shadow: 0 0 11px rgba(171, 239, 255, 0.45);
}

.pearl-counter strong {
  color: #fff;
  font-size: 0.9rem;
}

.pearl-counter span {
  color: #9fc4d1;
  font-size: 0.58rem;
  font-weight: 750;
  text-transform: uppercase;
}

.header-tools button {
  cursor: pointer;
  border: 1px solid rgba(183, 225, 240, 0.2);
  border-radius: 9px;
  padding: 8px 10px;
  color: #cbe7f1;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.7rem;
  font-weight: 720;
}

.energy-meter {
  display: flex;
  gap: 5px;
  margin-right: 4px;
}

.energy-meter span {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(122, 220, 238, 0.6);
  border-radius: 50%;
}

.energy-meter span.full {
  background: #55e6c7;
  box-shadow: 0 0 9px rgba(85, 230, 199, 0.65);
}

.game-layout {
  display: grid;
  width: min(1500px, 100%);
  min-height: calc(100vh - 174px);
  margin: 0 auto;
  grid-template-columns: minmax(300px, 0.75fr) minmax(650px, 1.85fr);
}

.mission-panel {
  position: relative;
  z-index: 3;
  border-right: 1px solid rgba(164, 220, 240, 0.16);
  padding: clamp(30px, 4vw, 58px);
  background:
    linear-gradient(180deg, rgba(10, 45, 71, 0.92), rgba(3, 23, 46, 0.96)),
    radial-gradient(circle at 15% 20%, rgba(79, 224, 194, 0.17), transparent 35%);
}

.mission-panel h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.1vw, 3.35rem);
  font-weight: 880;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.mission-panel > p:not(.panel-kicker) {
  color: #b8d0dd;
  line-height: 1.62;
}

.context-copy {
  margin-top: 22px;
  border-left: 3px solid #4fe0c2;
  padding-left: 14px;
}

.expression-card {
  margin: 24px 0 18px;
  border: 1px solid rgba(170, 231, 249, 0.24);
  border-radius: 17px;
  padding: 22px 18px;
  color: #f7fdff;
  background: rgba(3, 12, 28, 0.55);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  font-weight: 700;
  text-align: center;
}

.movement-instruction {
  margin: 0 0 20px;
  color: #8fb5c6 !important;
  font-size: 0.82rem;
  font-weight: 680;
}

.hint-button {
  width: 100%;
  min-height: 44px;
  border-color: rgba(141, 215, 235, 0.24);
  color: #bce8f4;
  background: rgba(63, 154, 180, 0.09);
  font-size: 0.78rem;
}

.support-card,
.worked-model {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  border: 1px solid rgba(95, 232, 204, 0.22);
  border-radius: 15px;
  padding: 15px;
  color: #cde6ee;
  background: rgba(42, 157, 153, 0.09);
  font-size: 0.77rem;
}

.support-card > strong,
.worked-model > strong {
  margin-bottom: 2px;
  color: #66e2d0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-card span,
.worked-model span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.support-card span b,
.worked-model span b {
  display: grid;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: #062537;
  background: #66e2d0;
  font-size: 0.65rem;
}

.reward-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 15px;
  border: 1px solid rgba(196, 164, 255, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
  color: #dceff5;
  background: rgba(126, 92, 190, 0.08);
}

.reward-card div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reward-card strong {
  white-space: nowrap;
  font-size: 0.75rem;
}

.reward-card span {
  color: #9fc0ce;
  font-size: 0.65rem;
  line-height: 1.35;
  text-align: right;
}

.training-steps {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.training-steps span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c8e0e9;
  font-size: 0.86rem;
}

.training-steps b {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: #062537;
  background: #59e5c8;
}

.ocean-arena {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 19, 40, 0.2), transparent 20%),
    radial-gradient(circle at 70% 10%, rgba(92, 220, 242, 0.2), transparent 30%),
    linear-gradient(180deg, #0878a5 0%, #075681 25%, #06375f 55%, #031832 100%);
}

.surface-line {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  height: 18px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(223, 253, 255, 0.7) 0 18%, transparent 20%) 0 0 / 60px 18px repeat-x,
    linear-gradient(180deg, rgba(193, 248, 255, 0.55), transparent);
  opacity: 0.78;
}

.depth-lines {
  position: absolute;
  inset: 8% 20px 11% 20px;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.depth-lines span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(190, 235, 248, 0.43);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.65rem;
}

.depth-lines span::after {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(180, 231, 245, 0.16), transparent);
  content: "";
}

.arena-bubbles span {
  --size: calc(5px + (var(--i) % 5) * 3px);
  position: absolute;
  z-index: 1;
  left: calc(9% + (var(--i) * 13%) % 88%);
  bottom: calc(-8% - (var(--i) % 5) * 3%);
  width: var(--size);
  height: var(--size);
  border: 1.5px solid rgba(192, 244, 255, 0.53);
  border-radius: 50%;
  animation: arena-bubble calc(5s + (var(--i) % 4) * 1.4s) linear infinite;
  animation-delay: calc(var(--i) * -0.52s);
}

@keyframes arena-bubble {
  to {
    opacity: 0;
    transform: translateY(-760px) translateX(28px);
  }
}

.seafloor {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -20px;
  left: 0;
  height: 15%;
  border-radius: 50% 55% 0 0;
  background: linear-gradient(175deg, #0b4c52, #062b3c 65%);
  box-shadow: 280px -18px 0 rgba(10, 61, 72, 0.72), -310px 15px 0 rgba(7, 43, 56, 0.8);
}

.kelp {
  position: absolute;
  bottom: 65%;
  display: block;
  width: 16px;
  height: 88px;
  border-radius: 60% 40% 20% 20%;
  background: linear-gradient(90deg, #0c8f7b, #26bd94);
  transform-origin: bottom;
  animation: kelp-sway 3.6s ease-in-out infinite;
}

.kelp::after {
  position: absolute;
  top: 24px;
  left: 9px;
  width: 28px;
  height: 12px;
  border-radius: 90% 0 90% 0;
  background: #20ac86;
  content: "";
  transform: rotate(-22deg);
}

.kelp-a {
  left: 12%;
}

.kelp-b {
  left: 68%;
  height: 115px;
  animation-delay: -1.3s;
}

.kelp-c {
  right: 8%;
  height: 74px;
  animation-delay: -2.1s;
}

@keyframes kelp-sway {
  0%,
  100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(8deg);
  }
}

.rock {
  position: absolute;
  bottom: 62%;
  display: block;
  border-radius: 50% 55% 20% 20%;
  background: #123d4d;
}

.rock-a {
  left: 31%;
  width: 85px;
  height: 40px;
}

.rock-b {
  right: 24%;
  width: 58px;
  height: 28px;
}

.answer-current {
  position: absolute;
  z-index: 4;
  left: 3%;
  width: 55%;
  height: 72px;
  cursor: pointer;
  border: 0;
  padding: 0;
  color: #073044;
  background: transparent;
  transform: translateY(-50%);
}

.current-stream {
  position: absolute;
  top: 50%;
  left: 62px;
  width: calc(100% - 62px);
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--zone-color), rgba(163, 239, 251, 0.18));
  opacity: 0.45;
  transition: opacity 0.2s, box-shadow 0.2s;
}

.current-stream::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.9) 20px 26px, transparent 28px 42px);
  content: "";
  animation: current-flow 1.1s linear infinite;
}

@keyframes current-flow {
  to {
    transform: translateX(-42px);
  }
}

.answer-bubble {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  min-width: 112px;
  min-height: 58px;
  place-items: center;
  border: 3px solid rgba(210, 249, 255, 0.65);
  border-radius: 50%;
  padding: 10px 18px;
  background: rgba(232, 252, 255, 0.88);
  box-shadow: inset 0 -8px 14px rgba(51, 157, 186, 0.16), 0 7px 24px rgba(0, 24, 45, 0.2);
  font-size: clamp(0.86rem, 1.25vw, 1.05rem);
  font-weight: 860;
  transform: translateY(-50%);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.answer-current.active .answer-bubble {
  border-color: var(--zone-color);
  box-shadow: inset 0 -8px 14px rgba(51, 157, 186, 0.12), 0 0 0 7px rgba(255, 255, 255, 0.12), 0 0 28px var(--zone-color);
  transform: translateY(-50%) scale(1.08);
}

.answer-current.active .current-stream {
  opacity: 0.95;
  box-shadow: 0 0 18px var(--zone-color);
}

.dolphin-player {
  position: absolute;
  z-index: 6;
  right: 8%;
  width: clamp(110px, 16vw, 215px);
  height: clamp(110px, 16vw, 215px);
  pointer-events: none;
  transform: translateY(-50%);
  transition: top 0.08s linear;
}

.dolphin-player img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 10px rgba(0, 18, 40, 0.4));
}

.dolphin-player .reward-trail {
  position: absolute;
  z-index: -1;
  top: 44%;
  right: 74%;
  width: 0;
  height: 10px;
  border-radius: 99px;
  opacity: 0;
  transition: width 0.25s ease, opacity 0.25s ease;
}

.dolphin-player.reward-tier-1 .reward-trail,
.dolphin-player.reward-tier-2 .reward-trail,
.dolphin-player.reward-tier-3 .reward-trail {
  width: 78px;
  opacity: 0.9;
  background:
    radial-gradient(circle, rgba(221, 251, 255, 0.95) 0 28%, transparent 32%) 0 50% / 18px 18px repeat-x;
}

.dolphin-player.reward-tier-2 img {
  filter:
    drop-shadow(0 14px 10px rgba(0, 18, 40, 0.4))
    drop-shadow(0 0 16px rgba(255, 133, 114, 0.72));
}

.dolphin-player.reward-tier-3 img {
  filter:
    drop-shadow(0 14px 10px rgba(0, 18, 40, 0.4))
    drop-shadow(0 0 22px rgba(255, 220, 102, 0.95));
}

.dolphin-player.reward-tier-3 .reward-trail {
  width: 112px;
  background:
    radial-gradient(circle, #fff7bd 0 25%, transparent 30%) 0 50% / 16px 16px repeat-x;
  filter: drop-shadow(0 0 7px #ffd65a);
}

.dolphin-player.boosting:not(.motion-dash) {
  filter: drop-shadow(24px 0 10px rgba(79, 224, 194, 0.42));
}

.dolphin-player.boosting:not(.motion-dash) img {
  transform: scale(1.05) rotate(-2deg);
}

.dolphin-player.motion-up img {
  transform: rotate(-4deg);
}

.dolphin-player.motion-down img {
  transform: rotate(4deg);
}

.dolphin-player.motion-dash {
  animation: dolphin-dash 0.78s ease-in-out forwards;
}

@keyframes dolphin-dash {
  0% {
    right: 8%;
    transform: translateY(-50%) scale(1);
  }
  48% {
    right: 42%;
    transform: translateY(-50%) scale(0.92) rotate(-4deg);
  }
  100% {
    right: 88%;
    opacity: 0;
    transform: translateY(-50%) scale(0.7) rotate(-10deg);
  }
}

.sonar-line {
  position: absolute;
  top: 50%;
  right: 92%;
  width: 70px;
  border-top: 1px dashed rgba(207, 249, 255, 0.56);
}

.correct-flash {
  position: absolute;
  z-index: 9;
  top: 50%;
  left: 50%;
  display: flex;
  min-width: 260px;
  flex-direction: column;
  border: 1px solid rgba(145, 246, 219, 0.55);
  border-radius: 18px;
  padding: 17px 22px;
  color: #dffff5;
  background: rgba(4, 51, 58, 0.9);
  box-shadow: 0 20px 60px rgba(0, 13, 25, 0.4), 0 0 45px rgba(79, 224, 194, 0.25);
  text-align: center;
  transform: translate(-50%, -50%);
  animation: correct-pop 0.82s ease both;
}

.correct-flash span {
  margin-top: 3px;
  color: #9de8db;
  font-size: 0.78rem;
}

@keyframes correct-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.75);
  }
  18%,
  72% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.arena-toast {
  position: absolute;
  z-index: 10;
  bottom: 24px;
  left: 50%;
  border: 1px solid rgba(255, 209, 102, 0.45);
  border-radius: 12px;
  padding: 11px 16px;
  color: #fff5ca;
  background: rgba(49, 38, 6, 0.9);
  font-size: 0.78rem;
  font-weight: 720;
  transform: translateX(-50%);
}

.control-dock {
  position: fixed;
  z-index: 15;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 9px;
  border-top: 1px solid rgba(151, 219, 239, 0.18);
  padding: 10px 16px;
  background: rgba(2, 14, 31, 0.94);
  backdrop-filter: blur(16px);
}

.control-dock button {
  min-width: 132px;
  min-height: 54px;
  cursor: pointer;
  border: 1px solid rgba(163, 224, 240, 0.23);
  border-radius: 13px;
  color: #d7f1f7;
  background: #092940;
  font-size: 0.78rem;
  font-weight: 800;
  user-select: none;
  touch-action: none;
}

.control-dock button span {
  display: inline-grid;
  width: 25px;
  height: 25px;
  margin-right: 7px;
  place-items: center;
  border-radius: 7px;
  color: #062233;
  background: #82e7da;
  font-size: 1rem;
}

.control-dock .enter-button {
  min-width: 205px;
  border-color: rgba(84, 231, 201, 0.42);
  color: #dffdf5;
  background: linear-gradient(135deg, #0b615f, #0a4a66);
}

.control-dock .boost-button {
  border-color: rgba(255, 209, 102, 0.32);
  color: #fff3bf;
  background: linear-gradient(135deg, #4e4215, #26394b);
}

.control-dock .boost-button span {
  color: #352707;
  background: #ffd166;
}

.control-dock .boost-button.active {
  border-color: #ffe39a;
  background: linear-gradient(135deg, #876d11, #0b5967);
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.28);
}

.overlay {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(1, 10, 24, 0.72);
  backdrop-filter: blur(9px);
}

.zone-card,
.feedback-card {
  width: min(590px, 94vw);
  border: 1px solid rgba(179, 231, 246, 0.24);
  border-radius: 26px;
  padding: clamp(30px, 5vw, 50px);
  color: #dff5fb;
  background:
    radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--zone-color, #4fe0c2) 25%, transparent), transparent 30%),
    linear-gradient(155deg, #0b3854, #041a34 70%);
  box-shadow: 0 32px 100px rgba(0, 7, 19, 0.6);
}

.zone-number {
  color: var(--zone-color);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.zone-card h2,
.feedback-card h2 {
  margin: 8px 0 13px;
  color: #fff;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.zone-card p,
.feedback-card p {
  color: #b8d5df;
  line-height: 1.62;
}

.zone-rule {
  margin: 24px 0;
  border-left: 3px solid var(--zone-color);
  padding: 12px 15px;
  color: #e7faff;
  background: rgba(255, 255, 255, 0.045);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.84rem;
}

.zone-badge {
  margin: -10px 0 24px;
  color: #a9c9d5;
  font-size: 0.75rem;
}

.zone-badge strong {
  color: var(--zone-color);
}

.feedback-card {
  --zone-color: #ffcf66;
}

.feedback-card h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.feedback-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #ffda83;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.feedback-heading b {
  color: #9fc4d1;
  letter-spacing: 0;
  text-align: right;
  text-transform: none;
}

.feedback-hint {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 22px 0;
  border: 1px solid rgba(255, 211, 112, 0.24);
  border-radius: 15px;
  padding: 15px;
  color: #eaf7fa;
  background: rgba(255, 201, 83, 0.07);
  font-size: 0.82rem;
}

.feedback-hint strong {
  color: #ffda83;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.feedback-card .worked-model {
  margin: 22px 0;
}

.complete-page {
  background:
    radial-gradient(circle at 50% -10%, rgba(202, 252, 255, 0.72), transparent 27%),
    linear-gradient(180deg, #50d4dd, #147aaf 44%, #06345e 100%);
}

.complete-card {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1100px, 96vw);
  min-height: 650px;
  overflow: hidden;
  grid-template-columns: 0.9fr 1.1fr;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 32px;
  background: rgba(244, 252, 255, 0.96);
  box-shadow: 0 34px 100px rgba(0, 25, 54, 0.35);
}

.complete-dolphin {
  align-self: center;
  width: 110%;
  height: auto;
  margin-left: -8%;
  filter: drop-shadow(0 20px 18px rgba(0, 42, 70, 0.25));
}

.complete-copy {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 72px);
}

.complete-copy h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.complete-copy > p:not(.eyebrow) {
  color: #516b79;
  line-height: 1.58;
}

.results-grid {
  display: grid;
  gap: 9px;
  margin: 23px 0;
  grid-template-columns: repeat(3, 1fr);
}

.results-grid div {
  display: flex;
  min-height: 105px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #cfe1e9;
  border-radius: 15px;
  padding: 13px;
  background: #fff;
}

.results-grid strong {
  color: #067f91;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.results-grid span {
  margin-top: 4px;
  color: #718794;
  font-size: 0.67rem;
  font-weight: 720;
}

.result-message {
  border-left: 3px solid #4fd6ba;
  padding-left: 13px;
  font-size: 0.84rem;
}

.complete-copy .primary-button {
  align-self: flex-start;
  margin-top: 6px;
}

@media (max-width: 1040px) {
  .landing-card,
  .complete-card {
    grid-template-columns: 1fr;
  }

  .landing-art {
    min-height: 390px;
  }

  .hero-dolphin {
    top: 0;
    left: 20%;
    width: 60%;
  }

  .game-header {
    grid-template-columns: 1fr 1.7fr;
  }

  .header-tools {
    display: none;
  }

  .game-layout {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .mission-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(164, 220, 240, 0.16);
    padding: 24px;
  }

  .mission-panel h1 {
    font-size: 2.2rem;
  }

  .expression-card {
    margin: 14px 0;
    padding: 15px;
  }

  .support-card {
    grid-template-columns: repeat(3, 1fr);
  }

  .support-card > strong {
    grid-column: 1 / -1;
  }

  .ocean-arena {
    min-height: 600px;
  }

  .complete-dolphin {
    width: min(520px, 90%);
    margin: -55px auto -90px;
  }
}

@media (max-width: 680px) {
  .landing-page,
  .complete-page {
    padding: 12px;
  }

  .landing-card {
    min-height: auto;
    border-radius: 24px;
  }

  .landing-copy {
    padding: 34px 25px;
  }

  .landing-copy h1 {
    font-size: 3.55rem;
  }

  .mission-strip b {
    display: none;
  }

  .landing-art {
    min-height: 310px;
  }

  .hero-dolphin {
    top: -1%;
    left: 10%;
    width: 80%;
  }

  .game-header {
    gap: 14px;
    grid-template-columns: 1fr;
    padding: 11px 16px;
  }

  .brand-block {
    display: none;
  }

  .mission-panel {
    padding: 20px 18px;
  }

  .mission-panel h1 {
    font-size: 1.8rem;
  }

  .context-copy {
    font-size: 0.82rem;
  }

  .support-card {
    grid-template-columns: 1fr;
  }

  .support-card > strong {
    grid-column: auto;
  }

  .ocean-arena {
    min-height: 540px;
  }

  .answer-current {
    left: 3%;
    width: 65%;
  }

  .answer-bubble {
    min-width: 88px;
    min-height: 50px;
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .current-stream {
    left: 50px;
    width: calc(100% - 50px);
  }

  .dolphin-player {
    right: 2%;
    width: 125px;
    height: 125px;
  }

  .control-dock {
    gap: 6px;
    padding: 8px;
  }

  .control-dock button,
  .control-dock .enter-button {
    min-width: 0;
    flex: 1;
    padding: 7px;
    font-size: 0.68rem;
  }

  .control-dock button span {
    display: grid;
    margin: 0 auto 3px;
  }

  .zone-card,
  .feedback-card {
    padding: 28px 24px;
  }

  .feedback-heading {
    flex-direction: column;
    gap: 5px;
  }

  .feedback-heading b {
    text-align: left;
  }

  .complete-card {
    border-radius: 23px;
  }

  .complete-copy {
    padding: 32px 24px;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .results-grid div {
    min-height: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Six-game Topic 1 hub ===== */
.hub-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(28px, 5vw, 72px) clamp(18px, 5vw, 76px) 30px;
  color: #effcff;
  background:
    radial-gradient(circle at 12% 7%, rgba(92, 232, 204, 0.3), transparent 25%),
    radial-gradient(circle at 91% 12%, rgba(82, 168, 255, 0.3), transparent 30%),
    linear-gradient(145deg, #073f65 0%, #052a4e 43%, #021429 100%);
  isolation: isolate;
}

.hub-page::before,
.hub-page::after {
  position: absolute;
  z-index: -1;
  right: -14%;
  bottom: -180px;
  width: 68%;
  height: 300px;
  border-radius: 52% 48% 0 0;
  background: linear-gradient(170deg, rgba(19, 116, 108, 0.78), rgba(4, 47, 66, 0.96));
  content: "";
  transform: rotate(-4deg);
}

.hub-page::after {
  right: auto;
  bottom: -220px;
  left: -18%;
  width: 62%;
  height: 330px;
  opacity: 0.8;
  transform: rotate(7deg);
}

.hub-water,
.hub-water i {
  position: absolute;
  pointer-events: none;
}

.hub-water {
  z-index: -1;
  inset: 0;
  overflow: hidden;
}

.hub-water i {
  --size: calc(8px + (var(--bubble) % 4) * 5px);
  bottom: -30px;
  left: calc(2% + var(--bubble) * 5.4%);
  width: var(--size);
  height: var(--size);
  border: 2px solid rgba(191, 246, 255, 0.46);
  border-radius: 50%;
  animation: hubBubble calc(7s + var(--bubble) * 0.22s) linear infinite;
  animation-delay: calc(var(--bubble) * -0.62s);
}

@keyframes hubBubble {
  0% { opacity: 0; transform: translate(0, 0) scale(0.65); }
  12% { opacity: 0.78; }
  100% { opacity: 0; transform: translate(38px, -115vh) scale(1.15); }
}

.hub-hero,
.game-grid,
.hub-footer {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  margin-inline: auto;
}

.hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.72fr);
  align-items: end;
  gap: 26px 70px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.hub-kicker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #91eee0;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hub-kicker span {
  width: 34px;
  height: 3px;
  border-radius: 99px;
  background: #5ce8c9;
  box-shadow: 0 0 12px rgba(92, 232, 201, 0.7);
}

.hub-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(4.1rem, 8.6vw, 8.4rem);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 0.75;
  text-transform: uppercase;
}

.hub-hero h1 em {
  color: #6ee8d2;
  font-style: normal;
}

.hub-hero > p {
  margin: 0 0 12px;
  color: #c7e1e9;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 650;
  line-height: 1.55;
}

.hub-status {
  grid-column: 2;
  color: #90b4c3;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hub-status b { color: #ffe484; font-size: 1rem; }
.hub-status span { margin-inline: 5px; color: #4fcfbf; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.game-card {
  --card-accent: #5ce8c9;
  position: relative;
  display: flex;
  min-height: 272px;
  flex-direction: column;
  overflow: hidden;
  padding: 21px;
  color: #eefcff;
  text-decoration: none;
  background:
    radial-gradient(circle at 90% 8%, color-mix(in srgb, var(--card-accent) 23%, transparent), transparent 34%),
    linear-gradient(150deg, rgba(10, 63, 88, 0.94), rgba(4, 30, 57, 0.96));
  border: 1px solid rgba(178, 230, 242, 0.2);
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(0, 8, 23, 0.24);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  animation: cardDock 0.5s ease both;
  animation-delay: calc(var(--card-order) * 55ms);
}

.game-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: var(--card-accent);
  content: "";
  box-shadow: 0 0 18px color-mix(in srgb, var(--card-accent) 60%, transparent);
}

@keyframes cardDock {
  from { opacity: 0; transform: translateY(16px); }
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--card-accent) 70%, white);
  box-shadow: 0 26px 55px rgba(0, 8, 23, 0.36), 0 0 30px color-mix(in srgb, var(--card-accent) 14%, transparent);
}

.game-card:focus-visible {
  outline: 4px solid #fff2a4;
  outline-offset: 4px;
}

.game-card-top,
.game-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lesson-badge {
  padding: 6px 9px;
  color: #05283c;
  background: var(--card-accent);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-card .lesson-badge {
  position: static;
  right: auto;
  bottom: auto;
  display: inline-flex;
  flex-direction: row;
}

.game-icon {
  display: grid;
  width: 49px;
  height: 49px;
  place-items: center;
  font-size: 1.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
}

.game-card h2 {
  margin: 20px 0 8px;
  color: #fff;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 920;
  letter-spacing: -0.045em;
  line-height: 1;
}

.game-card p {
  margin: 0;
  color: #b8d2dc;
  font-size: 0.88rem;
  font-weight: 620;
  line-height: 1.5;
}

.game-card-bottom { margin-top: auto; padding-top: 22px; }
.game-card-bottom small { color: #8fb5c3; font-size: 0.65rem; font-weight: 820; }
.game-card-bottom b { color: var(--card-accent); font-size: 0.76rem; letter-spacing: 0.1em; }
.game-card-bottom b span { display: inline-block; margin-left: 5px; transition: transform 0.16s ease; }
.game-card:hover .game-card-bottom b span { transform: translateX(5px); }

.hub-footer {
  padding: 22px 4px 0;
  color: #88aab8;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.hub-footer b { color: #dffcff; }

/* Each recovered game runs in an isolated full-screen play space. */
.game-host,
.native-game-host {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #03172d;
}

.game-host { height: 100dvh; overflow: hidden; }

.game-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #03172d;
}

.game-home-pill {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 11px;
  color: #efffff;
  text-decoration: none;
  background: rgba(2, 21, 40, 0.9);
  border: 1px solid rgba(153, 232, 235, 0.38);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 8, 24, 0.32);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  transition: transform 0.15s ease, background 0.15s ease;
}

.game-home-pill:hover,
.game-home-pill:focus-visible {
  color: #042536;
  background: #76e6d6;
  transform: translateY(-1px);
}

.game-home-pill small {
  padding-left: 8px;
  color: #88c7cf;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.56rem;
  text-transform: uppercase;
}

.game-home-pill:hover small,
.game-home-pill:focus-visible small { color: #0a5b64; border-left-color: rgba(4, 37, 54, 0.24); }

@media (max-width: 920px) {
  .hub-hero { grid-template-columns: 1fr; gap: 18px; }
  .hub-status { grid-column: 1; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .hub-page { padding: 28px 13px 22px; }
  .hub-hero h1 { font-size: clamp(3.65rem, 20vw, 5.4rem); }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 235px; }
  .game-home-pill { top: 7px; left: 7px; min-height: 34px; padding: 6px 9px; }
  .game-home-pill small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hub-water i,
  .game-card { animation: none; }
  .game-card,
  .game-home-pill { transition: none; }
}

/* Lesson 1.3 · Dolphin Number-Line Dive */
.nl-intro,
.nl-complete {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 32px;
  color: #082138;
  background:
    radial-gradient(circle at 14% 12%, rgba(80, 229, 204, 0.3), transparent 26%),
    radial-gradient(circle at 88% 14%, rgba(66, 179, 231, 0.34), transparent 32%),
    linear-gradient(155deg, #07587d, #032d52 48%, #010f27);
}

.nl-bubbles span {
  --size: calc(7px + (var(--i) % 5) * 4px);
  position: absolute;
  left: calc(4% + var(--i) * 6.2%);
  bottom: -4%;
  width: var(--size);
  height: var(--size);
  border: 2px solid rgba(195, 247, 255, 0.52);
  border-radius: 50%;
  animation: bubble-rise calc(7s + (var(--i) % 4) * 1.4s) linear infinite;
  animation-delay: calc(var(--i) * -0.6s);
}

.nl-intro-card,
.nl-complete-card {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1200px, 96vw);
  min-height: min(730px, 90vh);
  overflow: hidden;
  grid-template-columns: 1.05fr 0.95fr;
  border: 1px solid rgba(212, 248, 255, 0.28);
  border-radius: 34px;
  background: rgba(246, 252, 255, 0.97);
  box-shadow: 0 34px 100px rgba(0, 8, 27, 0.45);
}

.nl-intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 6vw, 76px);
}

.nl-eyebrow {
  margin: 0 0 14px;
  color: #07838b;
  font-size: 0.72rem;
  font-weight: 880;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nl-intro-copy h1,
.nl-complete-card h1 {
  max-width: 720px;
  margin: 0;
  color: #06233c;
  font-size: clamp(3.4rem, 7vw, 6.7rem);
  font-weight: 920;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.nl-intro-copy > p:not(.nl-eyebrow),
.nl-complete-card p:not(.nl-eyebrow) {
  max-width: 640px;
  margin: 26px 0 0;
  color: #4b6473;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.62;
}

.nl-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 30px 0;
}

.nl-route span {
  border: 1px solid #c7dae5;
  border-radius: 999px;
  padding: 7px 10px;
  color: #426174;
  background: #fff;
  font-size: 0.7rem;
  font-weight: 780;
}

.nl-route b {
  color: #24a8b2;
}

.nl-primary {
  min-height: 51px;
  align-self: flex-start;
  cursor: pointer;
  border: 0;
  border-radius: 14px;
  padding: 14px 23px;
  color: #052834;
  background: linear-gradient(135deg, #5ce8c9, #66d7ee);
  box-shadow: 0 12px 30px rgba(30, 160, 177, 0.25);
  font-weight: 860;
}

.nl-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.nl-intro-copy > small {
  margin-top: 20px;
  color: #708693;
  font-size: 0.7rem;
}

.nl-intro-art {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 11%, rgba(238, 255, 255, 0.52), transparent 23%),
    linear-gradient(180deg, #70e3e5, #1685b5 43%, #06436d 100%);
}

.nl-intro-art::after {
  position: absolute;
  right: -12%;
  bottom: -8%;
  left: -8%;
  height: 31%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(175deg, #147a6e, #053a4a 65%);
  content: "";
}

.nl-hero-dolphin {
  position: absolute;
  z-index: 3;
  top: 17%;
  left: 12%;
  width: 76%;
  height: auto;
  filter: drop-shadow(0 25px 19px rgba(0, 37, 70, 0.3));
  animation: hero-swim 4.3s ease-in-out infinite;
}

.nl-horizontal-preview {
  position: absolute;
  z-index: 4;
  right: 8%;
  bottom: 21%;
  left: 8%;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #dffbff;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.66rem;
  font-weight: 800;
}

.nl-horizontal-preview i {
  height: 2px;
  flex: 1;
  background: rgba(219, 251, 255, 0.7);
}

.nl-vertical-preview {
  position: absolute;
  z-index: 4;
  top: 8%;
  left: 6%;
  display: flex;
  height: 51%;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #efffff;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.59rem;
  font-weight: 800;
}

.nl-vertical-preview i {
  width: 2px;
  flex: 1;
  background: rgba(229, 253, 255, 0.72);
}

.nl-teks {
  position: absolute;
  z-index: 4;
  right: 24px;
  bottom: 23px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 13px;
  padding: 11px 14px;
  color: #fff;
  background: rgba(3, 38, 66, 0.64);
  backdrop-filter: blur(10px);
}

.nl-teks span {
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.nl-teks strong {
  margin-top: 3px;
  font-size: 0.86rem;
}

.nl-game {
  min-height: 100vh;
  padding-bottom: 78px;
  color: #ecfbff;
  background: #020f24;
}

.nl-header {
  position: relative;
  z-index: 20;
  display: grid;
  min-height: 76px;
  align-items: center;
  gap: 26px;
  grid-template-columns: minmax(190px, 0.72fr) minmax(320px, 1.4fr) minmax(220px, 0.8fr);
  border-bottom: 1px solid rgba(166, 225, 244, 0.16);
  padding: 12px clamp(18px, 3vw, 42px);
  background: rgba(2, 17, 38, 0.93);
}

.nl-header > div:first-child {
  display: flex;
  flex-direction: column;
}

.nl-header small {
  color: #55dfcc;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nl-header strong {
  margin-top: 2px;
  font-size: 1rem;
}

.nl-progress > span {
  display: block;
  margin-bottom: 8px;
  color: #c8e0ea;
  font-size: 0.7rem;
  font-weight: 760;
}

.nl-progress > div {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(185, 226, 240, 0.15);
}

.nl-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4fe0c2, #55c5eb);
  transition: width 0.45s ease;
}

.nl-stats {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.nl-stats > span {
  display: flex;
  min-width: 82px;
  min-height: 46px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(177, 224, 240, 0.18);
  border-radius: 11px;
  padding: 5px 10px;
  color: #8fb1c0;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.55rem;
  font-weight: 720;
  text-align: center;
  text-transform: uppercase;
}

.nl-stats > span strong {
  color: #fff2ad;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.9rem;
}

.nl-stats > span.support strong {
  color: #7ae5d4;
  font-size: 0.7rem;
}

.nl-layout {
  display: grid;
  width: min(1500px, 100%);
  min-height: calc(100vh - 154px);
  margin: 0 auto;
  grid-template-columns: minmax(320px, 0.72fr) minmax(680px, 1.8fr);
}

.nl-mission {
  position: relative;
  z-index: 8;
  border-right: 1px solid rgba(159, 218, 239, 0.16);
  padding: clamp(28px, 4vw, 55px);
  background:
    radial-gradient(circle at 12% 13%, rgba(78, 224, 194, 0.13), transparent 31%),
    linear-gradient(180deg, #0a3652, #031a35 72%);
}

.nl-mission h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 3.65rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.nl-mission > p:not(.nl-eyebrow) {
  color: #b6d0db;
  line-height: 1.58;
}

.nl-expression {
  margin: 21px 0 15px;
  border: 1px solid rgba(174, 229, 247, 0.22);
  border-radius: 16px;
  padding: 19px 16px;
  color: #fff;
  background: rgba(2, 12, 29, 0.5);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  font-weight: 700;
  text-align: center;
}

.nl-readout {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, 1fr);
}

.nl-readout span {
  display: flex;
  min-height: 62px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(169, 222, 240, 0.16);
  border-radius: 12px;
  padding: 9px;
  color: #8eb1c1;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.59rem;
  font-weight: 760;
  text-align: center;
  text-transform: uppercase;
}

.nl-readout strong {
  margin-top: 4px;
  color: #67e4d1;
  font-family: var(--font-geist-mono), monospace;
  font-size: 1rem;
}

.nl-hint {
  width: 100%;
  min-height: 43px;
  margin-top: 13px;
  cursor: pointer;
  border: 1px solid rgba(115, 218, 231, 0.23);
  border-radius: 12px;
  color: #bdeaf1;
  background: rgba(64, 171, 180, 0.08);
  font-size: 0.72rem;
  font-weight: 780;
}

.nl-support {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid rgba(90, 229, 201, 0.19);
  border-radius: 13px;
  padding: 13px;
  background: rgba(59, 173, 155, 0.07);
}

.nl-support span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c9e5ec;
  font-size: 0.7rem;
}

.nl-support b,
.nl-feedback-card small b {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #06263a;
  background: #61e1cb;
  font-size: 0.6rem;
}

.nl-distance-note {
  margin-top: 12px;
  border-left: 3px solid #ff9f6e;
  padding: 9px 12px;
  color: #bcd4dd;
  background: rgba(255, 159, 110, 0.06);
  font-size: 0.69rem;
  line-height: 1.45;
}

.nl-distance-note strong {
  color: #ffd1b9;
}

.nl-arena {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: #075c87;
}

.nl-sky,
.nl-water {
  position: absolute;
  right: 0;
  left: 0;
}

.nl-sky {
  top: 0;
  height: 50%;
  background:
    radial-gradient(circle at 83% 16%, #fff6b1 0 6%, rgba(255, 246, 177, 0.22) 7% 14%, transparent 15%),
    linear-gradient(180deg, #6cdbe8, #b7edf1);
}

.nl-water {
  bottom: 0;
  height: 50%;
  background:
    radial-gradient(circle at 70% 8%, rgba(150, 236, 249, 0.2), transparent 28%),
    linear-gradient(180deg, #0d89b4, #075479 47%, #032d52);
}

.nl-axis-horizontal .nl-sky,
.nl-axis-horizontal .nl-surface {
  display: none;
}

.nl-axis-horizontal .nl-water {
  top: 0;
  height: 100%;
  background:
    radial-gradient(circle at 75% 9%, rgba(154, 239, 250, 0.23), transparent 27%),
    linear-gradient(180deg, #168eb7, #07587e 45%, #032b4e);
}

.nl-surface {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 0;
  left: 0;
  height: 7px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(245, 255, 255, 0.85) 0 22%, transparent 24%) 0 0 / 52px 9px repeat-x,
    linear-gradient(90deg, #d8fbff, #65d2e0);
  box-shadow: 0 0 20px rgba(221, 252, 255, 0.65);
}

.nl-surface span {
  position: absolute;
  top: -25px;
  right: 20px;
  color: #086c85;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.nl-number-line {
  position: absolute;
  z-index: 5;
}

.nl-number-line.horizontal {
  top: 54%;
  right: 8%;
  left: 8%;
  height: 5px;
  border-radius: 99px;
  background: #e0fbff;
  box-shadow: 0 0 15px rgba(199, 246, 255, 0.52);
}

.nl-number-line.vertical {
  top: 7%;
  bottom: 7%;
  left: 42%;
  width: 5px;
  border-radius: 99px;
  background: #e8fcff;
  box-shadow: 0 0 16px rgba(201, 247, 255, 0.6);
}

.nl-tick {
  position: absolute;
  display: block;
  background: rgba(230, 252, 255, 0.88);
}

.nl-number-line.horizontal .nl-tick {
  top: 50%;
  width: 2px;
  height: 16px;
  transform: translate(-50%, -50%);
}

.nl-number-line.horizontal .nl-tick.major {
  height: 26px;
}

.nl-number-line.vertical .nl-tick {
  left: 50%;
  width: 17px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.nl-number-line.vertical .nl-tick.major {
  width: 27px;
}

.nl-tick.zero {
  background: #ffd166;
  box-shadow: 0 0 9px rgba(255, 209, 102, 0.78);
}

.nl-tick b {
  position: absolute;
  color: #eafcff;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.65rem;
  font-weight: 820;
  text-shadow: 0 2px 3px rgba(0, 35, 57, 0.65);
  white-space: nowrap;
}

.nl-number-line.horizontal .nl-tick b {
  top: 23px;
  left: 50%;
  transform: translateX(-50%);
}

.nl-number-line.vertical .nl-tick b {
  top: 50%;
  right: 21px;
  transform: translateY(-50%);
}

.nl-trace {
  position: absolute;
  z-index: 2;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffd166, #ff9f6e);
  box-shadow: 0 0 12px rgba(255, 190, 89, 0.78);
  transition: all 0.28s ease;
}

.nl-number-line.horizontal .nl-trace {
  top: 0;
  height: 100%;
}

.nl-number-line.vertical .nl-trace {
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, #ffd166, #ff9f6e);
}

.nl-start-marker,
.nl-target-marker {
  position: absolute;
  z-index: 7;
  color: #e9fbff;
  font-size: 0.6rem;
  font-weight: 800;
  white-space: nowrap;
}

.nl-number-line.horizontal .nl-start-marker,
.nl-number-line.horizontal .nl-target-marker {
  top: -47px;
  transform: translateX(-50%);
}

.nl-number-line.vertical .nl-start-marker,
.nl-number-line.vertical .nl-target-marker {
  left: 25px;
  transform: translateY(-50%);
}

.nl-start-marker i,
.nl-target-marker i {
  display: block;
  width: 11px;
  height: 11px;
  margin: 0 auto 4px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #4fe0c2;
  box-shadow: 0 0 9px rgba(79, 224, 194, 0.7);
}

.nl-target-marker i {
  background: #ff9f6e;
  box-shadow: 0 0 10px rgba(255, 159, 110, 0.8);
}

.nl-player {
  position: absolute;
  z-index: 9;
  width: clamp(105px, 15vw, 190px);
  height: clamp(105px, 15vw, 190px);
  pointer-events: none;
  transition: top 0.28s cubic-bezier(.2,.8,.2,1), left 0.28s cubic-bezier(.2,.8,.2,1);
}

.nl-player.horizontal {
  top: 39%;
  transform: translate(-50%, -50%);
}

.nl-player.vertical {
  left: 59%;
  transform: translate(-50%, -50%);
}

.nl-player img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 13px 10px rgba(0, 25, 48, 0.38));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.nl-player.horizontal.dir-1 img {
  transform: scaleX(-1);
}

.nl-player.boosted img {
  filter:
    drop-shadow(0 13px 10px rgba(0, 25, 48, 0.38))
    drop-shadow(0 0 17px rgba(255, 214, 97, 0.85));
}

.nl-player.celebrating {
  z-index: 18;
}

.nl-player.celebrating img {
  animation: nl-dolphin-victory-flip 1.65s cubic-bezier(.2,.72,.22,1) both;
  filter:
    drop-shadow(0 13px 10px rgba(0, 25, 48, 0.38))
    drop-shadow(0 0 24px rgba(255, 226, 111, 0.95));
}

.nl-celebration-splash {
  position: absolute;
  inset: 50%;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.nl-celebration-splash i {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50% 50% 50% 8%;
  background: linear-gradient(135deg, #fff7ae, #62d7ff);
  box-shadow: 0 0 12px rgba(120, 230, 255, 0.9);
  animation: nl-celebration-drop 1.15s ease-out both;
}

.nl-celebration-splash i:nth-child(1) { --x: -76px; --y: -62px; animation-delay: .08s; }
.nl-celebration-splash i:nth-child(2) { --x: -48px; --y: 52px; animation-delay: .18s; }
.nl-celebration-splash i:nth-child(3) { --x: 4px; --y: -84px; animation-delay: .03s; }
.nl-celebration-splash i:nth-child(4) { --x: 48px; --y: 59px; animation-delay: .2s; }
.nl-celebration-splash i:nth-child(5) { --x: 82px; --y: -46px; animation-delay: .12s; }
.nl-celebration-splash i:nth-child(6) { --x: 90px; --y: 18px; animation-delay: .26s; }

@keyframes nl-dolphin-victory-flip {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  28% { transform: translateY(-54px) rotate(115deg) scale(1.08); }
  58% { transform: translateY(-72px) rotate(260deg) scale(1.14); }
  82% { transform: translateY(-24px) rotate(350deg) scale(1.06); }
  100% { transform: translateY(0) rotate(360deg) scale(1); }
}

@keyframes nl-celebration-drop {
  0% { opacity: 0; transform: translate(0, 0) scale(.35) rotate(0deg); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1.1) rotate(220deg); }
}

.nl-player > span {
  position: absolute;
  right: 18%;
  bottom: 7%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 5px 8px;
  color: #062b42;
  background: rgba(245, 254, 255, 0.92);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.65rem;
  font-weight: 900;
}

.nl-kelp {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  height: 14%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(175deg, #0c625e, #043a4c 67%);
  box-shadow: 230px -18px 0 rgba(8, 75, 76, 0.6), -280px 8px 0 rgba(5, 53, 68, 0.72);
}

.nl-kelp i {
  position: absolute;
  bottom: 72%;
  width: 14px;
  height: 72px;
  border-radius: 60% 40% 0 0;
  background: #19a882;
  transform-origin: bottom;
  animation: kelp-sway 3.6s ease-in-out infinite;
}

.nl-kelp i:nth-child(1) { left: 13%; }
.nl-kelp i:nth-child(2) { left: 69%; height: 94px; animation-delay: -1.2s; }
.nl-kelp i:nth-child(3) { right: 7%; height: 60px; animation-delay: -2.1s; }

.nl-toast,
.nl-correct {
  position: absolute;
  z-index: 15;
  left: 50%;
  border-radius: 13px;
  transform: translateX(-50%);
}

.nl-toast {
  bottom: 22px;
  border: 1px solid rgba(255, 220, 119, 0.4);
  padding: 10px 15px;
  color: #fff5cd;
  background: rgba(57, 42, 4, 0.9);
  font-size: 0.72rem;
  font-weight: 760;
}

.nl-correct {
  top: 48%;
  display: flex;
  min-width: 300px;
  flex-direction: column;
  border: 1px solid rgba(120, 239, 212, 0.46);
  padding: 17px 22px;
  color: #e4fff7;
  background: rgba(5, 63, 66, 0.93);
  box-shadow: 0 20px 60px rgba(0, 20, 40, 0.35);
  text-align: center;
  animation: correct-pop 0.9s ease both;
}

.nl-correct span {
  margin-top: 4px;
  color: #a8e8dc;
  font-size: 0.73rem;
}

.nl-controls {
  position: fixed;
  z-index: 25;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid rgba(161, 222, 241, 0.17);
  padding: 9px 14px;
  background: rgba(2, 14, 31, 0.96);
  backdrop-filter: blur(16px);
}

.nl-controls button {
  min-width: 132px;
  min-height: 55px;
  cursor: pointer;
  border: 1px solid rgba(162, 224, 241, 0.22);
  border-radius: 13px;
  color: #d9f2f8;
  background: #092a42;
  font-size: 0.72rem;
  font-weight: 820;
}

.nl-controls button b {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  margin-right: 6px;
  place-items: center;
  border-radius: 7px;
  color: #06253a;
  background: #77e3d3;
  font-size: 0.9rem;
}

.nl-controls button.active {
  border-color: #ffe29a;
  color: #fff0b6;
  background: linear-gradient(135deg, #69550d, #0a5160);
}

.nl-controls button.active b {
  background: #ffd166;
}

.nl-controls .check {
  min-width: 200px;
  border-color: rgba(80, 230, 198, 0.4);
  background: linear-gradient(135deg, #0a655f, #084d6a);
}

.nl-overlay {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(1, 10, 25, 0.76);
  backdrop-filter: blur(9px);
}

.nl-stage-card,
.nl-feedback-card {
  width: min(600px, 94vw);
  border: 1px solid rgba(185, 231, 246, 0.24);
  border-radius: 27px;
  padding: clamp(30px, 5vw, 50px);
  color: #dff6fb;
  background:
    radial-gradient(circle at 86% 10%, color-mix(in srgb, var(--stage, #4fe0c2) 24%, transparent), transparent 31%),
    linear-gradient(155deg, #0b3b58, #041a35 70%);
  box-shadow: 0 33px 100px rgba(0, 8, 22, 0.62);
}

.nl-stage-card > p,
.nl-feedback-card > p {
  margin: 0;
  color: var(--stage, #ffcf66);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nl-stage-card h2,
.nl-feedback-card h2 {
  margin: 8px 0 14px;
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  font-weight: 920;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.nl-stage-card > span,
.nl-feedback-card > span {
  display: block;
  color: #bad4de;
  line-height: 1.62;
}

.nl-stage-card > div {
  margin: 23px 0 13px;
  border-left: 3px solid var(--stage);
  padding: 12px 14px;
  color: #e8fbff;
  background: rgba(255, 255, 255, 0.045);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.8rem;
}

.nl-stage-card > small {
  display: block;
  margin-bottom: 24px;
  color: #9ebfcb;
}

.nl-stage-card > small strong {
  color: var(--stage);
}

.nl-feedback-card {
  --stage: #ffd166;
}

.nl-feedback-card h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.nl-feedback-card > div {
  display: grid;
  gap: 9px;
  margin: 22px 0;
}

.nl-feedback-card small {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c9e3ea;
}

.nl-complete-card {
  align-items: center;
}

.nl-complete-card > img {
  width: 108%;
  height: auto;
  margin-left: -10%;
  filter: drop-shadow(0 21px 18px rgba(0, 42, 73, 0.27));
}

.nl-complete-card > div {
  padding: clamp(34px, 6vw, 70px);
}

.nl-complete-card h1 {
  font-size: clamp(3rem, 6vw, 5.7rem);
}

.nl-results {
  display: grid;
  gap: 9px;
  margin: 23px 0;
  grid-template-columns: repeat(3, 1fr);
}

.nl-results span {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #cfe1e9;
  border-radius: 14px;
  padding: 12px;
  color: #728895;
  background: #fff;
  font-size: 0.66rem;
  font-weight: 730;
}

.nl-results strong {
  color: #078798;
  font-size: 1.75rem;
  letter-spacing: -0.04em;
}

@media (max-width: 1050px) {
  .nl-intro-card,
  .nl-complete-card {
    grid-template-columns: 1fr;
  }

  .nl-intro-art {
    min-height: 390px;
  }

  .nl-hero-dolphin {
    top: -7%;
    left: 27%;
    width: 48%;
  }

  .nl-header {
    grid-template-columns: 1fr 1.6fr;
  }

  .nl-stats {
    display: none;
  }

  .nl-layout {
    grid-template-columns: 1fr;
  }

  .nl-mission {
    border-right: 0;
    border-bottom: 1px solid rgba(159, 218, 239, 0.16);
    padding: 23px;
  }

  .nl-arena {
    min-height: 620px;
  }

  .nl-support {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .nl-intro,
  .nl-complete {
    padding: 12px;
  }

  .nl-intro-card,
  .nl-complete-card {
    min-height: auto;
    border-radius: 23px;
  }

  .nl-intro-copy {
    padding: 32px 24px;
  }

  .nl-intro-copy h1 {
    font-size: 3.4rem;
  }

  .nl-route b {
    display: none;
  }

  .nl-intro-art {
    min-height: 310px;
  }

  .nl-hero-dolphin {
    top: -8%;
    left: 15%;
    width: 70%;
  }

  .nl-header {
    gap: 9px;
    grid-template-columns: 1fr;
    padding: 10px 15px;
  }

  .nl-header > div:first-child {
    display: none;
  }

  .nl-mission h1 {
    font-size: 1.85rem;
  }

  .nl-readout {
    grid-template-columns: repeat(3, 1fr);
  }

  .nl-support {
    grid-template-columns: 1fr;
  }

  .nl-arena {
    min-height: 560px;
  }

  .nl-number-line.vertical {
    left: 34%;
  }

  .nl-player.vertical {
    left: 63%;
  }

  .nl-player {
    width: 120px;
    height: 120px;
  }

  .nl-controls {
    gap: 5px;
    padding: 7px;
  }

  .nl-controls button,
  .nl-controls .check {
    min-width: 0;
    flex: 1;
    padding: 6px;
    font-size: 0.62rem;
  }

  .nl-controls button b {
    display: grid;
    margin: 0 auto 3px;
  }

  .nl-stage-card,
  .nl-feedback-card {
    padding: 28px 23px;
  }

  .nl-complete-card > img {
    width: min(480px, 92%);
    margin: -45px auto -85px;
  }

  .nl-complete-card > div {
    padding: 30px 24px;
  }

  .nl-results {
    grid-template-columns: 1fr;
  }
}
