@font-face {
  font-family: "Andika";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/andika-latin-400.woff2") format("woff2");
}

/* 历史基础样式；当前孩子首页使用太阳系地图 */
.island-home {
  display: grid;
  gap: 16px;
  padding: 4px 0 18px;
}

.island-mission-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  min-height: 210px;
  padding: 24px 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  background: linear-gradient(145deg, #ffffff 0%, #f7fdff 68%, #dff8ee 100%);
  box-shadow: 0 18px 45px rgba(57, 103, 128, 0.13);
}

.island-eyebrow {
  margin: 0 0 8px;
  color: #3b9d7b;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.island-mission-card h2 {
  margin: 0 0 8px;
  color: #24324a;
  font-size: clamp(30px, 4vw, 48px);
}

.island-subtitle {
  margin: 0 0 18px;
  color: #6f7c91;
  font-size: 18px;
}

.island-task-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.island-task-chips span {
  padding: 9px 14px;
  border-radius: 14px;
  color: #435064;
  background: #eef5f8;
  font-weight: 800;
}

.island-task-chips .review {
  color: #624eb0;
  background: #eeeaff;
}

.island-start-button {
  min-width: 190px;
}

.island-mascot {
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  border-radius: 48% 52% 45% 55%;
  background: #72d6ae;
  box-shadow: inset 0 -14px 0 rgba(37, 137, 101, 0.1);
  font-size: 58px;
  transform: rotate(3deg);
}

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

.island-card {
  position: relative;
  min-height: 142px;
  padding: 16px 19px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 48% 52% 44% 56% / 45% 43% 57% 55%;
  background: linear-gradient(145deg, #93e4bd, #61cb9e);
  box-shadow: 0 12px 0 rgba(45, 117, 126, 0.12), 0 20px 28px rgba(45, 117, 126, 0.13);
}

.island-card:nth-child(even) {
  background: linear-gradient(145deg, #ffe28a, #ffc958);
}

.island-card.current {
  outline: 5px solid rgba(255, 201, 74, 0.34);
}

.island-card.locked {
  filter: saturate(0.15);
  opacity: 0.65;
}

.island-card.complete::after {
  content: "★";
  position: absolute;
  top: 12px;
  right: 20px;
  color: #fff4a8;
  font-size: 34px;
  text-shadow: 0 3px 0 rgba(134, 100, 16, 0.18);
}

.island-card strong {
  display: block;
  color: #24324a;
  font-size: 21px;
}

.island-card-icon {
  margin: 4px 0 7px;
  font-size: 36px;
}

.island-levels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.island-levels i {
  width: 40px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.island-level {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 4px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  color: #65501d;
  background: #ffc94a;
  font-weight: 900;
  box-shadow: 0 5px 0 rgba(91, 72, 23, 0.15);
}

.island-level.done {
  color: #fff;
  background: #3eb28a;
}

.mastery-counter {
  color: #287f63;
  background: #e9fff7;
}

@media (max-width: 920px) {
  .island-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .island-mission-card { grid-template-columns: 1fr 130px; }
  .island-mascot { width: 125px; height: 125px; font-size: 54px; }
}

@font-face {
  font-family: "Andika";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/andika-latin-700.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --word-font: "Andika", "Trebuchet MS", Arial, sans-serif;
  --bg: #edf8f5;
  --panel: #fbfdf8;
  --surface: #f3fbf3;
  --control: #fffdf7;
  --ink: #20343a;
  --muted: #61747a;
  --line: #cfe1da;
  --blue: #4f87a3;
  --green: #4f9378;
  --red: #b56560;
  --amber: #c8963f;
  --peach: #efaa90;
  --mint: #a7dbbd;
  --sky: #a8d8ef;
  --lemon: #efd665;
  --soft-blue: #e6f4fb;
  --soft-green: #e5f6ec;
  --soft-red: #f7e7e2;
  --shadow: 0 12px 28px rgba(32, 52, 58, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  touch-action: pan-x pan-y;
}

body {
  background:
    linear-gradient(90deg, rgba(79, 135, 163, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(79, 147, 120, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #fffdf5 0, #f4fbf7 280px, var(--bg) 100%),
    var(--bg);
  background-size: 28px 28px, 28px 28px, auto, auto;
  color: var(--ink);
  font-family: var(--ui-font);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(79, 135, 163, 0.18);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app {
  width: min(980px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 20px 0 28px;
}

.orientation-lock {
  display: none;
}

@media (orientation: portrait) {
  .orientation-lock {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background: var(--bg);
    color: var(--ink);
    padding: 24px;
    text-align: center;
  }

  .orientation-lock > div {
    display: grid;
    gap: 10px;
    max-width: 360px;
  }

  .orientation-lock strong {
    font-size: 32px;
  }

  .orientation-lock span {
    color: var(--muted);
    font-size: 18px;
  }
}

.topbar,
.parent-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.94);
  padding: 12px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-actions,
.parent-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.star-counter {
  display: inline-flex;
  min-height: 42px;
  min-width: 86px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200, 150, 63, 0.42);
  border-radius: 8px;
  background: #fff6c8;
  color: #5b4b1a;
  padding: 0 14px;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 3px 0 rgba(200, 150, 63, 0.12);
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--sky) 0 48%, var(--lemon) 48% 82%, var(--peach) 82% 100%);
  color: #2f3f3c;
  font-weight: 800;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.42);
}

.brand h1 {
  font-size: 24px;
  line-height: 1.1;
}

#progressText,
.muted-text,
.field span,
.word-cn,
.quiz-meta,
.done-copy {
  color: var(--muted);
}

.child-view {
  display: grid;
  gap: 16px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.child-view button,
.child-view canvas,
.child-view .hero-panel,
.child-view .quiz-card,
.child-view .study-card,
.child-view .write-card,
.child-view .done-card {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.child-view input,
.child-view select,
.child-view textarea {
  -webkit-user-select: text;
  user-select: text;
}

.app-version {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.hero-panel,
.panel,
.quiz-card,
.study-card,
.write-card,
.done-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.compact-hero {
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
  box-shadow: none;
}

.compact-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--peach), var(--lemon), var(--mint), var(--sky));
}

.hero-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.hero-title {
  overflow-wrap: anywhere;
  font-size: clamp(30px, 6vw, 64px);
  line-height: 1.06;
  font-weight: 850;
}

.compact-hero .hero-title {
  font-size: 22px;
}

.hero-subtitle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 18px;
}

.compact-hero .hero-subtitle {
  margin-top: 4px;
  font-size: 15px;
}

.word-progress {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.word-dot {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(79, 135, 163, 0.28);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.9);
}

.word-dot.done {
  border-color: rgba(79, 147, 120, 0.34);
  background: var(--mint);
}

.word-dot.active {
  border-color: rgba(200, 150, 63, 0.46);
  background: var(--lemon);
  box-shadow: 0 0 0 4px rgba(239, 214, 101, 0.24);
}

.word-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.word-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
  min-height: 92px;
}

.word-tile strong,
.record-card strong {
  display: block;
  overflow-wrap: anywhere;
}

.word-tile strong,
.masked-word,
.choice-button,
.study-word,
.single-write-word,
.write-word,
.image-card strong {
  font-family: var(--word-font);
  font-variant-ligatures: none;
}

.word-cn {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

.step-indicator {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  max-width: min(560px, 48vw);
  pointer-events: none;
}

.step-pill {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 6px;
  align-items: center;
  min-height: 28px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: default;
  user-select: none;
}

.step-index {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.95);
  color: #7b8278;
  box-shadow: inset 0 0 0 1px rgba(84, 99, 91, 0.16);
  font-size: 12px;
  font-weight: 900;
}

.step-name {
  white-space: nowrap;
}

.step-pill.active {
  color: #51472b;
}

.step-pill.done {
  color: #557765;
}

.step-pill.active .step-index {
  background: var(--lemon);
  color: #51472b;
  box-shadow: 0 0 0 4px rgba(239, 214, 101, 0.22);
}

.step-pill.done .step-index {
  background: #a8ddb8;
  color: #245c45;
  box-shadow: inset 0 0 0 1px rgba(79, 147, 120, 0.24);
  font-size: 15px;
}

.quiz-card,
.study-card,
.write-card,
.done-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.focus-card {
  position: relative;
  overflow: hidden;
  min-height: min(560px, calc(100vh - 210px));
  align-content: center;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.9), rgba(243, 251, 243, 0.84)),
    var(--panel);
  transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.focus-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: linear-gradient(90deg, var(--peach), var(--lemon), var(--mint), var(--sky));
}

.focus-card.ok {
  border-color: rgba(93, 127, 108, 0.55);
  background: var(--panel);
}

.focus-card.no {
  border-color: rgba(169, 155, 239, 0.58);
  background: var(--panel);
}

.quiz-top,
.write-top,
.panel-head {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.quiz-top h2,
.write-top h2 {
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.08;
}

.study-card {
  grid-template-rows: minmax(0, 1fr) auto;
  text-align: center;
  align-content: stretch;
}

.study-card .submit-strip {
  justify-content: center;
  text-align: center;
}

.study-card .write-actions {
  justify-content: center;
}

.study-main {
  display: grid;
  gap: 18px;
  align-content: center;
  justify-items: center;
  min-height: 0;
}

.study-nav-strip {
  align-self: end;
  min-height: 112px;
}

.study-nav-actions {
  display: grid;
  grid-template-columns: minmax(132px, 132px) minmax(220px, max-content);
  justify-content: center;
  align-items: center;
  min-height: 48px;
}

.study-nav-button {
  min-width: 132px;
}

.study-next-button {
  min-width: 220px;
}

.invisible-nav-button {
  visibility: hidden;
  pointer-events: none;
}

.study-word {
  overflow-wrap: anywhere;
  font-size: clamp(46px, 10vw, 92px);
  line-height: 1.04;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.7);
}

.study-cn {
  color: #9d6058;
  font-size: clamp(24px, 5vw, 44px);
  font-weight: 800;
}

