:root {
  --ink: #3f3428;
  --ink-soft: #776353;
  --paper: #f8ebcf;
  --paper-deep: #efd8ad;
  --cream: #fffaf0;
  --leaf: #78ab68;
  --leaf-deep: #507f4f;
  --leaf-light: #b9d68f;
  --sky: #8cc8d3;
  --sky-deep: #4d8fa5;
  --coral: #ef8a79;
  --coral-deep: #c85e57;
  --sun: #f3c75d;
  --honey: #e8a65e;
  --lilac: #b8a5db;
  --shadow: 0 6px 0 rgba(63, 52, 40, 0.14);
  --shadow-hard: 8px 10px 0 rgba(63, 52, 40, 0.14);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 11% 16%, rgba(243, 199, 93, 0.16) 0 95px, transparent 96px),
    radial-gradient(circle at 89% 70%, rgba(120, 171, 104, 0.12) 0 130px, transparent 131px),
    repeating-linear-gradient(
      106deg,
      rgba(63, 52, 40, 0.016) 0,
      rgba(63, 52, 40, 0.016) 1px,
      transparent 1px,
      transparent 8px
    );
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(63, 52, 40, 0.1) 0.55px, transparent 0.7px);
  background-size: 7px 7px;
  opacity: 0.2;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--sky-deep);
  outline-offset: 3px;
}

svg {
  display: block;
}

strong,
b {
  font-weight: 900;
}

[hidden] {
  display: none !important;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 20px 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 64px;
  min-height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--leaf-deep);
  background: var(--cream);
  box-shadow: 0 3px 0 rgba(63, 52, 40, 0.16);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.brand-text {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

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

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 15px;
  background: var(--cream);
  box-shadow: 0 3px 0 rgba(63, 52, 40, 0.16);
  cursor: pointer;
}

.icon-btn::after {
  content: "";
  position: absolute;
  inset: -8px;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.icon-btn:active,
.btn:active,
.level-card:active,
.word-card:active,
.tile-button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(63, 52, 40, 0.16);
}

.icon-btn.with-label {
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}

.screen {
  animation: screen-in 0.34s ease both;
}

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

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

.microcopy {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 24px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 0 5px 0 rgba(63, 52, 40, 0.16);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn:hover {
  filter: brightness(1.02);
}

.btn svg {
  width: 22px;
  height: 22px;
}

.btn-primary {
  min-height: 64px;
  padding: 0 32px;
  color: #2e3d29;
  background: var(--leaf-light);
  font-size: 20px;
}

.btn-secondary {
  background: #fff4d8;
}

.btn-ghost {
  background: transparent;
  box-shadow: none;
  border-color: rgba(63, 52, 40, 0.36);
}

.btn-danger {
  color: #7d332f;
  background: #ffe0da;
}

.btn-small {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 15px;
  font-size: 15px;
}

.btn:disabled,
.level-card:disabled {
  cursor: not-allowed;
  filter: grayscale(0.3);
  opacity: 0.55;
}

.text-link {
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--leaf-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.paper-card {
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: var(--shadow-hard);
}

/* ---------- 首页 ---------- */

.start-screen {
  padding-top: 6px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(26px, 4vw, 58px);
  align-items: center;
  min-height: calc(100dvh - 190px);
  padding: 10px 0 22px;
}

.hero-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.16 / 1;
  border: 3px solid var(--ink);
  border-radius: 44px 28px 46px 32px;
  background: #dcedcf;
  box-shadow: 12px 14px 0 rgba(63, 52, 40, 0.14);
  transform: rotate(-1deg);
}

.hero-art > svg:first-of-type {
  width: 100%;
  height: 100%;
}

.hero-sticker {
  position: absolute;
  top: 8%;
  right: 7%;
  padding: 9px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 4px 0 rgba(63, 52, 40, 0.13);
  font-size: 13px;
  font-weight: 900;
  transform: rotate(5deg);
}

.hero-mascot {
  position: absolute;
  left: 50%;
  bottom: 3%;
  width: 33%;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 0 rgba(63, 52, 40, 0.12));
  animation: mascot-float 4.4s ease-in-out infinite;
}

@keyframes mascot-float {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-1deg); }
  50% { transform: translateX(-50%) translateY(-8px) rotate(1deg); }
}

.hero-ball {
  position: absolute;
  display: grid;
  place-items: center;
  width: 18%;
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 5px 0 rgba(63, 52, 40, 0.14);
  font-size: clamp(22px, 3.2vw, 42px);
  font-weight: 900;
}

.hero-ball::after {
  content: "";
  position: absolute;
  top: 16%;
  left: 22%;
  width: 25%;
  height: 17%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  transform: rotate(-22deg);
}

.hero-ball.one {
  top: 12%;
  left: 11%;
  background: #f3c75d;
  animation: ball-bob 4.1s ease-in-out infinite;
}

.hero-ball.two {
  top: 31%;
  right: 10%;
  color: #fff9e8;
  background: #e88470;
  animation: ball-bob 4.8s ease-in-out -1.1s infinite;
}

.hero-ball.three {
  top: 51%;
  left: 5%;
  background: #acd0a0;
  animation: ball-bob 4.5s ease-in-out -2.3s infinite;
}

@keyframes ball-bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(52px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero-copy h1 em {
  display: block;
  color: var(--coral-deep);
  font-style: normal;
}

.hero-copy .lead {
  max-width: 34em;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 30px;
}

.start-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0 0;
  border-top: 2px dashed rgba(63, 52, 40, 0.16);
}

.mini-stat {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.mini-stat-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--sun);
  background: var(--cream);
}

.mini-stat-icon svg {
  width: 19px;
  height: 19px;
}

.settings-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.setting-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 14px;
  border: 2px solid rgba(63, 52, 40, 0.5);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.7);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.setting-pill svg {
  width: 18px;
  height: 18px;
}

.setting-pill[aria-pressed="false"] {
  color: var(--ink-soft);
  opacity: 0.68;
}

/* ---------- 页面通用 ---------- */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0 26px;
}

.page-head h2 {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.page-head p {
  max-width: 54em;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 8px 0 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 800;
  cursor: pointer;
}

.back-link svg {
  width: 22px;
  height: 22px;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
}

/* ---------- 花园地图 ---------- */

.chapter-stack {
  display: grid;
  gap: 26px;
}

.chapter-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 0.78fr) minmax(0, 1.7fr);
  gap: 24px;
  padding: 24px;
  overflow: hidden;
}

.chapter-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--chapter-soft, rgba(120, 171, 104, 0.13));
  pointer-events: none;
}

.chapter-card[data-chapter="seed"] {
  --chapter-color: #6f9f5e;
  --chapter-soft: rgba(147, 196, 124, 0.2);
}

.chapter-card[data-chapter="town"] {
  --chapter-color: #4d8fa5;
  --chapter-soft: rgba(140, 200, 211, 0.22);
}

.chapter-card[data-chapter="starry"] {
  --chapter-color: #7b67a7;
  --chapter-soft: rgba(184, 165, 219, 0.22);
}

.chapter-info {
  position: relative;
  z-index: 1;
}

.chapter-number {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  font-size: 12px;
  font-weight: 900;
}

.chapter-number svg {
  width: 17px;
  height: 17px;
  color: var(--chapter-color);
}

.chapter-info h3 {
  margin: 16px 0 7px;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.chapter-info p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.chapter-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--chapter-color);
  font-size: 13px;
  font-weight: 900;
}

.chapter-progress svg {
  width: 18px;
  height: 18px;
}

.level-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.level-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 84px;
  padding: 21px 52px 21px 16px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--cream);
  box-shadow: 0 4px 0 rgba(63, 52, 40, 0.13);
  text-align: left;
  cursor: pointer;
}

.level-card::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2.4px solid var(--ink);
  border-top: 2.4px solid var(--ink);
  transform: translateY(-50%) rotate(45deg);
}

.level-card:disabled::after {
  display: none;
}

.level-seed {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--chapter-soft);
  font-size: 18px;
  font-weight: 900;
}

.level-copy {
  min-width: 0;
}

.level-copy strong {
  display: block;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-copy span {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 12px;
}

.level-stars {
  position: absolute;
  right: 14px;
  bottom: 9px;
  display: flex;
  gap: 1px;
}

.level-stars svg {
  width: 14px;
  height: 14px;
  color: rgba(63, 52, 40, 0.18);
}

.level-stars svg.filled {
  color: var(--sun);
}

.level-lock {
  position: absolute;
  right: 17px;
  top: 50%;
  width: 19px;
  height: 19px;
  color: var(--ink-soft);
  transform: translateY(-50%);
}

.map-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 26px 0 0;
}

/* ---------- 认词卡 ---------- */

.preview-card {
  padding: clamp(24px, 4vw, 46px);
  background:
    linear-gradient(rgba(255, 250, 240, 0.94), rgba(255, 250, 240, 0.94)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(63, 52, 40, 0.045) 31px 32px);
}

.preview-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
}

.preview-head h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.preview-head p {
  max-width: 42em;
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.goal-badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 116px;
  min-height: 104px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 26px;
  background: #fff3cd;
  box-shadow: 0 4px 0 rgba(63, 52, 40, 0.13);
  text-align: center;
}

.goal-badge strong {
  display: block;
  color: var(--coral-deep);
  font-size: 30px;
  line-height: 1;
}

.goal-badge span {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 800;
}

.preview-word-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(146px, 1fr));
  gap: 14px;
  margin: 30px 0 26px;
}

.word-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 16px 12px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: #fffdf7;
  box-shadow: 0 5px 0 rgba(63, 52, 40, 0.13);
  cursor: pointer;
}

.word-card::before {
  content: "";
  position: absolute;
  top: -24px;
  right: -24px;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: rgba(243, 199, 93, 0.16);
}

.word-card .pinyin {
  color: var(--sky-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.word-card strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(28px, 3.8vw, 38px);
  letter-spacing: 0.08em;
}

.word-card .listen-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.word-card .listen-dot svg {
  width: 15px;
  height: 15px;
}

.preview-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 28px;
}

.note-chip {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 64px;
  padding: 12px 14px;
  border: 2px dashed rgba(63, 52, 40, 0.22);
  border-radius: 17px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.note-chip strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 13px;
}

.note-chip svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--leaf-deep);
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- 游戏 ---------- */

.game-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: #dcedcf;
  overflow: hidden;
}

.game-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 8px 16px;
  background: rgba(255, 250, 240, 0.9);
  border-bottom: 2px solid rgba(63, 52, 40, 0.15);
  backdrop-filter: blur(10px);
}

.game-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.game-heading .level-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 36px;
  height: 36px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  font-size: 13px;
  font-weight: 900;
}

.game-heading strong {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-hud {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 43px;
  padding: 0 12px;
  border: 2px solid rgba(63, 52, 40, 0.42);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.88);
  font-size: 13px;
  font-weight: 900;
}

.hud-pill svg {
  width: 17px;
  height: 17px;
  color: var(--coral-deep);
}

.combo-pill {
  color: #8c4b1e;
  background: #ffe8a8;
  animation: combo-pop 0.22s ease both;
}

@keyframes combo-pop {
  from { transform: scale(0.82); }
  to { transform: scale(1); }
}

.game-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.word-toasts {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: min(92%, 480px);
  pointer-events: none;
  transform: translateX(-50%);
}

