:root {
  --cream: #fff8ef;
  --paper: #fffdf8;
  --paper-warm: #fff4e7;
  --ink: #473638;
  --ink-soft: #866d6b;
  --ink-faint: #b39d99;
  --rose: #e98896;
  --rose-deep: #d26679;
  --rose-soft: #fde5e8;
  --gold: #f3c66a;
  --gold-deep: #a97420;
  --gold-soft: #fdf0d4;
  --mint: #99d4bd;
  --mint-deep: #3f8a6b;
  --mint-soft: #e8f7f0;
  --sky: #a8cfe8;
  --lilac: #cbbce5;
  --line: #efded2;
  --line-strong: #e4cbbb;
  --white: #ffffff;
  --correct: #4f9f7d;
  --correct-soft: #e7f6ee;
  --wrong: #d76d6d;
  --wrong-soft: #fbeae8;
  --shadow-lg: 0 24px 60px rgba(118, 76, 67, 0.13);
  --shadow-md: 0 12px 30px rgba(118, 76, 67, 0.1);
  --shadow-sm: 0 5px 16px rgba(118, 76, 67, 0.07);
  --serif: "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif SC", "Songti SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --pinyin-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 223, 199, 0.8), transparent 32%),
    radial-gradient(circle at 92% 14%, rgba(253, 225, 231, 0.85), transparent 30%),
    linear-gradient(180deg, #fffaf2 0%, #fff6ed 58%, #fdf0e6 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.24;
  background-image: radial-gradient(rgba(199, 154, 129, 0.5) 0.8px, transparent 0.8px);
  background-size: 26px 26px;
}

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

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

button:not(:disabled) {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

img {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.22;
  letter-spacing: 0.015em;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.5vw, 50px);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(21px, 2.6vw, 27px);
}

.pinyin {
  font-family: var(--pinyin-font);
  letter-spacing: 0.03em;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--rose-deep);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

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

#app {
  min-height: 100dvh;
}

.screen {
  min-height: 100dvh;
}

.boot {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:not(:disabled):hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.45;
}

.btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: linear-gradient(135deg, #ed91a0, var(--rose-deep));
  color: #fffdf9;
  box-shadow: 0 10px 24px rgba(206, 96, 116, 0.26);
}

.btn-primary:not(:disabled):hover {
  box-shadow: 0 14px 28px rgba(206, 96, 116, 0.32);
}

.btn-secondary {
  border-color: #efd9b6;
  background: var(--gold-soft);
  color: #81540e;
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
}

.btn-soft {
  border-color: var(--line);
  background: #fffaf4;
  color: var(--ink);
}

.btn-danger {
  background: var(--wrong);
  color: #fff;
  box-shadow: 0 9px 20px rgba(201, 90, 90, 0.22);
}

.btn-xl {
  min-height: 58px;
  padding: 15px 30px;
  font-size: 18px;
}

.btn-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
}

.icon-btn {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.78);
  color: var(--ink-soft);
  transition: background 0.18s ease, transform 0.18s ease;
}