.study-example {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.study-example-row {
  display: inline-flex;
  max-width: min(680px, 100%);
  justify-content: center;
  align-items: center;
  gap: 10px;
  justify-self: center;
  flex-wrap: wrap;
}

.sound-button {
  justify-self: center;
  min-width: min(260px, 100%);
  min-height: 58px;
  border: 1px solid rgba(79, 147, 120, 0.38);
  border-radius: 8px;
  background: linear-gradient(180deg, #effbef, #dff4e6);
  color: #2f654f;
  font-weight: 850;
  box-shadow: 0 3px 0 rgba(79, 147, 120, 0.16);
}

.mini-sound-button {
  min-height: 34px;
  border: 1px solid rgba(79, 135, 163, 0.28);
  border-radius: 8px;
  background: var(--soft-blue);
  color: #4f7182;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 800;
}

.quiz-sound-button {
  min-width: min(320px, 100%);
  min-height: 66px;
  font-size: 22px;
}

.dictation-hint {
  color: var(--muted);
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}

.quiz-meta {
  font-weight: 700;
}

.masked-word {
  overflow-wrap: anywhere;
  font-size: clamp(44px, 8vw, 76px);
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: 0;
  white-space: pre-wrap;
  text-align: center;
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 14px;
  width: min(520px, 100%);
  justify-self: center;
}

.word-choices {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  width: min(680px, 100%);
}

.choice-button {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--control);
  color: var(--ink);
  font-size: 34px;
  font-weight: 800;
  box-shadow: 0 3px 0 rgba(79, 135, 163, 0.08);
}

.chunk-choice-button {
  font-size: clamp(30px, 5vw, 42px);
  letter-spacing: 0;
}

.word-choice-button {
  min-height: 92px;
  font-size: clamp(24px, 4vw, 34px);
}

.meaning-answer {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.meaning-answer strong {
  overflow-wrap: anywhere;
  font-family: var(--word-font);
  font-size: clamp(44px, 8vw, 76px);
  line-height: 1.08;
}

.remember-button {
  justify-self: center;
  min-width: min(260px, 100%);
  min-height: 62px;
}

.choice-button:active {
  border-color: var(--blue);
  background: var(--soft-blue);
}

@media (hover: hover) and (pointer: fine) {
  .choice-button:hover,
  .plain-button:hover,
  .quiet-button:hover,
  .icon-button:hover {
    border-color: var(--blue);
    background: var(--soft-blue);
  }
}

.feedback {
  min-height: 28px;
  text-align: center;
  font-weight: 800;
}

.feedback.no {
  display: inline-flex;
  justify-self: center;
  min-height: 34px;
  align-items: center;
  border-radius: 8px;
  background: #fff4c9;
  padding: 0 14px;
}

.feedback.ok {
  color: var(--green);
}

.feedback.no {
  color: #745d1d;
}

.write-list {
  display: grid;
  gap: 14px;
}

.write-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.write-prompt {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.write-word {
  overflow-wrap: anywhere;
  font-size: clamp(24px, 5vw, 42px);
  line-height: 1.08;
  font-weight: 850;
}

.single-write-word {
  overflow-wrap: anywhere;
  text-align: center;
  font-size: clamp(38px, 8vw, 82px);
  line-height: 1.05;
  font-weight: 900;
}

.single-write-item {
  background: transparent;
  border: 0;
  padding: 0;
}

.single-canvas {
  height: min(470px, 52vh);
}

.writing-canvas,
.correction-canvas {
  display: block;
  width: 100%;
  height: 210px;
  border: 1px solid #cfd8cf;
  border-radius: 8px;
  background:
    linear-gradient(0deg, transparent 31px, rgba(184, 206, 216, 0.22) 32px),
    #f2f6ea;
  background-size: 100% 32px, auto;
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.32),
    inset 12px 0 0 rgba(232, 180, 158, 0.16);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.correction-canvas {
  height: 180px;
}

.write-actions,
.dialog-actions,
.stack-actions,
.correction-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.submit-strip {
  position: static;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.done-card {
  min-height: 420px;
  place-items: center;
  text-align: center;
}

.done-title {
  color: #557765;
  font-size: clamp(40px, 8vw, 76px);
  line-height: 1;
  font-weight: 900;
}

.reward-line {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid rgba(200, 150, 63, 0.38);
  border-radius: 8px;
  background: #fff6c8;
  color: #5b4b1a;
  padding: 12px 18px;
  font-size: 24px;
  font-weight: 900;
  transform-origin: center;
  animation: reward-pop 520ms cubic-bezier(0.2, 1.2, 0.28, 1) both;
}

.reward-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, 0.52) 48%, transparent 62% 100%);
  transform: translateX(-120%);
  pointer-events: none;
  animation: reward-shine 900ms ease-out 160ms both;
}

.reward-star {
  display: inline-block;
  font-size: 32px;
  line-height: 1;
  transform-origin: 50% 80%;
  filter: drop-shadow(0 5px 0 rgba(200, 150, 63, 0.16));
  animation: reward-star-hop 900ms ease-out both;
}

.reward-total {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}

.done-content {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.done-content .done-copy {
  margin: 0;
}

.done-actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.primary-button,
.plain-button,
.quiet-button,
.icon-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: var(--control);
  color: var(--ink);
}

.primary-button {
  border-color: rgba(79, 135, 163, 0.56);
  background: linear-gradient(180deg, #5d97b2, #4f7f99);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 3px 0 rgba(42, 86, 103, 0.18);
}

@keyframes reward-pop {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
  58% {
    opacity: 1;
    transform: translateY(-2px) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes reward-star-hop {
  0% {
    transform: translateY(0) scale(0.82) rotate(-8deg);
  }
  28% {
    transform: translateY(-18px) scale(1.18) rotate(10deg);
  }
  48% {
    transform: translateY(0) scale(0.98) rotate(-4deg);
  }
  68% {
    transform: translateY(-8px) scale(1.08) rotate(5deg);
  }
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes reward-shine {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reward-line,
  .reward-line::after,
  .reward-star {
    animation: none;
  }
}

.quiet-button {
  color: var(--muted);
}

.icon-button {
  display: inline-grid;
  width: 42px;
  padding: 0;
  place-items: center;
  font-weight: 900;
}

.danger-button {
  color: var(--red);
}

.dialog {
  width: min(440px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
}

.dialog::backdrop {
  background: rgba(24, 32, 51, 0.38);
}

.dialog-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-setup {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  place-items: center;
  padding: 28px;
  background: radial-gradient(circle at 50% 20%, rgba(28, 91, 139, 0.96), rgba(2, 7, 19, 0.99) 68%);
}

.account-setup[hidden] { display: none; }

.account-setup-card {
  width: min(590px, 92vw);
  padding: 30px 40px;
  border: 3px solid #71e7ff;
  border-radius: 28px;
  background: #f8f3df;
  color: #123945;
  box-shadow: 0 18px 0 rgba(0, 32, 48, 0.42);
  text-align: center;
}

.account-setup-card .brand-mark { margin: 0 auto 10px; }
.account-setup-card h2 { margin: 4px 0 8px; font-size: 34px; }
.account-setup-copy { margin: 0 0 14px; color: #587078; }
.account-kicker { margin: 0; color: #147b86; font-weight: 800; letter-spacing: 0.08em; }
.account-setup-card > button { width: 100%; margin-top: 10px; }

.account-existing-toggle,
.sync-panel-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  color: #526c74;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.account-existing-toggle {
  margin-top: 18px;
  padding: 12px 4px 4px;
  border-top: 1px solid #c8d0cc;
}

.account-existing-toggle > span:last-child,
.sync-panel-toggle > span:last-child { font-size: 24px; transition: transform 160ms ease; }
.account-existing-toggle[aria-expanded="true"] > span:last-child,
.sync-panel-toggle[aria-expanded="true"] > span:last-child { transform: rotate(180deg); }
.account-existing-fields { display: grid; gap: 10px; margin-top: 10px; text-align: left; }
.account-existing-fields[hidden] { display: none; }
.account-existing-fields .plain-button { width: 100%; }

.account-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 10px;
  color: #708188;
}

.account-divider::before,
.account-divider::after { content: ""; flex: 1; height: 1px; background: #c8d0cc; }

.transferred-account-card,
.account-choice-copy {
  margin: 12px 0 4px;
  padding: 12px 16px;
  border: 2px solid #9bc9c6;
  border-radius: 16px;
  background: #eaf7f2;
  text-align: left;
}

.transferred-account-card strong,
.account-choice-copy strong { display: block; font-size: 19px; }
.transferred-account-card span,
.account-choice-copy span { color: #5d7478; }

#accountSwitchDialog {
  position: fixed;
  inset: 0;
  z-index: 1900;
  width: auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: rgba(2, 7, 19, 0.78);
}

#accountSwitchDialog[hidden] { display: none; }
.account-switch-card { width: min(760px, 88vw); border-radius: 24px; background: #f8f3df; box-shadow: 0 22px 70px rgba(0,0,0,.5); }
.account-switch-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 10px; }
.account-choice { display: block; padding: 4px; border: 3px solid transparent; border-radius: 20px; cursor: pointer; }
.account-choice.selected { border-color: #1b8c94; background: #ddf4ef; }
.account-choice input { position: absolute; opacity: 0; }
.account-switch-warning { min-height: 44px; margin: 6px 0; color: #a43d2f; font-weight: 800; }

.field {
  display: grid;
  gap: 6px;
}

.field input,
.field select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--control);
  color: var(--ink);
  padding: 0 12px;
}

.pin-input {
  -webkit-text-security: disc;
  text-security: disc;
  font-variant-numeric: tabular-nums;
}

.error-text {
  min-height: 22px;
  color: var(--red);
  font-weight: 700;
}

.parent-view {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: auto;
  background:
    linear-gradient(180deg, #f5f7f1 0, var(--bg) 280px),
    var(--bg);
  padding: 20px;
}

.parent-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.parent-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.panel {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
}

.panel .panel-head {
  justify-content: space-between;
  text-align: left;
}

.status-panel {
  grid-column: 1 / -1;
}

.records-panel {
  grid-column: 1;
}

.handwriting-panel {
  grid-column: 2;
}

.settings-panel {
  grid-column: 1;
}

.sync-panel {
  grid-column: 2;
}

.sync-panel-toggle {
  padding: 2px 0 10px;
  text-align: left;
}

.sync-panel-toggle > span:first-child { display: grid; gap: 3px; }
.sync-panel-toggle strong { font-size: 20px; color: var(--ink); }
.sync-panel-toggle small { color: var(--muted); font-weight: 600; }
.sync-panel-details { display: grid; gap: 14px; }
.sync-panel-details[hidden] { display: none; }

.sync-code-card {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-blue);
  padding: 12px;
}

.sync-code-card span {
  color: var(--muted);
  font-size: 13px;
}

.sync-code-card strong {
  font-size: 21px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.status-cards {
  display: grid;
  gap: 16px;
}

.parent-status-section {
  display: grid;
  gap: 8px;
}

.parent-status-section h4 {
  margin: 0;
  color: #365f75;
  font-size: 14px;
  letter-spacing: .08em;
}

.parent-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.status-card,
.record-card,
.image-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.status-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.18;
}

.status-card span {
  color: var(--muted);
  font-size: 14px;
}

.status-card.primary-status {
  grid-column: span 2;
  border-color: rgba(79, 135, 163, 0.42);
  background: #fffdf7;
}

.status-card.primary-status strong {
  font-size: clamp(24px, 3vw, 34px);
}

.status-card.needs-attention {
  border-color: #dc8b5f;
  background: #fff7ed;
}

.status-card.needs-attention strong {
  color: #9a3f1d;
}

.status-card.wide {
  grid-column: span 2;
}

.unit-gate-card {
  display: grid;
  gap: 8px;
  align-content: start;
}

.small-confirm-button {
  min-height: 38px;
  justify-self: start;
  padding-inline: 16px;
  font-size: 15px;
}

.records-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
}

.record-card {
  width: 100%;
  text-align: left;
}

.record-card.active {
  border-color: var(--blue);
  background: var(--soft-blue);
}

.record-detail {
  display: grid;
  gap: 12px;
}

.grading-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.image-card img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf2;
}

.handwriting-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.handwriting-shot {
  display: grid;
  gap: 6px;
}

.handwriting-shot span {
  color: var(--muted);
  font-size: 13px;
}

.grading-panel {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

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

.grading-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.grade-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--control);
  color: var(--ink);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 800;
}

.grade-button.selected {
  border-color: rgba(79, 147, 120, 0.46);
  background: var(--soft-green);
  color: #2f654f;
  box-shadow: inset 0 0 0 1px rgba(79, 147, 120, 0.18);
}

.grade-button[data-grade="wrong"].selected,
.grade-button[data-grade="unclear"].selected {
  border-color: rgba(181, 101, 96, 0.48);
  background: var(--soft-red);
  color: #8c4d49;
}

.review-write-card {
  align-content: start;
}

.review-write-head {
  display: grid;
  gap: 6px;
  text-align: center;
}

.review-write-head h2 {
  font-size: 34px;
}

.review-write-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.review-write-item {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(180px, 1.2fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.review-write-word,
.review-write-original {
  display: grid;
  gap: 6px;
}

.review-write-item strong {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--word-font);
  font-size: 24px;
}

.review-write-item span {
  color: var(--muted);
}

.review-write-label,
.correction-open-label {
  font-size: 13px;
}

.correction-button,
.small-button {
  min-height: 34px;
  padding: 0 12px;
  justify-self: start;
}

.review-index {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  place-items: center;
  border-radius: 999px;
  background: var(--lemon);
  color: var(--ink);
  font-weight: 900;
}

.review-write-item img,
.missing-writing {
  width: 100%;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.missing-writing {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.review-correction {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.correction-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.correction-head span {
  color: var(--ink);
  font-weight: 800;
}

.correction-actions {
  justify-content: flex-end;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1500;
  transform: translateX(-50%) translateY(18px);
  max-width: min(520px, calc(100vw - 32px));
  border-radius: 8px;
  background: #3f5551;
  color: #fff;
  padding: 12px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%);
}

.update-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 52;
  transform: translateX(-50%) translateY(18px);
  width: min(620px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  background: #fffdf9;
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.update-banner.show {
  opacity: 1;
  transform: translateX(-50%);
  pointer-events: auto;
}

.update-banner[hidden] {
  display: none;
}

.update-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .app,
  .parent-view {
    width: 100%;
  }

  .app {
    padding: 12px 10px 24px;
  }

  .topbar,
  .hero-head,
  .submit-strip,
  .parent-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .word-strip,
  .choices,
  .parent-status-grid,
  .parent-grid {
    grid-template-columns: 1fr;
  }

  .step-indicator {
    justify-content: flex-start;
    max-width: 100%;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .writing-canvas,
  .correction-canvas {
    height: 190px;
  }

  .review-write-list,
  .review-write-item {
    grid-template-columns: 1fr;
  }
}

/* v1.1 航海绘本视觉：与 Think Words 的卡片网格体系明确区分 */
:root {
  --bg: #e9efff;
  --panel: #fffaf0;
  --surface: #f4f0ff;
  --control: #ffffff;
  --ink: #17255f;
  --muted: #66709a;
  --line: #cbd4f5;
  --blue: #2948c7;
  --green: #31a987;
  --red: #dc554b;
  --amber: #e7a72d;
  --peach: #ff735c;
  --mint: #61d7b0;
  --sky: #79c9ff;
  --lemon: #ffd95a;
  --soft-blue: #e5ebff;
  --soft-green: #e3f8f0;
  --soft-red: #ffe7df;
  --shadow: 0 10px 0 rgba(23, 37, 95, 0.1), 0 20px 45px rgba(39, 58, 130, 0.1);
}

body {
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 217, 90, 0.42) 0 5px, transparent 6px),
    radial-gradient(circle at 88% 22%, rgba(255, 115, 92, 0.28) 0 7px, transparent 8px),
    radial-gradient(circle at 72% 82%, rgba(41, 72, 199, 0.15) 0 5px, transparent 6px),
    linear-gradient(145deg, #fff8e7 0%, #eef3ff 42%, #e6f1ff 100%);
  background-size: 170px 170px, 230px 230px, 190px 190px, auto;
}

.app {
  width: min(1180px, calc(100vw - 32px));
  padding-top: 16px;
}

.voyage-topbar {
  margin-bottom: 20px;
  border: 0;
  border-radius: 28px;
  padding: 14px 18px;
  color: #fff;
  background: #243b9b;
  box-shadow: 0 8px 0 #172665, 0 18px 38px rgba(23, 38, 101, 0.2);
}

.voyage-topbar .brand-mark {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  color: #17255f;
  background: #ffd95a;
  box-shadow: inset -6px -7px 0 rgba(231, 167, 45, 0.35);
  font-size: 28px;
  transform: rotate(-8deg);
}

.voyage-topbar .brand h1 {
  margin: 0;
  color: #fff;
  font-size: 26px;
  letter-spacing: 0.05em;
}

.voyage-topbar #progressText {
  margin: 3px 0 0;
  color: #cdd7ff;
  font-size: 14px;
}

.voyage-topbar .topbar-actions {
  gap: 10px;
}

.voyage-stat {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 8px;
  min-height: 48px;
  padding: 8px 15px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.voyage-stat span {
  color: #cdd7ff;
  font-size: 13px;
  font-weight: 800;
}

.voyage-stat strong {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
}

.voyage-stat.star-stat strong::before {
  content: "★ ";
  color: #ffd95a;
}

.voyage-topbar .parent-entry {
  min-height: 48px;
  border: 0;
  border-radius: 18px;
  color: #17255f;
  background: #fff4d0;
  box-shadow: none;
  font-weight: 900;
}

.voyage-home {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(560px, 1.5fr);
  gap: 18px;
  min-height: 610px;
}

.captain-card {
  position: relative;
  display: flex;
  min-height: 610px;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 28px;
  border: 4px solid #17255f;
  border-radius: 34px 34px 110px 34px;
  color: #17255f;
  background: #ff735c;
  box-shadow: 10px 12px 0 #17255f;
}

.captain-card::before,
.captain-card::after {
  content: "";
  position: absolute;
  border: 3px solid rgba(23, 37, 95, 0.18);
  border-radius: 50%;
}

.captain-card::before {
  right: -45px;
  top: 100px;
  width: 155px;
  height: 155px;
}

.captain-card::after {
  right: 36px;
  top: 206px;
  width: 28px;
  height: 28px;
}

.captain-label {
  padding: 7px 11px;
  border: 2px solid #17255f;
  border-radius: 999px;
  font-family: var(--word-font);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  background: #fff4d0;
}

.captain-orbit {
  display: grid;
  width: 112px;
  height: 112px;
  margin: 28px 0 20px;
  place-items: center;
  border: 4px solid #17255f;
  border-radius: 50%;
  background: #ffd95a;
  box-shadow: 7px 7px 0 #17255f;
}

.captain-orbit span {
  font-family: var(--word-font);
  font-size: 54px;
  font-weight: 900;
}

.captain-kicker {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 900;
}

.captain-card h2 {
  max-width: 280px;
  margin: 0;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.08;
}

.captain-copy {
  margin: 12px 0 16px;
  color: #432e50;
  font-size: 16px;
  line-height: 1.6;
}

.voyage-task-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.voyage-task-chips span {
  padding: 8px 11px;
  border: 2px solid #17255f;
  border-radius: 12px;
  background: #fff4d0;
  font-weight: 900;
}

.voyage-task-chips .review {
  background: #dcd5ff;
}

.voyage-start-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border: 3px solid #17255f;
  border-radius: 18px;
  color: #fff;
  background: #2948c7;
  box-shadow: 5px 6px 0 #17255f;
  font-size: 18px;
}

.voyage-start-button b {
  font-size: 27px;
}

.captain-friend {
  position: absolute;
  right: 24px;
  bottom: 112px;
  font-size: 46px;
  transform: rotate(-12deg);
}

.captain-friend span {
  position: absolute;
  right: -14px;
  top: -14px;
  color: #fff4d0;
  font-size: 24px;
}

.voyage-map {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border: 4px solid #17255f;
  border-radius: 70px 34px 34px 34px;
  color: #fff;
  background:
    radial-gradient(circle at 14% 20%, rgba(255,255,255,.8) 0 2px, transparent 3px),
    radial-gradient(circle at 73% 21%, rgba(255,217,90,.9) 0 3px, transparent 4px),
    radial-gradient(circle at 90% 80%, rgba(255,255,255,.65) 0 2px, transparent 3px),
    #2948c7;
  background-size: 82px 82px, 124px 124px, 96px 96px, auto;
  box-shadow: 10px 12px 0 #17255f;
}

.map-title {
  position: absolute;
  z-index: 3;
  left: 34px;
  top: 27px;
  display: grid;
}

.map-title span {
  font-size: 24px;
  font-weight: 900;
}

.map-title small {
  margin-top: 2px;
  color: #cdd7ff;
  font-size: 13px;
}

.voyage-route {
  position: absolute;
  inset: 85px 12px 18px;
  width: calc(100% - 24px);
  height: calc(100% - 103px);
}

.voyage-route path {
  fill: none;
  stroke: #ffd95a;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 3 18;
}

.map-comet {
  position: absolute;
  right: 42px;
  top: 34px;
  color: #ffd95a;
  font-size: 46px;
  transform: rotate(-18deg);
}

.voyage-node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 116px;
  justify-items: center;
  transform: translate(-50%, -50%);
}

.voyage-node.node-1 { left: 10%; top: 76%; }
.voyage-node.node-2 { left: 31%; top: 49%; }
.voyage-node.node-3 { left: 49%; top: 75%; }
.voyage-node.node-4 { left: 65%; top: 36%; }
.voyage-node.node-5 { left: 79%; top: 66%; }
.voyage-node.node-6 { left: 90%; top: 25%; }

.voyage-node-bubble {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 4px solid #17255f;
  border-radius: 50%;
  background: #fff4d0;
  box-shadow: 6px 6px 0 #17255f;
  font-size: 34px;
}

.voyage-node strong {
  margin-top: 8px;
  color: #fff;
  font-size: 16px;
  text-align: center;
  text-shadow: 0 2px 0 #17255f;
  white-space: nowrap;
}

.voyage-node.current .voyage-node-bubble {
  background: #ffd95a;
  animation: voyage-bob 2.2s ease-in-out infinite;
}

.voyage-node.complete .voyage-node-bubble {
  background: #61d7b0;
}

.voyage-node.locked {
  opacity: 0.48;
  filter: grayscale(0.55);
}

.voyage-levels {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
}

.voyage-levels > span:not(.route-dash) {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid #17255f;
  border-radius: 50%;
  color: #17255f;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
}

.voyage-levels > span.done:not(.route-dash) {
  color: #fff;
  background: #31a987;
}

.voyage-levels .route-dash {
  width: 10px;
  height: 2px;
  background: #fff;
}

.hero-panel,
.panel,
.quiz-card,
.study-card,
.write-card,
.done-card {
  border: 3px solid #17255f;
  border-radius: 26px;
  box-shadow: 7px 8px 0 rgba(23, 37, 95, 0.16);
}

.compact-hero {
  color: #fff;
  background: #2948c7;
}

.compact-hero::before {
  width: 10px;
  background: #ffd95a;
}

.compact-hero .hero-title {
  color: #fff;
}

.compact-hero .hero-subtitle {
  color: #cdd7ff;
}

.focus-card {
  background: #fffaf0;
}

.primary-button {
  border-radius: 16px;
  background: #2948c7;
  box-shadow: 0 5px 0 #17255f;
}

.word-dot.active {
  border-color: #17255f;
  background: #ffd95a;
  box-shadow: 0 0 0 4px rgba(255, 217, 90, 0.34);
}

.word-dot.done {
  background: #61d7b0;
}

@keyframes voyage-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}

@media (max-width: 980px) {
  .voyage-home {
    grid-template-columns: minmax(250px, 0.65fr) minmax(500px, 1.35fr);
  }
  .captain-card { padding: 22px; }
  .voyage-node-bubble { width: 68px; height: 68px; }
  .voyage-node { width: 104px; }
}

@media (max-width: 780px) {
  .voyage-home { grid-template-columns: 1fr; }
  .captain-card { min-height: 460px; }
  .voyage-map { min-height: 560px; }
  .voyage-stat span { display: none; }
}

/* v1.2 学习舱：侧边航程轨道 + 单屏任务舞台 */
.app.lesson-mode {
  width: min(1280px, calc(100vw - 28px));
  min-height: 100vh;
  padding: 14px 0;
}

.lesson-mode > .voyage-topbar,
.lesson-mode > .app-version {
  display: none;
}

.lesson-mode .child-view {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 28px);
}

.lesson-rail {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  overflow: hidden;
  padding: 22px 18px;
  border: 4px solid #17255f;
  border-radius: 34px 18px 70px 34px;
  color: #17255f;
  background: #ffd95a;
  box-shadow: 8px 9px 0 #17255f;
}

.lesson-rail::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: 70px;
  width: 125px;
  height: 125px;
  border: 4px solid rgba(23, 37, 95, 0.14);
  border-radius: 50%;
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 17px;
  border-bottom: 3px solid #17255f;
  font-size: 19px;
}

.rail-brand span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 3px solid #17255f;
  border-radius: 50%;
  background: #fff4d0;
}

.rail-location {
  display: grid;
  gap: 3px;
  padding: 22px 0 18px;
}

.rail-location small {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.rail-location strong {
  font-size: 27px;
  line-height: 1.1;
}

.rail-location span {
  color: #5b4771;
  font-weight: 800;
}

.rail-steps {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 8px 0;
}

.rail-steps::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 28px;
  bottom: 28px;
  width: 3px;
  background: rgba(23, 37, 95, 0.24);
}

.lesson-mode .step-pill {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 38px 1fr;
  min-height: 44px;
  align-items: center;
  color: rgba(23, 37, 95, 0.55);
  font-size: 14px;
}

.lesson-mode .step-index {
  width: 38px;
  height: 38px;
  border: 3px solid #17255f;
  color: #17255f;
  background: #fff4d0;
  box-shadow: none;
}

.lesson-mode .step-pill.active {
  color: #17255f;
  font-size: 16px;
}

.lesson-mode .step-pill.active .step-index {
  color: #fff;
  background: #ff735c;
  box-shadow: 3px 3px 0 #17255f;
}

.lesson-mode .step-pill.done .step-index {
  color: #fff;
  background: #31a987;
  box-shadow: none;
}

.rail-progress {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 3px solid #17255f;
  border-radius: 18px;
  background: #fff4d0;
}

.rail-progress > strong {
  font-size: 14px;
}

.rail-progress .word-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 0;
}