.word-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 18px 9px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff7dd;
  box-shadow: 0 5px 0 rgba(63, 52, 40, 0.15);
  animation: toast-in 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.word-toast.chain {
  background: #ffe7da;
}

.word-toast .toast-seed {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--leaf-light);
}

.word-toast .toast-seed svg {
  width: 20px;
  height: 20px;
}

.word-toast .toast-copy {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.word-toast .toast-copy strong {
  font-size: 22px;
  letter-spacing: 0.08em;
}

.word-toast .toast-copy span {
  color: var(--sky-deep);
  font-size: 12px;
  font-weight: 800;
}

.word-toast .toast-combo {
  color: var(--coral-deep);
  font-size: 12px;
  font-weight: 900;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.word-toast.is-leaving {
  animation: toast-out 0.28s ease forwards;
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(-8px) scale(0.95); }
}

.game-tip {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 4;
  max-width: min(90%, 560px);
  padding: 9px 16px;
  border: 2px solid rgba(63, 52, 40, 0.4);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 3px 0 rgba(63, 52, 40, 0.1);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  transform: translateX(-50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.game-tip[hidden] {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
}

.seed-dock {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  min-height: 94px;
  padding: 10px 18px max(10px, env(safe-area-inset-bottom));
  border-top: 2px solid rgba(63, 52, 40, 0.15);
  background: rgba(255, 248, 233, 0.94);
  backdrop-filter: blur(10px);
}

.seed-current {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seed-label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
  writing-mode: vertical-rl;
  letter-spacing: 0.12em;
}

.seed-char {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 5px 0 rgba(63, 52, 40, 0.15);
  font-size: 31px;
  font-weight: 900;
}

.seed-next {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seed-next-label {
  margin-right: 2px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.next-char {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 2px solid rgba(63, 52, 40, 0.62);
  border-radius: 50%;
  background: var(--cream);
  font-size: 20px;
  font-weight: 900;
}

.dock-hint {
  min-width: 52px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  font-size: 14px;
}

.dock-hint svg {
  width: 19px;
  height: 19px;
}

/* ---------- 教学与暂停 ---------- */

.game-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(49, 44, 34, 0.28);
  backdrop-filter: blur(5px);
}

.coach-card {
  position: relative;
  width: min(560px, 100%);
  padding: 26px 26px 22px;
  border: 3px solid var(--ink);
  border-radius: 30px;
  background: var(--cream);
  box-shadow: var(--shadow-hard);
  text-align: center;
}

.coach-mascot {
  width: 104px;
  margin: -70px auto 4px;
  filter: drop-shadow(0 6px 0 rgba(63, 52, 40, 0.13));
}

.coach-card h2 {
  margin: 4px 0 8px;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.coach-card p {
  margin: 0 auto;
  max-width: 36em;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.coach-demo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  max-width: 360px;
  margin: 20px auto;
}

.coach-char {
  display: grid;
  place-items: center;
  min-height: 74px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 5px 0 rgba(63, 52, 40, 0.13);
  font-size: 36px;
  font-weight: 900;
}

.coach-char.left {
  background: var(--sun);
}

.coach-char.right {
  background: var(--leaf-light);
}

.coach-plus {
  font-size: 28px;
  font-weight: 900;
}

.coach-equals {
  grid-column: 1 / -1;
  color: var(--coral-deep);
  font-size: 13px;
  font-weight: 900;
}

.coach-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.pause-panel {
  width: min(430px, 100%);
  padding: 28px;
  text-align: center;
}

.pause-panel h2 {
  margin: 0 0 6px;
  font-size: 30px;
}

.pause-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.pause-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.pause-actions .btn {
  width: 100%;
}

.pause-toggles {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.mini-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 12px;
  border: 2px solid rgba(63, 52, 40, 0.35);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.mini-toggle svg {
  width: 17px;
  height: 17px;
}

/* ---------- 结算 ---------- */

.result-screen {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 100px);
}

.result-card {
  width: min(760px, 100%);
  padding: clamp(24px, 4vw, 42px);
  text-align: center;
}

.result-kicker {
  margin: 0;
  color: var(--leaf-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.result-card h2 {
  margin: 8px 0 3px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.045em;
}

.result-subtitle {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.result-stars {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 20px 0 8px;
}

.result-stars .star {
  width: clamp(44px, 7vw, 64px);
  height: clamp(44px, 7vw, 64px);
  color: rgba(63, 52, 40, 0.14);
  transform: scale(0.82);
}

.result-stars .star.filled {
  color: var(--sun);
  animation: star-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.35) both;
}

.result-stars .star:nth-child(2) { animation-delay: 0.1s; }
.result-stars .star:nth-child(3) { animation-delay: 0.2s; }

@keyframes star-in {
  from { transform: scale(0.2) rotate(-16deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.stat-box {
  min-height: 86px;
  padding: 14px 10px;
  border: 2px solid rgba(63, 52, 40, 0.18);
  border-radius: 18px;
  background: #fffdf7;
}

.stat-box strong {
  display: block;
  font-size: 25px;
}

.stat-box span {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.result-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 22px;
}

.result-word {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 46px;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: #fff6dc;
  cursor: pointer;
}

.result-word strong {
  font-size: 18px;
  letter-spacing: 0.06em;
}

.result-word span {
  color: var(--sky-deep);
  font-size: 10px;
  font-weight: 800;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ---------- 成长册 ---------- */

.book-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.summary-card {
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--cream);
  box-shadow: 0 4px 0 rgba(63, 52, 40, 0.12);
}

.summary-card strong {
  display: block;
  font-size: 26px;
}

.summary-card span {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.chapter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.chapter-tab {
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid rgba(63, 52, 40, 0.35);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.65);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.chapter-tab.is-active {
  border-color: var(--ink);
  background: var(--leaf-light);
  box-shadow: 0 3px 0 rgba(63, 52, 40, 0.14);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 11px;
}

.book-word {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 14px 10px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--cream);
  box-shadow: 0 3px 0 rgba(63, 52, 40, 0.1);
  cursor: pointer;
}

.book-word .pinyin {
  color: var(--sky-deep);
  font-size: 11px;
  font-weight: 800;
}

.book-word strong {
  margin-top: 5px;
  font-size: 25px;
  letter-spacing: 0.07em;
}

.book-word.locked {
  border-style: dashed;
  border-color: rgba(63, 52, 40, 0.28);
  background: rgba(255, 250, 240, 0.5);
  box-shadow: none;
  cursor: default;
}

.book-word.locked strong,
.book-word.locked .pinyin {
  color: rgba(63, 52, 40, 0.3);
}

.book-word .word-flower {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 17px;
  height: 17px;
  color: var(--coral);
}

.book-word.locked .word-flower {
  color: rgba(63, 52, 40, 0.18);
}

/* ---------- 家长页 ---------- */

.parent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.parent-card {
  padding: 18px;
}

.parent-card strong {
  display: block;
  font-size: 27px;
}

.parent-card span {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.parent-note {
  margin: 18px 0;
  padding: 16px 18px;
  border: 2px dashed rgba(63, 52, 40, 0.24);
  border-radius: 18px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.session-list {
  display: grid;
  gap: 8px;
}

.session-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(58px, 0.55fr));
  gap: 8px;
  align-items: center;
  min-height: 54px;
  padding: 9px 13px;
  border: 1.5px solid rgba(63, 52, 40, 0.18);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.7);
  font-size: 11px;
}

.session-row strong {
  font-size: 12px;
}

.session-row span {
  color: var(--ink-soft);
}

.session-row svg {
  width: 14px;
  height: 14px;
  color: rgba(63, 52, 40, 0.16);
}

.session-row svg.filled {
  color: var(--sun);
}

.parent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* ---------- 设置弹层 ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(49, 44, 34, 0.35);
  backdrop-filter: blur(5px);
}

.modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(86dvh, 760px);
  overflow: auto;
  padding: 26px;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: var(--cream);
  box-shadow: var(--shadow-hard);
}

.modal-panel h2 {
  margin: 0;
  font-size: 30px;
}

.modal-panel > p {
  margin: 6px 0 18px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.settings-list {
  display: grid;
  gap: 8px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 60px;
  padding: 10px 14px;
  border: 2px solid rgba(63, 52, 40, 0.16);
  border-radius: 16px;
  background: #fffdf7;
}

.toggle-row strong {
  display: block;
  font-size: 14px;
}

.toggle-row > div {
  min-width: 0;
}

.toggle-row > div > svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--leaf-deep);
}

.toggle-row span {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
}

.switch {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #e7ddc9;
  cursor: pointer;
  transition: background 0.18s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  transition: transform 0.18s ease;
}

.switch[aria-pressed="true"] {
  background: var(--leaf-light);
}

.switch[aria-pressed="true"]::after {
  transform: translateX(24px);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions .btn {
  flex: 1 1 140px;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  cursor: pointer;
}

.close-btn svg {
  width: 20px;
  height: 20px;
}

/* ---------- 响应式 ---------- */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 4px;
  }

  .hero-art {
    order: 2;
    width: min(660px, 100%);
    margin: 0 auto;
  }

  .hero-copy {
    order: 1;
    padding-top: 20px;
  }

  .hero-copy h1 {
    font-size: clamp(50px, 11vw, 78px);
  }

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

  .book-summary,
  .parent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (orientation: portrait) and (min-width: 721px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 30px;
    padding: 34px 0 26px;
  }

  .hero-copy {
    order: 1;
    width: min(700px, 100%);
    margin: 0 auto;
    text-align: center;
  }

  .hero-copy .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-art {
    order: 2;
    width: min(680px, 100%);
    margin: 0 auto;
  }

  .start-footer {
    margin-top: 18px;
  }
}

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

  .topbar {
    min-height: 64px;
  }

  .brand-text {
    font-size: 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .icon-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0 10px;
  }

  .icon-btn.with-label span {
    display: none;
  }

  .hero {
    gap: 22px;
  }

  .hero-art {
    border-radius: 32px 20px 34px 24px;
  }

  .hero-actions .btn {
    flex: 1 1 190px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 18px;
  }

  .chapter-card {
    padding: 18px;
  }

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

  .level-card {
    min-height: 76px;
  }

  .preview-word-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-notes {
    grid-template-columns: 1fr;
  }

  .preview-head {
    flex-direction: column;
  }

  .goal-badge {
    width: 100%;
    min-height: 76px;
    grid-template-columns: auto auto;
    gap: 8px;
  }

  .goal-badge strong {
    font-size: 25px;
  }

  .game-topbar {
    min-height: 62px;
    padding: 6px 10px;
  }

  .game-heading strong {
    font-size: 14px;
  }

  .game-heading .level-no {
    min-width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .hud-pill {
    min-height: 40px;
    padding: 0 9px;
    font-size: 12px;
  }

  .game-hud {
    gap: 5px;
  }

  .hud-pill .hide-small {
    display: none;
  }

  .seed-dock {
    min-height: 84px;
    gap: 12px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .seed-char {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }

  .next-char {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .seed-label {
    display: none;
  }

  .seed-next-label {
    display: none;
  }

  .dock-hint {
    min-height: 48px;
    padding: 0 12px;
    font-size: 13px;
  }

  .game-tip {
    bottom: 8px;
    font-size: 11px;
  }

  .result-stats {
    gap: 7px;
  }

  .stat-box {
    min-height: 76px;
    padding: 11px 6px;
  }

  .stat-box strong {
    font-size: 21px;
  }

  .book-summary,
  .parent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .session-row {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(48px, 0.5fr));
  }

  .session-row .optional {
    display: none;
  }

  .coach-card {
    padding: 22px 18px 18px;
  }

  .coach-mascot {
    width: 88px;
    margin-top: -60px;
  }

  .modal-panel {
    padding: 22px 18px;
  }
}

@media (max-width: 420px) {
  .preview-word-grid {
    gap: 9px;
  }

  .word-card {
    min-height: 106px;
  }

  .word-card strong {
    font-size: 26px;
  }

  .preview-actions .btn-primary {
    width: 100%;
  }

  .result-actions .btn {
    flex: 1 1 120px;
  }

  .seed-next {
    gap: 5px;
  }

  .next-char {
    width: 33px;
    height: 33px;
    font-size: 16px;
  }
}

@media (orientation: portrait) and (max-height: 760px) {
  .game-topbar {
    min-height: 56px;
  }

  .seed-dock {
    min-height: 76px;
  }
}

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

/* =========================================================
   纸片花园 · 儿童场景化界面
   目标：少文字、大动作、可直接触摸、像在花园里玩
   ========================================================= */

:root {
  --kid-ink: #3c3126;
  --kid-soft: #7b6959;
  --kid-cream: #fff9e9;
  --kid-paper: #f8ebcf;
  --kid-green: #8dbb74;
  --kid-green-deep: #4f7748;
  --kid-green-pale: #dcecc9;
  --kid-yellow: #f3c75d;
  --kid-peach: #ee9c84;
  --kid-sky: #9ccbd0;
  --kid-lilac: #b8a6d8;
  --kid-line: 3px solid var(--kid-ink);
  --kid-shadow: 0 7px 0 rgba(60, 49, 38, 0.16);
  --kid-shadow-soft: 0 12px 30px rgba(60, 49, 38, 0.13);
}

body {
  color: var(--kid-ink);
  background-color: #f7e8ca;
  background-image:
    radial-gradient(circle at 8% 15%, rgba(243, 199, 93, 0.2) 0 100px, transparent 101px),
    radial-gradient(circle at 92% 74%, rgba(126, 174, 105, 0.16) 0 145px, transparent 146px),
    radial-gradient(rgba(60, 49, 38, 0.1) 0.55px, transparent 0.65px);
  background-size: auto, auto, 8px 8px;
}

body::before {
  opacity: 0.12;
}

.app-shell {
  width: min(1240px, 100%);
  padding: 10px 20px 12px;
}

.topbar {
  min-height: 64px;
  padding: 0 4px;
}

.brand {
  border-radius: 20px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border: var(--kid-line);
  background: #fff4d9;
  box-shadow: 0 4px 0 rgba(60, 49, 38, 0.13);
}

.brand-text {
  font-size: 19px;
  letter-spacing: 0.04em;
}

.icon-btn {
  min-width: 50px;
  min-height: 50px;
  border: var(--kid-line);
  border-radius: 17px;
  background: #fff9e9;
  box-shadow: 0 4px 0 rgba(60, 49, 38, 0.13);
}

.icon-btn.with-label {
  min-width: 78px;
  border-radius: 18px;
}

.back-link {
  min-height: 48px;
  padding: 0 12px 0 8px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  font-size: 14px;
}

.back-link:hover {
  background: rgba(255, 249, 233, 0.66);
}

/* ---------- 首页：整幅花园，一个目标 ---------- */

.home-screen {
  display: flex;
  height: calc(100dvh - 34px);
  min-height: calc(100dvh - 38px);
  flex-direction: column;
}

.home-scene {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: var(--kid-line);
  border-radius: 40px 30px 44px 34px;
  background: #e4efcb;
  box-shadow: 10px 13px 0 rgba(60, 49, 38, 0.13), var(--kid-shadow-soft);
}

.home-scene-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.home-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 249, 233, 0.84) 0%, rgba(255, 249, 233, 0.5) 42%, transparent 68%),
    linear-gradient(0deg, rgba(247, 232, 202, 0.35) 0%, transparent 30%);
}

.home-scene::after {
  content: "";
  position: absolute;
  right: clamp(26px, 7vw, 112px);
  bottom: 16px;
  width: 190px;
  height: 20px;
  border-radius: 50%;
  background: rgba(60, 49, 38, 0.1);
  filter: blur(2px);
  pointer-events: none;
}

.home-copy-card {
  position: absolute;
  top: 50%;
  left: clamp(24px, 4.6vw, 62px);
  z-index: 2;
  width: min(510px, calc(100% - 84px));
  padding: clamp(25px, 3.1vw, 40px);
  border: var(--kid-line);
  border-radius: 38px 28px 42px 30px;
  background: rgba(255, 249, 233, 0.92);
  box-shadow: 11px 13px 0 rgba(60, 49, 38, 0.13);
  transform: translateY(-51%) rotate(-0.35deg);
  backdrop-filter: blur(6px);
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border: 2px solid rgba(60, 49, 38, 0.7);
  border-radius: 999px;
  color: var(--kid-green-deep);
  background: #e5f1d2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.home-copy-card h1 {
  margin: 18px 0 14px;
  color: var(--kid-ink);
  font-size: clamp(48px, 5.6vw, 76px);
  font-weight: 900;
  line-height: 0.97;
  letter-spacing: -0.07em;
}

.home-copy-card h1 em {
  position: relative;
  z-index: 0;
  color: var(--kid-green-deep);
  font-style: normal;
  white-space: nowrap;
}

.home-copy-card h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -6px;
  bottom: 5px;
  left: -5px;
  height: 18px;
  border-radius: 999px;
  background: #f4cf68;
  transform: rotate(-1.5deg);
}

.home-lead {
  max-width: 25em;
  margin: 0;
  color: var(--kid-soft);
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 650;
  line-height: 1.7;
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 11px;
  margin-top: 24px;
}

.home-play {
  display: flex;
  flex: 1 1 255px;
  align-items: center;
  gap: 13px;
  min-height: 78px;
  padding: 8px 17px 8px 10px;
  border: var(--kid-line);
  border-radius: 25px 21px 26px 20px;
  color: #2f412a;
  background: var(--kid-green);
  box-shadow: 0 7px 0 #4f7748;
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.home-play:hover {
  filter: brightness(1.035);
  transform: translateY(-2px);
  box-shadow: 0 9px 0 #4f7748;
}

.home-play:active {
  transform: translateY(4px);
  box-shadow: 0 3px 0 #4f7748;
}

.home-play-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 55px;
  height: 55px;
  border: 2px solid var(--kid-ink);
  border-radius: 50%;
  background: #fff6d8;
}

.home-play-icon svg {
  width: 25px;
  height: 25px;
  margin-left: 3px;
}

.home-play-copy {
  display: grid;
  flex: 1;
  gap: 2px;
}

.home-play-copy strong {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.home-play-copy small {
  color: rgba(47, 65, 42, 0.74);
  font-size: 12px;
  font-weight: 800;
}

.home-play-arrow {
  font-size: 26px;
  font-weight: 900;
}

.home-continue {
  flex: 0 0 auto;
  min-height: 64px;
  padding: 0 18px;
  border: 2px solid var(--kid-ink);
  border-radius: 20px;
  background: #fff6db;
  box-shadow: 0 5px 0 rgba(60, 49, 38, 0.16);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.home-reassurance {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 18px 0 0;
  color: var(--kid-green-deep);
  font-size: 13px;
  font-weight: 800;
}

.home-reassurance svg {
  width: 20px;
  height: 20px;
}

.home-status-strip {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 64px;
  padding: 7px 9px 7px 15px;
  border: 2px solid rgba(60, 49, 38, 0.86);
  border-radius: 22px;
  background: rgba(255, 249, 233, 0.9);
  box-shadow: 0 5px 0 rgba(60, 49, 38, 0.12);
  backdrop-filter: blur(7px);
}

.home-stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.home-stat svg {
  width: 22px;
  height: 22px;
  color: var(--kid-green-deep);
}

.home-stat:first-child svg {
  color: var(--kid-peach);
}

.home-stat strong {
  font-size: 21px;
  font-weight: 900;
}

.home-stat small {
  color: var(--kid-soft);
  font-size: 11px;
  font-weight: 800;
}

.home-quick-settings {
  display: flex;
  gap: 7px;
  margin-left: auto;
}

.home-quick-settings .setting-pill {
  min-height: 46px;
  padding: 0 13px;
  border: 2px solid rgba(60, 49, 38, 0.58);
  border-radius: 15px;
  background: #fffdf5;
  box-shadow: 0 3px 0 rgba(60, 49, 38, 0.1);
  font-size: 12px;
}

/* ---------- 花园地图：藤蔓上的四粒种子 ---------- */

.map-screen {
  display: flex;
  height: calc(100dvh - 34px);
  min-height: calc(100dvh - 38px);
  flex-direction: column;
  gap: 10px;
}

.map-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 8px;
}

.map-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.map-heading p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--kid-soft);
  font-size: 13px;
  font-weight: 650;
}

.map-head-actions {
  flex: 0 0 auto;
}

.map-book-button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 0 13px 0 14px;
  border: var(--kid-line);
  border-radius: 20px;
  background: #fff7e2;
  box-shadow: 0 5px 0 rgba(60, 49, 38, 0.14);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.map-book-button svg {
  width: 22px;
  height: 22px;
  color: var(--kid-green-deep);
}

.map-book-button strong {
  display: grid;
  place-items: center;
  min-width: 31px;
  height: 31px;
  margin-left: 2px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fffdf4;
  background: var(--kid-green-deep);
  font-size: 13px;
}

.chapter-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 4px;
}

