:root {
  color-scheme: dark;
  --background: #090b14;
  --panel: #121725;
  --text: #f7f8ff;
  --muted: #a4acc0;
  --mint: #72f0c2;
  --purple: #a991ff;
  --yellow: #ffd86f;
  --pink: #ff91bd;
  font-family: "Nunito", "Trebuchet MS", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(52, 61, 110, 0.18), transparent 55%),
    linear-gradient(145deg, #0b0d17, var(--background) 64%);
  color: var(--text);
  overscroll-behavior: none;
}

button {
  color: inherit;
  font: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

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

[hidden] {
  display: none !important;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.1;
  pointer-events: none;
  animation: drift 12s ease-in-out infinite alternate;
}

.ambient-one {
  top: 10%;
  left: -140px;
  background: #6775ff;
}

.ambient-two {
  right: -160px;
  bottom: 1%;
  background: #27d9a1;
  animation-delay: -5s;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 1120px);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 28px max(16px, env(safe-area-inset-bottom));
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  flex: 0 0 auto;
}

.brand {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #dce1f0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.brand strong {
  color: var(--mint);
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 15px rgba(114, 240, 194, 0.65);
}

.back-button {
  grid-column: 1;
  justify-self: start;
  min-height: 44px;
  padding: 6px 12px 6px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.back-button span {
  margin-right: 5px;
  color: var(--mint);
  font-size: 22px;
  vertical-align: -1px;
}

.topbar-tools {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.minutes-counter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid rgba(114, 240, 194, 0.3);
  border-radius: 999px;
  background: rgba(114, 240, 194, 0.09);
  color: var(--mint);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  animation: minutes-pulse 3s ease-in-out infinite;
}

.mistakes-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 145, 189, 0.3);
  border-radius: 999px;
  background: rgba(255, 145, 189, 0.09);
  color: #ffb6d2;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  animation: mistakes-float 2.4s ease-in-out infinite;
}

.mistakes-counter span {
  font-size: 16px;
}

.mistakes-counter.is-life-lost {
  border-color: #ff6f7d;
  animation: life-loss 650ms ease-out;
}

.mistakes-counter.is-life-lost span {
  animation: life-heart-loss 650ms ease-out;
}

.minutes-counter span {
  font-size: 18px;
}

.minutes-counter:hover,
.minutes-counter:focus-visible {
  border-color: var(--mint);
  background: rgba(114, 240, 194, 0.16);
}

.page {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.home-page {
  justify-content: flex-start;
  overflow-y: auto;
  padding: 18px 0 28px;
}

@media (max-height: 850px) {
  .home-page {
    justify-content: flex-start;
    overflow-y: auto;
  }
}

.intro {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.5vh, 14px);
  margin: 0 0 clamp(16px, 3vh, 28px);
  text-align: center;
}