.rail-progress .word-dot {
  width: 100%;
  height: 7px;
  border: 0;
  background: #d9cfa9;
}

.rail-progress .word-dot.active {
  background: #ff735c;
  box-shadow: none;
}

.rail-progress .word-dot.done {
  background: #31a987;
}

.rail-message {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: #5b4771;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.lesson-mode .lesson-stage,
.lesson-mode .review-write-card {
  position: relative;
  min-height: calc(100vh - 28px);
  overflow: hidden;
  border: 4px solid #17255f;
  border-radius: 24px 60px 24px 24px;
  background: #fffaf0;
  box-shadow: 9px 10px 0 rgba(23, 37, 95, 0.22);
}

.lesson-mode .lesson-stage::before {
  display: none;
}

.stage-sticker {
  position: absolute;
  left: 28px;
  top: 25px;
  z-index: 2;
  padding: 8px 13px;
  border: 2px solid #17255f;
  border-radius: 999px;
  background: #e1ddff;
  font-family: var(--word-font);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.lesson-mode .study-stage {
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0;
}

.lesson-mode .study-main {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  justify-items: start;
  gap: 8px;
  padding: 70px clamp(55px, 9vw, 130px) 120px;
  text-align: left;
}

.lesson-mode .study-word {
  color: #17255f;
  font-size: clamp(82px, 14vw, 168px);
  line-height: .94;
  text-align: left;
  text-shadow: 7px 7px 0 #e1ddff;
}

.lesson-mode .study-cn {
  margin-top: 15px;
  color: #dc554b;
  font-size: clamp(34px, 5vw, 58px);
  text-align: left;
}

.study-listen-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
}

.lesson-mode .round-sound-button,
.lesson-mode .prompt-sound-button {
  min-width: 0;
  min-height: 54px;
  border: 3px solid #17255f;
  border-radius: 999px;
  padding: 0 22px;
  color: #17255f;
  background: #61d7b0;
  box-shadow: 4px 4px 0 #17255f;
  font-size: 17px;
}

.lesson-mode .study-example {
  max-width: 420px;
  margin: 0;
  color: #66709a;
  font-size: 18px;
}

.lesson-dock {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  padding: 18px 24px;
  border-top: 4px solid #17255f;
  background: #e8edff;
}

.dock-tip {
  color: #66709a;
  font-size: 14px;
  font-weight: 800;
}

.lesson-mode .study-nav-actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px;
  min-height: 0;
}