.chapter-pill {
  --tone: var(--kid-green);
  --tone-pale: #eef5e2;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 8px 12px;
  border: 2px solid rgba(60, 49, 38, 0.42);
  border-radius: 22px 18px 24px 19px;
  background: rgba(255, 249, 233, 0.68);
  box-shadow: 0 3px 0 rgba(60, 49, 38, 0.08);
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.chapter-pill[data-chapter-tone="town"] {
  --tone: #e9a26e;
  --tone-pale: #ffead7;
}

.chapter-pill[data-chapter-tone="starry"] {
  --tone: #9d8bc4;
  --tone-pale: #ece5f5;
}

.chapter-pill:hover {
  transform: translateY(-1px);
}

.chapter-pill.is-active {
  border: var(--kid-line);
  background: var(--tone-pale);
  box-shadow: 0 5px 0 rgba(60, 49, 38, 0.15);
  transform: translateY(-2px);
}

.chapter-pill-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 2px solid var(--kid-ink);
  border-radius: 50%;
  background: var(--tone);
}

.chapter-pill-icon svg {
  width: 23px;
  height: 23px;
}

.chapter-pill-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.chapter-pill-copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-pill-copy small {
  color: var(--kid-soft);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.chapter-pill-dot {
  width: 9px;
  height: 9px;
  margin-left: auto;
  border: 2px solid rgba(60, 49, 38, 0.34);
  border-radius: 50%;
  background: transparent;
}

.chapter-pill.is-active .chapter-pill-dot {
  border-color: var(--kid-ink);
  background: var(--kid-ink);
}

.map-board {
  --map-sky: #e1f1d1;
  --map-sun: #f4c75d;
  --map-cloud: #fff9e8;
  --map-hill-far: #b8d590;
  --map-hill: #87b86f;
  --map-flower: #f3ca67;
  --map-panel: #fff6df;
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border: var(--kid-line);
  border-radius: 36px 28px 40px 31px;
  background: var(--map-sky);
  box-shadow: 10px 12px 0 rgba(60, 49, 38, 0.12), var(--kid-shadow-soft);
}

.map-board[data-chapter="town"] {
  --map-sky: #f9e4c2;
  --map-sun: #eead61;
  --map-cloud: #fff8e9;
  --map-hill-far: #d2cb8b;
  --map-hill: #9fb779;
  --map-flower: #e99276;
  --map-panel: #fff5dd;
}

.map-board[data-chapter="starry"] {
  --map-sky: #dad7ed;
  --map-sun: #f1d58a;
  --map-cloud: #f8f2e5;
  --map-hill-far: #aeadc4;
  --map-hill: #8d9a83;
  --map-flower: #d5b6df;
  --map-panel: #f9f2e2;
}

.map-board-art {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}

.map-board::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 17%, rgba(255, 250, 232, 0.32) 0 85px, transparent 86px),
    linear-gradient(0deg, rgba(58, 79, 52, 0.1) 0%, transparent 22%);
}

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