.icon-btn:hover {
  background: var(--white);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-btn[aria-pressed="false"] {
  color: var(--ink-faint);
}

/* ---------- top bars ---------- */

.home-top {
  display: flex;
  width: min(1120px, 100%);
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 10px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.top-actions {
  display: flex;
  gap: 8px;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  width: 100%;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  padding: 16px max(20px, calc((100vw - 900px) / 2));
  background: rgba(255, 248, 239, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(239, 222, 210, 0.64);
}

.topbar-title {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-spacer {
  width: 44px;
}

/* ---------- welcome ---------- */

.welcome-screen {
  display: grid;
  padding: 28px 20px;
  place-items: center;
}

.welcome-card {
  width: min(560px, 100%);
  padding: clamp(26px, 5vw, 50px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  background: rgba(255, 252, 246, 0.85);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.welcome-art {
  width: min(300px, 82%);
  margin: 0 auto 22px;
  overflow: hidden;
  border-radius: 48% 48% 38% 38%;
  background: linear-gradient(160deg, #fff2dc, #fde5e8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.welcome-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.welcome-card h1 {
  margin-bottom: 10px;
}

.welcome-lead {
  max-width: 420px;
  margin: 0 auto 26px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.name-form {
  display: grid;
  gap: 10px;
  max-width: 340px;
  margin: 0 auto;
  text-align: left;
}

.name-form label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.name-form input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  font-size: 17px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.name-form input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px var(--rose-soft);
}

.name-form .btn {
  width: 100%;
  margin-top: 6px;
}

.fineprint {
  margin: 22px 0 0;
  color: var(--ink-faint);
  font-size: 12px;
}

/* ---------- home ---------- */

.home-screen {
  padding-bottom: 38px;
}

.home-main {
  width: min(1120px, 100%);
  padding: 12px 28px 0;
  margin: 0 auto;
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
  padding: clamp(28px, 4.5vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 82% 18%, rgba(243, 198, 106, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(255, 244, 235, 0.94));
  box-shadow: var(--shadow-lg);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 280px;
  height: 280px;
  border: 1px dashed rgba(226, 170, 140, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 620px;
  margin-bottom: 14px;
}

.hero-lead {
  max-width: 570px;
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.75;
}

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

.hero-art {
  position: relative;
  width: 100%;
  max-width: 360px;
  justify-self: center;
  overflow: hidden;
  border-radius: 42% 42% 28px 28px;
  background: linear-gradient(150deg, #ffe9cc, #fde3e7);
  box-shadow: 0 18px 45px rgba(160, 108, 80, 0.18);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 8px solid rgba(255, 255, 255, 0.42);
  border-radius: inherit;
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.diagnostic-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 26px;
  margin-top: 22px;
  border: 1px solid rgba(153, 212, 189, 0.58);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(235, 248, 241, 0.92), rgba(255, 253, 247, 0.95));
  box-shadow: var(--shadow-sm);
}

.diagnostic-spark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint-soft);
  color: var(--mint-deep);
}

.diagnostic-spark svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.diagnostic-copy .eyebrow {
  margin-bottom: 4px;
  color: var(--mint-deep);
}

.diagnostic-copy h2 {
  margin-bottom: 4px;
  font-size: 21px;
}

.diagnostic-copy p:last-child {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.action-card {
  display: flex;
  min-height: 158px;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.action-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.action-card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 15px;
  background: var(--rose-soft);
  color: var(--rose-deep);
}

.action-card-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.parent-summary .action-card-icon {
  background: var(--mint-soft);
  color: var(--mint-deep);
}

.cheat-summary .action-card-icon {
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.action-card-title {
  margin-bottom: 2px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.action-card-text {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.mini-stickers {
  margin-top: auto;
  padding-top: 12px;
  font-size: 25px;
  letter-spacing: 4px;
}

.home-foot {
  margin: 26px 0 0;
  color: var(--ink-faint);
  font-size: 12px;
  text-align: center;
}

/* ---------- shared page ---------- */

.page-main {
  width: min(900px, 100%);
  padding: 28px 24px 80px;
  margin: 0 auto;
}

.page-main.narrow {
  width: min(720px, 100%);
}

.page-lead {
  max-width: 700px;
  margin-bottom: 26px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.hint {
  margin: 12px 0 0;
  color: var(--ink-faint);
  font-size: 12.5px;
  line-height: 1.65;
}

.hint.center {
  text-align: center;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

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

.section-heading .eyebrow {
  margin-bottom: 4px;
}

.section-count {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-warm);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- scope ---------- */

.settings-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-sm);
}

.switch-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.switch-row:last-child {
  border-bottom: 0;
}

.switch-copy {
  display: grid;
  gap: 4px;
}

.switch-copy strong {
  font-size: 15px;
}

.switch-copy small {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.switch {
  position: relative;
  display: block;
  width: 54px;
  height: 32px;
  flex: none;
  border-radius: 999px;
  background: #e8ddd5;
  transition: background 0.2s ease;
}

.switch i {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(100, 70, 60, 0.2);
  transition: transform 0.2s ease;
}

.switch.is-on {
  background: var(--mint);
}

.switch.is-on i {
  transform: translateX(22px);
}

.scope-section {
  padding: 26px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-sm);
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-chip {
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf4;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.preset-chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.lesson-list {
  display: grid;
  gap: 18px;
}

.lesson-group {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.lesson-title {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
}

.final-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.final-chip {
  position: relative;
  display: inline-flex;
  min-width: 66px;
  min-height: 57px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 15px;
  border: 1.5px solid var(--line);
  border-radius: 17px;
  background: #fffaf5;
  color: var(--ink);
  font-family: var(--pinyin-font);
  font-size: 24px;
  font-weight: 700;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.final-chip:hover {
  border-color: var(--rose);
  transform: translateY(-1px);
}

.final-chip.is-selected {
  border-color: var(--rose);
  background: var(--rose-soft);
  color: #8e3c4c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.final-chip small {
  position: absolute;
  top: -7px;
  right: -4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #6c4709;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 800;
}

.final-chip.readonly {
  cursor: default;
  background: var(--paper-warm);
}

.final-chip.readonly:hover {
  border-color: var(--line);
  transform: none;
}

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

.skill-option {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: #fffaf5;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.skill-option:not(:disabled):hover {
  border-color: var(--rose);
}

.skill-option.is-selected {
  border-color: var(--rose);
  background: var(--rose-soft);
}

.skill-option:disabled {
  opacity: 0.42;
}

.skill-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 12px;
  background: var(--white);
  color: var(--rose-deep);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.skill-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.skill-copy strong {
  font-size: 14px;
}

.skill-copy small {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
}

.skill-option em {
  position: absolute;
  top: 8px;
  right: 9px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #8b5b13;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.tone-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.tone-option {
  display: grid;
  min-height: 84px;
  place-items: center;
  gap: 0;
  padding: 10px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: #fffaf5;
  color: var(--ink-soft);
  font-size: 12px;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.tone-option.is-selected {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--ink);
}

.tone-sample {
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
}

.count-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.count-option {
  min-height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: #fffaf5;
  color: var(--ink-soft);
  font-family: var(--pinyin-font);
  font-size: 19px;
  font-weight: 700;
}

.count-option.is-selected {
  border-color: var(--rose);
  background: var(--rose-soft);
  color: var(--rose-deep);
}

.scope-actions {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  margin-top: 22px;
  border: 1px solid rgba(239, 222, 210, 0.9);
  border-radius: 22px;
  background: rgba(255, 251, 245, 0.92);
  box-shadow: 0 10px 34px rgba(118, 76, 67, 0.14);
  backdrop-filter: blur(12px);
}

.scope-status {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.scope-status.is-invalid {
  color: var(--wrong);
  font-weight: 700;
}

.scope-action-buttons {
  display: flex;
  flex: none;
  gap: 8px;
}

/* ---------- parent ---------- */

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

.stat-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow-sm);
}

.stat-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
}

.stat-card strong {
  display: block;
  margin-top: 2px;
  font-family: var(--pinyin-font);
  font-size: 32px;
  line-height: 1.2;
}

.stat-card small {
  margin-left: 3px;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
}

.focus-panel {
  padding: 20px 22px;
  margin-bottom: 20px;
  border: 1px solid rgba(243, 198, 106, 0.55);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fff8e8, rgba(255, 253, 248, 0.96));
}

.focus-panel p {
  margin-bottom: 12px;
}

.focus-panel .eyebrow {
  margin-bottom: 4px;
  color: var(--gold-deep);
}

.panel {
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-sm);
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--ink-faint);
  font-size: 11px;
}

.legend i,
.mastery-dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #eadcd3;
}

.legend i.on,
.mastery-dots i.on {
  background: var(--rose);
}

.mastery-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}

.mastery-table {
  width: 100%;
  min-width: 570px;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-size: 12px;
}

.mastery-table th,
.mastery-table td {
  padding: 8px 8px;
  text-align: center;
}

.mastery-table thead th {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.mastery-table thead th:first-child,
.mastery-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fffcf6;
  text-align: left;
}

.mastery-table tbody th {
  padding-left: 10px;
  border-radius: 10px 0 0 10px;
}

.mastery-table tbody tr {
  background: #fffaf4;
}

.mastery-table tbody td {
  background: #fffaf4;
}

.mastery-table tbody td:last-child {
  border-radius: 0 10px 10px 0;
}

.row-final {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.mastery-table tbody th small {
  display: block;
  color: var(--ink-faint);
  font-size: 9.5px;
  font-weight: 500;
}

.mastery-dots {
  display: inline-flex;
  gap: 3px;
}

.mastery-dots.level-3 i {
  background: var(--mint);
}

.mastery-dots.level-2 i.on {
  background: var(--gold);
}

.error-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.error-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf4;
}

.error-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.error-copy > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.error-type {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--rose-deep);
  font-size: 10px;
  font-weight: 700;
}

.error-final {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.error-answer {
  overflow: hidden;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.error-copy small {
  color: var(--ink-faint);
  font-size: 10.5px;
}

.empty-note {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

.parent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 34px;
}

.danger-zone {
  padding: 20px 22px;
  border: 1px solid rgba(215, 109, 109, 0.26);
  border-radius: var(--radius-md);
  background: rgba(255, 247, 245, 0.82);
}

.danger-zone h2 {
  margin-bottom: 3px;
  font-family: var(--sans);
  font-size: 15px;
}

.danger-zone p {
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 12.5px;
}

/* ---------- cheat sheet ---------- */

.cheat-intro {
  padding: 20px 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(153, 212, 189, 0.5);
  border-radius: var(--radius-md);
  background: var(--mint-soft);
}

.cheat-intro strong {
  display: block;
  margin-bottom: 3px;
  color: var(--mint-deep);
  font-size: 13px;
}

.cheat-intro p {
  margin-bottom: 0;
  color: #446858;
  font-size: 13.5px;
  line-height: 1.75;
}

.cheat-section {
  padding: 22px 24px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-sm);
}

.cheat-section h2 {
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 16px;
}

.cheat-section ul {
  display: grid;
  gap: 7px;
  padding-left: 1.2em;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.cheat-section li::marker {
  color: var(--gold);
}

/* ---------- stickers ---------- */

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

.sticker-card {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 12px;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  background: #fffaf4;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sticker-card.is-earned {
  border-color: rgba(243, 198, 106, 0.7);
  background: linear-gradient(160deg, #fffdf7, var(--gold-soft));
  box-shadow: var(--shadow-sm);
}

.sticker-card.is-earned:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: var(--shadow-md);
}

.sticker-card.is-locked {
  border-style: dashed;
  color: var(--ink-faint);
}

.sticker-emoji {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  margin-bottom: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  font-size: 38px;
  line-height: 1;
}

.sticker-card.is-locked .sticker-emoji {
  background: #f6ece4;
  color: #cbb6ab;
  font-family: var(--pinyin-font);
  font-size: 25px;
  font-weight: 700;
}

.sticker-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
}

.sticker-quote {
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.45;
}

/* ---------- result ---------- */

.result-art,
.celebration-art {
  width: min(250px, 64vw);
  margin: 4px auto 24px;
  overflow: hidden;
  border-radius: 46% 46% 30px 30px;
  background: linear-gradient(160deg, #fff1d9, #fde4e8);
  box-shadow: var(--shadow-md);
}

.result-art img,
.celebration-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.intro-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 22px;
}

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

/* ---------- practice ---------- */

.practice-screen {
  display: flex;
  flex-direction: column;
}

.practice-topbar {
  display: grid;
  width: min(780px, 100%);
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 14px;
  padding: 16px 20px 8px;
  margin: 0 auto;
}

.progress-block {
  min-width: 0;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #efdfd3;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--rose));
  transition: width 0.35s ease;
}

.progress-block p {
  margin: 5px 0 0;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 650;
  text-align: center;
}

.item-stage {
  display: flex;
  width: min(780px, 100%);
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px;
  margin: 0 auto;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 5px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.8);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.skill-badge span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--rose-deep);
  font-family: var(--serif);
  font-size: 12px;
}

.skill-badge em {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #84560e;
  font-size: 9px;
  font-style: normal;
}

.item-card {
  width: 100%;
  padding: clamp(24px, 4.6vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 34px;
  background:
    radial-gradient(circle at 90% 8%, rgba(243, 198, 106, 0.13), transparent 26%),
    rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-lg);
  animation: card-in 0.28s ease both;
}

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

.read-stage,
.listen-stage {
  display: flex;
  min-height: 188px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.read-display {
  color: var(--ink);
  font-size: clamp(68px, 15vw, 116px);
  font-weight: 800;
  line-height: 1.08;
}

.blend-stage .read-display {
  font-size: clamp(43px, 9vw, 78px);
  letter-spacing: 0.01em;
}

.stage-caption {
  margin: 8px 0 0;
  color: var(--ink-faint);
  font-size: 12.5px;
}

.speaker-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf4;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.speaker-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.speaker-btn.is-large {
  width: 150px;
  height: 150px;
  flex-direction: column;
  gap: 4px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff6dc, var(--gold-soft) 55%, #f7e1ae);
  color: #80560f;
  box-shadow: 0 12px 28px rgba(196, 146, 55, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.speaker-btn.is-large:hover {
  transform: scale(1.035);
  box-shadow: 0 16px 34px rgba(196, 146, 55, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.speaker-btn.is-large svg {
  width: 52px;
  height: 52px;
  stroke-width: 1.6;
}

.speaker-btn.is-large span {
  font-size: 11px;
}

.listen-stage .stage-caption {
  margin-top: 12px;
}

.tone-stage,
.build-stage,
.word-stage {
  display: flex;
  min-height: 188px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
}

.tone-base {
  font-size: clamp(72px, 15vw, 112px);
  font-weight: 800;
  line-height: 1;
}

.build-display {
  font-size: clamp(43px, 9vw, 76px);
  font-weight: 800;
  line-height: 1.15;
}

.tone-tag {
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #805410;
  font-size: 12px;
  font-weight: 700;
}

.word-stage {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0 18px;
}

.word-emoji {
  grid-row: span 2;
  font-size: clamp(64px, 13vw, 90px);
  line-height: 1;
}

.word-char {
  font-family: var(--serif);
  font-size: clamp(54px, 10vw, 78px);
  font-weight: 700;
  line-height: 1.2;
}

.word-stage .speaker-btn {
  grid-column: 2;
  justify-self: center;
}

.write-stage {
  display: flex;
  min-height: 214px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.write-pinyin {
  color: var(--ink);
  font-size: clamp(44px, 9.5vw, 72px);
  font-weight: 800;
  line-height: 1.14;
}

.write-stage .word-emoji {
  grid-row: auto;
  font-size: clamp(46px, 9vw, 64px);
}

.type-write-hanzi .answer-main {
  font-family: var(--serif);
  font-size: clamp(40px, 7.5vw, 58px);
}

.item-prompt {
  margin: 8px 0 22px;
  color: var(--ink-soft);
  font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 650;
  text-align: center;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.option-btn {
  position: relative;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border: 1.5px solid var(--line);
  border-radius: 21px;
  background: #fffaf4;
  color: var(--ink);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.option-btn:not(:disabled):hover {
  border-color: var(--rose);
  background: #fff7f2;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.option-number {
  position: absolute;
  top: 8px;
  left: 10px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #f6ebe2;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
}

.option-text {
  font-size: clamp(28px, 5.5vw, 38px);
  font-weight: 700;
  line-height: 1.2;
}

.option-btn.is-correct {
  border-color: var(--correct);
  background: var(--correct-soft);
  color: #236548;
  box-shadow: inset 0 0 0 1px rgba(79, 159, 125, 0.18);
}

.option-btn.is-wrong {
  border-color: var(--wrong);
  background: var(--wrong-soft);
  color: #963b3b;
}

.option-btn.is-dim {
  opacity: 0.45;
}

.parent-judge {
  padding: 16px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background: #fffaf4;
  text-align: center;
}

.parent-judge > p {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 12.5px;
}

.judge-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.judge-btn {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1.5px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  font-size: 16px;
  font-weight: 700;
}

.judge-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.judge-btn.is-correct {
  border-color: rgba(79, 159, 125, 0.45);
  background: var(--correct-soft);
  color: #236548;
}

.judge-btn.is-retry {
  border-color: rgba(215, 109, 109, 0.35);
  background: var(--wrong-soft);
  color: #963b3b;
}

.feedback {
  padding: 20px;
  margin-top: 20px;
  border: 1px solid transparent;
  border-radius: 22px;
  animation: feedback-in 0.22s ease both;
}

@keyframes feedback-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.feedback.is-correct {
  border-color: rgba(79, 159, 125, 0.26);
  background: var(--correct-soft);
}

.feedback.is-wrong {
  border-color: rgba(215, 109, 109, 0.22);
  background: var(--wrong-soft);
}

.feedback-title {
  margin-bottom: 3px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.feedback.is-correct .feedback-title {
  color: #236548;
}

.feedback.is-wrong .feedback-title {
  color: #963b3b;
}

.answer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 5px 0 16px;
}

.answer-main {
  color: var(--ink);
  font-size: clamp(34px, 6vw, 46px);
  font-weight: 800;
  line-height: 1.2;
}

.answer-detail {
  color: var(--ink-soft);
  font-size: 14px;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.feedback-actions .btn {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
}

.auto-note {
  margin: 12px 0 0;
  color: var(--ink-faint);
  font-size: 11.5px;
}

/* ---------- complete / result ---------- */

.completion-main {
  width: min(720px, 100%);
  padding: 18px 24px 70px;
  margin: 0 auto;
  text-align: center;
}

.completion-main h1,
.result-main h1 {
  margin-bottom: 12px;
}

.completion-lead {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.sticker-reveal {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid rgba(243, 198, 106, 0.6);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fffdf7, var(--gold-soft));
  box-shadow: var(--shadow-md);
  text-align: left;
  animation: sticker-pop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes sticker-pop {
  from {
    opacity: 0;
    transform: scale(0.92) rotate(-1.5deg);
  }
}

.sticker-reveal-emoji {
  display: grid;
  width: 92px;
  height: 92px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  font-size: 54px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.sticker-reveal .eyebrow {
  margin-bottom: 2px;
  color: var(--gold-deep);
}

.sticker-reveal h2 {
  margin-bottom: 2px;
}

.sticker-reveal p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.completion-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
}

.result-main {
  text-align: center;
}

.result-main .page-lead {
  margin-right: auto;
  margin-left: auto;
}

.recommend-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.recommend-card .eyebrow {
  margin-bottom: 12px;
}

.rec-finals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.rec-skills {
  margin: 15px 0 3px;
  font-size: 14px;
  font-weight: 650;
}

.rec-note {
  margin: 0;
  color: var(--ink-faint);
  font-size: 12px;
}

/* ---------- modal / toast ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  padding: 20px;
  background: rgba(61, 43, 42, 0.36);
  backdrop-filter: blur(5px);
  place-items: center;
  animation: fade-in 0.18s ease both;
}

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

.modal-card {
  width: min(430px, 100%);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.22s ease both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

.modal-card h2 {
  margin-bottom: 8px;
}

.modal-card p {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 90;
  max-width: min(90vw, 560px);
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(61, 43, 42, 0.94);
  color: #fff7ee;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 10px 30px rgba(61, 43, 42, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

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

  .hero-art {
    width: min(300px, 72vw);
    max-width: 300px;
  }

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

  .cheat-summary {
    grid-column: 1 / -1;
    min-height: 118px;
  }
}

@media (max-width: 720px) {
  .home-top {
    padding: 16px 18px 8px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .home-main {
    padding: 8px 16px 0;
  }

  .hero-card {
    padding: 26px 22px;
    border-radius: 28px;
  }

  .hero-art {
    width: min(260px, 70vw);
  }

  .diagnostic-card {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 18px;
  }

  .diagnostic-spark {
    width: 44px;
    height: 44px;
  }

  .diagnostic-card .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

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

  .cheat-summary {
    grid-column: auto;
    min-height: 140px;
  }

  .action-card {
    min-height: 136px;
  }

  .page-main {
    padding: 20px 16px 60px;
  }

  .app-topbar {
    padding: 12px 16px;
  }

  .scope-section,
  .panel {
    padding: 20px 18px;
    border-radius: 24px;
  }

  .lesson-group {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .lesson-title {
    font-size: 12px;
  }

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

  .final-chip {
    min-width: 60px;
    min-height: 53px;
    font-size: 22px;
  }

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

  .scope-actions {
    position: static;
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
  }

  .scope-action-buttons {
    justify-content: stretch;
  }

  .scope-action-buttons .btn {
    flex: 1;
  }

  .stat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .stat-card {
    padding: 14px 12px;
  }

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

  .panel {
    padding: 18px;
  }

  .mastery-table {
    min-width: 540px;
  }

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

  .sticker-card {
    min-height: 146px;
    padding: 12px 8px;
  }

  .sticker-emoji {
    width: 54px;
    height: 54px;
    font-size: 31px;
  }

  .sticker-name {
    font-size: 14px;
  }

  .sticker-quote {
    display: none;
  }

  .practice-topbar {
    padding: 12px 14px 6px;
  }

  .item-stage {
    padding: 8px 14px 40px;
  }

  .item-card {
    padding: 22px 18px 24px;
    border-radius: 26px;
  }

  .read-stage,
  .listen-stage,
  .tone-stage,
  .build-stage,
  .write-stage,
  .word-stage {
    min-height: 166px;
  }

  .option-btn {
    min-height: 74px;
    padding: 12px 26px;
  }

  .speaker-btn.is-large {
    width: 132px;
    height: 132px;
  }

  .feedback {
    padding: 17px;
  }

  .feedback-actions .btn {
    flex: 1;
  }

  .completion-main {
    padding: 8px 18px 54px;
  }

  .sticker-reveal {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .sticker-reveal p:last-child {
    margin-right: auto;
    margin-left: auto;
  }

  .modal-card {
    padding: 22px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

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

@media (max-width: 390px) {
  .final-chip {
    min-width: 55px;
    padding: 6px 12px;
    font-size: 20px;
  }

  .option-grid {
    gap: 8px;
  }

  .option-btn {
    min-height: 68px;
    padding: 10px 20px;
  }

  .option-text {
    font-size: 27px;
  }

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

@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;
  }
}