.install-app-button {
  min-height: 40px;
  margin-top: 3px;
  padding: 7px 15px;
  border: 1px solid rgba(114, 240, 194, 0.3);
  border-radius: 999px;
  background: rgba(114, 240, 194, 0.08);
  color: #b8ffe6;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.install-app-button:hover,
.install-app-button:focus-visible {
  border-color: var(--mint);
  background: rgba(114, 240, 194, 0.16);
}

.install-app-button:disabled {
  opacity: 0.7;
  cursor: default;
}

.intro .eyebrow,
.intro h1,
.intro-copy {
  margin: 0;
}

.intro .eyebrow {
  line-height: 1.4;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

h1,
h2,
p {
  margin-top: 0;
}

.intro h1,
.section-heading h1 {
  margin-bottom: 8px;
  font-size: clamp(32px, 5.2vw, 54px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.intro h1 span {
  color: var(--mint);
}

.intro-copy {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 600;
}

.topic-menu {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vh, 18px);
}

.practice-links {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.practice-link {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  filter: drop-shadow(0 0 4px currentColor);
  animation: practice-link-flow 1.8s linear infinite, practice-link-pulse 2.4s ease-in-out infinite alternate;
}

.practice-link-arrow {
  filter: drop-shadow(0 0 3px currentColor);
}

.practice-link-greetings {
  stroke: #72f0c2;
  color: #72f0c2;
}

.practice-link-arrow-greetings {
  fill: #72f0c2;
}

.practice-link-days {
  stroke: #cabbff;
  color: #cabbff;
}

.practice-link-arrow-days {
  fill: #cabbff;
}

.practice-link-months {
  stroke: #ffe294;
  color: #ffe294;
}

.practice-link-arrow-months {
  fill: #ffe294;
}

.topic-group {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
}

.practice-group {
  border-color: rgba(114, 240, 194, 0.15);
  background: linear-gradient(120deg, rgba(114, 240, 194, 0.055), rgba(255, 255, 255, 0.025));
}

.games-group {
  border-color: rgba(169, 145, 255, 0.18);
  background: linear-gradient(120deg, rgba(169, 145, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.topic-group-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px 5px;
  color: #dce1f0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topic-group-title span {
  font-size: 16px;
}

.topic-group-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.topic-button {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: clamp(126px, 22vh, 190px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px);
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -18px 34px rgba(5, 9, 20, 0.22),
    0 12px 25px rgba(0, 0, 0, 0.2);
  text-align: left;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, filter 220ms ease, opacity 240ms ease, box-shadow 220ms ease;
}

.topic-button::before {
  position: absolute;
  z-index: 0;
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), transparent 38%, rgba(3, 7, 18, 0.16));
  content: "";
  pointer-events: none;
}

.topic-emoji,
.topic-label {
  position: relative;
  z-index: 1;
  transition: filter 240ms ease, opacity 240ms ease;
}

.topic-button:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -18px 34px rgba(5, 9, 20, 0.16),
    0 17px 32px rgba(0, 0, 0, 0.3);
}

.topic-button:active,
.word-card:active,
.repeat-button:active,
.nav-word-button:active {
  transform: scale(0.97);
}

.topic-greetings {
  background: radial-gradient(ellipse at 18% 0%, rgba(129, 255, 209, 0.22), transparent 48%),
    linear-gradient(145deg, #28534a, #142b28);
  color: #a5f8d7;
}

.topic-days {
  background: radial-gradient(ellipse at 18% 0%, rgba(204, 183, 255, 0.22), transparent 48%),
    linear-gradient(145deg, #493d67, #251f3d);
  color: #cabbff;
}

.topic-months {
  background: radial-gradient(ellipse at 18% 0%, rgba(255, 222, 148, 0.2), transparent 48%),
    linear-gradient(145deg, #554322, #302514);
  color: #ffe294;
}

.topic-asteroid {
  grid-column: 1 / -1;
  min-height: clamp(82px, 13vh, 110px);
  flex-direction: row;
  align-items: center;
  background: radial-gradient(ellipse at 12% 0%, rgba(139, 195, 255, 0.2), transparent 46%),
    linear-gradient(120deg, #293d66, #18213c);
  color: #b7d4ff;
}

.topic-asteroid .topic-label {
  max-width: calc(100% - 58px);
  margin-right: 52px;
}

.topic-emoji {
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1;
}

.topic-label {
  max-width: 85%;
  color: var(--text);
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 900;
}

.home-tip {
  margin: 23px 0 0;
  color: #8992a8;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.home-motivation {
  margin: 8px 0 0;
  color: #b8ffe6;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.home-tip span {
  margin-right: 5px;
  color: var(--yellow);
}

.practice-required-status,
.practice-status {
  margin: 10px 0 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 216, 111, 0.22);
  border-radius: 14px;
  background: rgba(255, 216, 111, 0.06);
  color: #ffe294;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.practice-status {
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 0;
}

.practice-status.is-unlocked {
  border-color: rgba(105, 240, 168, 0.6);
  background: rgba(105, 240, 168, 0.1);
  color: #b8ffd6;
  animation: game-unlocked 720ms ease-out 3;
}

.topic-button.is-practice-required {
  border: 2px solid #ff6f7d;
  box-shadow: 0 0 0 4px rgba(255, 111, 125, 0.18), 0 0 28px rgba(255, 111, 125, 0.35);
  animation: practice-target-pulse 1.2s ease-in-out infinite;
}

.game-state-cue {
  position: absolute;
  z-index: 7;
  top: 8px;
  right: 8px;
  max-width: calc(100% - 16px);
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, #7d354a, #482433);
  color: #ffe2e5;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.game-reward-badge {
  position: absolute;
  z-index: 8;
  right: 9px;
  bottom: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 216, 111, 0.35);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(63, 48, 19, 0.96), rgba(27, 24, 20, 0.96));
  color: #ffe294;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.topic-button.is-practice-required .game-state-cue {
  background: #6b2635;
  border-color: #ff6f7d;
}

.game-lock-overlay {
  position: absolute;
  z-index: 6;
  top: 10px;
  right: 10px;
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(190, 201, 255, 0.42);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(45, 50, 79, 0.96), rgba(18, 22, 38, 0.97));
  box-shadow: 0 5px 13px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.game-lock-overlay.is-unlocking {
  animation: lock-disappear 460ms ease-out forwards;
}

.game-lock-overlay::after {
  position: absolute;
  inset: -5px;
  border: 2px solid rgba(198, 218, 255, 0.8);
  border-radius: 50%;
  content: "";
  opacity: 0;
  pointer-events: none;
}

.game-lock-overlay.is-unlocking::after {
  animation: lock-burst 460ms ease-out forwards;
}

.lock-padlock {
  font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
  animation: lock-bounce 1.8s ease-in-out infinite;
}

.topic-button.is-game-unlocked {
  animation: game-unlocked 720ms ease-out;
}

.topic-button.is-game-completed {
  border-color: rgba(105, 240, 168, 0.58);
  box-shadow: inset 0 0 0 1px rgba(105, 240, 168, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 24px rgba(14, 86, 59, 0.18);
}

.topic-button.is-game-completed .game-state-cue {
  border-color: rgba(105, 240, 168, 0.5);
  background: #174b3a;
  color: #b8ffd6;
}

.topic-button.is-missing-prerequisite,
.topic-button.is-practice-required.is-missing-prerequisite {
  animation: missing-prerequisite-shake 560ms ease-in-out;
}

.games-group .topic-group-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-page {
  padding: clamp(20px, 5vh, 42px) 0 12px;
}

.backpack-game-page {
  padding: clamp(20px, 5vh, 42px) 0 12px;
}

.clock-scanner-page {
  padding: clamp(16px, 4vh, 32px) 0 12px;
}

.clock-scanner-page .section-heading {
  margin-bottom: 8px;
}

.clock-scanner-instructions,
.clock-scanner-progress {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
}

.clock-scanner-progress {
  color: var(--mint);
  font-weight: 900;
}

.clock-scanner-board {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 12px;
  min-height: 0;
}

.clock-scanner-scene {
  display: flex;
  width: min(100%, 620px);
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  padding: clamp(12px, 2vh, 20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(145deg, #272c43, #171b2c);
}

.clock-scanner-cue,
.clock-scanner-direction {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.clock-scanner-period-emoji,
.clock-scanner-person {
  font-size: clamp(44px, 8vh, 68px);
  line-height: 1.1;
}

.clock-scanner-people {
  display: flex;
  width: min(100%, 270px);
  min-height: clamp(52px, 9vh, 74px);
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.clock-scanner-direction .clock-scanner-person {
  display: inline-block;
  font-size: clamp(38px, 7vh, 58px);
  will-change: transform;
}

.clock-scanner-arrow {
  min-width: 22px;
  color: var(--yellow);
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 900;
  line-height: 1;
}

.is-approaching .clock-scanner-arrow-left::before {
  content: "\2192";
}

.is-approaching .clock-scanner-arrow-right::before {
  content: "\2190";
}

.is-leaving .clock-scanner-arrow-left::before {
  content: "\2190";
}

.is-leaving .clock-scanner-arrow-right::before {
  content: "\2192";
}

.is-approaching .clock-scanner-person:first-child {
  animation: person-approaches 2.5s ease-in-out infinite alternate;
}

.is-approaching .clock-scanner-person:last-child {
  animation: person-approaches-reverse 2.5s ease-in-out infinite alternate;
}

.is-leaving .clock-scanner-person:first-child {
  animation: person-leaves 2.5s ease-in-out infinite alternate;
}

.is-leaving .clock-scanner-person:last-child {
  animation: person-leaves-reverse 2.5s ease-in-out infinite alternate;
}

.clock-scanner-cue strong,
.clock-scanner-direction strong {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 900;
}

.clock-scanner-choices {
  display: grid;
  width: min(100%, 760px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
}

.clock-scanner-audio {
  min-height: 48px;
  padding: 8px 18px;
  border: 1px solid rgba(114, 240, 194, 0.35);
  border-radius: 14px;
  background: rgba(114, 240, 194, 0.09);
  color: var(--mint);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.clock-scanner-audio:disabled {
  cursor: default;
  opacity: 0.65;
}

.clock-scanner-choice {
  min-height: clamp(76px, 13vh, 120px);
  padding: 10px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: linear-gradient(145deg, #253b3a, #172624);
  color: #a5f8d7;
  font-size: clamp(20px, 3.2vw, 30px);
  font-weight: 900;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease;
}

.clock-scanner-choice:active {
  transform: scale(0.97);
}

.clock-scanner-choice:hover,
.clock-scanner-choice:focus-visible {
  border-color: var(--mint);
}

.clock-scanner-choice:disabled {
  cursor: default;
  opacity: 0.65;
}

.clock-scanner-choice.is-correct,
.seasons-drop-zone.is-correct,
.backpack-drop-zone.is-correct {
  border-color: #69f0a8 !important;
  box-shadow: 0 0 0 3px rgba(105, 240, 168, 0.28), 0 0 24px rgba(105, 240, 168, 0.32);
  opacity: 1;
}

.clock-scanner-choice.is-incorrect,
.seasons-drop-zone.is-incorrect,
.backpack-drop-zone.is-incorrect {
  border-color: #ff6f7d !important;
  box-shadow: 0 0 0 3px rgba(255, 111, 125, 0.25), 0 0 24px rgba(255, 111, 125, 0.28);
  opacity: 1;
}

.clock-scanner-choice.is-correct,
.seasons-drop-zone.is-correct,
.backpack-drop-zone.is-correct {
  background-color: rgba(65, 155, 102, 0.35);
}

.clock-scanner-choice.is-incorrect,
.seasons-drop-zone.is-incorrect,
.backpack-drop-zone.is-incorrect {
  background-color: rgba(160, 57, 72, 0.35);
}

.seasons-elevator-page {
  padding: clamp(16px, 4vh, 32px) 0 12px;
}

.detective-page {
  overflow-y: auto;
  padding: clamp(16px, 4vh, 32px) 0 12px;
  scrollbar-width: thin;
}

.detective-page .section-heading {
  margin-bottom: 12px;
}

.detective-progress {
  margin: 8px 0 0;
  color: var(--mint);
  font-weight: 900;
}

.detective-board {
  display: flex;
  width: min(100%, 760px);
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: clamp(12px, 2.5vh, 22px);
}

.asteroid-game-page {
  gap: 8px;
  padding: 8px 0 12px;
}

.asteroid-game-page .section-heading {
  flex: 0 0 auto;
  margin-bottom: 0;
  text-align: center;
}

.asteroid-game-page .section-heading h1 {
  margin-bottom: 0;
  font-size: clamp(25px, 4vh, 38px);
}

.asteroid-game-status {
  margin: 5px 0 0;
  color: #b8ffd6;
  font-size: 13px;
  font-weight: 900;
}

.asteroid-game-container {
  display: flex;
  width: min(100%, 56.25vh, 650px);
  flex: 1;
  align-self: center;
  overflow: hidden;
  min-height: 0;
  border: 1px solid rgba(124, 201, 255, 0.3);
  border-radius: 20px;
  background: #04040e;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.asteroid-game-container > .asteroid-game-root {
  width: 100%;
  height: 100%;
}

.asteroid-challenge-options {
  display: grid;
  gap: 8px;
  overflow-y: auto;
}

.asteroid-challenge-game {
  min-height: 54px;
}

.asteroid-challenge-game strong {
  font-size: 15px;
}

.asteroid-no-challenges {
  margin: 0;
  color: var(--muted);
}

.asteroid-spend-minute {
  border-color: rgba(114, 240, 194, 0.32);
  color: var(--mint);
}

.asteroid-spend-minute:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.asteroid-skip-boost {
  min-height: 48px;
}

.asteroid-end-run {
  align-self: center;
}

.asteroid-result-card {
  border-color: rgba(124, 201, 255, 0.36);
}

.detective-reference-guide {
  display: grid;
  width: min(100%, 760px);
  gap: 6px;
}

.detective-reference-guide.is-days {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.detective-reference-guide.is-months {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.detective-reference-step {
  display: grid;
  grid-template-rows: auto auto;
  min-height: 42px;
  place-items: center;
  gap: 1px;
  padding: 3px 4px;
  border: 1px solid rgba(201, 187, 255, 0.2);
  border-radius: 10px;
  background: rgba(169, 145, 255, 0.055);
  color: #cabbff;
  font-weight: 800;
  text-align: center;
}

.detective-reference-number {
  font-size: clamp(9px, 1.2vw, 12px);
  line-height: 1;
  opacity: 0.75;
}

.detective-reference-label {
  max-width: 100%;
  font-size: clamp(9px, 1.25vw, 13px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.detective-reference-guide.hide-numbers .detective-reference-step {
  grid-template-rows: 1fr;
}

.detective-reference-step.is-correct {
  border-color: var(--mint);
  background: rgba(114, 240, 194, 0.16);
  color: #b8ffe6;
  animation: day-reveal 600ms cubic-bezier(0.18, 0.85, 0.28, 1.2) both;
}

.detective-clue {
  display: grid;
  width: min(100%, 540px);
  min-height: clamp(100px, 20vh, 175px);
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(169, 145, 255, 0.28);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(55, 45, 91, 0.78), rgba(24, 27, 44, 0.92));
  color: #e8e0ff;
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 900;
  text-align: center;
}

.detective-clue.is-audio-clue {
  width: clamp(72px, 12vh, 96px);
  min-height: clamp(72px, 12vh, 96px);
  padding: 8px;
  border-color: rgba(114, 240, 194, 0.4);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114, 240, 194, 0.2), rgba(24, 27, 44, 0.92));
  color: var(--mint);
  font-size: clamp(30px, 6vh, 44px);
  animation: minutes-pulse 2.4s ease-in-out infinite;
}

.detective-clue.is-visual-cue {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
}

.detective-clue.is-visual-cue .time-arc {
  width: min(60vw, 260px);
}

.detective-clue.is-visual-cue .greeting-cue {
  width: min(42vw, 120px);
  height: auto;
}

.detective-prompt {
  margin: 0;
  color: var(--text);
  font-size: clamp(18px, 3vw, 25px);
  font-weight: 900;
  text-align: center;
}

.detective-audio {
  min-height: 48px;
  padding: 8px 18px;
  border: 1px solid rgba(114, 240, 194, 0.35);
  border-radius: 14px;
  background: rgba(114, 240, 194, 0.1);
  color: var(--mint);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.detective-audio:disabled {
  opacity: 0.55;
}

.detective-options {
  display: grid;
  width: min(100%, 760px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detective-options.is-number-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detective-choice {
  min-height: clamp(70px, 13vh, 112px);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(26, 32, 48, 0.95);
  color: var(--text);
  font-size: clamp(17px, 2.5vw, 23px);
  font-weight: 900;
  cursor: pointer;
}

.detective-choice:disabled {
  opacity: 0.62;
  cursor: default;
}

.detective-choice.is-correct {
  border-color: #69f0a8;
  box-shadow: 0 0 0 3px rgba(105, 240, 168, 0.28);
}

.detective-choice.is-word-revealed {
  border-color: var(--mint);
  background: linear-gradient(145deg, rgba(45, 114, 94, 0.9), rgba(23, 55, 53, 0.95));
  color: #d7fff1;
  animation: day-reveal 600ms cubic-bezier(0.18, 0.85, 0.28, 1.2) both;
}

.detective-choice.is-incorrect {
  border-color: #ff6f7d;
  box-shadow: 0 0 0 3px rgba(255, 111, 125, 0.25);
}

.seasons-elevator-page .section-heading {
  margin-bottom: 8px;
}

.seasons-elevator-instructions,
.seasons-elevator-progress {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
}

.seasons-elevator-progress {
  color: var(--mint);
  font-weight: 900;
}

.seasons-elevator-board {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 12px;
  min-height: 0;
}

.seasons-calendar {
  display: grid;
  width: min(100%, 620px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  align-self: center;
  margin: 0 auto 4px;
}

.seasons-calendar-month {
  display: grid;
  min-height: 26px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: #8d96aa;
  font-size: 11px;
  font-weight: 900;
  transition: background 250ms ease, color 250ms ease, transform 250ms ease;
}

.seasons-calendar-month.is-current {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--text);
  transform: scale(1.05);
}

.seasons-calendar-month.is-complete.season-winter {
  background: #347b9b;
  color: #e0f6ff;
}

.seasons-calendar-month.is-complete.season-spring {
  background: #ad5c8f;
  color: #fff0f8;
}

.seasons-calendar-month.is-complete.season-summer {
  background: #b88932;
  color: #fff6d8;
}

.seasons-calendar-month.is-complete.season-autumn {
  background: #a45b39;
  color: #ffede2;
}

.seasons-month-card {
  display: flex;
  width: min(78%, 390px);
  min-height: clamp(150px, 24vh, 220px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 2px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  background: linear-gradient(145deg, #272c43, #171b2c);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  cursor: grab;
  touch-action: none;
  user-select: none;
  z-index: 1;
}

.seasons-month-card:disabled {
  cursor: default;
  opacity: 0.8;
}

.seasons-month-card.is-dragging {
  border-color: var(--mint);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
  cursor: grabbing;
  z-index: 2;
}

.seasons-month-calendar {
  font-size: clamp(36px, 6vh, 52px);
  line-height: 1;
}

.seasons-month-number {
  color: var(--yellow);
  font-size: clamp(16px, 2.5vh, 22px);
  font-weight: 900;
}

.seasons-month-name {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
}

.seasons-month-audio {
  color: var(--muted);
  font-size: clamp(12px, 1.8vh, 15px);
  font-weight: 700;
}

.seasons-drop-zones {
  display: grid;
  width: min(100%, 760px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 16px);
}

.seasons-drop-zone {
  display: flex;
  min-height: clamp(100px, 16vh, 145px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease;
}

.seasons-drop-zone:active {
  transform: scale(0.97);
}

.seasons-drop-zone:hover,
.seasons-drop-zone:focus-visible {
  border-color: var(--mint);
}

.seasons-drop-zone:disabled {
  cursor: default;
  opacity: 0.65;
}

.seasons-drop-zone span {
  font-size: clamp(34px, 7vh, 54px);
  line-height: 1.1;
}

.seasons-drop-zone strong {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 900;
}

.seasons-drop-zone small {
  color: var(--muted);
  font-size: clamp(12px, 1.8vw, 15px);
  font-weight: 700;
}

.season-winter {
  background: linear-gradient(145deg, #2a4050, #182630);
  color: #b6e7ff;
}

.season-spring {
  background: linear-gradient(145deg, #4a354d, #2b1f30);
  color: #ffc0e4;
}

.season-summer {
  background: linear-gradient(145deg, #514326, #302819);
  color: #ffe294;
}

.season-autumn {
  background: linear-gradient(145deg, #503a2e, #30231c);
  color: #ffc49b;
}

.backpack-game-page .section-heading {
  margin-bottom: 8px;
}

.backpack-game-instructions,
.backpack-game-progress {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 700;
}

.backpack-game-progress {
  color: var(--mint);
  font-weight: 900;
}

.backpack-day-order {
  display: grid;
  width: min(100%, 620px);
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  align-self: center;
}

.backpack-day-step {
  display: grid;
  min-height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: #8d96aa;
  font-size: clamp(9px, 1.5vw, 12px);
  font-weight: 900;
  transition: background 250ms ease, color 250ms ease, transform 250ms ease;
}

.backpack-day-step.is-current {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--text);
  transform: scale(1.05);
}

.backpack-day-step.is-school {
  border-color: rgba(114, 240, 194, 0.35);
  background: #205849;
  color: #c4ffe8;
}

.backpack-day-step.is-weekend {
  border-color: rgba(169, 145, 255, 0.4);
  background: #352b58;
  color: #e1d8ff;
}

.backpack-game-board {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 18px;
  min-height: 0;
}

.backpack-day-card {
  display: flex;
  width: min(76%, 390px);
  min-height: clamp(150px, 24vh, 220px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  background: linear-gradient(145deg, #272c43, #171b2c);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  cursor: grab;
  touch-action: none;
  user-select: none;
  z-index: 1;
}

.backpack-day-card:disabled {
  cursor: default;
  opacity: 0.8;
}

.backpack-day-card.is-dragging {
  border-color: var(--mint);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
  cursor: grabbing;
  z-index: 2;
}

.backpack-day-calendar {
  font-size: clamp(42px, 8vh, 64px);
  line-height: 1;
}

.backpack-day-name {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
}

.backpack-day-audio {
  color: var(--muted);
  font-size: 20px;
}

.backpack-drop-zones {
  display: grid;
  width: min(100%, 760px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 24px);
}

.backpack-drop-zone {
  display: flex;
  min-height: clamp(120px, 19vh, 175px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.backpack-drop-zone:active {
  transform: scale(0.97);
}

.backpack-drop-zone:disabled {
  cursor: default;
  opacity: 0.65;
}

.clock-scanner-choice.is-correct:disabled,
.clock-scanner-choice.is-incorrect:disabled,
.seasons-drop-zone.is-correct:disabled,
.seasons-drop-zone.is-incorrect:disabled,
.backpack-drop-zone.is-correct:disabled,
.backpack-drop-zone.is-incorrect:disabled {
  opacity: 1;
}

.backpack-drop-zone > span {
  font-size: clamp(42px, 8vh, 62px);
  line-height: 1;
}

.backpack-drop-zone strong {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
}

.backpack-drop-zone small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.backpack-school-zone {
  color: #a5f8d7;
}

.backpack-weekend-zone {
  color: #cabbff;
}

.backpack-school-zone:hover,
.backpack-school-zone:focus-visible {
  border-color: var(--mint);
  background: rgba(114, 240, 194, 0.1);
}

.backpack-weekend-zone:hover,
.backpack-weekend-zone:focus-visible {
  border-color: var(--purple);
  background: rgba(169, 145, 255, 0.1);
}

.section-heading {
  flex: 0 0 auto;
  margin-bottom: clamp(10px, 2vh, 18px);
  text-align: center;
}

.section-heading h1 {
  margin-bottom: 0;
}

.word-list {
  display: grid;
  flex: 1;
  align-content: center;
  justify-content: center;
  gap: clamp(10px, 1.7vw, 18px);
  min-height: 0;
}

.section-guide {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  margin: 0 0 8px;
}

.greetings-guide {
  margin-top: -6px;
}

.time-arc {
  display: block;
  width: min(100%, 330px);
  height: auto;
  overflow: visible;
}

.time-segment {
  stroke: rgba(9, 11, 20, 0.8);
  stroke-width: 2;
  opacity: 0.78;
  transition: opacity 180ms ease, filter 180ms ease;
}

.period-morning {
  fill: #72d9c0;
}

.period-afternoon {
  fill: #f2c95f;
}

.period-evening {
  fill: #ff9878;
}

.period-night {
  fill: #927be2;
}

.time-arc.is-active .time-segment {
  opacity: 0.43;
}

.time-arc.is-active .time-segment.is-current {
  opacity: 1;
  filter: drop-shadow(0 0 5px currentColor);
  stroke: #fff;
  stroke-width: 2.5;
}

.time-label {
  fill: #f7f8ff;
  font-size: 9px;
  font-weight: 900;
}

.time-horizon {
  fill: none;
  stroke: rgba(255, 255, 255, 0.65);
  stroke-linecap: round;
  stroke-width: 2;
}

.time-sun {
  fill: #fff1ad;
  filter: drop-shadow(0 0 5px rgba(255, 231, 127, 0.8));
}

.greetings-list {
  display: flex;
  align-content: stretch;
  justify-content: stretch;
  width: 100%;
}

.greeting-card-grid {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.7vw, 18px);
  width: min(100%, 660px);
  min-height: 0;
  margin: 0 auto;
}

.greeting-card {
  width: auto;
  min-height: 0;
  height: 100%;
  aspect-ratio: 9 / 16;
  justify-self: center;
  gap: 6px;
  padding: 8px;
}

.greeting-card .card-art {
  width: 100%;
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
  border-radius: 12px;
}

.greeting-card .card-art img {
  object-fit: cover;
}

.greeting-cue {
  width: 52px;
  height: 24px;
  flex: 0 0 auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  color: #a5f8d7;
  animation: cue-in 280ms ease-out both;
}

.cue-part {
  color: #cabbff;
}

.cue-later {
  color: #ffe294;
}

.word-card {
  display: flex;
  min-width: 0;
  min-height: 80px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: rgba(21, 27, 42, 0.9);
  color: var(--text);
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.word-card:hover {
  background: #1b2435;
}

.card-art {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border-radius: 13px;
  font-size: 18px;
}

.card-label {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(13px, 1.65vw, 17px);
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
}

.image-placeholder {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(114, 240, 194, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 35% 30%, rgba(114, 240, 194, 0.2), transparent 58%),
    linear-gradient(145deg, #1b2b30, #171b2a);
  color: var(--mint);
  font-size: 23px;
}

.card-art.image-placeholder {
  border-radius: 13px;
}

.days-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  overflow-y: auto;
  padding: 2px 6px 12px;
  scrollbar-width: thin;
}

.day-card {
  display: flex;
  width: 100%;
  min-height: 88px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 8px 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(28, 62, 57, 0.95), rgba(17, 34, 33, 0.95));
}

.day-card.weekend-day {
  border-color: rgba(169, 145, 255, 0.34);
  background: linear-gradient(160deg, rgba(67, 55, 102, 0.95), rgba(36, 30, 59, 0.95));
}

.day-card .card-art {
  width: 72px;
  height: 72px;
}

.day-card .card-label {
  font-size: clamp(18px, 2.4vw, 25px);
  text-align: left;
}

.card-position {
  margin-left: auto;
  color: #9cebd0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  opacity: 0.75;
}

.weekend-day .card-position {
  color: #c6b8ff;
}

.day-kind {
  display: flex;
  min-width: 74px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #9cebd0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.day-kind.is-weekend {
  color: #c6b8ff;
}

.day-icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.week-guide,
.month-guide {
  width: min(100%, 610px);
}

.week-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 3px;
}

.week-track::before {
  position: absolute;
  top: 15px;
  right: 7%;
  left: 7%;
  height: 2px;
  background: linear-gradient(90deg, #a991ff 0 8%, #72f0c2 8% 92%, #a991ff 92%);
  content: "";
  opacity: 0.6;
}

.week-step {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #9cebd0;
  transition: transform 160ms ease;
}

.week-number {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(114, 240, 194, 0.35);
  border-radius: 50%;
  background: #142321;
  font-size: 13px;
  font-weight: 900;
}

.week-day {
  color: #a4acc0;
  font-size: 10px;
  font-weight: 800;
}

.week-step.is-weekend {
  color: #cabbff;
}

.week-step.is-weekend .week-number {
  border-color: rgba(169, 145, 255, 0.55);
  background: #29213f;
}

.week-step.is-current {
  transform: translateY(-2px);
}

.week-step.is-current .week-number {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.13), 0 0 16px currentColor;
}

.guide-legend,
.season-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 24px);
  margin-top: 7px;
}

.guide-caption {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #a4acc0;
  font-size: 11px;
  font-weight: 800;
}

.guide-caption .day-icon {
  width: 17px;
  height: 17px;
  color: #9cebd0;
}

.guide-caption.legend-weekend .day-icon {
  color: #c6b8ff;
}

.month-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.month-dot {
  display: grid;
  width: clamp(20px, 3.3vw, 27px);
  height: clamp(20px, 3.3vw, 27px);
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 900;
  opacity: 0.78;
  transition: transform 160ms ease, opacity 160ms ease;
}

.month-dot.is-current {
  transform: scale(1.25);
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.13), 0 0 16px currentColor;
  opacity: 1;
}

.season-winter {
  color: #8bc7ff;
}

.season-spring {
  color: #78e5ae;
}

.season-summer {
  color: #ffda70;
}

.season-autumn {
  color: #ffad79;
}

.month-card-meta {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
}

.month-position {
  color: #dce1f0;
  font-size: 11px;
  font-weight: 900;
}

.month-season-icon {
  font-size: 17px;
  line-height: 1;
}

.season-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.season-chip > span:first-child,
.guide-symbol {
  font-size: 13px;
  line-height: 1;
}

.season-legend {
  gap: clamp(8px, 2.5vw, 18px);
}

.month-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  width: min(100%, 660px);
  margin: 0 auto;
}

.month-card {
  --season-color: #ffe294;
  width: auto;
  min-height: 0;
  height: 100%;
  aspect-ratio: 9 / 16;
  justify-self: center;
  gap: 6px;
  padding: 8px;
  border-color: rgba(255, 226, 148, 0.25);
  background: linear-gradient(145deg, rgba(67, 55, 35, 0.75), rgba(31, 28, 24, 0.88));
}

.month-card .card-art {
  width: 100%;
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
  border-radius: 12px;
}

.month-card .card-art img {
  object-fit: cover;
}

.month-card.season-winter {
  --season-color: #8bc7ff;
  border-color: rgba(139, 199, 255, 0.3);
  background: linear-gradient(145deg, rgba(42, 75, 108, 0.74), rgba(23, 31, 45, 0.88));
}

.month-card.season-spring {
  --season-color: #78e5ae;
  border-color: rgba(120, 229, 174, 0.3);
  background: linear-gradient(145deg, rgba(41, 90, 68, 0.74), rgba(22, 38, 35, 0.88));
}

.month-card.season-summer {
  --season-color: #ffda70;
  border-color: rgba(255, 218, 112, 0.3);
  background: linear-gradient(145deg, rgba(104, 79, 34, 0.74), rgba(41, 35, 24, 0.88));
}

.month-card.season-autumn {
  --season-color: #ffad79;
  border-color: rgba(255, 173, 121, 0.3);
  background: linear-gradient(145deg, rgba(102, 58, 39, 0.74), rgba(41, 29, 27, 0.88));
}

.detail-overlay {
  position: fixed;
  z-index: 5;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(62px, env(safe-area-inset-top)) 24px max(22px, env(safe-area-inset-bottom));
  background: rgba(8, 10, 18, 0.93);
  backdrop-filter: blur(18px);
  animation: fade-in 180ms ease-out;
}

.game-result-overlay {
  position: fixed;
  z-index: 8;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 10, 18, 0.9);
  backdrop-filter: blur(16px);
  animation: fade-in 180ms ease-out;
}

.game-mode-overlay {
  position: fixed;
  z-index: 9;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 10, 18, 0.9);
  backdrop-filter: blur(16px);
  animation: fade-in 180ms ease-out;
}

.game-mode-card {
  position: relative;
  display: flex;
  width: min(100%, 430px);
  max-height: calc(100vh - 48px);
  flex-direction: column;
  overflow-y: auto;
  gap: 12px;
  padding: clamp(28px, 6vw, 44px);
  border: 1px solid rgba(114, 240, 194, 0.24);
  border-radius: 28px;
  background: #141a29;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.game-mode-card .eyebrow {
  margin: 0;
  color: var(--mint);
}

.game-mode-card h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 6vw, 34px);
}

.game-mode-button {
  display: flex;
  min-height: 66px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.game-mode-button strong {
  font-size: 18px;
  font-weight: 900;
}

.game-mode-button span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.game-mode-button:focus-visible,
.game-mode-button:hover {
  border-color: var(--mint);
}

.random-game-mode {
  border-color: rgba(255, 216, 111, 0.35);
  color: #ffe294;
}

.game-result-card {
  position: relative;
  display: flex;
  width: min(100%, 430px);
  max-height: calc(100vh - 48px);
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: clamp(26px, 6vw, 42px);
  border: 1px solid rgba(255, 216, 111, 0.32);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 216, 111, 0.16), transparent 42%),
    #141a29;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  text-align: center;
  animation: trophy-in 420ms cubic-bezier(0.18, 0.85, 0.28, 1.2) both;
}

.minutes-overlay {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 10, 18, 0.92);
  backdrop-filter: blur(16px);
  animation: fade-in 180ms ease-out;
}

.install-overlay {
  position: fixed;
  z-index: 11;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 10, 18, 0.92);
  backdrop-filter: blur(16px);
  animation: fade-in 180ms ease-out;
}

.install-card {
  position: relative;
  display: flex;
  width: min(100%, 460px);
  max-height: calc(100vh - 48px);
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow-y: auto;
  padding: clamp(28px, 6vw, 46px);
  border: 1px solid rgba(114, 240, 194, 0.28);
  border-radius: 28px;
  background: radial-gradient(circle at 50% 0%, rgba(114, 240, 194, 0.13), transparent 44%), #141a29;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.install-card h2 {
  margin: 0;
  font-size: clamp(27px, 6vw, 38px);
}

.install-help {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 700;
}

.minutes-card {
  position: relative;
  display: flex;
  width: min(100%, 460px);
  max-height: calc(100vh - 48px);
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: clamp(28px, 6vw, 46px);
  border: 1px solid rgba(114, 240, 194, 0.28);
  border-radius: 28px;
  background: radial-gradient(circle at 50% 0%, rgba(114, 240, 194, 0.13), transparent 44%), #141a29;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.minutes-trophy {
  margin-bottom: 6px;
  font-size: 64px;
  line-height: 1;
}

.minutes-card h2 {
  margin: 0;
  font-size: clamp(27px, 6vw, 38px);
  font-weight: 900;
}

.minutes-balance {
  margin: 8px 0;
  color: var(--mint);
  font-size: clamp(34px, 8vw, 50px);
  font-weight: 900;
}

.minutes-help {
  margin: 0 0 16px;
  color: #dce1f0;
  font-size: 16px;
  font-weight: 800;
}

.parent-redeem-trigger {
  align-self: center;
  margin: 2px 0 8px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: #8d96aa;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.parent-redeem-trigger:hover,
.parent-redeem-trigger:focus-visible {
  color: var(--mint);
}

.redeem-form {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.redeem-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.redeem-form input {
  min-height: 52px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: #0e1320;
  color: var(--text);
  font: inherit;
  font-size: 18px;
  text-align: center;
}

.redeem-form input:focus {
  border-color: var(--mint);
  outline: 2px solid rgba(114, 240, 194, 0.3);
}

.redeem-form button:disabled,
.redeem-form input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.minutes-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: #ffb5bd;
  font-size: 13px;
  font-weight: 800;
}

.minutes-card.is-redeemed {
  animation: redeem-celebration 700ms ease-out both;
  border-color: var(--mint);
}

.minutes-card.is-redeemed .minutes-trophy {
  animation: trophy-in 600ms cubic-bezier(0.18, 0.85, 0.28, 1.2) both;
}

.result-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 27px;
  cursor: pointer;
}

.result-trophy {
  margin-bottom: 5px;
  font-size: clamp(62px, 12vw, 88px);
  line-height: 1;
  filter: drop-shadow(0 8px 18px rgba(255, 216, 111, 0.24));
}

.game-result-card .eyebrow {
  margin: 8px 0;
  color: var(--yellow);
}

.game-result-card h2 {
  margin: 0;
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.result-message {
  margin: 10px 0 16px;
  color: #b6bfd2;
  font-size: 16px;
  font-weight: 700;
}

.result-reward {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  color: #ffe294;
}

.result-reward strong {
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}

.result-reward span,
.result-balance {
  color: #dce1f0;
  font-size: 14px;
  font-weight: 800;
}

.result-balance {
  margin: 0 0 14px;
  color: var(--mint);
}

.result-done {
  min-width: 200px;
  min-height: 56px;
  margin-top: 10px;
}

.result-done {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: #1a2030;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.close-button {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: #181d2b;
  color: var(--text);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.detail-content {
  display: flex;
  width: min(100%, 720px);
  max-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: auto;
  text-align: center;
  animation: pop-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.detail-content > .eyebrow {
  margin-bottom: 14px;
}

.detail-art {
  width: min(78vw, 480px);
  height: min(48vh, 500px);
  min-height: 120px;
  margin-bottom: 12px;
  border-radius: 22px;
  font-size: 54px;
}

.detail-art img,
.card-art img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

.detail-word {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 9.5vw, 86px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.detail-translation {
  margin: 8px 0 10px;
  color: #b6bfd2;
  font-size: clamp(19px, 3.2vw, 26px);
  font-weight: 700;
}

.detail-context {
  display: flex;
  width: min(100%, 610px);
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
}

.detail-context[hidden] {
  display: none;
}

.detail-context .week-track,
.detail-context .month-track {
  width: 100%;
}

.detail-context .week-guide,
.detail-context .month-guide {
  width: min(100%, 480px);
}

.detail-context .guide-caption {
  font-size: 12px;
}

.detail-context .greeting-cue {
  width: 78px;
  height: 34px;
}

.repeat-button {
  display: flex;
  min-width: 190px;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 0;
  border-radius: 19px;
  background: var(--mint);
  color: #0c211b;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 150ms ease;
}

.repeat-button span {
  font-size: 22px;
}

.detail-navigation {
  display: flex;
  width: min(100%, 430px);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
}

.nav-word-button {
  display: flex;
  min-width: 105px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;
  background: #171d2b;
  color: #e9ecf7;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease;
}

.nav-word-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.word-position {
  color: #8992a8;
  font-size: 13px;
  font-weight: 800;
}

@keyframes drift {
  to { transform: translate3d(35px, -24px, 0) scale(1.13); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pop-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes trophy-in {
  from { opacity: 0; transform: translateY(14px) scale(0.82) rotate(-5deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@keyframes cue-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes minutes-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(114, 240, 194, 0); }
  50% { box-shadow: 0 0 16px rgba(114, 240, 194, 0.18); }
}

@keyframes mistakes-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes lock-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.08); }
}

@keyframes lock-disappear {
  0% { opacity: 1; transform: scale(1); }
  55% { opacity: 1; transform: scale(1.22) translateY(-3px); }
  100% { opacity: 0; transform: scale(0.35) translateY(-10px); }
}

@keyframes lock-burst {
  0% { opacity: 0.85; transform: scale(0.35); }
  100% { opacity: 0; transform: scale(1.9); }
}

@keyframes day-reveal {
  0% { opacity: 0.4; transform: scale(0.82) rotateY(90deg); }
  65% { opacity: 1; transform: scale(1.06) rotateY(-8deg); }
  100% { transform: scale(1) rotateY(0); }
}

@keyframes practice-target-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 111, 125, 0.14), 0 0 18px rgba(255, 111, 125, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(255, 111, 125, 0.24), 0 0 34px rgba(255, 111, 125, 0.4); }
}

@keyframes missing-prerequisite-shake {
  0%, 100% { transform: translateX(0); }
  18%, 54%, 90% { transform: translateX(-6px); }
  36%, 72% { transform: translateX(6px); }
}

@keyframes life-loss {
  0%, 100% { transform: translateX(0) scale(1); }
  18%, 54% { transform: translateX(-5px) scale(1.08); }
  36%, 72% { transform: translateX(5px) scale(1.08); }
}

@keyframes life-heart-loss {
  0% { opacity: 1; transform: scale(1); }
  35% { opacity: 0.3; transform: scale(1.55); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes practice-link-flow {
  to { stroke-dashoffset: -28; }
}

@keyframes practice-link-pulse {
  from { opacity: 0.68; }
  to { opacity: 1; }
}

@keyframes game-unlocked {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(105, 240, 168, 0); }
  45% { transform: scale(1.025); box-shadow: 0 0 0 3px rgba(105, 240, 168, 0.3); }
}

@keyframes person-approaches {
  to { transform: translateX(14px); }
}

@keyframes person-approaches-reverse {
  to { transform: translateX(-14px); }
}

@keyframes person-leaves {
  to { transform: translateX(-14px); }
}

@keyframes person-leaves-reverse {
  to { transform: translateX(14px); }
}

@keyframes redeem-celebration {
  0% { transform: scale(0.96); box-shadow: 0 0 0 rgba(114, 240, 194, 0); }
  45% { transform: scale(1.025); box-shadow: 0 0 50px rgba(114, 240, 194, 0.3); }
  100% { transform: scale(1); box-shadow: 0 0 24px rgba(114, 240, 194, 0.16); }
}

@media (max-width: 650px) {
  .app-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 5px;
  }

  .back-button {
    grid-column: 1;
    min-width: 0;
    font-size: 13px;
  }

  .brand {
    grid-column: 2;
    gap: 5px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .topbar-tools {
    grid-column: 3;
    gap: 4px;
  }

  .minutes-counter {
    min-height: 36px;
    gap: 4px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .minutes-counter span {
    font-size: 15px;
  }

  .mistakes-counter {
    min-height: 34px;
    gap: 3px;
    padding: 5px 6px;
    font-size: 9px;
  }

  .mistakes-counter span {
    font-size: 12px;
  }

  .topic-menu {
    gap: 9px;
  }

  .topic-group {
    padding: 8px;
    border-radius: 17px;
  }

  .topic-group-title {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .topic-group-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .games-group .topic-group-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topic-button {
    min-height: 82px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    padding: 9px;
    border-radius: 14px;
  }

  .topic-asteroid {
    min-height: 68px;
    flex-direction: row;
    align-items: center;
  }

  .topic-emoji {
    width: auto;
    font-size: 24px;
    text-align: center;
  }

  .topic-label {
    max-width: calc(100% - 5px);
    font-size: clamp(11px, 3vw, 15px);
    line-height: 1.15;
  }

  .home-page {
    padding-top: 14px;
    padding-bottom: 10px;
  }

  .intro {
    margin-bottom: 20px;
  }

  .intro h1,
  .section-heading h1 {
    font-size: clamp(32px, 9vw, 46px);
  }

  .home-tip {
    margin-top: 14px;
  }

  .home-motivation {
    font-size: 12px;
  }

  .section-page {
    padding-top: 18px;
  }

  .backpack-game-page {
    padding-top: 18px;
  }

  .clock-scanner-page {
    padding-top: 12px;
  }

  .seasons-elevator-page {
    padding-top: 12px;
  }

  .detective-page {
    padding-top: 12px;
  }

  .detective-board {
    gap: 12px;
  }

  .detective-reference-guide.is-days,
  .detective-reference-guide.is-months {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
  }

  .detective-reference-step {
    min-height: 36px;
    padding: 3px;
  }

  .detective-options.is-number-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    font-size: 9px;
  }

  .detective-clue {
    min-height: 100px;
    border-radius: 17px;
  }

  .detective-options {
    gap: 8px;
  }

  .detective-choice {
    min-height: 74px;
    border-radius: 14px;
  }

  .seasons-month-card {
    width: min(82%, 350px);
  }

  .seasons-drop-zone {
    min-height: 100px;
    border-radius: 16px;
  }

  .seasons-calendar {
    gap: 3px;
    margin-bottom: 0;
  }

  .seasons-calendar-month {
    min-height: 21px;
    font-size: 9px;
  }

  .clock-scanner-board {
    gap: 8px;
  }

  .clock-scanner-scene {
    padding: 10px;
  }

  .clock-scanner-choice {
    min-height: 82px;
    border-radius: 16px;
  }

  .backpack-day-card {
    width: min(82%, 350px);
  }

  .backpack-drop-zone {
    min-height: 120px;
  }

  .greeting-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 9px;
  }

  .word-card {
    border-radius: 16px;
  }

  .card-art {
    width: 42px;
    height: 42px;
  }

  .days-list {
    overflow-x: hidden;
    padding: 2px 1px 10px;
    scrollbar-width: none;
  }

  .days-list::-webkit-scrollbar {
    display: none;
  }

  .day-card {
    min-height: 72px;
    gap: 11px;
    padding: 6px 10px;
  }

  .day-card .card-art {
    width: 52px;
    height: 52px;
  }

  .day-card .card-label {
    font-size: 19px;
  }

  .day-kind {
    min-width: 62px;
    font-size: 9px;
  }

  .day-kind .day-icon {
    width: 20px;
    height: 20px;
  }

  .week-track {
    gap: 0;
  }

  .week-number {
    width: 27px;
    height: 27px;
    font-size: 12px;
  }

  .week-track::before {
    top: 13px;
  }

  .week-day {
    font-size: 9px;
  }

  .season-chip {
    gap: 2px;
    font-size: 9px;
  }

  .season-legend {
    gap: 8px;
  }

  .month-list {
    gap: 9px;
  }

  .month-card {
    width: 100%;
    min-height: 72px;
    height: auto;
    aspect-ratio: 9 / 16;
  }

  .month-card-meta {
    padding: 0 2px;
  }

  .month-season-icon {
    font-size: 14px;
  }

  .card-label {
    font-size: clamp(12px, 3.2vw, 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .asteroid-group.is-unlocking,
  .topic-button.is-dashboard-unlocking,
  .asteroid-group .topic-asteroid.is-asteroid-unlocking {
    animation: dashboard-unlock-fade 2.4s ease both !important;
  }

  .topic-button .dashboard-unlock-overlay.is-opening {
    animation: dashboard-lock-fade 2.4s ease forwards !important;
  }
}

@keyframes dashboard-unlock-fade {
  0%, 28% { opacity: 0.72; }
  48% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes dashboard-lock-fade {
  0%, 24% { opacity: 1; }
  100% { opacity: 0; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .app-shell {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .topbar {
    min-height: 38px;
  }

  .home-page {
    padding: 2px 0 8px;
  }

  .intro {
    margin-bottom: 14px;
  }

  .intro h1 {
    font-size: clamp(30px, 6vh, 42px);
  }

  .topic-button {
    min-height: 115px;
  }

  .section-page {
    padding-top: 8px;
  }

  .section-heading {
    margin-bottom: 8px;
  }

  .section-heading h1 {
    font-size: 34px;
  }

  .greeting-card-grid {
    gap: 8px;
  }

  .day-card {
    min-height: 90px;
  }

  .detail-overlay .detail-art {
    width: min(70vw, 360px);
    height: min(38vh, 290px);
    min-height: 90px;
    margin-bottom: 8px;
  }

  .detail-content > .eyebrow {
    margin-bottom: 6px;
  }

  .detail-translation {
    margin: 6px 0 12px;
  }

  .repeat-button {
    min-height: 54px;
  }

  .detail-navigation {
    margin-top: 10px;
  }
}

@media (orientation: landscape) {
  .detail-art {
    width: min(62vw, 400px);
    height: min(36vh, 340px);
  }

  .month-list {
    width: min(100%, 900px);
  }
}

@media (orientation: landscape) and (max-height: 700px) {
  .section-page {
    padding-top: 8px;
  }

  .section-heading {
    margin-bottom: 6px;
  }

  .section-guide {
    margin-bottom: 5px;
  }

  .greetings-guide .time-arc {
    width: min(100%, 220px);
  }

  .greeting-card,
  .month-card {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    gap: 4px 8px;
    padding: 6px;
  }

  .greeting-card .card-art,
  .month-card .card-art {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .greeting-card .card-label,
  .month-card .card-label {
    grid-column: 2;
    align-self: end;
    font-size: clamp(12px, 1.7vw, 17px);
  }

  .greeting-card .greeting-cue,
  .month-card .month-card-meta {
    grid-column: 2;
    align-self: start;
  }
}

@media (min-width: 651px) and (max-width: 900px) and (orientation: portrait) {
  .topic-menu {
    width: min(100%, 900px);
    margin: 0 auto;
    gap: 10px;
  }

  .topic-group {
    padding: 9px;
  }

  .topic-group-cards {
    gap: 8px;
  }

  .topic-button {
    min-height: clamp(96px, 15vh, 128px);
    align-items: center;
    gap: 12px;
    padding: 12px;
  }

}

@media (min-width: 901px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app-shell {
    height: auto;
    min-height: 100vh;
  }

  .page {
    flex: 1 0 auto;
    min-height: calc(100vh - 82px);
  }
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  .app-shell {
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

:fullscreen .app-shell {
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

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

.topic-menu {
  gap: 12px;
}

.topic-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(8px, 1.3vw, 14px);
}

.topic-column {
  min-width: 0;
  padding: clamp(8px, 1.1vw, 12px);
  border-radius: 22px;
  backdrop-filter: blur(12px);
}

.topic-column-greetings {
  border-color: rgba(114, 240, 194, 0.2);
  background: linear-gradient(155deg, rgba(42, 105, 83, 0.24), rgba(15, 25, 30, 0.72));
}

.topic-column-days {
  border-color: rgba(169, 145, 255, 0.22);
  background: linear-gradient(155deg, rgba(88, 65, 143, 0.24), rgba(21, 20, 35, 0.76));
}

.topic-column-months {
  border-color: rgba(255, 216, 111, 0.2);
  background: linear-gradient(155deg, rgba(132, 95, 29, 0.22), rgba(31, 26, 19, 0.76));
}

.topic-column-alphabet {
  border-color: rgba(117, 204, 255, 0.24);
  background: linear-gradient(155deg, rgba(39, 93, 141, 0.25), rgba(17, 26, 42, 0.78));
}

.topic-column .topic-group-title {
  min-height: 28px;
  margin: 0 0 8px 2px;
  font-size: clamp(10px, 1.2vw, 13px);
  letter-spacing: 0.08em;
}

.topic-column .topic-group-cards {
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}

.topic-column .topic-button {
  min-width: 0;
  min-height: clamp(88px, 12vh, 118px);
  gap: 6px;
  padding: 11px 10px 24px;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.17),
    inset 0 -12px 24px rgba(5, 9, 20, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.2);
}

.topic-column .topic-button:hover,
.topic-column .topic-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.topic-column .topic-emoji {
  font-size: clamp(23px, 3vw, 32px);
}

.topic-column .topic-label {
  max-width: 100%;
  font-size: clamp(12px, 1.55vw, 16px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.topic-column .topic-practice-button {
  min-height: clamp(82px, 10vh, 100px);
  border-style: dashed;
  border-width: 1.5px;
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.015));
}

.topic-column-greetings .topic-practice-button {
  border-color: rgba(114, 240, 194, 0.54);
}

.topic-column-days .topic-practice-button {
  border-color: rgba(202, 187, 255, 0.55);
}

.topic-column-months .topic-practice-button {
  border-color: rgba(255, 226, 148, 0.55);
}

.topic-column-alphabet .topic-practice-button,
.topic-alphabet {
  background: radial-gradient(ellipse at 18% 0%, rgba(128, 211, 255, 0.24), transparent 50%),
    linear-gradient(145deg, #274c70, #192a43);
  color: #b7e5ff;
}

.topic-column .game-reward-badge {
  right: 6px;
  bottom: 5px;
  padding: 3px 6px;
  font-size: clamp(8px, 0.9vw, 10px);
}

.topic-column .game-lock-overlay {
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  border-color: rgba(198, 218, 255, 0.55);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(42, 57, 91, 0.96), rgba(19, 27, 47, 0.98));
  box-shadow: 0 4px 11px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.topic-column .lock-padlock {
  font-size: 15px;
}

.topic-column .topic-button.is-game-locked {
  filter: saturate(0.62) brightness(0.66);
  opacity: 0.78;
}

.topic-column .topic-button.is-game-locked .topic-emoji,
.topic-column .topic-button.is-game-locked .topic-label {
  filter: blur(0.55px) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
  opacity: 0.72;
}

.topic-column .topic-button.is-game-locked .game-lock-overlay {
  filter: saturate(0.65) brightness(0.78);
  opacity: 0.82;
}

.topic-column .topic-button.is-game-locked:hover,
.topic-column .topic-button.is-game-locked:focus-visible {
  filter: saturate(0.62) brightness(0.72);
}

.topic-column .topic-button.is-game-unlocked .topic-emoji,
.topic-column .topic-button.is-game-unlocked .topic-label {
  filter: none;
  opacity: 1;
  transition: filter 240ms ease, opacity 240ms ease;
}

.topic-column .topic-button.is-game-completed {
  border-color: rgba(136, 255, 194, 0.68);
  background-image: radial-gradient(ellipse at 85% 12%, rgba(133, 255, 194, 0.16), transparent 48%);
}

.topic-asteroid {
  grid-column: auto;
  width: 100%;
}

.asteroid-group {
  padding: 8px;
  border-color: rgba(139, 195, 255, 0.2);
  border-radius: 19px;
  background: linear-gradient(110deg, rgba(45, 70, 116, 0.32), rgba(20, 27, 45, 0.75));
}

.asteroid-progress-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 2px 7px;
}

.asteroid-progress-heading h2 {
  margin: 0;
  color: #d7e8ff;
  font-size: clamp(11px, 1.35vw, 14px);
  font-weight: 900;
}

.asteroid-group .topic-group-cards {
  grid-template-columns: minmax(0, 1fr);
}

.asteroid-group .topic-asteroid {
  min-height: clamp(92px, 13vh, 118px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  text-align: center;
}

.asteroid-group .topic-asteroid .topic-label {
  max-width: 100%;
  margin: 0;
  font-size: clamp(17px, 2.4vw, 23px);
}

.asteroid-group .topic-asteroid .topic-emoji {
  filter: drop-shadow(0 0 8px rgba(142, 194, 255, 0.58));
  animation: asteroid-grand-game 2.8s ease-in-out infinite;
}

.asteroid-group .topic-asteroid.is-game-locked {
  filter: saturate(0.72) brightness(0.78);
}

.asteroid-column-gates {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 8px;
}

.asteroid-column-gate {
  display: inline-flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(177, 191, 224, 0.2);
  border-radius: 999px;
  background: rgba(13, 19, 34, 0.72);
  color: #a4acc0;
  font-size: 10px;
  font-weight: 900;
  transition: border-color 220ms ease, color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.asteroid-gate-lock {
  font-size: 13px;
}

.asteroid-column-gate.is-unlocked {
  border-color: rgba(105, 240, 168, 0.55);
  background: rgba(28, 91, 65, 0.48);
  color: #c3ffdc;
  box-shadow: 0 0 14px rgba(105, 240, 168, 0.16);
}

.asteroid-column-status {
  margin: 0;
  color: #b7c9e8;
  font-size: clamp(10px, 1.15vw, 12px);
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .asteroid-progress-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .asteroid-column-status {
    text-align: left;
    white-space: normal;
  }
}

.asteroid-group .topic-asteroid:not(.is-game-locked)::before {
  animation: asteroid-grand-glow 2.8s ease-in-out infinite;
}

@keyframes asteroid-grand-game {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes asteroid-grand-glow {
  0%, 100% { opacity: 0.62; }
  50% { opacity: 1; }
}

.practice-links {
  z-index: 2;
}

.practice-link {
  stroke-width: 2.4;
  stroke-dasharray: 4 8;
  opacity: 0.82;
  filter: drop-shadow(0 0 3px currentColor);
}

.practice-link-arrow {
  filter: drop-shadow(0 0 2px currentColor);
}

.practice-link-alphabet {
  stroke: #8bd7ff;
  color: #8bd7ff;
}

.practice-link-arrow-alphabet {
  fill: #8bd7ff;
}

.topic-column .topic-button.is-practice-required {
  border-color: #fff0a8;
  box-shadow: 0 0 0 3px rgba(255, 230, 129, 0.2), 0 0 22px rgba(255, 216, 111, 0.28);
  animation: practice-column-pulse 1.8s ease-in-out infinite;
}

.topic-column .topic-button.is-practice-required .game-state-cue {
  border-color: rgba(255, 235, 169, 0.72);
  background: linear-gradient(135deg, #73541b, #493713);
  color: #fff2c5;
}

.game-state-cue {
  max-width: calc(100% - 12px);
  padding: 4px 7px;
  background: linear-gradient(135deg, #684b19, #3e3218);
  border-color: rgba(255, 226, 148, 0.56);
  color: #fff0bd;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.topic-column .game-state-cue {
  top: 5px;
  right: 5px;
  font-size: 8px;
}

.section-guide .alphabet-reference-guide {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 4px;
  width: min(100%, 720px);
  margin: 0 auto;
}

.alphabet-reference-guide span {
  display: grid;
  min-height: 28px;
  place-items: center;
  border: 1px solid rgba(139, 215, 255, 0.16);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(44, 94, 139, 0.46), rgba(24, 38, 61, 0.82));
  color: #c2e9ff;
  font-size: 12px;
  font-weight: 900;
}

.alphabet-list {
  display: block;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 4px 12px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.alphabet-card-grid {
  display: grid;
  align-content: start;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(7px, 1.2vw, 13px);
  width: min(100%, 850px);
  margin: 0 auto;
}

.alphabet-card {
  min-height: clamp(74px, 10vh, 96px);
  border-color: rgba(139, 215, 255, 0.2);
  border-radius: 17px;
  background: linear-gradient(155deg, rgba(38, 74, 111, 0.9), rgba(23, 34, 55, 0.96));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.alphabet-card:hover,
.alphabet-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(166, 226, 255, 0.72);
  box-shadow: 0 9px 22px rgba(24, 99, 153, 0.24);
}

.alphabet-card-letter {
  width: clamp(34px, 4vw, 48px);
  height: clamp(34px, 4vw, 48px);
  border: 1px solid rgba(139, 215, 255, 0.35);
  background: radial-gradient(circle at 30% 20%, rgba(173, 228, 255, 0.3), transparent 68%),
    linear-gradient(145deg, #3479a8, #204563);
  color: #e2f6ff;
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(8, 24, 43, 0.32);
}

.alphabet-card .card-label {
  font-size: clamp(11px, 1.3vw, 15px);
}

.alphabet-detail-art {
  display: grid;
  place-items: center;
  border: 1px solid rgba(139, 215, 255, 0.38);
  background: radial-gradient(circle at 36% 25%, rgba(138, 220, 255, 0.26), transparent 52%),
    linear-gradient(145deg, #244d70, #17253f);
  color: #e3f7ff;
  font-size: clamp(112px, 24vw, 230px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 7px 25px rgba(72, 179, 238, 0.35);
}

.alphabet-example-icon {
  font-size: clamp(42px, 9vw, 64px);
  line-height: 1;
}

.alphabet-example-word {
  color: #d7f0ff;
  font-size: clamp(16px, 3vw, 22px);
}

.alphabet-example-hint {
  color: #a7bdd3;
  font-size: 14px;
  font-weight: 700;
}

.alphabet-game-page {
  width: 100%;
  padding: clamp(18px, 4vh, 34px) 0 18px;
}

.alphabet-game-page .section-heading {
  margin-bottom: 10px;
}

.alphabet-game-page .section-heading h1 {
  color: #c8ecff;
}

.alphabet-game-progress {
  margin: 8px 0 0;
  color: #9edfff;
  font-size: 16px;
  font-weight: 900;
}

.alphabet-game-board {
  position: relative;
  display: flex;
  width: min(100%, 680px);
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vh, 28px);
  min-height: 0;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid rgba(139, 215, 255, 0.2);
  border-radius: 28px;
  background: radial-gradient(ellipse at 50% 0%, rgba(61, 133, 184, 0.18), transparent 48%),
    linear-gradient(155deg, rgba(21, 34, 55, 0.94), rgba(15, 20, 34, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 36px rgba(0, 0, 0, 0.2);
}

.alphabet-game-prompt {
  margin: 0;
  color: #edf8ff;
  font-size: clamp(19px, 3.5vw, 26px);
  font-weight: 900;
  text-align: center;
}

.alphabet-word-clue {
  display: flex;
  min-width: clamp(160px, 36vw, 230px);
  min-height: clamp(142px, 25vh, 194px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 26px;
  border: 1px solid rgba(139, 215, 255, 0.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 20%, rgba(128, 211, 255, 0.22), transparent 58%),
    linear-gradient(145deg, #223b59, #17243b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 25px rgba(0, 0, 0, 0.22);
}

.alphabet-word-icon {
  font-size: clamp(60px, 14vw, 94px);
  line-height: 1.1;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
}

.alphabet-game-audio {
  min-width: min(100%, 220px);
  min-height: 56px;
  padding: 10px 20px;
  border: 1px solid rgba(139, 215, 255, 0.4);
  border-radius: 18px;
  background: linear-gradient(145deg, #294c70, #1b304d);
  color: #d8f2ff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.alphabet-game-audio:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.14);
}

.alphabet-game-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 15px);
  width: 100%;
}

.alphabet-choice {
  min-width: 0;
  min-height: clamp(72px, 12vh, 104px);
  border: 1px solid rgba(139, 215, 255, 0.25);
  border-radius: 22px;
  background: linear-gradient(150deg, #2c5b82, #1c3656);
  color: #e7f7ff;
  font-size: clamp(34px, 8vw, 54px);
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 17px rgba(0, 0, 0, 0.2);
  transition: transform 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.alphabet-choice:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: rgba(180, 233, 255, 0.75);
  filter: brightness(1.12);
}

.alphabet-choice:disabled {
  cursor: default;
}

.alphabet-choice.is-correct {
  border-color: #7ff0b2;
  background: linear-gradient(145deg, #267953, #164c3a);
  color: #d9ffea;
}

.alphabet-choice.is-incorrect {
  border-color: #ff8296;
  background: linear-gradient(145deg, #803746, #512633);
  color: #ffe5e9;
}

.letter-blaster-targets {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 22px);
  max-width: 760px;
  margin: 0 auto;
}

.letter-blaster-target {
  position: relative;
  min-height: clamp(150px, 28vh, 240px);
  overflow: hidden;
  border: 2px solid rgba(163, 230, 255, 0.48);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 35%, rgba(119, 220, 255, 0.24), transparent 56%),
    linear-gradient(150deg, #245b82, #182f52);
  font-size: clamp(66px, 18vw, 116px);
  touch-action: manipulation;
}

.letter-blaster-target::after {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  color: rgba(215, 242, 255, 0.7);
  content: attr(data-side);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.letter-blaster-target.is-exploding {
  animation: letter-blaster-target-hit 520ms ease-in forwards;
  pointer-events: none;
}

.letter-blaster-shot {
  position: absolute;
  z-index: 2;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(255, 247, 179, 0.2), #fff5a8, #fff);
  box-shadow: 0 0 10px 4px rgba(111, 226, 255, 0.8), 0 0 25px rgba(255, 231, 125, 0.9);
  pointer-events: none;
  transform: rotate(var(--shot-angle));
  transform-origin: left center;
  animation: letter-blaster-shot 220ms ease-out forwards;
}

@keyframes letter-blaster-shot {
  from { opacity: 0.4; transform: rotate(var(--shot-angle)) scaleX(0); }
  to { opacity: 1; transform: rotate(var(--shot-angle)) scaleX(1); }
}

@keyframes letter-blaster-target-hit {
  0% { opacity: 1; transform: scale(1); filter: brightness(1); }
  30% { opacity: 1; transform: scale(1.08); filter: brightness(2.2); }
  100% { opacity: 0; transform: scale(0.25) rotate(8deg); filter: brightness(1.5); }
}

@media (max-width: 650px) {
  .topic-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .topic-column {
    padding: 8px;
    border-radius: 17px;
  }

  .topic-column .topic-button {
    min-height: 82px;
    padding: 8px 8px 22px;
    border-radius: 14px;
  }

  .topic-column .topic-practice-button {
    min-height: 78px;
  }

  .topic-column .topic-emoji {
    font-size: 23px;
  }

  .topic-column .topic-label {
    font-size: clamp(11px, 3.1vw, 14px);
  }

  .alphabet-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .alphabet-game-page {
    padding-top: 12px;
  }

  .alphabet-game-board {
    gap: 18px;
    padding: 14px;
    border-radius: 20px;
  }

  .alphabet-choice {
    border-radius: 16px;
  }

  .letter-blaster-target {
    min-height: clamp(150px, 26vh, 210px);
    border-radius: 22px;
  }
}

@media (max-width: 380px) {
  .topic-columns {
    gap: 6px;
  }

  .topic-column {
    padding: 6px;
  }

  .topic-column .topic-group-title {
    font-size: 10px;
  }

  .topic-column .topic-button {
    padding-right: 6px;
    padding-left: 6px;
  }

  .alphabet-game-choices {
    gap: 7px;
  }

  .alphabet-choice {
    min-height: 64px;
  }
}

@keyframes practice-column-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 230, 129, 0.12), 0 0 14px rgba(255, 216, 111, 0.15); }
  50% { box-shadow: 0 0 0 4px rgba(255, 230, 129, 0.24), 0 0 24px rgba(255, 216, 111, 0.28); }
}

.topic-column {
  transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.topic-column:hover,
.topic-column:focus-within {
  border-color: rgba(196, 220, 255, 0.34);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.asteroid-group {
  border-color: rgba(139, 195, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 22px rgba(0, 0, 0, 0.14);
  transition: border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.asteroid-progress-heading {
  align-items: center;
  margin-bottom: 10px;
}

.asteroid-progress-copy {
  min-width: 0;
}

.asteroid-progress-heading h2 {
  color: #e7f2ff;
  font-size: clamp(14px, 1.65vw, 18px);
  letter-spacing: 0.01em;
}

.asteroid-column-goal {
  margin: 3px 0 0;
  color: #b7c9e8;
  font-size: clamp(10px, 1.15vw, 12px);
  font-weight: 700;
}

.asteroid-column-goal strong {
  color: #ffe294;
}

.asteroid-column-gates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(4px, 0.8vw, 8px);
  margin-bottom: 10px;
}

.asteroid-column-gate {
  min-height: 38px;
  gap: 5px;
  padding: 6px 5px;
  color: #abb5cc;
  font-size: clamp(9px, 1.1vw, 12px);
  transition: border-color 240ms ease, color 240ms ease, background 240ms ease,
    box-shadow 240ms ease, transform 240ms ease, opacity 240ms ease;
}

.asteroid-gate-lock {
  flex: 0 0 auto;
  font-size: 13px;
}

.asteroid-column-gate.is-unconfigured {
  opacity: 0.55;
}

.asteroid-column-gate.is-unlocked {
  border-color: rgba(105, 240, 168, 0.62);
  background: linear-gradient(135deg, rgba(28, 91, 65, 0.62), rgba(20, 52, 48, 0.8));
  color: #c3ffdc;
  box-shadow: 0 0 12px rgba(105, 240, 168, 0.14);
}

.asteroid-column-gate.is-direct-access {
  border-color: rgba(139, 195, 255, 0.48);
  background: rgba(44, 66, 104, 0.45);
  color: #d3e6ff;
}

.asteroid-column-gate.is-celebrating {
  animation: asteroid-column-cheer 850ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.asteroid-column-status {
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid rgba(177, 191, 224, 0.2);
  border-radius: 999px;
  background: rgba(13, 19, 34, 0.72);
  color: #c9d8f3;
  line-height: 1.3;
}

.asteroid-column-status[aria-live="polite"] {
  transition: color 240ms ease, border-color 240ms ease, background 240ms ease;
}

.asteroid-group.has-completed-column {
  border-color: rgba(139, 195, 255, 0.4);
}

.asteroid-group.is-asteroid-unlocked {
  border-color: rgba(105, 240, 168, 0.42);
}

.asteroid-group.is-unlocking {
  animation: asteroid-section-unlocking 2.4s ease both;
}

.topic-button.is-dashboard-unlocking,
.asteroid-group .topic-asteroid.is-asteroid-unlocking {
  animation: asteroid-button-unlocking 2.4s ease both;
}

.asteroid-group .topic-asteroid.is-asteroid-unlocking::before {
  animation: asteroid-unlock-aura 2.4s ease both;
}

.topic-button .dashboard-unlock-overlay {
  top: 50%;
  right: auto;
  left: 50%;
  width: 54px;
  height: 54px;
  border-color: rgba(214, 230, 255, 0.86);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(48, 66, 111, 0.98), rgba(19, 27, 49, 0.98));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42), 0 0 20px rgba(145, 197, 255, 0.32);
  transform: translate(-50%, -50%);
  opacity: 1;
}

.topic-button .dashboard-unlock-overlay.is-opening {
  animation: dashboard-lock-opening 2.4s cubic-bezier(0.22, 0.68, 0.22, 1) forwards;
}

.topic-button .dashboard-unlock-overlay .lock-padlock {
  font-size: 34px;
  animation: none;
}

.asteroid-group .topic-asteroid .asteroid-unlock-overlay {
  width: 68px;
  height: 68px;
  border-radius: 22px;
}

.topic-button .dashboard-unlock-overlay.is-open .lock-padlock {
  filter: drop-shadow(0 0 9px rgba(255, 226, 148, 0.85));
}

@keyframes asteroid-column-cheer {
  0%, 100% { transform: scale(1); }
  32% { transform: scale(1.09); box-shadow: 0 0 0 4px rgba(105, 240, 168, 0.22), 0 0 22px rgba(105, 240, 168, 0.3); }
  68% { transform: scale(0.98); }
}

@keyframes asteroid-section-unlocking {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 22px rgba(0, 0, 0, 0.14); }
  42% { box-shadow: 0 0 0 3px rgba(105, 240, 168, 0.18), 0 0 30px rgba(105, 240, 168, 0.26); }
}

@keyframes asteroid-button-unlocking {
  0%, 28% { opacity: 0.7; filter: saturate(0.65) brightness(0.8); transform: scale(0.97); }
  48% { opacity: 1; filter: saturate(1.2) brightness(1.35); transform: scale(1.045); }
  100% { opacity: 1; filter: saturate(1) brightness(1); transform: scale(1); }
}

@keyframes asteroid-unlock-aura {
  0%, 28% { opacity: 0.12; }
  52% { opacity: 1; filter: drop-shadow(0 0 22px rgba(105, 240, 168, 0.8)); }
  100% { opacity: 0.72; }
}

@keyframes dashboard-lock-opening {
  0%, 24% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
  40% { opacity: 1; transform: translate(-50%, -50%) scale(1.16) rotate(-8deg); }
  58% { opacity: 0.94; transform: translate(-50%, -50%) scale(1.2) rotate(7deg); }
  100% { opacity: 0; transform: translate(-50%, -68%) scale(0.3) rotate(12deg); }
}

@media (max-width: 650px) {
  .asteroid-progress-heading {
    align-items: flex-start;
  }

  .asteroid-column-gate {
    min-height: 45px;
    flex-direction: column;
    gap: 2px;
    padding: 5px 2px;
    font-size: 9px;
  }

  .asteroid-column-gate .asteroid-gate-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 24px 38px, rgba(255, 255, 255, 0.72), transparent),
    radial-gradient(1px 1px at 112px 86px, rgba(174, 207, 255, 0.62), transparent),
    radial-gradient(1.5px 1.5px at 72px 142px, rgba(255, 226, 148, 0.58), transparent);
  background-size: 180px 180px;
  content: "";
  opacity: 0.42;
  pointer-events: none;
}

.install-app-button,
.topic-button,
.minutes-counter,
.back-button {
  min-height: 48px;
}

.home-page {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.topic-column {
  border-width: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.24);
}

.topic-column .topic-group-title {
  justify-content: flex-start;
  min-height: 34px;
  font-size: clamp(12px, 1.3vw, 15px);
}

.topic-column .topic-group-title .column-star-meter {
  margin-left: auto;
  color: #ffe294;
  font-size: clamp(15px, 1.8vw, 19px);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.topic-column .topic-button {
  min-height: clamp(112px, 12vh, 132px);
  padding: 32px 11px 30px;
  border-width: 3px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18), 0 7px 0 rgba(0, 0, 0, 0.32), 0 12px 18px rgba(0, 0, 0, 0.24);
  transition: transform 160ms ease, border-color 220ms ease, filter 220ms ease, opacity 240ms ease, box-shadow 160ms ease;
}

.topic-column .topic-button:active {
  transform: translateY(4px) scale(0.98);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), 0 2px 0 rgba(0, 0, 0, 0.32), 0 5px 9px rgba(0, 0, 0, 0.2);
}

.topic-column .topic-practice-button {
  min-height: clamp(108px, 11vh, 120px);
  border-style: dashed;
}

.practice-column-note {
  position: absolute;
  z-index: 2;
  right: 7px;
  bottom: 5px;
  left: 7px;
  overflow: hidden;
  color: rgba(247, 248, 255, 0.92);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-column .game-state-cue,
.topic-column .game-reward-badge {
  min-height: 26px;
  padding: 4px 7px;
  font-size: 14px;
  line-height: 1.1;
}

.topic-column .game-reward-badge {
  right: 5px;
  bottom: 5px;
}

.topic-column .game-state-cue {
  top: 5px;
  right: 5px;
  max-width: calc(100% - 10px);
}

.topic-column .topic-button.is-game-locked .game-state-cue {
  right: auto;
  left: 5px;
  max-width: calc(100% - 48px);
}

.topic-column .topic-button.is-game-locked {
  filter: saturate(0.86) brightness(0.88);
  opacity: 1;
}

.topic-column .topic-button.is-game-locked .topic-emoji,
.topic-column .topic-button.is-game-locked .topic-label {
  filter: none;
  opacity: 1;
}

.topic-column .topic-button.is-game-unlocked:not(.is-game-completed) {
  animation: next-node-pulse 2.8s ease-in-out infinite;
}

.practice-link {
  stroke-dasharray: 5 7;
  transition: opacity 300ms ease, stroke-width 300ms ease, filter 300ms ease;
}

.practice-link.is-completed {
  stroke-dasharray: none;
  stroke-width: 3.8;
  opacity: 1;
}

.asteroid-group {
  padding: clamp(10px, 1.5vw, 16px);
  border-width: 2px;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(139, 195, 255, 0.2), transparent 46%),
    linear-gradient(120deg, rgba(38, 55, 93, 0.92), rgba(15, 22, 39, 0.96));
}

.asteroid-column-goal {
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.35;
}

.asteroid-column-status {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

.asteroid-column-gate {
  min-height: 48px;
  padding: 6px 8px;
  font-size: 14px;
}

.asteroid-gate-lock {
  min-width: 28px;
  font-size: 15px;
  text-align: center;
}

.asteroid-column-gate.is-direct-access:not(.is-completed) {
  border-style: dashed;
  background: rgba(44, 66, 104, 0.24);
}

.asteroid-group .topic-asteroid {
  min-height: 110px;
  border-width: 3px;
  border-color: rgba(177, 207, 255, 0.6);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 0 8px 0 rgba(0, 0, 0, 0.32), 0 14px 24px rgba(0, 0, 0, 0.28);
}

.asteroid-group .topic-asteroid.is-game-locked {
  filter: saturate(0.82) brightness(0.9);
}

.asteroid-group .topic-asteroid:not(.is-game-locked) {
  min-height: 126px;
  border-color: rgba(144, 255, 197, 0.78);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(105, 240, 168, 0.28), transparent 58%),
    linear-gradient(125deg, #1d5a48, #182f3d 58%, #202c53);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22), 0 8px 0 rgba(4, 33, 25, 0.72), 0 0 24px rgba(105, 240, 168, 0.24);
}

.asteroid-group .topic-asteroid:not(.is-game-locked) .topic-emoji {
  animation: asteroid-grand-game 2.8s ease-in-out infinite;
}

.asteroid-group .topic-asteroid.is-game-locked .topic-emoji {
  animation: none;
}

.asteroid-star-slots {
  position: relative;
  z-index: 1;
  color: #ffe294;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 900;
  letter-spacing: 0.22em;
  line-height: 1;
}

.asteroid-group .topic-asteroid:not(.is-game-locked) .topic-label {
  max-width: 100%;
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: 0.06em;
}

@keyframes next-node-pulse {
  0%, 100% { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18), 0 7px 0 rgba(0, 0, 0, 0.32), 0 12px 18px rgba(0, 0, 0, 0.24); }
  50% { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22), 0 7px 0 rgba(0, 0, 0, 0.32), 0 12px 24px rgba(105, 240, 168, 0.26); }
}

@media (max-width: 900px) {
  .asteroid-progress-heading {
    align-items: stretch;
  }

  .asteroid-column-status {
    max-width: 100%;
    text-align: left;
  }
}

@media (max-width: 650px) {
  .topic-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-column .topic-button {
    min-height: 108px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .asteroid-column-gate {
    min-height: 48px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topic-column .topic-button.is-game-unlocked:not(.is-game-completed),
  .topic-column .topic-button.is-practice-required,
  .asteroid-group .topic-asteroid:not(.is-game-locked) .topic-emoji,
  .asteroid-group .topic-asteroid:not(.is-game-locked)::before,
  .asteroid-group .topic-asteroid.is-game-unlocked,
  .topic-button.is-game-unlocked,
  .practice-link {
    animation: none !important;
  }

  .topic-column .topic-button {
    transition: none;
  }
}

.topbar .dashboard-music-toggle {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: inline-flex;
  min-width: 88px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(164, 211, 255, 0.3);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(42, 63, 101, 0.92), rgba(20, 29, 49, 0.96));
  color: #e8f4ff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  touch-action: manipulation;
}

.topbar .dashboard-music-toggle[hidden] {
  display: none;
}

.dashboard-music-toggle:not(:disabled):active {
  transform: scale(0.96);
}

.dashboard-music-toggle:focus-visible {
  outline: 3px solid #fff0a8;
  outline-offset: 3px;
}

.dashboard-music-toggle.is-muted {
  border-color: rgba(192, 202, 220, 0.2);
  color: #c2ccdc;
}

.dashboard-music-icon {
  font-size: 18px;
  line-height: 1;
}

.dashboard-music-status {
  margin: 0 0 9px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 157, 191, 0.32);
  border-radius: 12px;
  background: rgba(67, 25, 45, 0.55);
  color: #ffd5e1;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-music-status[hidden] {
  display: none;
}

.topic-column .topic-button.is-game-locked::after,
.asteroid-group .topic-asteroid.is-game-locked::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.5);
  content: "";
  pointer-events: none;
}

.topic-column .topic-button.is-game-locked .topic-emoji,
.topic-column .topic-button.is-game-locked .topic-label,
.topic-column .topic-button.is-game-locked .practice-column-note,
.asteroid-group .topic-asteroid.is-game-locked .topic-emoji,
.asteroid-group .topic-asteroid.is-game-locked .topic-label {
  z-index: 3;
}

.asteroid-launch-row {
  display: grid;
  grid-template-columns: minmax(84px, 112px) 42px minmax(0, 1fr);
  align-items: center;
  gap: 0;
}

.asteroid-fuel-system {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  color: #c8d8ef;
}

.asteroid-fuel-caption {
  color: #9eb4d5;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.18em;
}

.asteroid-fuel-cylinder {
  position: relative;
  width: 70px;
  height: 104px;
  overflow: visible;
  border: 4px solid rgba(183, 207, 240, 0.72);
  border-radius: 22px 22px 18px 18px / 18px 18px 14px 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 25%, transparent 76%, rgba(0, 0, 0, 0.28)),
    linear-gradient(180deg, #25344d, #111b2d);
  box-shadow: inset 0 0 0 2px rgba(8, 15, 29, 0.55), 0 7px 16px rgba(0, 0, 0, 0.35);
}

.asteroid-fuel-cylinder::before {
  position: absolute;
  top: -11px;
  left: 21px;
  width: 20px;
  height: 8px;
  border: 3px solid rgba(183, 207, 240, 0.72);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  content: "";
}

.asteroid-fuel-fill {
  position: absolute;
  z-index: 0;
  right: 3px;
  bottom: 3px;
  left: 3px;
  height: calc(100% - 6px);
  border-radius: 14px 14px 11px 11px / 12px 12px 10px 10px;
  background:
    repeating-linear-gradient(0deg, transparent 0 16px, rgba(255, 255, 255, 0.11) 16px 18px),
    linear-gradient(180deg, #a6ffbf, #3bd58b 48%, #168e79);
  box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.24), 0 0 14px rgba(89, 255, 180, 0.45);
  transform: scaleY(0);
  transform-origin: bottom;
}

.asteroid-fuel-percent {
  position: absolute;
  z-index: 2;
  right: -9px;
  bottom: 38px;
  left: -9px;
  color: #fff;
  font-size: 18px;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 6px rgba(4, 12, 24, 0.9), 0 0 10px rgba(4, 12, 24, 0.8);
}

.asteroid-fuel-hose {
  position: relative;
  z-index: 0;
  height: 14px;
  margin-left: -3px;
  border: 2px solid rgba(176, 202, 236, 0.68);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(180deg, #536987, #1d2b42);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.asteroid-fuel-hose::after {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: inherit;
  background: #64f2b2;
  box-shadow: 0 0 12px #64f2b2;
  content: "";
}

.asteroid-fuel-system.is-refueling .asteroid-fuel-cylinder {
  animation: asteroid-fuel-lift 4.2s ease-in-out both;
}

.asteroid-fuel-system.is-refueling .asteroid-fuel-hose::after {
  animation: asteroid-fuel-flow 4.2s ease-in-out both;
}

.asteroid-fuel-system.is-refueling .asteroid-fuel-fill {
  box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.35), 0 0 24px rgba(89, 255, 180, 0.78);
}

.asteroid-group .asteroid-launch-row > .topic-asteroid {
  grid-column: 3;
  min-height: 126px;
  width: 100%;
}

.asteroid-group .topic-asteroid .topic-label {
  max-width: 100%;
  margin-right: 0;
}

.asteroid-group .topic-asteroid.is-asteroid-unlocking,
.asteroid-group.is-unlocking {
  animation-duration: 3.2s;
}

.asteroid-group .topic-asteroid.is-asteroid-unlocking::before {
  animation-duration: 3.2s;
}

.asteroid-group .topic-asteroid .asteroid-unlock-overlay.is-opening {
  animation-duration: 3.2s;
}

.letter-blaster-target {
  overflow: hidden;
  border: 3px solid rgba(190, 213, 244, 0.72);
  border-radius: 28% 22% 30% 25% / 23% 29% 24% 31%;
  background:
    radial-gradient(ellipse at 29% 29%, rgba(18, 30, 48, 0.64) 0 5%, transparent 6%),
    radial-gradient(ellipse at 72% 58%, rgba(18, 30, 48, 0.55) 0 8%, transparent 9%),
    radial-gradient(ellipse at 44% 80%, rgba(202, 218, 237, 0.18) 0 5%, transparent 6%),
    radial-gradient(ellipse at 50% 32%, rgba(221, 235, 255, 0.3), transparent 47%),
    linear-gradient(145deg, #647995, #354866 55%, #202e45);
  box-shadow: inset 9px 10px 18px rgba(255, 255, 255, 0.12), inset -12px -14px 22px rgba(5, 12, 23, 0.48),
    0 10px 0 rgba(5, 12, 23, 0.38), 0 16px 24px rgba(0, 0, 0, 0.3);
  text-shadow: 0 4px 12px rgba(5, 12, 23, 0.72);
}

.alphabet-choice.letter-blaster-target.is-correct {
  border-color: rgba(190, 213, 244, 0.86);
  background:
    radial-gradient(ellipse at 29% 29%, rgba(18, 30, 48, 0.64) 0 5%, transparent 6%),
    radial-gradient(ellipse at 72% 58%, rgba(18, 30, 48, 0.55) 0 8%, transparent 9%),
    radial-gradient(ellipse at 44% 80%, rgba(202, 218, 237, 0.18) 0 5%, transparent 6%),
    linear-gradient(145deg, #647995, #354866 55%, #202e45);
  color: #fff;
}

.letter-blaster-letter {
  position: relative;
  z-index: 2;
}

.letter-blaster-target.is-exploding {
  overflow: visible;
  animation: letter-blaster-target-burst 720ms cubic-bezier(0.18, 0.72, 0.22, 1) forwards;
}

.letter-blaster-target.is-exploding .letter-blaster-letter,
.letter-blaster-target.is-exploding::after {
  opacity: 0;
}

.letter-blaster-fragments {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.letter-blaster-fragment {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 19px;
  border: 2px solid rgba(218, 232, 249, 0.64);
  border-radius: 36% 54% 30% 52%;
  background: linear-gradient(145deg, #9fb3ce, #536984 62%, #293a52);
  box-shadow: 0 0 10px rgba(153, 212, 255, 0.58);
  animation: letter-blaster-fragment-burst 680ms cubic-bezier(0.14, 0.74, 0.2, 1) var(--fragment-delay) forwards;
}

.letter-blaster-fragment:nth-child(3n) {
  width: 17px;
  height: 15px;
  background: linear-gradient(145deg, #becce0, #637993 65%, #354861);
}

@keyframes letter-blaster-target-burst {
  0% { opacity: 1; transform: scale(1) rotate(0); filter: brightness(1); }
  18% { opacity: 1; transform: scale(1.12) rotate(-2deg); filter: brightness(2.4); }
  100% { opacity: 0; transform: scale(0.55) rotate(10deg); filter: brightness(1.7); }
}

@keyframes letter-blaster-fragment-burst {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0) scale(1); }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--fragment-x)), calc(-50% + var(--fragment-y))) rotate(190deg) scale(0.35);
  }
}

@keyframes asteroid-fuel-lift {
  0%, 100% { filter: brightness(1); transform: translateY(0); }
  18%, 72% { filter: brightness(1.45) drop-shadow(0 0 14px rgba(89, 255, 180, 0.5)); transform: translateY(-4px); }
}

@keyframes asteroid-fuel-flow {
  0% { width: 0; opacity: 0.3; }
  18%, 82% { width: 100%; opacity: 1; }
  100% { width: 0; opacity: 0.3; }
}

@media (max-width: 650px) {
  .asteroid-launch-row {
    grid-template-columns: 66px 22px minmax(0, 1fr);
  }

  .asteroid-fuel-cylinder {
    width: 54px;
    height: 88px;
  }

  .asteroid-fuel-cylinder::before {
    left: 13px;
  }

  .asteroid-fuel-percent {
    bottom: 32px;
    font-size: 15px;
  }

  .asteroid-group .asteroid-launch-row > .topic-asteroid {
    min-height: 112px;
  }

  .asteroid-group .asteroid-launch-row > .topic-asteroid .topic-label {
    font-size: clamp(17px, 4vw, 22px);
  }

  .letter-blaster-targets {
    gap: 10px;
  }

  .letter-blaster-target {
    min-height: clamp(142px, 24vh, 205px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .asteroid-fuel-system.is-refueling .asteroid-fuel-cylinder,
  .asteroid-fuel-system.is-refueling .asteroid-fuel-hose::after,
  .letter-blaster-target.is-exploding,
  .letter-blaster-fragment {
    animation-duration: 1ms !important;
  }
}