.map-vine-shadow,
.map-vine-line,
.map-vine-dash {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.map-vine-shadow {
  stroke: rgba(72, 94, 62, 0.2);
  stroke-width: 18px;
}

.map-vine-line {
  stroke: #fff2cf;
  stroke-width: 11px;
}

.map-vine-dash {
  stroke: rgba(84, 121, 71, 0.72);
  stroke-width: 3px;
  stroke-dasharray: 1 18;
}

.map-vine-leaves {
  fill: #79a568;
  stroke: rgba(60, 49, 38, 0.55);
  stroke-width: 2;
}

.map-board-info {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 5;
  width: min(275px, 30%);
  padding: 18px 19px 16px;
  border: var(--kid-line);
  border-radius: 27px 20px 29px 22px;
  background: var(--map-panel);
  background: color-mix(in srgb, var(--map-panel) 91%, transparent);
  box-shadow: 7px 8px 0 rgba(60, 49, 38, 0.12);
  transform: rotate(-0.45deg);
  backdrop-filter: blur(5px);
}

.map-chapter-tag {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--kid-green-deep);
  background: rgba(118, 163, 99, 0.18);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.map-board-info h3 {
  margin: 8px 0 3px;
  font-size: clamp(26px, 2.7vw, 35px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.map-board-info p {
  margin: 0;
  color: var(--kid-soft);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.map-progress-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.map-progress-line span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 8px;
  border: 1.5px solid rgba(60, 49, 38, 0.25);
  border-radius: 999px;
  background: rgba(255, 252, 242, 0.7);
  font-size: 11px;
  font-weight: 900;
}

.map-progress-line svg {
  width: 15px;
  height: 15px;
  color: var(--kid-peach);
}

.map-progress-line span:last-child svg {
  color: #e2ad42;
}

.map-collect-badge {
  position: absolute;
  top: 25px;
  right: 25px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 45px;
  padding: 0 14px;
  border: 2px solid rgba(60, 49, 38, 0.8);
  border-radius: 999px;
  background: rgba(255, 249, 232, 0.88);
  box-shadow: 0 4px 0 rgba(60, 49, 38, 0.1);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(5px);
}

.map-collect-badge svg {
  width: 17px;
  height: 17px;
  color: var(--kid-green-deep);
}

.map-collect-badge strong {
  font-size: 17px;
  font-weight: 900;
}

.level-trail {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.level-stop {
  position: absolute;
  display: flex;
  width: 154px;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
}

.level-stop:nth-child(1) {
  top: 55%;
  left: 8%;
  transform: rotate(-1.4deg);
}

.level-stop:nth-child(2) {
  top: 20%;
  left: 34%;
  transform: rotate(1.1deg);
}

.level-stop:nth-child(3) {
  top: 46%;
  left: 58%;
  transform: rotate(-0.8deg);
}

.level-stop:nth-child(4) {
  top: 19%;
  left: 82%;
  transform: rotate(1.3deg);
}

.level-stop-bubble {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 4px solid var(--kid-ink);
  border-radius: 50% 46% 51% 47%;
  background: #fff3cf;
  box-shadow: 0 7px 0 rgba(60, 49, 38, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.level-stop:nth-child(2n) .level-stop-bubble {
  background: #e4efd4;
}

.level-stop:nth-child(3n) .level-stop-bubble {
  background: #ffe0d0;
}

.level-stop.is-played .level-stop-bubble {
  background: #f6d371;
}

.level-stop.is-perfect .level-stop-bubble {
  background: #9fca80;
  box-shadow: 0 0 0 8px rgba(246, 211, 113, 0.34), 0 7px 0 rgba(60, 49, 38, 0.18);
}

.level-stop:hover .level-stop-bubble {
  transform: translateY(-4px) rotate(-2deg);
  box-shadow: 0 11px 0 rgba(60, 49, 38, 0.16);
}

.level-stop:active .level-stop-bubble {
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(60, 49, 38, 0.16);
}

.level-stop-bubble::before,
.level-stop-bubble::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 25px;
  height: 17px;
  border: 2px solid var(--kid-ink);
  border-radius: 90% 10% 90% 10%;
  background: #87b973;
}

.level-stop-bubble::before {
  top: -8px;
  right: 4px;
  transform: rotate(-28deg);
}

.level-stop-bubble::after {
  bottom: 1px;
  left: -11px;
  transform: rotate(24deg) scale(0.8);
}

.level-stop-number {
  position: absolute;
  top: -10px;
  left: -5px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 7px;
  border: 2px solid var(--kid-ink);
  border-radius: 999px;
  background: #fffcf0;
  font-size: 12px;
  font-weight: 900;
}

.level-stop-symbol svg {
  width: 43px;
  height: 43px;
  color: var(--kid-green-deep);
}

.level-stop.is-played .level-stop-symbol svg {
  color: #fff8e4;
  filter: drop-shadow(0 2px 0 rgba(60, 49, 38, 0.28));
}

.level-stop-copy {
  display: grid;
  justify-items: center;
  min-width: 136px;
  margin-top: 9px;
  padding: 6px 11px 7px;
  border: 2px solid var(--kid-ink);
  border-radius: 14px 11px 15px 12px;
  background: #fff8e6;
  box-shadow: 0 4px 0 rgba(60, 49, 38, 0.12);
}

.level-stop-copy strong {
  max-width: 132px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-stop-stars {
  display: flex;
  gap: 2px;
  min-height: 13px;
  margin-top: 2px;
}

.level-stop-stars svg {
  width: 13px;
  height: 13px;
  color: rgba(60, 49, 38, 0.16);
}

.level-stop-stars svg.filled {
  color: #e5aa37;
}

.map-board-note {
  position: absolute;
  bottom: 13px;
  left: 50%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 31px;
  margin: 0;
  padding: 0 12px;
  border: 1.5px solid rgba(60, 49, 38, 0.32);
  border-radius: 999px;
  color: rgba(60, 49, 38, 0.7);
  background: rgba(255, 249, 232, 0.7);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
  backdrop-filter: blur(4px);
}

.map-board-note svg {
  width: 14px;
  height: 14px;
}

/* ---------- 认词页：一篮可以听的词语种子 ---------- */

.preview-screen {
  min-height: calc(100dvh - 38px);
}

.preview-sheet {
  position: relative;
  width: min(1110px, 100%);
  margin: 2px auto 0;
  padding: clamp(22px, 3.5vw, 42px);
  overflow: hidden;
  border: var(--kid-line);
  border-radius: 42px 30px 45px 32px;
  background:
    linear-gradient(145deg, rgba(255, 253, 244, 0.98), rgba(253, 243, 218, 0.98)),
    var(--kid-cream);
  box-shadow: 11px 13px 0 rgba(60, 49, 38, 0.13), var(--kid-shadow-soft);
}

.preview-sheet::before {
  content: "";
  position: absolute;
  top: -65px;
  right: -55px;
  width: 230px;
  height: 230px;
  border: 3px solid rgba(60, 49, 38, 0.1);
  border-radius: 50%;
  background: rgba(248, 204, 94, 0.13);
  pointer-events: none;
}

.preview-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.preview-heading h2 {
  margin: 9px 0 6px;
  font-size: clamp(34px, 4.3vw, 56px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.preview-heading p {
  max-width: 38em;
  margin: 0;
  color: var(--kid-soft);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.65;
}

.preview-level-stamp {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  padding: 0 12px;
  border: 2px solid rgba(60, 49, 38, 0.55);
  border-radius: 999px;
  color: var(--kid-green-deep);
  background: #e6f1d5;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.goal-flower {
  position: relative;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border: var(--kid-line);
  border-radius: 47% 53% 50% 48%;
  background: #f6d374;
  box-shadow: 0 7px 0 rgba(60, 49, 38, 0.17);
  text-align: center;
  transform: rotate(2.5deg);
}

.goal-flower::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px dashed rgba(60, 49, 38, 0.27);
  border-radius: 50%;
}

.goal-flower-petals {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 249, 229, 0.47);
}

.goal-flower-petals svg {
  width: 91px;
  height: 91px;
  transform: rotate(-8deg);
}

.goal-flower strong {
  position: relative;
  z-index: 1;
  margin-top: -4px;
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
}

.goal-flower small {
  position: relative;
  z-index: 1;
  margin-top: -2px;
  color: rgba(60, 49, 38, 0.72);
  font-size: 10px;
  font-weight: 900;
}

.seed-shelf {
  position: relative;
  z-index: 1;
  margin-top: 25px;
}

.seed-shelf-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.seed-shelf-caption span {
  font-size: 16px;
  font-weight: 900;
}

.seed-shelf-caption small {
  color: var(--kid-soft);
  font-size: 11px;
  font-weight: 750;
}

.seed-word-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 11px;
  margin-top: 10px;
}

.seed-word {
  --seed-tone: #f8d47d;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 126px;
  padding: 20px 11px 14px;
  overflow: hidden;
  border: var(--kid-line);
  border-radius: 27px 20px 30px 22px;
  background: var(--seed-tone);
  box-shadow: 0 5px 0 rgba(60, 49, 38, 0.15);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.seed-word:nth-child(5n + 2) {
  --seed-tone: #cbe4b5;
}

.seed-word:nth-child(5n + 3) {
  --seed-tone: #f1b9a3;
}

.seed-word:nth-child(5n + 4) {
  --seed-tone: #b9dce0;
}

.seed-word:nth-child(5n + 5) {
  --seed-tone: #d4c8ea;
}

.seed-word::before {
  content: "";
  position: absolute;
  top: 9px;
  right: 10px;
  left: 10px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.seed-word:hover {
  filter: brightness(1.025);
  transform: translateY(-3px) rotate(-0.5deg);
  box-shadow: 0 8px 0 rgba(60, 49, 38, 0.13);
}

.seed-word:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(60, 49, 38, 0.13);
}

.seed-word-speaker {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid rgba(60, 49, 38, 0.65);
  border-radius: 50%;
  background: rgba(255, 250, 233, 0.7);
}

.seed-word-speaker svg {
  width: 16px;
  height: 16px;
}

.seed-word-pinyin {
  align-self: end;
  max-width: 100%;
  overflow: hidden;
  color: rgba(60, 49, 38, 0.62);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seed-word strong {
  align-self: start;
  margin-top: 1px;
  font-size: clamp(29px, 2.7vw, 39px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.2);
}

.seed-word-leaf {
  position: absolute;
  right: 8px;
  bottom: 6px;
  color: rgba(60, 49, 38, 0.33);
}

.seed-word-leaf svg {
  width: 20px;
  height: 20px;
}

.preview-tip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 19px;
  padding: 12px 15px;
  border: 2px dashed rgba(60, 49, 38, 0.28);
  border-radius: 19px;
  background: rgba(255, 250, 235, 0.66);
}

.preview-tip-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 2px solid var(--kid-ink);
  border-radius: 50%;
  color: var(--kid-green-deep);
  background: #dcecc8;
}

.preview-tip-icon svg {
  width: 22px;
  height: 22px;
}

.preview-tip div {
  display: grid;
  gap: 2px;
}

.preview-tip strong {
  font-size: 13px;
  font-weight: 900;
}

.preview-tip span:not(.preview-tip-icon) {
  color: var(--kid-soft);
  font-size: 11px;
  font-weight: 650;
}

.preview-playbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
}

.preview-start {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 8px 17px 8px 10px;
  border: var(--kid-line);
  border-radius: 24px 19px 25px 20px;
  color: #2f412a;
  background: var(--kid-green);
  box-shadow: 0 7px 0 #4f7748;
  text-align: left;
  cursor: pointer;
}

.preview-start:hover {
  filter: brightness(1.03);
  transform: translateY(-2px);
}

.preview-start:active {
  transform: translateY(4px);
  box-shadow: 0 3px 0 #4f7748;
}

.preview-start-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--kid-ink);
  border-radius: 50%;
  background: #fff6d8;
}

.preview-start-icon svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.preview-start > span:nth-child(2) {
  display: grid;
  flex: 1;
  gap: 2px;
}

.preview-start strong {
  font-size: 20px;
  font-weight: 900;
}

.preview-start small {
  color: rgba(47, 65, 42, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.preview-start-arrow {
  font-size: 25px;
  font-weight: 900;
}

.preview-back {
  min-height: 58px;
  padding: 0 16px;
  border: 2px solid rgba(60, 49, 38, 0.4);
  border-radius: 18px;
  background: #fff9e8;
  box-shadow: 0 4px 0 rgba(60, 49, 38, 0.1);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.preview-pinyin-state {
  align-self: center;
  color: var(--kid-soft);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.preview-pinyin-state.is-hidden {
  opacity: 0.55;
}

/* ---------- 游戏页：字种托盘与轻量 HUD ---------- */

.game-topbar {
  min-height: 68px;
  margin: 0 12px;
  padding: 8px 10px 8px 14px;
  border: 2px solid rgba(60, 49, 38, 0.8);
  border-radius: 0 0 22px 22px;
  background: rgba(255, 249, 233, 0.92);
  box-shadow: 0 5px 0 rgba(60, 49, 38, 0.1);
  backdrop-filter: blur(8px);
}

.game-heading .level-no {
  min-width: 42px;
  height: 42px;
  border: 2px solid var(--kid-ink);
  background: #f6d374;
  font-size: 13px;
}

.game-heading strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.game-hud {
  gap: 7px;
}

.hud-pill {
  min-height: 45px;
  padding: 0 13px;
  border: 2px solid rgba(60, 49, 38, 0.5);
  border-radius: 15px;
  background: #fffaf0;
  box-shadow: 0 3px 0 rgba(60, 49, 38, 0.09);
  font-size: 14px;
}

.hud-pill svg {
  width: 19px;
  height: 19px;
}

.combo-pill {
  background: #f7d789;
}

.game-hud .icon-btn {
  min-width: 45px;
  min-height: 45px;
  border-width: 2px;
  border-radius: 15px;
  box-shadow: 0 3px 0 rgba(60, 49, 38, 0.1);
}

.seed-dock {
  min-height: 92px;
  gap: 18px;
  padding: 8px clamp(14px, 4vw, 42px);
  border-top: var(--kid-line);
  background:
    linear-gradient(0deg, rgba(243, 224, 186, 0.75), transparent),
    #fff8e6;
  box-shadow: 0 -6px 18px rgba(60, 49, 38, 0.06);
}

.seed-label,
.seed-next-label {
  color: var(--kid-soft);
  font-size: 11px;
}

.seed-char {
  width: 62px;
  height: 62px;
  border: var(--kid-line);
  border-radius: 23px 17px 25px 19px;
  background: #f4cd70;
  box-shadow: 0 5px 0 rgba(60, 49, 38, 0.16);
  font-size: 31px;
}

.next-char {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(60, 49, 38, 0.55);
  border-radius: 50%;
  background: #f0e6cd;
  font-size: 19px;
}

.dock-hint {
  min-height: 58px;
  padding: 0 20px;
  border: var(--kid-line);
  border-radius: 21px;
  background: #dcecc9;
  box-shadow: 0 5px 0 rgba(60, 49, 38, 0.13);
  font-size: 14px;
}

.game-tip {
  border: 2px solid rgba(60, 49, 38, 0.42);
  background: rgba(255, 249, 232, 0.94);
  color: var(--kid-ink);
  box-shadow: 0 4px 0 rgba(60, 49, 38, 0.1);
  font-size: 12px;
}

/* ---------- 暂停：柔软叶片浮层 ---------- */

.pause-overlay {
  padding: 14px;
  background: rgba(43, 48, 34, 0.34);
  backdrop-filter: blur(7px);
}

.pause-sheet {
  position: relative;
  width: min(680px, 100%);
  padding: 21px clamp(18px, 4vw, 34px) 24px;
  border: var(--kid-line);
  border-radius: 36px 27px 38px 29px;
  background:
    linear-gradient(160deg, rgba(255, 253, 244, 0.99), rgba(248, 237, 210, 0.99));
  box-shadow: 11px 14px 0 rgba(28, 26, 20, 0.18);
}

.sheet-handle {
  display: block;
  width: 48px;
  height: 6px;
  margin: 0 auto 13px;
  border-radius: 999px;
  background: rgba(60, 49, 38, 0.2);
}

.pause-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 1px 6px 6px;
}

.pause-mascot {
  flex: 0 0 auto;
  width: 102px;
  margin: -22px 0 -10px -7px;
  filter: drop-shadow(0 5px 0 rgba(60, 49, 38, 0.12));
}

.pause-copy h2 {
  margin: 0 0 4px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.pause-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--kid-soft);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
}

.pause-primary {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  margin-top: 9px;
  padding: 8px 17px 8px 10px;
  border: var(--kid-line);
  border-radius: 24px 20px 26px 21px;
  color: #2f412a;
  background: var(--kid-green);
  box-shadow: 0 7px 0 #4f7748;
  text-align: left;
  cursor: pointer;
}

.pause-primary:active {
  transform: translateY(4px);
  box-shadow: 0 3px 0 #4f7748;
}

.pause-primary-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 55px;
  height: 55px;
  border: 2px solid var(--kid-ink);
  border-radius: 50%;
  background: #fff7dc;
}

.pause-primary-icon svg {
  width: 25px;
  height: 25px;
  margin-left: 3px;
}

.pause-primary > span:nth-child(2) {
  display: grid;
  flex: 1;
  gap: 1px;
}

.pause-primary strong {
  font-size: 22px;
  font-weight: 900;
}

.pause-primary small {
  color: rgba(47, 65, 42, 0.7);
  font-size: 11px;
  font-weight: 800;
}

.pause-primary-arrow {
  font-size: 25px;
  font-weight: 900;
}

.pause-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}

.pause-side-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 55px;
  padding: 0 12px;
  border: 2px solid rgba(60, 49, 38, 0.55);
  border-radius: 17px;
  background: #fff9e9;
  box-shadow: 0 4px 0 rgba(60, 49, 38, 0.1);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.pause-side-button svg {
  width: 19px;
  height: 19px;
  color: var(--kid-green-deep);
}

.pause-toggle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 17px;
}

.pause-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 58px;
  padding: 7px 9px;
  border: 1.5px solid rgba(60, 49, 38, 0.28);
  border-radius: 16px;
  background: rgba(255, 252, 244, 0.58);
  text-align: left;
  cursor: pointer;
}