.lesson-mode .study-nav-button {
  min-width: 130px;
  min-height: 52px;
}

.lesson-mode .study-next-button {
  min-width: 180px;
}

.lesson-mode .split-stage {
  display: grid;
  grid-template-columns: minmax(270px, .72fr) minmax(430px, 1.45fr);
  grid-template-rows: 1fr;
  gap: 0;
  padding: 0;
}

.stage-prompt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 54px 36px;
  border-right: 4px solid #17255f;
  color: #17255f;
  background: #ff735c;
  text-align: left;
}

.meaning-stage .stage-prompt {
  background: #ffd95a;
}

.writing-stage .stage-prompt {
  padding-bottom: 135px;
  background: #61d7b0;
}

.prompt-number {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 28px;
  place-items: center;
  border: 3px solid #17255f;
  border-radius: 50%;
  background: #fff4d0;
  box-shadow: 5px 5px 0 #17255f;
  font-size: 28px;
  font-weight: 900;
}

.stage-prompt p {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
}

.stage-prompt h2 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  text-align: left;
}

.stage-prompt small {
  color: #51446d;
  font-size: 14px;
  font-weight: 800;
}

.stage-play {
  display: grid;
  align-content: center;
  gap: 22px;
  min-width: 0;
  padding: 46px;
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 217, 90, .5) 0 8px, transparent 9px),
    radial-gradient(circle at 12% 88%, rgba(97, 215, 176, .38) 0 10px, transparent 11px),
    #fffaf0;
}

.lesson-mode .word-choices,
.lesson-mode .chunk-choices {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 18px;
}

.lesson-mode .chunk-choices {
  grid-template-columns: repeat(3, minmax(110px, 1fr));
}

.lesson-mode .choice-button {
  position: relative;
  min-height: 132px;
  border: 3px solid #17255f;
  border-radius: 22px;
  color: #17255f;
  background: #e8edff;
  box-shadow: 6px 7px 0 #17255f;
}

