@font-face { font-family: "YaopuAndika"; src: url("fonts/Andika-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "YaopuAndika"; src: url("fonts/Andika-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "YaopuSourceHanSans"; src: url("fonts/SourceHanSansSC-Regular-L01Subset.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "YaopuSourceHanSans"; src: url("fonts/SourceHanSansSC-Bold-L01Subset.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "YaopuSourceHanSerif"; src: url("fonts/SourceHanSerifSC-SemiBold-L01Subset.otf") format("opentype"); font-weight: 600; font-display: swap; }
:root {
  --paper: #ECEEE4; --paper-warm: #F6F1E6; --card: #FFFDF8;
  --ink: #2A241E; --ink-sub: #5B534A; --ink-muted: #847B6F;
  --line: rgba(42,36,30,0.16); --line-strong: rgba(42,36,30,0.28);
  --denim: #2B5668; --denim-deep: #224453; --honey: #BD8134; --sage: #5E7D5B;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  background: var(--paper);
  background-image: radial-gradient(rgba(42,36,30,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: "YaopuAndika", "YaopuSourceHanSans", sans-serif;
  letter-spacing: 0.025em; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.app-shell { max-width: 490px; min-height: 100dvh; margin: 0 auto; padding: 14px 16px 22px; display: flex; flex-direction: column; gap: 14px; }
.top-bar { display: flex; align-items: center; justify-content: space-between; background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 10px 16px; box-shadow: 0 6px 18px rgba(42,36,30,0.05); }
.brand-tag { font-family: "YaopuSourceHanSerif", "YaopuSourceHanSans", serif; font-weight: 600; font-size: 16px; color: var(--denim); letter-spacing: 0.05em; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.star-counter { background: #FAF3E3; border: 1.5px solid rgba(189,129,52,0.45); color: var(--ink); border-radius: 999px; padding: 4px 13px; font-weight: 700; font-size: 15px; }
.icon-btn { min-width: 54px; min-height: 44px; padding: 0 14px; background: var(--paper-warm); border: 1.5px solid var(--line-strong); border-radius: 14px; font-family: inherit; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; }
.stage { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.card-panel { background: var(--card); border: 1.5px solid var(--line); border-radius: 26px; padding: 20px 18px; box-shadow: 0 10px 26px rgba(42,36,30,0.06); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.trio-row { display: flex; align-items: flex-end; justify-content: center; gap: 8px; width: 100%; }
.trio-row img { height: 96px; width: auto; object-fit: contain; }
.trio-row img.hero { height: 120px; }
h1 { margin: 2px 0 0; font-family: "YaopuSourceHanSerif", "YaopuSourceHanSans", serif; font-size: 24px; font-weight: 600; color: var(--denim); text-align: center; letter-spacing: 0.05em; line-height: 1.35; }
.sub { margin: 0; font-size: 14px; color: var(--ink-sub); text-align: center; line-height: 1.7; max-width: 350px; }
.level-list { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.level-card {
  width: 100%; text-align: left; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 20px; min-height: 76px;
  background: #FFFFFF; border: 1.5px solid var(--line);
  box-shadow: 0 4px 12px rgba(42,36,30,0.04);
  transition: transform 0.1s ease, border-color 0.15s ease;
}
.level-card:active { transform: scale(0.985); }
.lvl-icon { width: 56px; height: 56px; border-radius: 14px; padding: 5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lvl-icon img { width: 46px; height: 46px; object-fit: contain; }
.lvl-info { flex: 1; min-width: 0; }
.lvl-title { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.lvl-desc { font-size: 12.5px; color: var(--ink-sub); margin-top: 2px; }
.lvl-badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; justify-content: center; }
.btn { min-height: 50px; min-width: 116px; padding: 10px 20px; border-radius: 16px; border: 1.5px solid var(--line-strong); font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0.03em; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; box-shadow: 0 3px 0 rgba(42,36,30,0.08); transition: transform 0.08s ease; }
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--denim); border-color: var(--denim-deep); color: #FFFDF8; box-shadow: 0 4px 12px rgba(43,86,104,0.18); }
.btn-secondary { background: var(--paper-warm); color: var(--ink); }
.btn-warm { background: #FAF0D8; border-color: rgba(189,129,52,0.48); color: var(--ink); }
.btn-full { width: 100%; }
.setting-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: 100%; padding-top: 10px; border-top: 1px dashed rgba(42,36,30,0.14); }
.chip-btn { min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper-warm); font-family: inherit; font-size: 13px; font-weight: 700; color: var(--ink-sub); cursor: pointer; }
.chip-btn.active { border-color: var(--denim); background: #E3EFF3; color: var(--denim-deep); }
.progress-pill { font-size: 13px; font-weight: 700; color: #3A5A42; background: #EAF1E6; border: 1px solid rgba(94,125,91,0.28); border-radius: 999px; padding: 5px 14px; }
.art-stage { width: 210px; height: 210px; background: #FFFFFF; border: 1.5px solid rgba(42,36,30,0.10); border-radius: 22px; display: flex; align-items: center; justify-content: center; padding: 14px; }
.art-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.word-block { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.en-big { font-size: 40px; font-weight: 700; color: var(--denim); line-height: 1.12; }
.ipa-line { font-size: 15px; color: var(--ink-muted); }
.zh-line { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: 0.06em; }
.ex-line { font-size: 16px; color: var(--ink-sub); text-align: center; padding: 10px 16px; background: var(--paper-warm); border-radius: 14px; width: 100%; line-height: 1.45; }
.mascot-bar { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--paper-warm); border: 1px solid rgba(42,36,30,0.10); border-radius: 18px; padding: 10px 14px; }
.mascot-bar img { width: 58px; height: 58px; object-fit: contain; flex-shrink: 0; }
.mascot-bubble { font-size: 14px; color: var(--ink); line-height: 1.6; }
.choices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.choices-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.choice-card { min-height: 130px; padding: 12px 6px; background: #FFFFFF; border: 1.5px solid var(--line-strong); border-radius: 20px; box-shadow: 0 4px 12px rgba(42,36,30,0.06); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-family: inherit; }
.choice-card img { width: 84px; height: 84px; object-fit: contain; }
.choice-card.hint-glow { border: 2.5px solid var(--honey); box-shadow: 0 0 0 4px rgba(189,129,52,0.22); }
.choice-card.soft-dot { opacity: 0.62; border-style: dashed; }
.album-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.album-tile { background: #FFFFFF; border: 1px solid rgba(42,36,30,0.12); border-radius: 14px; padding: 7px 4px; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-sub); cursor: pointer; font-family: inherit; }
.album-tile img { width: 48px; height: 48px; object-fit: contain; display: block; margin: 0 auto 3px; }
.album-tile.collected { border-color: var(--honey); background: #FFFBF0; color: var(--denim); }
.audio-warn { background: var(--paper-warm); border: 1.5px dashed var(--honey); border-radius: 12px; padding: 8px 12px; font-size: 13px; color: var(--ink-sub); width: 100%; text-align: center; }
.privacy-foot { text-align: center; font-size: 12px; color: var(--ink-muted); padding: 4px 0; line-height: 1.7; }
.ai-disclosure { font-size: 11.5px; color: var(--ink-muted); margin-top: 2px; }
.link-btn { background: none; border: none; color: var(--denim); text-decoration: underline; font-family: inherit; font-size: 12px; cursor: pointer; padding: 8px 4px; min-height: 44px; }
.spk-ico { width: 18px; height: 18px; flex-shrink: 0; }