.pause-toggle.is-on {
  border-color: rgba(60, 49, 38, 0.55);
  background: #e6f1d6;
}

.pause-toggle-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: rgba(60, 49, 38, 0.08);
}

.pause-toggle.is-on .pause-toggle-icon {
  color: var(--kid-green-deep);
  background: #fff9e8;
}

.pause-toggle-icon svg {
  width: 17px;
  height: 17px;
}

.pause-toggle > span:last-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.pause-toggle strong {
  overflow: hidden;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pause-toggle small {
  color: var(--kid-soft);
  font-size: 9px;
  font-weight: 700;
}

.pause-settings-link {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 45px;
  margin: 9px auto -5px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--kid-green-deep);
  font-size: 11px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.pause-settings-link svg {
  width: 16px;
  height: 16px;
}

/* ---------- 结算：采下一束词语花 ---------- */

.result-screen {
  position: relative;
  display: grid;
  min-height: calc(100dvh - 38px);
  place-items: center;
  overflow: hidden;
}

.result-garden {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.result-bloom {
  position: absolute;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 2px solid rgba(60, 49, 38, 0.25);
  border-radius: 50%;
  color: #f5c85e;
  background: rgba(255, 249, 233, 0.65);
  box-shadow: 0 5px 0 rgba(60, 49, 38, 0.08);
}

.result-bloom svg {
  width: 43px;
  height: 43px;
}

.result-bloom.bloom-a {
  top: 8%;
  left: 8%;
  color: #e99d81;
  transform: rotate(-10deg);
}

.result-bloom.bloom-b {
  top: 17%;
  right: 9%;
  width: 58px;
  height: 58px;
  color: #8eb873;
  transform: rotate(8deg);
}

.result-bloom.bloom-c {
  bottom: 10%;
  left: 13%;
  width: 54px;
  height: 54px;
  color: #b49bd1;
  transform: rotate(12deg);
}

.result-bloom.bloom-d {
  right: 13%;
  bottom: 7%;
  width: 88px;
  height: 88px;
  color: #f0c35b;
  transform: rotate(-5deg);
}

.result-card {
  position: relative;
  z-index: 1;
  width: min(800px, 100%);
  padding: clamp(23px, 4vw, 40px);
  border: var(--kid-line);
  border-radius: 45px 31px 48px 34px;
  background:
    radial-gradient(circle at 50% -10%, rgba(245, 203, 110, 0.2), transparent 44%),
    #fffaf0;
  box-shadow: 12px 14px 0 rgba(60, 49, 38, 0.13), var(--kid-shadow-soft);
  text-align: center;
}

.result-card::before,
.result-card::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 21px;
  border: 2px solid var(--kid-ink);
  border-radius: 90% 10% 90% 10%;
  background: #8dbd77;
}

.result-card::before {
  top: -12px;
  left: 38px;
  transform: rotate(-30deg);
}

.result-card::after {
  right: 42px;
  bottom: -11px;
  transform: rotate(22deg) scale(0.82);
}

.result-kicker {
  color: var(--kid-green-deep);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.result-card h2 {
  margin: 8px 0 5px;
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.065em;
}

.result-subtitle {
  color: var(--kid-soft);
  font-size: 13px;
  font-weight: 650;
}

.result-stars {
  gap: 10px;
  margin: 15px 0 8px;
}

.result-stars .star {
  width: clamp(49px, 6vw, 64px);
  height: clamp(49px, 6vw, 64px);
}

.result-words-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  margin: 13px 0 8px;
  color: var(--kid-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.result-words-heading::before,
.result-words-heading::after {
  content: "";
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: rgba(60, 49, 38, 0.17);
}

.result-words {
  gap: 8px;
  margin: 0 0 17px;
}

.result-word {
  min-height: 51px;
  padding: 8px 13px;
  border: 2px solid var(--kid-ink);
  border-radius: 17px 13px 18px 14px;
  background: #f8d477;
  box-shadow: 0 4px 0 rgba(60, 49, 38, 0.12);
  cursor: pointer;
}

.result-word:nth-child(3n + 2) {
  background: #cde4b7;
}

.result-word:nth-child(3n + 3) {
  background: #f1bea8;
}

.result-word:hover {
  transform: translateY(-2px);
}

.result-word strong {
  font-size: 19px;
}

.result-word span {
  color: rgba(60, 49, 38, 0.56);
  font-size: 10px;
}

.result-stats {
  gap: 8px;
  margin: 14px 0 12px;
}

.stat-box {
  min-height: 68px;
  padding: 9px 8px;
  border: 1.5px solid rgba(60, 49, 38, 0.14);
  border-radius: 16px;
  background: rgba(255, 252, 243, 0.7);
}

.stat-box strong {
  font-size: 20px;
}

.stat-box span {
  font-size: 10px;
}

.result-card .microcopy {
  font-size: 11px;
}

.result-actions {
  margin-top: 17px;
}

.result-actions .btn {
  min-height: 62px;
  border: var(--kid-line);
  border-radius: 21px;
  box-shadow: 0 5px 0 rgba(60, 49, 38, 0.14);
  font-size: 16px;
}

.result-actions .btn-primary {
  flex: 1.35 1 210px;
  background: var(--kid-green);
  box-shadow: 0 6px 0 #4f7748;
}

.result-actions .btn-secondary,
.result-actions .btn-ghost {
  flex: 0.8 1 150px;
  background: #fff6de;
}

/* ---------- 成长册：一页一页的词语花 ---------- */

.book-screen {
  min-height: calc(100dvh - 38px);
}

.book-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 0 8px 17px;
}

.book-heading .back-link {
  margin: 0 0 8px -10px;
}

.book-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 49px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.book-heading p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--kid-soft);
  font-size: 13px;
  font-weight: 650;
}