.lesson-mode .choice-button.choice-2 { background: #ffe7df; }
.lesson-mode .choice-button.choice-3 { background: #e3f8f0; }
.lesson-mode .choice-button.choice-4 { background: #fff0b8; }

.lesson-mode .choice-button small {
  position: absolute;
  left: 12px;
  top: 10px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 2px solid #17255f;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
}

.lesson-mode .meaning-answer {
  display: grid;
  gap: 25px;
}

.lesson-mode .meaning-answer strong {
  font-size: clamp(72px, 11vw, 132px);
  text-shadow: 6px 6px 0 #e1ddff;
}

.lesson-mode .masked-word {
  padding: 30px 18px;
  border-bottom: 4px solid #17255f;
  color: #17255f;
  font-size: clamp(62px, 9vw, 108px);
  text-align: left;
}

.lesson-mode .spelling-play {
  align-content: center;
}

.lesson-mode .feedback {
  min-height: 30px;
  text-align: left;
}

.lesson-mode .remember-button {
  min-height: 56px;
  justify-self: start;
}

.lesson-mode .writing-stage {
  grid-template-columns: minmax(250px, .58fr) minmax(480px, 1.5fr);
  grid-template-rows: 1fr auto;
}

.stage-paper {
  padding: 28px;
  background: #fffaf0;
}

.lesson-mode .single-canvas {
  height: 100%;
  min-height: 430px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(220, 85, 75, .28) 2px, transparent 2px) 64px 0 / 100% 100% no-repeat,
    repeating-linear-gradient(0deg, transparent 0 45px, rgba(41, 72, 199, .16) 46px 48px),
    #fffdf6;
  box-shadow: inset 0 0 0 3px #17255f, 7px 8px 0 rgba(23, 37, 95, .14);
}

.writing-dock {
  grid-column: 1 / -1;
}

.lesson-mode .writing-dock .write-actions {
  justify-content: flex-end;
}

.lesson-mode .review-write-card {
  padding: 24px;
}

@media (max-width: 900px) {
  .lesson-mode .child-view { grid-template-columns: 185px minmax(0, 1fr); }
  .lesson-rail { padding: 18px 14px; }
  .lesson-mode .split-stage { grid-template-columns: minmax(220px, .62fr) minmax(380px, 1.38fr); }
  .stage-prompt { padding: 38px 25px; }
  .stage-play { padding: 30px; }
}

/* v2.0 正式版：旅行收藏册单屏任务流 */
.app.travel-ui {
  width: min(1280px, calc(100vw - 28px));
  min-height: 100vh;
  padding: 14px 0;
}

.travel-ui > .voyage-topbar,
.travel-ui > .app-version {
  display: none;
}

.travel-ui .child-view {
  position: relative;
  display: block;
  min-height: calc(100vh - 28px);
  overflow: hidden;
  border: 4px solid #133a43;
  border-radius: 34px;
  color: #173c45;
  background: #f9f3df;
  box-shadow: 9px 10px 0 rgba(19, 58, 67, .18);
}

.travel-header,
.travel-session-head {
  position: absolute;
  z-index: 20;
  left: 24px;
  right: 24px;
  top: 18px;
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.travel-session-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18px -24px -14px;
  background: #f9f3df;
}

.travel-brand,
.travel-session-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.travel-brand > b,
.travel-session-brand > b {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 3px solid #133a43;
  border-radius: 50%;
  color: #fff;
  background: #ea7357;
}

.travel-brand > span,
.travel-session-brand > span {
  display: grid;
}

.travel-brand strong,
.travel-session-brand strong {
  font-size: 18px;
}

.travel-brand small,
.travel-session-brand small {
  color: #60777b;
  font-size: 11px;
  font-weight: 800;
}

.travel-home-stats {
  display: flex;
  align-items: center;
  gap: 9px;
}

.travel-home-stats > span,
.travel-home-stats > button {
  min-height: 42px;
  border: 3px solid #133a43;
  border-radius: 99px;
  padding: 0 14px;
  color: #173c45;
  background: #fff;
  font-weight: 900;
}

.travel-home-stats > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.travel-home-screen,
.travel-done-screen {
  position: absolute;
  inset: 0;
  background: #f9f3df;
}

.travel-home-main {
  position: absolute;
  inset: 84px 0 92px;
  display: block;
}

.passport-cover {
  display: grid;
  width: 270px;
  height: 370px;
  place-self: center;
  place-items: center;
  border: 5px solid #133a43;
  border-radius: 21px;
  color: #fff;
  background: #1e7f84;
  box-shadow: 13px 14px 0 #133a43;
  text-align: center;
  transform: rotate(-4deg);
  font: inherit;
  cursor: pointer;
}

.passport-cover:hover,
.passport-cover:focus-visible { transform: rotate(-2deg) translateY(-4px); }

.passport-emblem { font-size: 92px; }
.passport-cover > strong { font-size: 29px; }
.passport-cover > small { color: #cce9e2; }

.travel-mission {
  position: relative;
  height: calc(100% - 16px);
  margin: 8px 24px;
  overflow: hidden;
  border: 4px solid #133a43;
  border-radius: 46px 34px 42px 30px;
  padding: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .65) 0 3px, transparent 4px),
    radial-gradient(circle at 83% 27%, rgba(255, 255, 255, .5) 0 4px, transparent 5px),
    radial-gradient(circle at 68% 82%, rgba(255, 255, 255, .45) 0 3px, transparent 4px),
    repeating-radial-gradient(ellipse at 50% 110%, transparent 0 28px, rgba(255, 255, 255, .2) 29px 31px),
    #86d8dd;
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, .24), 8px 9px 0 rgba(19, 58, 67, .2);
}

.map-mission-card {
  position: absolute;
  z-index: 12;
  left: 24px;
  top: 20px;
  width: min(275px, 34%);
  border: 3px solid #133a43;
  border-radius: 22px 17px 24px 16px;
  padding: 12px 16px;
  background: rgba(255, 249, 233, .94);
  box-shadow: 6px 7px 0 rgba(19, 58, 67, .28);
}

.travel-mission::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -45px;
  width: 150px;
  height: 150px;
  border: 3px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  box-shadow: 0 0 0 17px rgba(255, 255, 255, .09), 0 0 0 38px rgba(255, 255, 255, .07);
  pointer-events: none;
}

.travel-eyebrow {
  position: relative;
  z-index: 2;
  width: fit-content;
  border-radius: 99px;
  padding: 3px 9px;
  color: #fff;
  background: #176b72;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .14em;
}

.travel-mission h2 {
  position: relative;
  z-index: 2;
  margin: 4px 0 1px;
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.08;
}

.map-mission-card > p {
  position: relative;
  z-index: 2;
  margin: 3px 0 0;
  color: #28565d;
  font-size: 12px;
  font-weight: 800;
}

.travel-stamp-grid {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  height: auto;
  margin: 0;
}

.travel-stamp-grid::before {
  content: "🐟";
  position: absolute;
  left: 48%;
  top: 47%;
  opacity: .55;
  font-size: 20px;
  transform: rotate(-8deg);
}

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