.book-total-bloom {
  position: relative;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  border: var(--kid-line);
  border-radius: 49% 51% 46% 54%;
  background: #f4cd70;
  box-shadow: 0 7px 0 rgba(60, 49, 38, 0.16);
  transform: rotate(2deg);
}

.book-total-bloom > span {
  position: absolute;
  top: 13px;
  color: rgba(255, 249, 231, 0.62);
}

.book-total-bloom > span svg {
  width: 42px;
  height: 42px;
}

.book-total-bloom strong {
  margin-top: -5px;
  font-size: 43px;
  font-weight: 900;
  line-height: 1;
}

.book-total-bloom small {
  color: rgba(60, 49, 38, 0.68);
  font-size: 10px;
  font-weight: 900;
}

.book-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.book-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 12px;
  border: 1.5px solid rgba(60, 49, 38, 0.25);
  border-radius: 999px;
  background: rgba(255, 249, 233, 0.7);
  color: var(--kid-soft);
  font-size: 11px;
  font-weight: 750;
}

.book-metrics svg {
  width: 17px;
  height: 17px;
  color: var(--kid-green-deep);
}

.book-metrics strong {
  color: var(--kid-ink);
  font-size: 13px;
}

.book-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.book-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 59px;
  padding: 7px 11px;
  border: 2px solid rgba(60, 49, 38, 0.28);
  border-radius: 18px 14px 20px 15px;
  background: rgba(255, 249, 233, 0.62);
  text-align: left;
  cursor: pointer;
}

.book-tab.is-active {
  border: var(--kid-line);
  background: #e4efd4;
  box-shadow: 0 4px 0 rgba(60, 49, 38, 0.1);
}

.book-tab[data-chapter-tone="town"].is-active {
  background: #ffe8d5;
}

.book-tab[data-chapter-tone="starry"].is-active {
  background: #ebe5f4;
}

.book-tab > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(60, 49, 38, 0.6);
  border-radius: 50%;
  background: #fff8e5;
}

.book-tab svg {
  width: 19px;
  height: 19px;
}

.book-tab strong {
  font-size: 13px;
  font-weight: 900;
}

.book-tab small {
  margin-left: auto;
  color: var(--kid-soft);
  font-size: 10px;
  font-weight: 800;
}

.book-chapter-card {
  padding: clamp(16px, 2.8vw, 27px);
  border: var(--kid-line);
  border-radius: 32px 23px 35px 25px;
  background:
    linear-gradient(145deg, rgba(255, 253, 244, 0.97), rgba(249, 239, 214, 0.97));
  box-shadow: 8px 10px 0 rgba(60, 49, 38, 0.1);
}

.book-chapter-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.book-chapter-head > div:first-child > span {
  color: var(--kid-green-deep);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.book-chapter-head h3 {
  margin: 3px 0 0;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.book-chapter-progress {
  display: grid;
  width: min(220px, 35%);
  gap: 5px;
  color: var(--kid-soft);
  font-size: 10px;
  font-weight: 800;
  text-align: right;
}

.book-chapter-progress i {
  display: block;
  height: 9px;
  overflow: hidden;
  border: 1.5px solid rgba(60, 49, 38, 0.38);
  border-radius: 999px;
  background: rgba(60, 49, 38, 0.08);
}

.book-chapter-progress i::after {
  content: "";
  display: block;
  width: calc(var(--book-progress) * 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--kid-green);
}

.book-grid {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.book-word {
  min-height: 103px;
  padding: 13px 10px;
  border: 2px solid var(--kid-ink);
  border-radius: 23px 17px 25px 19px;
  background: #f9d57d;
  box-shadow: 0 4px 0 rgba(60, 49, 38, 0.12);
}

.book-word:nth-child(4n + 2) {
  background: #cfe5ba;
}

.book-word:nth-child(4n + 3) {
  background: #f3c0a9;
}

.book-word:nth-child(4n + 4) {
  background: #c9e2e5;
}

.book-word .pinyin {
  color: rgba(60, 49, 38, 0.58);
  font-size: 10px;
}

.book-word strong {
  font-size: 27px;
}

.book-word-listen {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 5px;
  color: rgba(60, 49, 38, 0.53);
  font-size: 9px;
  font-weight: 850;
}

.book-word-listen svg {
  width: 13px;
  height: 13px;
}

.book-word .word-flower {
  width: 20px;
  height: 20px;
  color: rgba(60, 49, 38, 0.35);
}

.book-word .word-flower svg {
  width: 100%;
  height: 100%;
}

.book-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 235px;
  padding: 22px;
  border: 2px dashed rgba(60, 49, 38, 0.25);
  border-radius: 25px;
  background: rgba(255, 250, 237, 0.74);
}

.book-empty > svg {
  width: 92px;
  height: 92px;
}

.book-empty h4 {
  margin: 0 0 5px;
  font-size: 22px;
  font-weight: 900;
}

.book-empty p {
  max-width: 34em;
  margin: 0;
  color: var(--kid-soft);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.65;
}

.book-empty .btn {
  margin-top: 14px;
  border-radius: 17px;
}

.book-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.book-footer .btn {
  min-height: 60px;
  border: var(--kid-line);
  border-radius: 20px;
  box-shadow: 0 5px 0 rgba(60, 49, 38, 0.12);
}

.book-footer .btn-primary {
  background: var(--kid-green);
  box-shadow: 0 6px 0 #4f7748;
}

.book-footer .btn-secondary {
  background: #fff5de;
}

/* ---------- 家长页：同一套纸片风格 ---------- */

.page-head {
  padding-bottom: 18px;
}

.page-head h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.parent-grid {
  gap: 10px;
  margin-bottom: 17px;
}

.parent-card {
  min-height: 120px;
  padding: 19px;
  border: var(--kid-line);
  border-radius: 26px 19px 28px 21px;
  background: #fff8e7;
  box-shadow: 0 5px 0 rgba(60, 49, 38, 0.1);
}

.parent-card:nth-child(2) {
  background: #e4efd4;
}

.parent-card:nth-child(3) {
  background: #f9dfcc;
}

.parent-card:nth-child(4) {
  background: #dfeaec;
}

.parent-card strong {
  font-size: 30px;
}

.parent-note {
  border: 2px dashed rgba(60, 49, 38, 0.25);
  border-radius: 20px;
  background: rgba(255, 249, 233, 0.6);
}

.session-list {
  gap: 7px;
}

.session-row {
  border: 1.5px solid rgba(60, 49, 38, 0.2);
  border-radius: 17px;
  background: rgba(255, 252, 243, 0.85);
}

.session-row > span:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 2px;
}

.session-row > span:nth-child(2) svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.parent-actions .btn {
  border-radius: 18px;
}

/* ---------- 设置：五块可触摸的花园瓦片 ---------- */

.modal-backdrop {
  padding: 14px;
  background: rgba(47, 48, 35, 0.38);
  backdrop-filter: blur(7px);
}

.settings-sheet {
  width: min(760px, 100%);
  max-height: min(91dvh, 820px);
  padding: clamp(20px, 3vw, 31px);
  border: var(--kid-line);
  border-radius: 37px 28px 40px 30px;
  background:
    linear-gradient(150deg, #fffdf5, #f9edd1);
  box-shadow: 11px 14px 0 rgba(50, 43, 32, 0.17);
}

.settings-sheet .sheet-handle {
  margin-bottom: 12px;
}

.settings-sheet .close-btn {
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(60, 49, 38, 0.55);
  background: #fff9e9;
  box-shadow: 0 3px 0 rgba(60, 49, 38, 0.1);
}

.settings-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 48px;
}

.settings-heading-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 74px;
  height: 74px;
  border: var(--kid-line);
  border-radius: 50%;
  background: #dcecc8;
}

.settings-heading-icon svg {
  width: 37px;
  height: 37px;
  color: var(--kid-green-deep);
}

.settings-heading h2 {
  font-size: clamp(27px, 4vw, 37px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.settings-heading p:not(.eyebrow) {
  margin: 4px 0 0;
  color: var(--kid-soft);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.55;
}

.setting-tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.setting-tile {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 93px;
  padding: 13px;
  border: 2px solid rgba(60, 49, 38, 0.25);
  border-radius: 22px 17px 24px 18px;
  background: rgba(255, 252, 244, 0.72);
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.setting-tile:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.setting-tile.is-on {
  border: var(--kid-line);
  background: #e1efd0;
  box-shadow: 0 5px 0 rgba(60, 49, 38, 0.11);
}

.setting-tile:hover {
  transform: translateY(-1px);
}

.setting-tile:active {
  transform: translateY(2px);
}

.setting-tile-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 47px;
  height: 47px;
  border: 1.5px solid rgba(60, 49, 38, 0.5);
  border-radius: 50%;
  background: #fff9e8;
}

.setting-tile.is-on .setting-tile-icon {
  border-color: var(--kid-ink);
  color: var(--kid-green-deep);
  background: #f9f4df;
}

.setting-tile-icon svg {
  width: 23px;
  height: 23px;
}

.setting-tile-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.setting-tile-copy strong {
  font-size: 14px;
  font-weight: 900;
}

.setting-tile-copy small {
  overflow: hidden;
  color: var(--kid-soft);
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setting-tile-state {
  position: relative;
  flex: 0 0 auto;
  width: 41px;
  height: 25px;
  margin-left: auto;
  border: 1.5px solid rgba(60, 49, 38, 0.42);
  border-radius: 999px;
  background: rgba(60, 49, 38, 0.1);
}

.setting-tile-state i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
  border: 1.5px solid rgba(60, 49, 38, 0.55);
  border-radius: 50%;
  background: #fffdf5;
  transition: transform 0.17s ease;
}

.setting-tile.is-on .setting-tile-state {
  background: var(--kid-green);
}

.setting-tile.is-on .setting-tile-state i {
  transform: translateX(16px);
  border-color: var(--kid-ink);
}

.settings-sheet-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
}

.settings-sheet-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--kid-soft);
  font-size: 10px;
  font-weight: 800;
}

.settings-sheet-footer > span svg {
  width: 15px;
  height: 15px;
  color: var(--kid-green-deep);
}

.settings-done {
  flex: 1;
  min-height: 63px;
  border: var(--kid-line);
  border-radius: 20px;
  background: var(--kid-green);
  box-shadow: 0 6px 0 #4f7748;
  color: #2f412a;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.settings-done:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #4f7748;
}

.modal-panel:not(.settings-sheet) {
  width: min(540px, 100%);
  padding: 29px;
  border: var(--kid-line);
  border-radius: 31px 24px 34px 26px;
  background: #fff9e9;
  box-shadow: 10px 13px 0 rgba(50, 43, 32, 0.17);
}

.modal-panel:not(.settings-sheet) .close-btn {
  border: 2px solid rgba(60, 49, 38, 0.55);
}

.modal-actions .btn {
  border-radius: 18px;
}

/* ---------- 平板与手机 ---------- */

@media (max-width: 980px) {
  .home-copy-card {
    width: min(470px, calc(100% - 64px));
  }

  .home-copy-card h1 {
    font-size: clamp(46px, 6vw, 64px);
  }

  .map-board-info {
    width: min(245px, 31%);
  }

  .level-stop {
    width: 142px;
  }

  .level-stop-bubble {
    width: 86px;
    height: 86px;
  }

  .level-stop-copy {
    min-width: 124px;
  }

  .seed-word-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 4px 12px 10px;
  }

  .topbar {
    min-height: 61px;
  }

  .brand-mark {
    width: 41px;
    height: 41px;
  }

  .brand-text {
    font-size: 16px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .icon-btn {
    min-width: 48px;
    min-height: 48px;
    border-radius: 15px;
  }

  .icon-btn.with-label {
    min-width: 48px;
  }

  .home-screen,
  .map-screen,
  .preview-screen,
  .book-screen,
  .result-screen {
    height: calc(100dvh - 20px);
    min-height: calc(100dvh - 25px);
  }

  .home-scene {
    min-height: 0;
    border-radius: 30px 22px 33px 24px;
    box-shadow: 7px 9px 0 rgba(60, 49, 38, 0.12);
  }

  .home-scene::before {
    background:
      linear-gradient(0deg, rgba(255, 249, 233, 0.94) 0%, rgba(255, 249, 233, 0.76) 45%, rgba(255, 249, 233, 0.06) 76%),
      linear-gradient(90deg, rgba(255, 249, 233, 0.33), transparent 60%);
  }

  .home-scene-art {
    width: 100%;
    height: 53%;
    transform: none;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 16%, #000 100%);
    mask-image: linear-gradient(0deg, transparent 0%, #000 16%, #000 100%);
  }

  .home-copy-card {
    top: auto;
    right: 14px;
    bottom: 88px;
    left: 14px;
    width: auto;
    padding: 23px 21px 21px;
    border-radius: 29px 21px 32px 23px;
    box-shadow: 7px 9px 0 rgba(60, 49, 38, 0.13);
    transform: rotate(-0.25deg);
  }

  .home-copy-card h1 {
    margin: 14px 0 11px;
    font-size: clamp(42px, 12.5vw, 58px);
  }

  .home-copy-card h1 em::after {
    bottom: 3px;
    height: 14px;
  }

  .home-lead {
    font-size: 14px;
    line-height: 1.62;
  }

  .home-cta-row {
    margin-top: 18px;
  }

  .home-play {
    flex-basis: 100%;
    min-height: 70px;
  }

  .home-play-icon {
    width: 49px;
    height: 49px;
  }

  .home-play-copy strong {
    font-size: 20px;
  }

  .home-continue {
    width: 100%;
    min-height: 54px;
  }

  .home-reassurance {
    margin-top: 13px;
    font-size: 11px;
  }

  .home-status-strip {
    right: 11px;
    bottom: 10px;
    left: 11px;
    min-height: 61px;
    padding: 6px 7px 6px 10px;
    border-radius: 19px;
  }

  .home-stat {
    gap: 4px;
  }

  .home-stat svg {
    width: 18px;
    height: 18px;
  }

  .home-stat strong {
    font-size: 17px;
  }

  .home-stat small {
    display: inline;
    font-size: 9px;
  }

  .home-quick-settings {
    gap: 5px;
  }

  .home-quick-settings .setting-pill {
    min-height: 48px;
    padding: 0 10px;
    font-size: 10px;
  }

  .map-screen {
    gap: 9px;
  }

  .map-heading {
    align-items: center;
    padding: 0 2px;
  }

  .map-heading h2 {
    font-size: clamp(28px, 8vw, 37px);
  }

  .map-heading p:not(.eyebrow) {
    display: none;
  }

  .map-book-button {
    min-height: 51px;
    padding: 0 10px;
  }

  .map-book-button span {
    display: none;
  }

  .chapter-rail {
    gap: 5px;
    padding: 0;
  }

  .chapter-pill {
    justify-content: center;
    gap: 5px;
    min-height: 59px;
    padding: 6px 5px;
    border-radius: 17px 13px 19px 14px;
  }

  .chapter-pill-icon {
    width: 35px;
    height: 35px;
  }

  .chapter-pill-icon svg {
    width: 18px;
    height: 18px;
  }

  .chapter-pill-copy strong {
    font-size: 11px;
  }

  .chapter-pill-copy small,
  .chapter-pill-dot {
    display: none;
  }

  .map-board {
    min-height: 0;
    border-radius: 29px 21px 32px 23px;
    box-shadow: 7px 9px 0 rgba(60, 49, 38, 0.11);
  }

  .map-board-info {
    top: 14px;
    right: 14px;
    left: 14px;
    display: grid;
    width: auto;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px 10px;
    padding: 13px 15px;
    border-width: 2px;
    border-radius: 21px 17px 23px 18px;
    box-shadow: 0 4px 0 rgba(60, 49, 38, 0.1);
  }

  .map-chapter-tag {
    grid-column: 1;
    justify-self: start;
    padding: 3px 8px;
    font-size: 8px;
  }

  .map-board-info h3 {
    grid-column: 1;
    margin-top: 0;
    font-size: 25px;
  }

  .map-board-info p {
    grid-column: 1;
    font-size: 10px;
  }

  .map-progress-line {
    grid-column: 2;
    grid-row: 1 / span 3;
    flex-direction: column;
    gap: 4px;
    margin-top: 0;
  }

  .map-progress-line span {
    min-height: 26px;
    font-size: 9px;
  }

  .map-collect-badge {
    top: 130px;
    right: 14px;
    min-height: 37px;
    padding: 0 10px;
    font-size: 10px;
  }

  .map-collect-badge strong {
    font-size: 14px;
  }

  .map-vine {
    display: none;
  }

  .level-trail {
    top: 172px;
    right: 13px;
    bottom: 54px;
    left: 13px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: center;
    gap: 20px 7px;
    pointer-events: none;
  }

  .level-trail::before {
    content: "";
    position: absolute;
    top: 10%;
    bottom: 8%;
    left: 50%;
    width: 34px;
    border: 2px dashed rgba(255, 246, 221, 0.9);
    border-radius: 50%;
    transform: translateX(-50%) rotate(8deg);
  }

  .level-stop,
  .level-stop:nth-child(1),
  .level-stop:nth-child(2),
  .level-stop:nth-child(3),
  .level-stop:nth-child(4) {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    transform: none;
  }

  .level-stop:nth-child(2n) {
    transform: translateY(18px);
  }

  .level-stop-bubble {
    width: 78px;
    height: 78px;
    border-width: 3px;
  }

  .level-stop-symbol svg {
    width: 35px;
    height: 35px;
  }

  .level-stop-number {
    top: -7px;
    min-width: 29px;
    height: 29px;
    font-size: 10px;
  }

  .level-stop-copy {
    min-width: 112px;
    max-width: 137px;
    margin-top: 6px;
    padding: 5px 8px;
  }

  .level-stop-copy strong {
    max-width: 120px;
    font-size: 11px;
  }

  .map-board-note {
    bottom: 11px;
    max-width: calc(100% - 28px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .preview-sheet {
    padding: 20px 15px 18px;
    border-radius: 30px 22px 33px 24px;
    box-shadow: 7px 9px 0 rgba(60, 49, 38, 0.12);
  }

  .preview-top {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .preview-heading h2 {
    margin-top: 7px;
    font-size: clamp(29px, 9vw, 40px);
  }

  .preview-heading p {
    font-size: 11px;
  }

  .preview-level-stamp {
    min-height: 27px;
    padding: 0 9px;
    font-size: 9px;
  }

  .goal-flower {
    width: 88px;
    height: 88px;
  }

  .goal-flower-petals svg {
    width: 66px;
    height: 66px;
  }

  .goal-flower strong {
    font-size: 34px;
  }

  .goal-flower small {
    font-size: 8px;
  }

  .seed-shelf {
    margin-top: 19px;
  }

  .seed-shelf-caption span {
    font-size: 14px;
  }

  .seed-shelf-caption small {
    font-size: 9px;
  }

  .seed-word-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .seed-word {
    min-height: 108px;
    padding-top: 18px;
    border-radius: 23px 17px 25px 19px;
  }

  .seed-word strong {
    font-size: 28px;
  }

  .seed-word-speaker {
    top: 7px;
    right: 7px;
    width: 27px;
    height: 27px;
  }

  .preview-tip {
    align-items: flex-start;
    gap: 9px;
    padding: 10px 11px;
  }

  .preview-tip-icon {
    width: 37px;
    height: 37px;
  }

  .preview-tip strong {
    font-size: 11px;
    line-height: 1.45;
  }

  .preview-tip span:not(.preview-tip-icon) {
    font-size: 9px;
    line-height: 1.45;
  }

  .preview-playbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 14px;
  }

  .preview-start {
    grid-column: 1 / -1;
    min-height: 69px;
  }

  .preview-start-icon {
    width: 48px;
    height: 48px;
  }

  .preview-start strong {
    font-size: 18px;
  }

  .preview-back {
    min-height: 50px;
  }

  .preview-pinyin-state {
    justify-self: end;
    padding-right: 4px;
  }

  .pause-sheet {
    padding: 17px 15px 19px;
    border-radius: 29px 21px 32px 23px;
  }

  .pause-hero {
    gap: 10px;
  }

  .pause-mascot {
    width: 82px;
    margin: -18px 0 -8px -4px;
  }

  .pause-copy h2 {
    font-size: 28px;
  }

  .pause-copy p:not(.eyebrow) {
    font-size: 10px;
  }

  .pause-primary {
    min-height: 70px;
  }

  .pause-primary-icon {
    width: 49px;
    height: 49px;
  }

  .pause-primary strong {
    font-size: 20px;
  }

  .pause-toggle-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 13px;
  }

  .pause-toggle {
    min-height: 54px;
  }

  .pause-toggle strong {
    font-size: 11px;
  }

  .result-card {
    padding: 23px 15px 19px;
    border-radius: 32px 23px 35px 25px;
    box-shadow: 8px 10px 0 rgba(60, 49, 38, 0.12);
  }

  .result-card h2 {
    font-size: clamp(34px, 10vw, 45px);
  }

  .result-word {
    min-height: 46px;
    padding: 6px 10px;
  }

  .result-word strong {
    font-size: 16px;
  }

  .result-actions .btn {
    flex: 1 1 140px;
    min-height: 56px;
    font-size: 14px;
  }

  .result-actions .btn-primary {
    flex-basis: 100%;
  }

  .result-garden .result-bloom {
    opacity: 0.62;
  }

  .book-heading {
    align-items: start;
    gap: 10px;
    padding: 0 2px 13px;
  }

  .book-heading h2 {
    font-size: clamp(29px, 8.4vw, 38px);
  }

  .book-heading p:not(.eyebrow) {
    font-size: 10px;
  }

  .book-total-bloom {
    width: 91px;
    height: 91px;
  }

  .book-total-bloom > span {
    top: 7px;
  }

  .book-total-bloom > span svg {
    width: 31px;
    height: 31px;
  }

  .book-total-bloom strong {
    font-size: 33px;
  }

  .book-total-bloom small {
    font-size: 8px;
  }

  .book-metrics {
    gap: 5px;
  }

  .book-metrics span {
    min-height: 34px;
    padding: 0 8px;
    font-size: 9px;
  }

  .book-tabs {
    gap: 5px;
  }

  .book-tab {
    justify-content: center;
    min-height: 51px;
    padding: 5px;
  }

  .book-tab > span {
    width: 29px;
    height: 29px;
  }

  .book-tab strong {
    font-size: 10px;
  }

  .book-tab small {
    display: none;
  }

  .book-chapter-card {
    padding: 14px 11px;
    border-radius: 25px 18px 28px 20px;
  }

  .book-chapter-head {
    align-items: center;
    margin-bottom: 10px;
  }

  .book-chapter-head h3 {
    font-size: 23px;
  }

  .book-chapter-progress {
    width: 42%;
  }

  .book-grid {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .book-word {
    min-height: 94px;
  }

  .book-word strong {
    font-size: 24px;
  }

  .book-empty {
    min-height: 210px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .book-empty > svg {
    width: 76px;
    height: 76px;
  }

  .book-footer .btn {
    flex: 1 1 140px;
    min-height: 54px;
    font-size: 13px;
  }

  .setting-tile-grid {
    gap: 7px;
    margin-top: 15px;
  }

  .settings-sheet {
    padding: 16px 13px 18px;
    border-radius: 29px 21px 32px 23px;
  }

  .settings-sheet .close-btn {
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
  }

  .settings-heading {
    gap: 10px;
    padding-right: 40px;
  }

  .settings-heading-icon {
    width: 57px;
    height: 57px;
  }

  .settings-heading-icon svg {
    width: 29px;
    height: 29px;
  }

  .settings-heading h2 {
    font-size: 26px;
  }

  .settings-heading p:not(.eyebrow) {
    font-size: 9px;
  }

  .setting-tile {
    gap: 7px;
    min-height: 82px;
    padding: 9px;
    border-radius: 18px 14px 20px 15px;
  }

  .setting-tile-icon {
    width: 39px;
    height: 39px;
  }

  .setting-tile-icon svg {
    width: 20px;
    height: 20px;
  }

  .setting-tile-copy strong {
    font-size: 12px;
  }

  .setting-tile-copy small {
    display: none;
  }

  .setting-tile-state {
    width: 35px;
    height: 22px;
  }

  .setting-tile-state i {
    width: 15px;
    height: 15px;
  }

  .setting-tile.is-on .setting-tile-state i {
    transform: translateX(13px);
  }

  .settings-done {
    min-height: 56px;
    font-size: 14px;
  }

  .game-topbar {
    min-height: 57px;
    margin: 0 5px;
    padding: 5px 7px;
    border-radius: 0 0 18px 18px;
  }

  .game-heading .level-no {
    min-width: 34px;
    height: 34px;
  }

  .game-heading strong {
    font-size: 12px;
  }

  .hud-pill {
    min-height: 39px;
    padding: 0 9px;
    font-size: 12px;
  }

  .game-hud .icon-btn {
    min-width: 39px;
    min-height: 39px;
  }

  .seed-dock {
    min-height: 84px;
    gap: 10px;
    padding: 6px 10px;
  }

  .seed-char {
    width: 53px;
    height: 53px;
    font-size: 27px;
  }

  .next-char {
    width: 35px;
    height: 35px;
  }

  .dock-hint {
    min-height: 50px;
    padding: 0 13px;
    border-radius: 17px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .home-copy-card h1 {
    font-size: 41px;
  }

  .home-kicker {
    min-height: 28px;
    font-size: 10px;
  }

  .home-play-copy small {
    font-size: 10px;
  }

  .home-quick-settings .setting-pill {
    width: 48px;
    padding: 0;
    font-size: 0;
  }

  .home-quick-settings .setting-pill svg {
    width: 18px;
    height: 18px;
  }

  .map-heading h2 {
    font-size: 27px;
  }

  .map-board {
    min-height: 630px;
  }

  .level-trail {
    top: 166px;
  }

  .level-stop-bubble {
    width: 73px;
    height: 73px;
  }

  .level-stop-copy {
    min-width: 104px;
    max-width: 122px;
  }

  .level-stop-copy strong {
    max-width: 105px;
    font-size: 10px;
  }

  .seed-word-grid {
    gap: 7px;
  }

  .seed-word {
    min-height: 102px;
  }

  .seed-word strong {
    font-size: 25px;
  }

  .pause-toggle > span:last-child {
    min-width: 64px;
  }

  .book-total-bloom {
    width: 81px;
    height: 81px;
  }

  .book-total-bloom strong {
    font-size: 29px;
  }

  .book-heading .eyebrow {
    font-size: 9px;
  }

  .setting-tile {
    min-height: 77px;
  }

  .setting-tile-icon {
    width: 35px;
    height: 35px;
  }

  .setting-tile-copy strong {
    font-size: 11px;
  }
}

@media (orientation: portrait) and (min-width: 761px) {
  .home-scene {
    min-height: 0;
    background: linear-gradient(180deg, #e4efcb 0%, #e4efcb 62%, #7da969 71%, #f8ebcf 86%, #f8ebcf 100%);
  }

  .home-scene-art {
    width: 100%;
    height: 70%;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 15%, #000 100%);
    mask-image: linear-gradient(0deg, transparent 0%, #000 15%, #000 100%);
  }

  .home-scene::before {
    background:
      linear-gradient(0deg, #f8ebcf 0%, rgba(248, 235, 207, 0.96) 15%, transparent 38%),
      linear-gradient(90deg, rgba(255, 249, 233, 0.46), transparent 58%);
  }

  .home-copy-card {
    top: 51%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(660px, calc(100% - 96px));
    margin: 0 auto;
    padding: 34px;
    transform: translateX(-50%);
  }

  .home-copy-card h1 {
    font-size: clamp(58px, 6.6vw, 78px);
  }

  .home-cta-row {
    justify-content: flex-start;
  }

  .home-status-strip {
    right: 45px;
    bottom: 28px;
    left: 45px;
  }

  .map-board {
    min-height: 0;
  }

  .map-vine {
    display: none;
  }

  .level-trail {
    top: 245px;
    right: 72px;
    bottom: 88px;
    left: 72px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: center;
    gap: 80px 64px;
    pointer-events: none;
  }

  .level-trail::before {
    content: "";
    position: absolute;
    top: 8%;
    bottom: 8%;
    left: 50%;
    width: 64px;
    border: 3px dashed rgba(255, 246, 221, 0.92);
    border-radius: 50%;
    transform: translateX(-50%) rotate(6deg);
  }

  .level-stop,
  .level-stop:nth-child(1),
  .level-stop:nth-child(2),
  .level-stop:nth-child(3),
  .level-stop:nth-child(4) {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    transform: none;
  }

  .level-stop:nth-child(2n) {
    transform: translateY(26px);
  }

  .preview-sheet {
    max-width: 860px;
  }

  .preview-screen {
    display: flex;
    height: calc(100dvh - 34px);
    flex-direction: column;
  }

  .preview-screen > .topbar {
    flex: 0 0 auto;
  }

  .preview-screen > .preview-sheet {
    margin-top: auto;
    margin-bottom: auto;
  }
}

/* ---------- 首次教学：与暂停层一致的纸片构图 ---------- */

.coach-card {
  width: min(620px, 100%);
  padding: 31px 31px 26px;
  border: var(--kid-line);
  border-radius: 38px 28px 41px 30px;
  background:
    linear-gradient(155deg, rgba(255, 253, 245, 0.99), rgba(248, 237, 211, 0.99));
  box-shadow: 11px 14px 0 rgba(35, 31, 23, 0.17);
}

.coach-mascot {
  width: 122px;
  margin: -91px auto 2px;
}

.coach-card h2 {
  margin: 6px 0 8px;
  font-size: clamp(31px, 4vw, 43px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.coach-card p {
  max-width: 33em;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.72;
}

.coach-demo {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  max-width: 420px;
  margin: 23px auto 18px;
}

.coach-char {
  min-height: 88px;
  border: var(--kid-line);
  border-radius: 999px;
  box-shadow: 0 6px 0 rgba(60, 49, 38, 0.14);
  font-size: 41px;
}

.coach-char.left {
  background: #f5ce70;
}

.coach-char.right {
  background: #c9e3b4;
}

.coach-plus {
  font-size: 31px;
}

.coach-equals {
  margin-top: 2px;
  color: var(--kid-green-deep);
  font-size: 11px;
}

.coach-actions {
  gap: 11px;
  margin-top: 22px;
}

.coach-actions .btn {
  min-height: 61px;
  border: var(--kid-line);
  border-radius: 20px;
  box-shadow: 0 5px 0 rgba(60, 49, 38, 0.13);
  font-size: 15px;
}

.coach-actions .btn-primary {
  flex: 1 1 220px;
  max-width: 280px;
  background: var(--kid-green);
  box-shadow: 0 6px 0 #4f7748;
}

.coach-actions .btn-ghost {
  flex: 0 1 160px;
  background: #fff9e9;
}

@media (max-width: 760px) {
  .coach-card {
    padding: 25px 17px 20px;
    border-radius: 30px 22px 33px 24px;
  }

  .coach-mascot {
    width: 96px;
    margin-top: -72px;
  }

  .coach-card h2 {
    font-size: 29px;
  }

  .coach-card p {
    font-size: 11px;
  }

  .coach-demo {
    gap: 8px;
    margin: 19px auto 14px;
  }

  .coach-char {
    min-height: 72px;
    font-size: 33px;
  }

  .coach-plus {
    font-size: 24px;
  }

  .coach-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
  }

  .coach-actions .btn {
    min-height: 55px;
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen,
  .home-play,
  .seed-word,
  .level-stop,
  .result-word,
  .chapter-pill {
    animation: none !important;
    transition: none !important;
  }
}