.map-bridge path { fill: none; stroke-linecap: round; }
.map-bridge .bridge-shadow { stroke: rgba(19, 58, 67, .38); stroke-width: 25; }
.map-bridge .bridge-planks { stroke: #e8ba68; stroke-width: 15; stroke-dasharray: 4 18; }
.map-bridge.crossed .bridge-shadow { stroke: rgba(23, 107, 114, .72); }
.map-bridge.crossed .bridge-planks { stroke: #ffe391; }
.map-bridge.next .bridge-planks { stroke: #fff0b7; }
.map-bridge.locked { opacity: .28; filter: grayscale(1); }

.travel-stamp {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  gap: 0 9px;
  width: 18%;
  min-height: 78px;
  align-items: center;
  border: 3px solid #bd9555;
  border-radius: 48% 43% 51% 39% / 56% 45% 52% 41%;
  padding: 6px 9px;
  background: #f2d17a;
  box-shadow: 0 7px 0 #d4a95e, 0 13px 0 rgba(23, 107, 114, .24);
  transform: rotate(-2deg);
}

.travel-stamp::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -8px;
  border: 3px solid rgba(255, 255, 255, .65);
  border-radius: inherit;
  pointer-events: none;
}

.travel-stamp.island-1 { position: absolute; left: 6%; top: 50%; border-radius: 52% 40% 47% 43% / 55% 42% 53% 45%; }
.travel-stamp.island-2 { position: absolute; left: 39%; top: 16%; border-radius: 41% 55% 42% 52% / 49% 42% 56% 45%; transform: rotate(2deg); }
.travel-stamp.island-3 { position: absolute; left: 49%; top: 50%; border-radius: 55% 39% 48% 44% / 42% 57% 43% 53%; transform: rotate(-1deg); }
.travel-stamp.island-4 { position: absolute; right: 8%; top: 12%; border-radius: 45% 53% 39% 55% / 56% 44% 52% 41%; transform: rotate(2deg); }
.travel-stamp.island-5 { position: absolute; right: 5%; bottom: 5%; border-radius: 54% 42% 55% 39% / 44% 55% 43% 57%; transform: rotate(-2deg); }
.travel-stamp.island-6 { position: absolute; left: 30%; bottom: 3%; border-radius: 39% 56% 43% 52% / 53% 41% 57% 44%; transform: rotate(1deg); }

.map-traveler {
  position: absolute;
  z-index: 8;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 3px solid #133a43;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 0 rgba(19, 58, 67, .35);
  font-size: 21px;
  animation: traveler-bob 1.8s ease-in-out infinite;
}

.map-traveler::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 10px; height: 10px; border: 2px solid #133a43; border-radius: 50%; background: #d15e47; transform: translateX(-50%); }
.map-traveler.traveler-1 { left: 14%; top: 44%; }
.map-traveler.traveler-2 { left: 47%; top: 10%; }
.map-traveler.traveler-3 { left: 57%; top: 44%; }
.map-traveler.traveler-4 { right: 14%; top: 6%; }
.map-traveler.traveler-5 { right: 11%; bottom: 25%; }
.map-traveler.traveler-6 { left: 38%; bottom: 23%; }

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

.travel-stamp > span {
  grid-row: 1 / 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid rgba(19, 58, 67, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  font-size: 21px;
  text-align: center;
}

.travel-stamp > strong { font-size: 12px; }
.travel-stamp > small { color: #526966; font-size: 9px; font-weight: 800; }
.travel-stamp.complete { border-color: #267450; background: #86c983; box-shadow: 0 7px 0 #4f9964, 0 13px 0 rgba(23, 107, 114, .25); }
.travel-stamp.complete::after { content: "✓"; position: absolute; right: 7px; top: -11px; display: grid; width: 25px; height: 25px; place-items: center; border: 2px solid #133a43; border-radius: 50%; color: #fff; background: #176b72; font-weight: 950; }
.travel-stamp.current { border-color: #d15e47; background: #ffe07a; box-shadow: 0 7px 0 #e19a52, 0 13px 0 rgba(23, 107, 114, .28); }
.travel-stamp.current::after { content: "⚑"; position: absolute; right: 9px; top: -20px; color: #d15e47; font-size: 28px; text-shadow: 0 2px 0 #fff; }
.travel-stamp.locked { opacity: .58; filter: grayscale(.7); }

.travel-bottom-dock {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 26px;
  border-top: 4px solid #133a43;
  background: #fff !important;
}

.travel-bottom-dock > span,
.travel-bottom-dock > div > span {
  color: #60777b;
  font-size: 14px;
  font-weight: 800;
}

.travel-bottom-dock > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.travel-primary,
.travel-secondary {
  min-height: 52px;
  border: 3px solid #133a43;
  border-radius: 17px;
  padding: 0 22px;
  font-weight: 950;
  white-space: nowrap;
}

.travel-primary {
  color: #fff;
  background: #176b72;
  box-shadow: 0 6px 0 #133a43;
  font-size: 17px;
  min-width: 160px;
}

.travel-primary:disabled {
  color: #47676b;
  background: #c8d7d4;
  box-shadow: 0 3px 0 #799191;
  cursor: wait;
}

.travel-secondary {
  color: #173c45;
  background: #fff;
}

.travel-secondary.selected {
  background: #f2c84b;
  box-shadow: inset 0 0 0 2px #133a43;
}

.travel-session-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.travel-session-actions > button {
  min-height: 38px;
  border: 2px solid #133a43;
  border-radius: 99px;
  padding: 0 13px;
  color: #173c45;
  background: #fff;
  font-weight: 900;
  white-space: nowrap;
}

.stamp-album-overlay {
  position: absolute;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(19, 58, 67, .66);
  backdrop-filter: blur(5px);
}

.stamp-album-sheet {
  display: grid;
  width: min(1050px, 100%);
  max-height: 100%;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 5px solid #133a43;
  border-radius: 28px;
  background: #fff9e9;
  box-shadow: 12px 14px 0 #133a43;
}

.stamp-album-sheet > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px 14px;
  border-bottom: 3px dashed #d9cda8;
}

.stamp-album-sheet > header span { color: #d15e47; font-size: 11px; font-weight: 950; letter-spacing: .16em; }
.stamp-album-sheet > header h2 { margin: 2px 0 0; font-size: 32px; }
.stamp-album-sheet > header p { margin: 2px 0 0; color: #60777b; font-weight: 800; }
.stamp-album-sheet > header > button {
  width: 48px;
  height: 48px;
  border: 3px solid #133a43;
  border-radius: 50%;
  color: #173c45;
  background: #fff;
  font-size: 30px;
  font-weight: 900;
}

.album-stamp-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(105px, 1fr));
  gap: 13px;
  overflow: auto;
  padding: 18px 26px;
}

.album-stamp {
  display: grid;
  min-height: 112px;
  place-items: center;
  align-content: center;
  border: 3px dashed #9ca9a4;
  border-radius: 50% 47% 51% 46%;
  padding: 10px;
  text-align: center;
  transform: rotate(-1deg);
}

.album-stamp > span { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; font-size: 32px; }
.album-stamp > strong { margin-top: 3px; font-size: 14px; }
.album-stamp > small { color: #60777b; font-size: 11px; }
.album-stamp.earned { border-style: solid; border-color: #176b72; background: #dcebe7; box-shadow: inset 0 0 0 5px #fff9e9; }
.album-stamp.earned > span { background: #fff; }
.album-stamp.empty { color: #879491; background: #eeeadd; filter: grayscale(1); opacity: .65; }
.album-stamp.empty > span { border: 2px dashed #879491; font-weight: 950; }

.stamp-album-sheet > footer {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 26px 15px;
  border-top: 3px dashed #d9cda8;
  color: #60777b;
  font-weight: 800;
}

.travel-stage-steps {
  display: flex;
  gap: 8px;
  align-items: center;
}

.travel-stage-steps .step-pill {
  display: inline-grid;
  grid-template-columns: 25px auto;
  gap: 4px;
  color: #8c968d;
  font-size: 11px;
}

.travel-stage-steps .step-index {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 2px solid #aab0a6;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  font-size: 10px;
}

.travel-stage-steps .step-pill.active { color: #173c45; }
.travel-stage-steps .step-pill.active .step-index { border-color: #133a43; color: #fff; background: #ea7357; }
.travel-stage-steps .step-pill.done .step-index { border-color: #133a43; color: #fff; background: #176b72; }
.travel-stage-steps .step-pill.skipped { color: #9a9282; }
.travel-stage-steps .step-pill.skipped .step-index { border-style: dashed; color: #8b8375; background: #f1eee5; }

.travel-word-progress {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: 150px;
}

.travel-word-progress > strong { font-size: 12px; }
.travel-word-progress .word-progress { display: flex; gap: 3px; margin: 0; }
.travel-word-progress .word-dot { width: 8px; height: 8px; border: 0; background: #d7d0ba; }
.travel-word-progress .word-dot.done { background: #176b72; }
.travel-word-progress .word-dot.active { background: #ea7357; box-shadow: none; }

.travel-learn-stage,
.travel-question-stage,
.travel-dictation-stage,
.travel-review-stage {
  position: absolute;
  inset: 84px 0 92px;
  overflow: hidden;
  background: #f9f3df;
}

.travel-question-stage.travel-no-dock { bottom: 0; }

.travel-learn-stage {
  display: grid;
  grid-template-columns: 34% 66%;
  padding: 18px 26px 24px;
}

.travel-photo {
  display: grid;
  place-items: center;
  border: 4px solid #133a43;
  border-radius: 25px;
  background: #8bd2d0;
  box-shadow: 7px 8px 0 #133a43;
}

.travel-photo span { font-size: clamp(76px, 10vw, 140px); filter: drop-shadow(10px 10px 0 rgba(19,58,67,.18)); }

.travel-word-ticket {
  display: grid;
  align-content: center;
  justify-items: start;
  min-width: 0;
  padding: 25px 46px;
}

.travel-word-ticket > span { color: #d15e47; font-size: 12px; font-weight: 950; letter-spacing: .14em; }
.travel-word-ticket h2 { max-width: 100%; margin: 8px 0 0; overflow: visible; font-family: var(--word-font); font-size: clamp(76px, 9vw, 112px); line-height: .96; letter-spacing: -.02em; white-space: nowrap; }
.travel-word-ticket h2.medium-phrase { font-size: clamp(62px, 6.8vw, 92px); }
.travel-word-ticket h2.long-phrase { font-size: clamp(50px, 5.4vw, 74px); }
.travel-word-ticket h3 { margin: 8px 0 24px; color: #d15e47; font-size: clamp(30px, 4vw, 44px); }
.travel-word-ticket p { margin: 18px 0 0; color: #60777b; font-size: 15px; }

.travel-listen {
  min-height: 52px;
  border: 3px solid #133a43;
  border-radius: 99px;
  padding: 0 24px;
  color: #173c45;
  background: #f2c84b;
  box-shadow: 4px 5px 0 #133a43;
  font-weight: 900;
}

.travel-question-stage {
  display: grid;
  grid-template-columns: 37% 63%;
}

.travel-question {
  display: grid;
  align-content: center;
  padding: 35px 42px;
  border-right: 4px solid #133a43;
  background: #f2c84b;
}

.travel-question-stage.reverse .travel-question { color: #fff; background: #176b72; }
.travel-question > span { display: grid; width: 55px; height: 55px; margin-bottom: 22px; place-items: center; border: 3px solid #133a43; border-radius: 50%; color: #173c45; background: #fff; font-size: 23px; font-weight: 950; }
.travel-question p { margin: 0 0 7px; font-weight: 900; }
.travel-question h2 { margin: 0; font-size: clamp(40px, 5vw, 63px); line-height: 1.08; }
.travel-question .english-prompt { max-width: 100%; overflow: hidden; font-family: var(--word-font); font-size: 96px; white-space: nowrap; }
.travel-question small { margin-top: 18px; opacity: .74; font-weight: 800; }

.travel-answers {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 16px;
  align-content: center;
  padding: 35px 48px;
}

.travel-answer {
  position: relative;
  min-height: 112px;
  border: 3px solid #133a43;
  border-radius: 22px;
  color: #173c45;
  background: #fff;
  box-shadow: 6px 7px 0 #133a43;
  font-family: var(--word-font);
  font-size: clamp(22px, 3vw, 31px);
  font-weight: 950;
}

.travel-answer.answer-2 { background: #dcebe7; }
.travel-answer.answer-3 { background: #fae1d6; }
.travel-answer.answer-4 { background: #fff0b7; }
.travel-answer small { position: absolute; left: 11px; top: 10px; display: grid; width: 26px; height: 26px; place-items: center; border: 2px solid #133a43; border-radius: 50%; background: #fff; font-size: 11px; }

.travel-reveal {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 20px;
}

.travel-reveal strong { font-family: var(--word-font); font-size: clamp(58px, 9vw, 105px); }
.travel-answers .feedback { position: absolute; left: 48px; bottom: 18px; min-height: 24px; text-align: left; }

.travel-dictation-stage {
  display: grid;
  grid-template-columns: 34% 66%;
  transition: opacity .22s ease, transform .22s ease;
  animation: dictation-arrive .3s ease both;
}

.travel-dictation-stage.is-changing { opacity: .38; transform: translateX(-20px) scale(.985); }
.travel-dictation-stage[data-audio-state="ready"] .travel-audio-panel { background: #1e7f84; }
.travel-dictation-stage.solar-spoken-chinese-prompt .travel-audio-panel { background: #176b72; }
.travel-dictation-stage.solar-spoken-chinese-prompt[data-audio-state="ready"] .travel-audio-panel { background: #236a9a; }
.travel-dictation-stage.solar-visible-chinese-prompt .travel-audio-panel { background: #a6524d; }

@keyframes dictation-arrive {
  from { opacity: .25; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

.travel-audio-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  border-right: 4px solid #133a43;
  color: #fff;
  background: #ea7357;
}

.travel-audio-panel > button {
  display: grid;
  width: 135px;
  height: 135px;
  place-items: center;
  border: 5px solid #133a43;
  border-radius: 50%;
  color: #173c45;
  background: #f2c84b;
  box-shadow: 8px 9px 0 #133a43;
  font-size: 55px;
}

.travel-audio-panel h2 { margin: 24px 0 6px; font-size: 29px; }
.travel-audio-panel p { margin: 0; color: #ffe9df; }
.travel-audio-panel.solar-visible-panel { padding: 24px; text-align: center; }
.travel-audio-panel.solar-visible-panel small { border-radius: 999px; padding: 7px 13px; color: #173c45; background: #f2c84b; font-weight: 900; }
.travel-audio-panel.solar-visible-panel h2 { max-width: 100%; margin: 26px 0 10px; font-size: clamp(34px, 4.5vw, 56px); line-height: 1.18; }
.travel-chinese-hint { display: grid; width: min(270px,84%); min-height: 68px; margin-top: 18px; place-items: center; }
.travel-chinese-hint > button { width: 100%; min-height: 48px; border: 3px solid #133a43; border-radius: 15px; padding: 8px 14px; color: #173c45; background: #fff4bd; box-shadow: 4px 5px 0 #133a43; font-size: 15px; font-weight: 900; }
.travel-chinese-hint-card { display: grid; width: 100%; min-height: 62px; align-content: center; justify-items: center; border: 3px solid #f2c84b; border-radius: 15px; padding: 7px 12px; color: #173c45; background: #fff9dc; box-shadow: 4px 5px 0 #133a43; }
.travel-chinese-hint-card small { color: #8a6810; font-weight: 900; }
.travel-chinese-hint-card strong { margin-top: 2px; font-size: 22px; }
.travel-paper { padding: 24px 36px; background: #eee8d6; }
.travel-paper .single-canvas { width: 100%; height: 100%; min-height: 300px; border: 4px solid #133a43; border-radius: 0; box-shadow: 7px 8px 0 rgba(19,58,67,.18); }

.travel-review-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 25px 55px;
}

.travel-review-stage article {
  display: grid;
  min-height: 330px;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 4px solid #133a43;
  border-radius: 25px;
  background: #fff;
  box-shadow: 7px 8px 0 rgba(19,58,67,.16);
}

.travel-review-stage article header { padding: 12px 17px; border-bottom: 3px solid #133a43; color: #fff; background: #176b72; font-weight: 900; }
.travel-review-stage article:last-child header { background: #ea7357; }
.travel-writing-sample,
.travel-standard-answer { display: grid; place-items: center; min-height: 260px; }
.travel-writing-sample img { display: block; width: 100%; height: 100%; max-height: 260px; object-fit: contain; }
.travel-standard-answer { align-content: center; }
.travel-standard-answer strong { font-family: var(--word-font); font-size: clamp(55px, 7vw, 82px); }
.travel-standard-answer span { color: #60777b; font-size: 19px; }
.writing-hint-used { display: inline-flex; width: max-content; margin-top: 6px; border-radius: 99px; padding: 5px 9px; color: #76530a; background: #fff0a8; font-size: 12px; font-weight: 900; }
.solar-record-mode { display: inline-flex; width: max-content; margin-top: 6px; border-radius: 99px; padding: 5px 9px; color: #164f55; background: #d6f4f1; font-size: 12px; font-weight: 900; }
.solar-record-mode.chinese { color: #70510d; background: #fff0a8; }
.solar-record-mode.mixed-chinese { color: #164f55; background: #d6f4f1; }
.solar-record-mode.mixed-audio { color: #164f55; background: #d6f4f1; }
.solar-item-prompt-mode { display: inline-flex; width: max-content; margin-top: 6px; border-radius: 99px; padding: 5px 9px; color: #164f55; background: #d6f4f1; font-size: 12px; font-weight: 900; }
.solar-item-prompt-risk { display: inline-flex; width: max-content; margin-top: 6px; border-radius: 99px; padding: 5px 9px; color: #755012; background: #fff0a8; font-size: 12px; font-weight: 900; }
.travel-review-arrow { font-size: 44px; }

.travel-done-main {
  position: absolute;
  inset: 84px 0 92px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  background: radial-gradient(circle at 12% 20%, #f2c84b 0 5px, transparent 6px), #f9f3df;
  background-size: 95px 95px;
}

.travel-win-stamp {
  display: grid;
  width: 220px;
  height: 220px;
  place-items: center;
  border: 8px double #d15e47;
  border-radius: 50%;
  color: #d15e47;
  background: #fff;
  transform: rotate(-6deg);
}

.travel-win-stamp span { font-size: 72px; }
.travel-win-stamp strong { margin-top: -30px; font-size: 21px; }
.travel-done-main h2 { margin: 18px 0 5px; font-size: clamp(36px, 5vw, 54px); }
.travel-done-main p { margin: 0; color: #60777b; font-size: 17px; }

/* v4.0 太阳系主线 */
.solar-home-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #edf9ff;
  background: radial-gradient(circle at 50% 44%, #10254b 0, #061329 45%, #020713 100%);
}

.solar-home-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .7;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 0 1px, transparent 1.5px), radial-gradient(circle, #60dfff 0 1px, transparent 1.4px);
  background-position: 0 0, 31px 47px;
  background-size: 97px 97px, 131px 131px;
}

.solar-header {
  position: absolute;
  z-index: 50;
  left: 24px;
  right: 24px;
  top: 12px;
  display: flex;
  height: 58px;
  align-items: center;
  justify-content: space-between;
}

.solar-header > div,
.solar-header nav { display: flex; align-items: center; gap: 10px; }
.solar-header > div > b { display: grid; width: 50px; height: 50px; place-items: center; border: 2px solid #baf7ff; border-radius: 50%; background: linear-gradient(145deg, #60e7ff, #665eff); box-shadow: 0 0 22px rgba(81,220,255,.5); font-size: 25px; }
.solar-header > div span { display: grid; }
.solar-header > div strong { font-size: 22px; }
.solar-header > div small { display: flex; align-items: baseline; color: #82dff2; font-size: 10px; letter-spacing: .16em; white-space: nowrap; }
.solar-brand-version { margin-left: 4px; color: #60869f; font-size: 9px; font-style: normal; font-weight: 700; letter-spacing: .03em; }
.solar-header nav span,
.solar-header nav button { min-height: 40px; border: 2px solid #4f91b7; border-radius: 999px; padding: 0 14px; color: #e8f7ff; background: rgba(9,31,66,.9); font-weight: 900; }
.solar-header nav span { display: flex; align-items: center; }
.solar-header nav span strong { margin-left: 5px; color: #ffd75e; }
.solar-header nav button { color: #102b44; background: #dff9ff; }
.solar-header nav .solar-stardust { display: flex; align-items: center; color: #e8f7ff; background: rgba(9,31,66,.9); }
.solar-header nav .solar-stardust strong { margin-left: 5px; color: #ffd75e; }

.solar-map { position: absolute; inset: 78px 14px 70px; overflow: hidden; border: 2px solid #315f88; border-radius: 27px; background: radial-gradient(circle at 50% 52%, rgba(35,92,153,.35), transparent 30%), rgba(3,12,31,.72); }
.solar-orbits,
.solar-flight-route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.solar-orbits ellipse { fill: none; stroke: rgba(117,203,235,.22); stroke-width: 1.4; }
.solar-flight-route { z-index: 9; }
.solar-flight-route > path { fill: none; stroke: #72e8ff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 7 13; }
.solar-flight-route marker path { fill: #72e8ff; }
.solar-sun { position: absolute; z-index: 5; left: -3%; top: 52%; width: 190px; height: 190px; border: 3px solid #fff1a9; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #fff8b0 0 8%, #ffd65f 25%, #ff993c 62%, #e95b2d 100%); box-shadow: 0 0 24px #ffbd42, 0 0 65px rgba(255,132,51,.65), 0 0 120px rgba(255,128,42,.3); transform: translate(-50%,-50%); }
.solar-sun::after { content: "太阳"; position: absolute; left: 50%; top: calc(100% + 7px); color: #ffd67b; font-size: 11px; font-weight: 900; transform: translateX(-50%); }
.solar-reward-stars { position: absolute; z-index: 3; inset: 0; }
.solar-reward-star { position: absolute; left: var(--star-x); top: var(--star-y); width: 28px; height: 28px; border: 0; padding: 0; color: #355b7d; background: transparent; transform: translate(-50%,-50%); font-size: 18px; cursor: pointer; transition: .18s ease; }
.solar-reward-star:hover { color: #72dff7; transform: translate(-50%,-50%) scale(1.35); }
.solar-reward-star.lit { color: #ffdc63; filter: drop-shadow(0 0 7px #ffd95e); }
.solar-reward-stars > span { position: absolute; right: 18px; bottom: 42px; border-radius: 99px; padding: 5px 9px; color: #8fb0c6; background: rgba(4,18,42,.75); font-size: 9px; font-weight: 800; }

.solar-mission { position: absolute; z-index: 30; left: 18px; top: 18px; width: 250px; border: 2px solid #54a7ca; border-radius: 20px; padding: 14px 16px; background: linear-gradient(145deg, rgba(17,47,88,.97), rgba(7,24,55,.97)); box-shadow: 0 8px 0 rgba(0,0,0,.24); }
.solar-mission > span { color: #6ee8ff; font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.solar-mission h2 { margin: 4px 0 2px; font-size: 28px; }
.solar-mission p { color: #abc5d7; font-size: 12px; }
.solar-mission > div { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.solar-mission > div::before { content: ""; flex: 1; height: 7px; border-radius: 99px; background: #243f63; }
.solar-mission > div b { position: absolute; left: 0; height: 7px; max-width: calc(100% - 48px); border-radius: 99px; background: linear-gradient(90deg, #68e7ff, #ffd75e); }
.solar-mission > div strong { color: #ffd75e; font-size: 11px; white-space: nowrap; }

.solar-planet-node { position: absolute; z-index: 14; width: 104px; border: 0; padding: 0; color: #dcecf8; background: transparent; text-align: center; }
.solar-planet { position: relative; display: grid; width: 58px; height: 58px; margin: auto; place-items: center; border: 2px solid rgba(226,250,255,.65); border-radius: 50%; background-image: url("assets/planets/cartoon-planets-v1-alpha.webp"); background-repeat: no-repeat; background-color: transparent; box-shadow: 0 7px 17px rgba(0,0,0,.38); transition: transform .2s ease; }
.solar-planet-node:hover .solar-planet { transform: translateY(-4px) scale(1.06); }
.solar-planet-node strong { display: block; margin-top: 4px; font-size: 12px; }
.solar-planet-node small { display: block; color: #7692ab; font-size: 8px; }
.solar-planet-node.locked strong,
.solar-planet-node.locked small { opacity: .45; }
.solar-planet-node.current .solar-planet { box-shadow: 0 0 0 6px rgba(255,215,94,.18), 0 0 25px rgba(255,215,94,.8); }
.solar-planet-node.current small { color: #ffd75e; }
.solar-planet-node.complete small { color: #69edc4; }
.solar-planet i { position: absolute; right: -3px; top: -5px; display: grid; width: 21px; height: 21px; place-items: center; border: 2px solid #dff9ff; border-radius: 50%; color: #071426; background: #7ce8ff; font-size: 9px; font-style: normal; font-weight: 900; }
.solar-planet-node.complete .solar-planet i { background: #69edc4; }
.solar-planet-node.neptune { left: 87%; top: 53%; }
.solar-planet-node.uranus { left: 76%; top: 22%; }
.solar-planet-node.saturn { left: 64%; top: 57%; }
.solar-planet-node.jupiter { left: 51%; top: 28%; }
.solar-planet-node.mars { left: 39%; top: 52%; }
.solar-planet-node.earth { left: 31%; top: 20%; }
.solar-planet-node.venus { left: 22%; top: 34%; }
.solar-planet-node.mercury { left: 13%; top: 47%; }
.solar-planet-node.mercury .solar-planet { width: 43px; height: 43px; background-size: 300px 200px; background-position: -22px -35px; }
.solar-planet-node.venus .solar-planet { width: 50px; height: 50px; background-size: 284px 190px; background-position: -80px -29px; }
.solar-planet-node.earth .solar-planet { width: 58px; height: 58px; background-size: 313px 209px; background-position: -166px -30px; }
.solar-planet-node.mars .solar-planet { width: 52px; height: 52px; background-size: 290px 194px; background-position: -223px -29px; }
.solar-planet-node.jupiter .solar-planet { width: 80px; height: 80px; background-size: 396px 264px; background-position: -17px -138px; }
.solar-planet-node.saturn .solar-planet { width: 105px; height: 85px; border: 0; border-radius: 0; background-size: 424px 283px; background-position: -110px -153px; box-shadow: none; }
.solar-planet-node.uranus .solar-planet { width: 88px; height: 72px; border: 0; border-radius: 0; background-size: 396px 264px; background-position: -202px -143px; box-shadow: none; }
.solar-planet-node.neptune .solar-planet { width: 66px; height: 66px; background-size: 375px 250px; background-position: -289px -135px; }

.solar-rocket { position: absolute; z-index: 22; width: 64px; height: 48px; filter: drop-shadow(0 6px 7px #000); }
.solar-rocket img { width: 100%; height: 100%; object-fit: contain; transform: rotate(var(--ship-heading-correction, 0deg)); }
.solar-rocket.ship-starwish { width: 76px; height: 57px; }
.solar-rocket.ship-explorer { width: 80px; height: 52px; }
.solar-rocket.ship-cruiser { width: 88px; height: 56px; }
.solar-rocket.ship-flagship { width: 96px; height: 60px; }
.solar-rocket:not([class*="rocket-at-"]) {
  left: var(--to-x);
  top: var(--to-y);
  transform: translate(-50%, -50%) rotate(var(--flight-pitch, 0deg)) scaleX(var(--flight-direction, 1));
}
.solar-rocket.is-flying {
  animation: solar-flight-progress 1.45s cubic-bezier(.3,.05,.28,1) both;
}
.flight-comet {
  position: absolute;
  z-index: 21;
  right: -6%;
  top: 12%;
  width: 92px;
  height: 5px;
  pointer-events: none;
  opacity: 0;
  transform-origin: left center;
  animation: flight-comet-cross 1.25s .08s ease-out both;
}
.flight-comet::before {
  content: "";
  position: absolute;
  inset: 1px 0;
  border-radius: 99px;
  background: linear-gradient(90deg,#fff,#8ff4ff 18%,#66c8ff88 50%,transparent);
  filter: drop-shadow(0 0 6px #8fefff);
}
.flight-comet::after {
  content: "";
  position: absolute;
  left: -3px;
  top: -3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff7b0;
  box-shadow: 0 0 8px #fff,0 0 18px #75eaff;
}
.flight-comet.comet-2 { right: 3%; top: 21%; animation-duration: 1.05s; }
.flight-comet.comet-3 { right: -2%; top: 7%; animation-duration: 1.4s; }
@keyframes flight-comet-cross {
  0% { opacity: 0; transform: translate3d(0,0,0) rotate(-24deg) scale(.75); }
  12%,78% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(-900px,410px,0) rotate(-24deg) scale(1); }
}
.solar-ready-rocket.fly-to-sun {
  animation: solar-flight-progress 1.2s cubic-bezier(.3,.05,.28,1) both;
}
.solar-explorer-ship { position: absolute; z-index: 24; left: 7%; top: 47%; display: grid; width: 108px; justify-items: center; overflow: visible; transform: translate(-50%,-50%); filter: drop-shadow(0 9px 9px #000b); }
.solar-explorer-ship img { width: 100%; height: 70px; object-fit: contain; animation: explorerHover 2.4s ease-in-out infinite; }
.solar-explorer-ship strong { margin-top: -3px; color: #8ff4dc; font-size: 9px; text-shadow: 0 2px 4px #000; }
.solar-explorer-ship.galaxy-departing { z-index: 31; pointer-events: none; filter: drop-shadow(0 10px 14px #66edffcc); }
.solar-explorer-ship.galaxy-departing img,
.solar-explorer-ship.solar-arriving img { animation: none; }
.solar-explorer-ship.solar-arriving { left: 112%; top: 43%; z-index: 31; pointer-events: none; }
@keyframes explorerHover { 50% { transform: translateY(-5px); } }
@keyframes solar-flight-progress {
  0% { left: var(--from-x); top: var(--from-y); transform: translate(-50%, -50%) rotate(var(--flight-pitch, 0deg)) scaleX(var(--flight-direction, 1)) scale(1); }
  48% { transform: translate(-50%, -58%) rotate(var(--flight-pitch, 0deg)) scaleX(var(--flight-direction, 1)) scale(1.18); }
  100% { left: var(--to-x); top: var(--to-y); transform: translate(-50%, -50%) rotate(var(--flight-pitch, 0deg)) scaleX(var(--flight-direction, 1)) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .flight-comet { display: none; }
}
.rocket-at-1 { left: 84.5%; top: 49.5%; transform: rotate(-93deg); }
.rocket-at-2 { left: 73.5%; top: 27%; transform: rotate(180deg); }
.rocket-at-3 { left: 61.5%; top: 53%; transform: rotate(-85deg); }
.rocket-at-4 { left: 48.5%; top: 33%; transform: rotate(185deg); }
.rocket-at-5 { left: 36.5%; top: 48%; transform: rotate(-80deg); }
.rocket-at-6 { left: 28.5%; top: 24%; transform: rotate(190deg); }
.rocket-at-7 { left: 19.5%; top: 38%; transform: rotate(200deg); }
.rocket-at-8 { left: 10.5%; top: 47%; transform: rotate(225deg); }

.solar-final { position: absolute; z-index: 28; left: 3%; top: 67%; min-height: 42px; border: 2px solid #536a7e; border-radius: 999px; padding: 0 14px; color: #718394; background: rgba(10,24,43,.92); font-weight: 900; }
.solar-final.ready { border-color: #ffd75e; color: #3a2500; background: #ffe38b; box-shadow: 0 0 22px rgba(255,203,74,.65); }
.solar-final.passed { border-color: #69edc4; color: #06291e; background: #8af0cf; }
.solar-map-key { position: absolute; z-index: 25; right: 17px; bottom: 13px; display: flex; gap: 12px; color: #819db5; font-size: 9px; }
.solar-map-key span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: #345475; }
.solar-map-key span:first-child::before { background: #ffd75e; }
.solar-map-key span:nth-child(2)::before { width: 14px; height: 3px; border-radius: 0; background: repeating-linear-gradient(90deg, #69e4ff 0 4px, transparent 4px 7px); }
.solar-dock { position: absolute; z-index: 45; left: 0; right: 0; bottom: 0; display: flex; height: 70px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 24px; border-top: 2px solid #315f88; color: #9db6ca; background: rgba(5,17,39,.97); font-size: 11px; }
.solar-dock b { color: #edf9ff; font-size: 13px; }
.solar-primary { min-width: 210px; min-height: 46px; border: 2px solid #5696ba; border-radius: 14px; color: #071426; background: linear-gradient(90deg, #61e6ff, #ffd75e); box-shadow: 0 5px 0 #173d59; font-weight: 900; }
.solar-secondary { min-width: 120px; min-height: 46px; border: 2px solid #5696ba; border-radius: 14px; color: #dff8ff; background: #102b4b; font-weight: 900; }
.solar-planet-node.complete { cursor: pointer; }
.solar-planet-node.complete:hover strong { color: #8ff5d4; }
.planet-review-overlay { position: absolute; z-index: 100; inset: 0; display: grid; place-items: center; background: rgba(0,7,20,.72); backdrop-filter: blur(5px); }
.planet-review-card { position: relative; display: grid; width: min(440px, calc(100% - 40px)); justify-items: center; gap: 10px; border: 3px solid #67dff5; border-radius: 28px; padding: 28px; color: #eafaff; background: linear-gradient(145deg, #123b69, #07172f); box-shadow: 0 16px 0 rgba(0,0,0,.28), 0 0 45px rgba(74,214,255,.3); text-align: center; }
.planet-review-card h2 { margin: 0; font-size: 32px; }
.planet-review-card p { max-width: 350px; color: #b8d5e7; line-height: 1.6; }
.planet-review-card > div { display: flex; gap: 12px; margin-top: 8px; }
.planet-review-close { position: absolute; right: 14px; top: 10px; border: 0; color: #dff8ff; background: transparent; font-size: 30px; }
.planet-review-card .review-planet { position: relative; left: auto; top: auto; width: 120px; height: 92px; display: grid; place-items: center; }
.solar-exam-intro-overlay { position: absolute; z-index: 110; inset: 0; display: grid; place-items: center; padding: 28px; background: rgba(0,7,20,.78); backdrop-filter: blur(7px); }
.solar-exam-intro-card { display: grid; width: min(760px, 100%); justify-items: center; gap: 10px; border: 3px solid #67dff5; border-radius: 30px; padding: 26px 30px 28px; color: #eafaff; background: linear-gradient(145deg, #164673, #07172f); box-shadow: 0 16px 0 rgba(0,0,0,.28), 0 0 48px rgba(74,214,255,.32); text-align: center; }
.solar-exam-intro-card > small { color: #69edc4; font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.solar-exam-intro-card h2 { margin: 0; font-size: 34px; }
.solar-exam-intro-card > p { margin: 0; color: #ffd86a; font-weight: 800; }
.solar-exam-intro-steps { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 12px 0 6px; }
.solar-exam-intro-steps > div { display: grid; min-height: 150px; align-content: start; justify-items: center; gap: 8px; border: 2px solid #315f88; border-radius: 20px; padding: 16px 14px; background: rgba(8,29,58,.9); }
.solar-exam-intro-steps b { display: grid; width: 40px; height: 40px; place-items: center; border: 3px solid #123a52; border-radius: 50%; color: #092039; background: #ffd75e; font-size: 20px; }
.solar-exam-intro-steps strong { color: #f4fbff; font-size: 21px; }
.solar-exam-intro-steps span { color: #b8d5e7; font-size: 14px; line-height: 1.55; }
.solar-exam-intro-actions { display: flex; gap: 14px; margin-top: 6px; }
.solar-exam-intro-actions .solar-primary { min-width: 260px; }

.solar-prompt-transition { display: grid; min-height: 0; height: 100%; place-content: center; justify-items: center; gap: 18px; padding: 34px; color: #123f49; background: radial-gradient(circle at 50% 42%, #fffdf3 0 28%, #f6f0da 66%, #efe5c7 100%); text-align: center; }
.solar-prompt-transition > small { border-radius: 999px; padding: 7px 15px; color: #fff; background: #1c7b82; font-size: 14px; font-weight: 900; letter-spacing: .06em; }
.solar-prompt-transition h2 { margin: 0; font-size: 42px; line-height: 1.1; }
.solar-prompt-transition > p { max-width: 660px; margin: 0; color: #58747a; font-size: 18px; font-weight: 700; line-height: 1.6; }
.solar-prompt-transition > .travel-primary { min-width: 310px; margin-top: 4px; }
.solar-prompt-transition-flow { display: flex; align-items: center; gap: 24px; margin: 8px 0; }
.solar-prompt-transition-flow > div { display: grid; width: 210px; min-height: 130px; place-content: center; gap: 10px; border: 3px solid #164956; border-radius: 24px; background: #fff; box-shadow: 0 8px 0 #d8cda9; }
.solar-prompt-transition-flow span { font-size: 44px; }
.solar-prompt-transition-flow strong { font-size: 21px; }
.solar-prompt-transition-flow > b { color: #db654d; font-size: 42px; }
.self-check-question { position: absolute; left: 50%; bottom: 18px; width: max-content; max-width: 90%; transform: translateX(-50%); color: #173d59; font-size: 18px; font-weight: 900; }
.self-check-dock > span { color: #667d8d; font-weight: 800; }
.self-check-dock .retry-choice { min-width: 150px; }
.self-check-dock .correct-choice { min-width: 170px; }
.self-check-dock button.selected { transform: translateY(3px); box-shadow: none; }
.parent-view { z-index: 1000; }
.parent-mode-open #app { visibility: hidden; }
.parent-mode-open .parent-view { visibility: visible; }
.solar-grading-gate { display: grid; gap: 8px; margin: 14px 0; padding: 14px; border: 2px solid #d49b32; border-radius: 14px; background: #fff5cb; }
.solar-grading-gate strong { color: #5b4210; font-size: 18px; }
.solar-grading-gate p { color: #705d2e; line-height: 1.55; }
.solar-grading-gate .primary-button { justify-self: start; }

/* iPad Air 横屏比例画布：按屏幕等比例放大或缩小，剩余区域使用纯色留边。 */
