:root {
  --ink: #17272b;
  --muted: #607176;
  --teal: #0c7b82;
  --teal-dark: #075a61;
  --teal-pale: #e7f5f4;
  --coral: #f05a47;
  --coral-pale: #fff0eb;
  --sun: #f5bd3f;
  --sun-pale: #fff7df;
  --blue: #4588d8;
  --blue-pale: #eaf2fc;
  --line: #dbe5e5;
  --paper: #fbfcfa;
  --white: #ffffff;
  --shadow: 0 16px 44px rgba(29, 62, 67, 0.12);
}

/* v39 restrained Feijie brand system: one hierarchy across home and IP detail. */
body[data-screen="landing"],
body[data-screen="theme"] {
  background: #f7f9f7;
}

.game-brand-banner {
  min-height: 150px;
  gap: 18px;
  padding: 26px 30px;
  color: #f7fffc;
  background: #0d5c58;
  border: 1px solid #0a4f4b;
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(21, 73, 69, .18);
}
.game-brand-banner::after {
  right: 0;
  bottom: 0;
  width: 9px;
  height: 100%;
  background: #e46f57;
  border-radius: 0;
  transform: none;
}
.game-brand-icon {
  width: 68px;
  height: 68px;
  flex-basis: 68px;
  background: #f7fbf8;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(2, 39, 36, .2);
  transform: none;
}
.game-brand-icon b {
  color: #0d5c58;
  font-size: 17px;
}
.game-brand-icon span {
  right: -7px;
  bottom: -7px;
  padding: 4px 7px;
  color: #fff;
  background: #e46f57;
  border-radius: 9px;
  font-size: 9px;
}
.game-brand-banner small {
  margin-bottom: 7px;
  color: #a9d2cb;
  font-size: 11px;
  letter-spacing: 1.6px;
  opacity: 1;
}
.game-brand-banner h1 {
  font-size: clamp(27px, 6vw, 41px);
  line-height: 1.15;
  text-shadow: none;
}
.game-brand-banner p {
  margin-top: 9px;
  color: #d2e8e4;
  font-size: 13px;
  font-weight: 600;
  opacity: 1;
}
.play-mode-heading span,
.theme-library-heading span,
.theme-bank-heading span {
  color: #e46f57;
}
.play-mode-button {
  position: relative;
  color: #173936;
  background: #fff;
  border: 1px solid #dbe6e2;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(42, 78, 73, .08);
}
.play-mode-button:nth-child(2),
.play-mode-button:nth-child(3),
.play-mode-button:nth-child(4) {
  background: #fff;
}
.play-mode-button::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #cbd9d5;
  border-radius: 14px 0 0 14px;
}
.play-mode-button > span {
  position: absolute;
  right: 12px;
  top: 11px;
  color: #a0b2ad;
  font-size: 10px;
  font-weight: 900;
}
.play-mode-button small {
  color: #7a8b87;
  opacity: 1;
}
.play-mode-button.is-active {
  color: #fff;
  background: #0d5c58;
  border-color: #0d5c58;
  outline: 0;
  transform: translateY(-2px);
  box-shadow: 0 13px 25px rgba(13, 92, 88, .2);
}
.play-mode-button.is-active::after { background: #e46f57; }
.play-mode-button.is-active > span,
.play-mode-button.is-active small { color: #cfe4df; }
.mode-preview-note {
  color: #5d706c;
  background: #eef4f1;
  border-color: #dbe6e2;
  border-radius: 11px;
}
.ability-library-card {
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(34, 69, 64, .14);
}
.ability-library-card.is-active {
  box-shadow: 0 0 0 3px rgba(13, 92, 88, .18), 0 16px 32px rgba(34, 69, 64, .2);
}
.ip-cover-card { background: #e7efec; }
body[data-screen="landing"] .test-trust-row span {
  color: #5c706b;
  background: #fff;
  border-color: #dbe6e2;
}

.theme-back-button {
  color: #41615d;
  border-color: #dbe5e2;
}
.theme-hero {
  grid-template-columns: 132px 1fr;
  gap: 22px;
  padding: 20px;
  color: #173936;
  background: #fff;
  border: 1px solid #dce6e3;
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(31, 70, 64, .12);
}
.theme-hero img {
  width: 132px;
  border: 0;
  border-radius: 15px;
  box-shadow: none;
}
.theme-hero span {
  color: #e46f57;
  font-size: 11px;
  opacity: 1;
}
.theme-hero h2 {
  margin: 7px 0;
  color: #0d5c58;
  font-size: 32px;
}
.theme-hero p {
  color: #6c807b;
  font-size: 13px;
  opacity: 1;
}
.theme-bank-card,
.ip-subbank-card {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  min-height: 0;
  gap: 15px;
  padding: 17px 18px;
  background: #fff;
  border: 1px solid #dce6e3;
  border-radius: 14px;
  box-shadow: 0 7px 18px rgba(37, 74, 68, .07);
}
.theme-bank-card:hover,
.theme-bank-card:focus-visible {
  border-color: #75a19a;
  box-shadow: 0 13px 26px rgba(37, 74, 68, .13);
}
.theme-bank-card > span,
.ip-subbank-card > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #0d5c58;
  background: #e8f1ee;
  border-radius: 12px;
  font-size: 14px;
}
.theme-bank-card strong { font-size: 19px; }
.theme-bank-card small { color: #6d7d79; }
.theme-bank-card em,
.ip-subbank-card em {
  color: #4d7771;
}
.theme-bank-card > b,
.ip-subbank-card > b {
  padding: 9px 12px;
  color: #0d5c58;
  background: #edf4f2;
  border-radius: 999px;
}
.theme-bank-card > b i { margin-left: 4px; font-size: 16px; font-style: normal; }
.theme-test-note {
  color: #5d706c;
  background: #eef4f1;
  border-color: #dbe6e2;
}
.theme-test-note b { color: #0d5c58; }

@media (max-width: 620px) {
  .landing-screen { padding-top: 14px; }
  .game-home { gap: 15px; }
  .game-brand-banner {
    min-height: 118px;
    gap: 13px;
    padding: 18px 17px;
    border-radius: 18px;
  }
  .game-brand-icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 12px;
  }
  .game-brand-icon b { font-size: 14px; }
  .game-brand-banner small { margin-bottom: 5px; font-size: 9px; }
  .game-brand-banner h1 { font-size: 25px; }
  .game-brand-banner p { margin-top: 6px; font-size: 11px; }
  .play-mode-button { min-height: 68px; padding: 11px 12px; border-radius: 13px; }
  .play-mode-button b { font-size: 17px; }
  .ability-library-grid { gap: 10px; }
  .ability-library-card { border-radius: 15px; }
  .theme-hero {
    grid-template-columns: 78px 1fr;
    gap: 13px;
    padding: 13px;
    border-radius: 16px;
  }
  .theme-hero img { width: 78px; border-radius: 11px; }
  .theme-hero h2 { font-size: 23px; }
  .theme-hero p { font-size: 10px; line-height: 1.55; }
  .theme-bank-card,
  .ip-subbank-card {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 11px;
    padding: 13px;
    border-radius: 13px;
  }
  .theme-bank-card > span,
  .ip-subbank-card > span {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 12px;
  }
  .theme-bank-card strong { font-size: 16px; }
  .theme-bank-card small { font-size: 11px; }
  .theme-bank-card > b,
  .ip-subbank-card > b {
    grid-column: 2;
    justify-self: start;
    margin-top: -2px;
    padding: 7px 10px;
  }
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0;
}
button, select { font: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  width: min(1180px, calc(100% - 40px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: transparent; text-align: left; color: var(--ink); }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; background: var(--teal); color: #fff; font: 900 11px/1.05 system-ui, sans-serif; text-align: center; border-radius: 14px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; }
.brand small { margin-top: 2px; font-size: 12px; color: var(--muted); }
.quiet-button, .back-link, .text-button { border: 0; background: transparent; color: var(--teal-dark); font-weight: 700; }
.quiet-button { padding: 10px 0; border-bottom: 2px solid var(--teal); }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; flex: 1; }
.screen { min-height: 690px; }
.is-hidden { display: none !important; }

.landing-screen { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); gap: 54px; align-items: center; padding: 54px 0 72px; }
.landing-screen::before { content: ""; position: absolute; inset: 24px -34px 34px; z-index: -1; background: linear-gradient(135deg, #eef9f7 0 44%, #fff8e8 44% 100%); border: 1px solid #dfecea; border-radius: 8px; }
.hero-badge { width: fit-content; display: flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 8px 13px 8px 9px; color: var(--teal-dark); background: #fff; border: 1px solid #cbe4e1; border-radius: 999px; box-shadow: 0 7px 18px rgba(29, 62, 67, .07); }
.hero-badge span { width: 48px; height: 32px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 999px; font: 800 15px/1 Georgia, serif; }
.hero-badge b { font-size: 14px; }
.hero-badge small { padding-left: 9px; color: var(--muted); border-left: 1px solid var(--line); font-size: 11px; }
.eyebrow { margin: 0 0 18px; color: var(--teal); font-size: 15px; font-weight: 800; }
h1 { margin: 0; max-width: 760px; font-size: clamp(40px, 4.8vw, 64px); line-height: 1.1; }
h1 span { color: var(--coral); }
.lead { max-width: 700px; margin: 22px 0 26px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.challenge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.challenge-card { position: relative; min-width: 0; min-height: 128px; padding: 17px 14px 13px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-top: 6px solid; border-radius: 7px; box-shadow: 0 7px 20px rgba(29, 62, 67, .06); }
.challenge-card span, .challenge-card b, .challenge-card small { display: block; }
.challenge-card span { margin-bottom: 12px; color: var(--muted); font-size: 11px; font-weight: 800; }
.challenge-card b { font-size: 17px; }
.challenge-card small { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.challenge-card i { position: absolute; top: 13px; right: 12px; color: #809093; font-size: 11px; font-style: normal; font-weight: 800; }
.challenge-card.is-word { border-top-color: var(--blue); }
.challenge-card.is-sentence { border-top-color: var(--teal); }
.challenge-card.is-verify { border-top-color: var(--sun); }
.challenge-card.is-passage { border-top-color: var(--coral); }
.test-trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.test-trust-row span { padding: 7px 10px; color: var(--teal-dark); background: rgba(255,255,255,.72); border: 1px solid #d7e7e5; border-radius: 999px; font-size: 11px; font-weight: 700; }
.metric-row { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric-row div { min-width: 145px; padding: 20px 34px 18px 0; }
.metric-row div + div { padding-left: 34px; border-left: 1px solid var(--line); }
.metric-row strong, .metric-row span { display: block; }
.metric-row strong { color: var(--teal-dark); font: 800 34px/1.1 Georgia, serif; }
.metric-row span { margin-top: 5px; color: var(--muted); font-size: 13px; }

.assessment-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.path-step { min-height: 104px; display: flex; gap: 12px; padding-top: 16px; border-top: 6px solid; }
.path-step b { font: 700 14px/1.3 Georgia, serif; }
.path-step strong, .path-step span { display: block; }
.path-step strong { margin-bottom: 6px; font-size: 17px; }
.path-step span { color: var(--muted); font-size: 13px; line-height: 1.7; }
.path-step.is-base { border-color: var(--teal); }
.path-step.is-scene { border-color: var(--sun); }
.path-step.is-reading { border-color: var(--coral); }

.start-panel { padding: 30px; background: var(--white); border: 1px solid #cfe1df; box-shadow: 0 20px 54px rgba(29, 62, 67, .15); border-radius: 8px; }
.panel-heading { margin-bottom: 28px; }
.panel-heading span, .panel-heading strong { display: block; }
.panel-heading span { color: var(--coral); font-size: 14px; font-weight: 800; }
.panel-heading strong { margin-top: 8px; font-size: 20px; line-height: 1.5; }
.panel-heading small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.start-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 6px; margin: -8px 0 22px; padding: 12px; background: var(--teal-pale); border-radius: 6px; }
.start-steps span { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--teal-dark); font-size: 11px; font-weight: 800; white-space: nowrap; }
.start-steps b { width: 20px; height: 20px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 50%; font-size: 10px; }
.start-steps i { color: #7aa8a7; font-style: normal; }
label { display: block; margin: 18px 0; font-size: 14px; font-weight: 700; }
select { width: 100%; height: 50px; margin-top: 8px; padding: 0 14px; color: var(--ink); background: var(--paper); border: 1px solid #cbd9d9; border-radius: 6px; }
.primary-button, .secondary-button { min-height: 52px; padding: 0 24px; border: 0; border-radius: 6px; font-weight: 800; }
.primary-button { color: #fff; background: var(--coral); box-shadow: 0 10px 22px rgba(240, 90, 71, 0.22); }
.primary-button:hover { background: #dd4937; }
.primary-button span { margin-left: 8px; opacity: .78; font-weight: 500; }
.start-panel .primary-button { position: relative; z-index: 1; width: 100%; margin-top: 12px; }
.secondary-button { color: var(--teal-dark); background: var(--teal-pale); border: 1px solid #b8ddda; }
.microcopy { margin: 13px 0 0; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6; }

.quiz-screen { max-width: 1040px; margin: 0 auto; padding: 42px 0 70px; }
.instruction-overlay { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; background: rgba(11, 37, 40, .64); backdrop-filter: blur(5px); }
.instruction-card { width: min(620px, 100%); padding: 34px; background: #fff; border-top: 8px solid var(--teal); border-radius: 8px; box-shadow: 0 28px 80px rgba(7, 35, 38, .32); }
.instruction-card h2 { margin: 0; font-size: 32px; }
.instruction-card .eyebrow { margin-bottom: 8px; }
.instruction-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0 18px; }
.instruction-types div { min-height: 118px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.instruction-types .type-choice { background: var(--blue-pale); border-color: #c9daf2; }
.instruction-types .type-sentence { background: var(--teal-pale); border-color: #b8ddda; }
.instruction-types .type-verify { background: var(--sun-pale); border-color: #efd188; }
.instruction-types .type-sequence { background: var(--coral-pale); border-color: #f3c0b7; }
.instruction-types strong, .instruction-types small { display: block; }
.instruction-types strong { margin: 9px 0 5px; font-size: 18px; }
.instruction-types small { color: var(--muted); line-height: 1.5; }
.instruction-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--teal); border-radius: 50%; font-weight: 900; }
.type-choice .instruction-icon { background: var(--blue); }
.type-sentence .instruction-icon { background: var(--teal); }
.type-verify .instruction-icon { color: var(--ink); background: var(--sun); }
.type-sequence .instruction-icon { background: var(--coral); }
.instruction-card ul { margin: 0 0 24px; padding-left: 22px; color: var(--muted); line-height: 1.9; }
.instruction-card .primary-button { width: 100%; }
.stage-transition { position: fixed; inset: 0; z-index: 21; display: grid; place-items: center; padding: 20px; background: rgba(11, 37, 40, .66); backdrop-filter: blur(6px); }
.stage-transition-card { width: min(520px, 100%); padding: 38px; text-align: center; background: #fff; border-top: 8px solid var(--teal); border-radius: 8px; box-shadow: 0 28px 80px rgba(7, 35, 38, .34); }
.stage-transition-number { display: inline-block; padding: 7px 12px; color: #fff; background: var(--teal); border-radius: 999px; font-size: 12px; font-weight: 900; }
.stage-transition-icon { width: 74px; height: 74px; display: grid; place-items: center; margin: 24px auto 16px; color: #fff; background: var(--teal); border-radius: 22px; font-size: 34px; font-weight: 900; transform: rotate(-3deg); }
.stage-transition-card > p { margin: 8px 0; color: var(--muted); line-height: 1.7; }
.stage-transition-card > p:first-of-type { color: var(--teal); font-size: 13px; font-weight: 900; }
.stage-transition-card h2 { margin: 0; font-size: 40px; }
.stage-transition-meta { margin: 22px 0; padding: 12px 14px; color: var(--teal-dark); background: var(--teal-pale); border-radius: 6px; font-size: 13px; font-weight: 800; }
.stage-transition-card .primary-button { width: 100%; }
.stage-transition.is-verify .stage-transition-card { border-top-color: var(--sun); }
.stage-transition.is-verify .stage-transition-number, .stage-transition.is-verify .stage-transition-icon { color: var(--ink); background: var(--sun); }
.stage-transition.is-passage .stage-transition-card { border-top-color: var(--coral); }
.stage-transition.is-passage .stage-transition-number, .stage-transition.is-passage .stage-transition-icon { background: var(--coral); }
.quiz-topline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: 14px; }
.quiz-topline .back-link { justify-self: start; padding: 0; }
.quiz-topline span { color: var(--muted); }
.quiz-topline strong { justify-self: end; }
.progress-track { height: 7px; margin: 18px 0 22px; overflow: hidden; background: #e5eceb; border-radius: 6px; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--teal); transition: width .35s ease; }
.ability-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 26px; }
.ability-step { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 11px 12px; color: #7b898c; background: #f1f5f4; border: 2px solid transparent; border-radius: 8px; transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.ability-step b { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: #aebabb; border-radius: 50%; font: 800 13px/1 Georgia, serif; }
.ability-step span, .ability-step strong, .ability-step small { display: block; min-width: 0; }
.ability-step strong { color: inherit; font-size: 14px; white-space: nowrap; }
.ability-step small { margin-top: 2px; font-size: 11px; white-space: nowrap; }
.ability-step.is-active { transform: translateY(-2px); color: var(--ink); background: #fff; box-shadow: 0 8px 22px rgba(29, 62, 67, .1); }
.ability-step[data-ability="word"].is-active { border-color: var(--blue); }
.ability-step[data-ability="word"].is-active b { background: var(--blue); }
.ability-step[data-ability="sentence"].is-active { border-color: var(--teal); }
.ability-step[data-ability="sentence"].is-active b { background: var(--teal); }
.ability-step[data-ability="verify"].is-active { border-color: var(--sun); }
.ability-step[data-ability="verify"].is-active b { color: var(--ink); background: var(--sun); }
.ability-step[data-ability="passage"].is-active { border-color: var(--coral); }
.ability-step[data-ability="passage"].is-active b { background: var(--coral); }
.ability-step[data-test-progress].is-active { border-color: #7566df; background: #f0eeff; }
.ability-step[data-test-progress].is-active b { color: #fff; background: linear-gradient(135deg, #6c60df, #9c6be9); }
.question-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 22px 24px; border: 2px solid; border-left-width: 8px; border-radius: 8px; transition: background .2s ease, border-color .2s ease; }
.mode-choice .question-heading { background: var(--blue-pale); border-color: var(--blue); }
.mode-sentence .question-heading { background: var(--teal-pale); border-color: var(--teal); }
.mode-verify .question-heading { background: var(--sun-pale); border-color: var(--coral); }
.mode-sequence .question-heading { background: var(--coral-pale); border-color: var(--coral); }
.question-copy { display: flex; align-items: center; gap: 12px; }
.question-copy > div { min-width: 0; }
.question-heading p { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.25; }
.question-copy small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.question-type { flex: 0 0 auto; padding: 10px 12px; color: #fff; font-size: 12px; font-weight: 800; border-radius: 6px; }
.mode-choice .question-type { background: var(--blue); }
.mode-sentence .question-type { background: var(--teal); }
.mode-verify .question-type { color: #fff; background: var(--coral); }
.mode-sequence .question-type { color: #fff; background: var(--coral); }
.mode-sentence .audio-button { background: var(--teal); box-shadow: 0 8px 20px rgba(12, 123, 130, .24); }
.mode-verify .audio-button { background: var(--coral); box-shadow: 0 8px 20px rgba(240, 90, 71, .24); }
.mode-sequence .audio-button { background: var(--coral); box-shadow: 0 8px 20px rgba(240, 90, 71, .24); }
.question-actions { flex: 0 0 auto; display: flex; align-items: stretch; gap: 8px; }
.instruction-audio-button { min-width: 132px; padding: 0 13px; color: var(--ink); background: #fff; border: 1px solid #cbd9d9; border-radius: 6px; font-size: 13px; font-weight: 800; }
.instruction-audio-button span { margin-right: 4px; }
.audio-button { min-width: 230px; min-height: 96px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px 8px 8px; border: 0; color: #fff; background: linear-gradient(135deg, #7660f5, #3f99ee); border-radius: 14px; font-weight: 800; box-shadow: 0 10px 24px rgba(69, 105, 216, .28); }
.audio-button:disabled { opacity: .52; cursor: default; }
.listen-mascot { width: 88px; height: 88px; flex: 0 0 88px; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(43, 49, 121, .2)); }
.audio-button-copy { display: block; text-align: left; }
.audio-button-copy b, .audio-button-copy small, .audio-button-copy em { display: block; }
.audio-button-copy b { font-size: 16px; }
.audio-button small { margin-top: 3px; font-size: 10px; font-weight: 500; opacity: .82; }
.audio-button-copy em { margin-top: 3px; font-size: 10px; font-style: normal; font-weight: 700; opacity: .94; }
.audio-pulse { width: 34px; height: 28px; display: flex; align-items: center; justify-content: center; gap: 3px; background: rgba(255,255,255,.18); border-radius: 50%; }
.audio-pulse i { width: 3px; height: 10px; background: #fff; border-radius: 3px; }
.audio-pulse i:nth-child(2) { height: 18px; }
.audio-pulse i:nth-child(3) { height: 13px; }
.audio-button.is-playing .audio-pulse i { animation: audio-wave .55s ease-in-out infinite alternate; }
.audio-button.is-playing .audio-pulse i:nth-child(2) { animation-delay: .14s; }
.audio-button.is-playing .audio-pulse i:nth-child(3) { animation-delay: .28s; }
@keyframes audio-wave { from { transform: scaleY(.45); } to { transform: scaleY(1.15); } }
.interaction-guide { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 11px 14px; border: 1px solid; border-radius: 6px; }
.interaction-guide b { padding: 5px 8px; color: #fff; border-radius: 4px; font-size: 12px; }
.interaction-guide span { color: var(--muted); font-size: 13px; }
.mode-choice .interaction-guide { background: #f6f9fe; border-color: #c9daf2; }
.mode-choice .interaction-guide b { background: var(--blue); }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 18px; background: #f6f9fe; border: 1px solid #dce8f7; border-radius: 8px; }
.mode-sentence .option-grid { background: #f1faf9; border-color: #cce8e5; }
.option-card { position: relative; min-height: 275px; padding: 16px; overflow: hidden; background: #fff; border: 2px solid var(--line); border-radius: 8px; box-shadow: 0 5px 14px rgba(29, 62, 67, .05); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.option-card:hover { transform: translateY(-2px); border-color: #8dbcbc; box-shadow: 0 12px 28px rgba(28, 70, 73, .11); }
.option-card.is-selected { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(240, 90, 71, .13); }
.option-card.is-answered { cursor: default; }
.option-card.is-correct { border-color: #20a76d !important; box-shadow: 0 0 0 5px rgba(32,167,109,.17), 0 12px 28px rgba(32,120,86,.16) !important; }
.option-card.is-correct::after { content: "✓ 正确答案"; position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 7px 10px; color: #fff; background: #20a76d; border-radius: 999px; font-size: 12px; font-weight: 900; }
.option-card.is-wrong { border-color: #f05252 !important; box-shadow: 0 0 0 5px rgba(240,82,82,.15) !important; opacity: .72; }
.option-card.is-wrong::after { content: "× 你的选择"; position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 7px 10px; color: #fff; background: #f05252; border-radius: 999px; font-size: 12px; font-weight: 900; }
.word-picture { display: block; background-repeat: no-repeat; }
.option-card .word-picture { width: 100%; height: 240px; }
.reading-stem { margin: 18px 0 14px; padding: 24px 18px; text-align: center; background: linear-gradient(145deg, #fff, #f1efff); border: 2px solid #ded9ff; border-radius: 18px; box-shadow: 0 10px 24px rgba(74, 69, 130, .1); }
.reading-stem span, .reading-stem strong { display: block; }
.reading-stem span { color: #77709b; font-size: 12px; font-weight: 800; }
.reading-stem strong { margin-top: 7px; color: #282344; font-size: 48px; line-height: 1.1; }
.reading-picture-prompt { width: min(240px, 72vw); aspect-ratio: 1 / 1; margin: 12px auto 0; background-position: center; background-repeat: no-repeat; background-size: contain; }
.reading-audio-button { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 152px; min-height: 150px; margin-top: 15px; padding: 8px 14px 11px; color: #5f54ce; background: #fff; border: 2px solid #d9d3ff; border-radius: 20px; box-shadow: 0 10px 24px rgba(81, 67, 176, .16); font-size: 13px; font-weight: 900; }
.reading-listen-mascot { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(66, 60, 159, .18)); }
.reading-audio-copy, .reading-audio-copy b, .reading-audio-copy small, .reading-audio-copy em { display: block; }
.reading-audio-copy b { font-size: 13px; }
.reading-audio-copy small { margin-top: 2px; color: #8a84ad; font-size: 10px; font-weight: 700; }
.reading-audio-copy em { margin-top: 3px; color: #6e678f; font-size: 10px; font-style: normal; font-weight: 700; }
.reading-audio-button:disabled { opacity: .48; }
.option-grid.is-text-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.text-option-card { min-height: 150px; display: grid; place-items: center; padding: 34px 18px 22px; }
.text-option-card > strong { max-width: 100%; color: #282344; font-size: 28px; line-height: 1.25; overflow-wrap: anywhere; }
.theme-read-word .text-option-card > strong { font-size: 24px; }
.option-letter { position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 50%; font-weight: 800; z-index: 1; }
.quiz-note { margin: 18px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.choice-feedback { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; padding: 15px 17px; border: 2px solid; border-radius: 16px; box-shadow: 0 10px 24px rgba(35,56,76,.1); }
.choice-feedback > div { display: flex; align-items: center; gap: 9px; min-width: 190px; }
.choice-feedback > div span { display: grid; place-items: center; width: 32px; height: 32px; color: #fff; border-radius: 50%; font-size: 19px; font-weight: 900; }
.choice-feedback p { display: flex; align-items: baseline; gap: 10px; flex: 1; margin: 0; }
.choice-feedback p b { font-size: 21px; }
.choice-feedback p span { color: var(--muted); }
.choice-feedback button { padding: 9px 12px; color: #fff; border-radius: 999px; font-weight: 800; white-space: nowrap; }
.choice-feedback.is-positive { color: #146b48; background: #ecfbf4; border-color: #91dfbc; }
.choice-feedback.is-positive > div span, .choice-feedback.is-positive button { background: #20a76d; }
.choice-feedback.is-negative { color: #a73737; background: #fff1f1; border-color: #f4b3b3; }
.choice-feedback.is-negative > div span, .choice-feedback.is-negative button { background: #ef5656; }
.choice-feedback.is-positive { animation: feedback-pop .34s ease-out; }
.choice-feedback.is-negative { animation: feedback-shake .32s ease-out; }
@keyframes feedback-pop { 0% { transform: scale(.94); opacity: .45; } 70% { transform: scale(1.025); } 100% { transform: scale(1); opacity: 1; } }
@keyframes feedback-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 55% { transform: translateX(5px); } 80% { transform: translateX(-2px); } }

.verify-area { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; align-items: stretch; padding: 18px; background: #fffaf0; border: 1px solid #efdca8; border-radius: 8px; }
.verify-progress { grid-column: 1 / -1; padding: 14px 18px; background: var(--sun-pale); border: 1px solid #efd188; border-radius: 6px; }
.verify-progress > div:first-child { display: flex; justify-content: space-between; align-items: center; color: #815511; font-size: 14px; }
.verify-progress-track { height: 7px; margin-top: 10px; overflow: hidden; background: #f3dfaa; border-radius: 5px; }
.verify-progress-track span { display: block; width: 0; height: 100%; background: var(--coral); transition: width .25s ease; }
.verify-picture-card { min-height: 360px; display: grid; grid-template-rows: auto 1fr; padding: 18px; background: #fff; border: 2px solid var(--line); border-radius: 8px; }
.verify-picture-card > span { color: var(--muted); font-size: 13px; font-weight: 700; }
.verify-picture-card .word-picture { width: 100%; height: 310px; }
.verify-answer-row { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.verify-answer { min-height: 172px; display: grid; grid-template-columns: 54px 1fr; grid-template-rows: 1fr 1fr; column-gap: 14px; align-items: center; padding: 24px; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 8px; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.verify-answer > span { grid-row: 1 / 3; width: 54px; height: 54px; display: grid; place-items: center; color: #fff; border-radius: 50%; font-size: 30px; font-weight: 900; }
.verify-answer strong { align-self: end; font-size: 25px; }
.verify-answer small { align-self: start; color: var(--muted); font-size: 13px; }
.verify-yes > span { background: var(--teal); }
.verify-answer.is-correct { border-color: #20a76d; background: #edfbf4; box-shadow: 0 0 0 5px rgba(32,167,109,.14); }
.verify-answer.is-wrong { border-color: #ef5656; background: #fff1f1; box-shadow: 0 0 0 5px rgba(239,86,86,.12); animation: feedback-shake .32s ease-out; }
.verify-no > span { background: var(--coral); }
.verify-answer:hover { transform: translateY(-2px); border-color: #9bbdbc; box-shadow: 0 10px 24px rgba(29, 62, 67, .1); }
.verify-answer.is-selected { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(240, 90, 71, .12); }
.verify-answer:disabled { cursor: default; opacity: .72; }

.sequence-area { display: grid; gap: 14px; padding: 18px; background: #fff6f3; border: 1px solid #f3d0c9; border-radius: 8px; }
.sequence-guide { display: flex; align-items: center; gap: 12px; padding: 12px 15px; color: var(--muted); background: var(--coral-pale); border: 1px solid #f3c0b7; border-radius: 6px; font-size: 13px; }
.sequence-guide b { padding: 6px 9px; color: #fff; background: var(--coral); border-radius: 4px; font-size: 12px; }
.sequence-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sequence-option { position: relative; min-height: 174px; padding: 24px 14px 14px; background: #fff; border: 2px solid var(--line); border-radius: 8px; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.sequence-option:hover { transform: translateY(-2px); border-color: #e69b8f; box-shadow: 0 12px 28px rgba(86, 54, 49, .1); }
.sequence-option.is-selected { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(240, 90, 71, .13); }
.sequence-letter { position: absolute; top: 10px; left: 10px; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 50%; font-size: 13px; font-weight: 900; }
.sequence-strip { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr); align-items: center; gap: 5px; }
.sequence-strip > strong { color: var(--coral); font-size: 22px; text-align: center; }
.sequence-step { position: relative; min-width: 0; height: 124px; padding: 8px 5px 5px; background: var(--paper); border: 1px solid #e4eaea; border-radius: 6px; }
.sequence-step > i { position: absolute; top: 5px; left: 5px; z-index: 1; width: 22px; height: 22px; display: grid; place-items: center; color: #fff; background: var(--teal-dark); border-radius: 50%; font: normal 800 11px/1 Georgia, serif; }
.sequence-image { display: block; width: 100%; height: 108px; background-repeat: no-repeat; }

.passage-picture-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.passage-picture-grid.is-six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.passage-picture-option { position: relative; min-height: 190px; padding: 12px; overflow: hidden; background: #fff; border: 2px solid var(--line); border-radius: 8px; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.passage-picture-option:hover { transform: translateY(-2px); border-color: var(--coral); }
.passage-picture-option.is-selected { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(240, 90, 71, .14); }
.passage-picture-option > span, .passage-drag-card > span { position: absolute; top: 9px; left: 9px; z-index: 2; width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 50%; font-size: 12px; font-weight: 900; }
.passage-picture-option > i, .passage-drag-card > i { display: block; width: 100%; height: 166px; background-repeat: no-repeat; }
.passage-placement-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .85fr); gap: 14px; }
.passage-slots, .passage-card-source { display: grid; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.passage-card-source { grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; }
.passage-slot-row { min-height: 116px; display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; gap: 10px; }
.passage-slot-row > strong { color: var(--teal-dark); text-align: center; }
.passage-drop-slot { min-width: 0; height: 110px; display: grid; place-items: center; padding: 6px; color: #92763a; background: #fffdf6; border: 2px dashed #cdb676; border-radius: 7px; font-size: 12px; font-weight: 800; }
.passage-drop-slot.is-active { background: var(--teal-pale); border-color: var(--teal); }
.passage-drop-slot.is-filled { background: #fff; border-style: solid; border-color: var(--teal); }
.passage-drop-slot.is-filled > span { display: none; }
.passage-drag-card { position: relative; min-width: 0; min-height: 112px; padding: 6px; overflow: hidden; background: #fff; border: 2px solid #dce5e5; border-radius: 7px; touch-action: manipulation; user-select: none; }
.passage-drag-card > i { height: 98px; }
.passage-drag-card.is-dragging { opacity: .62; border-color: var(--blue); }
.passage-drop-slot .passage-drag-card { width: 100%; height: 96px; min-height: 0; border: 0; }
.passage-drop-slot .passage-drag-card > i { height: 84px; }
.passage-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; color: var(--teal-dark); background: var(--teal-pale); border-left: 6px solid var(--teal); border-radius: 6px; font-size: 14px; font-weight: 800; }
.passage-submit-row .primary-button { min-width: 170px; }
.passage-submit-row .primary-button:disabled { color: #879699; background: #dfe7e7; box-shadow: none; cursor: default; }

.story-area { display: grid; gap: 18px; }
.story-passage { padding: 22px 26px; background: #fffaf0; border: 1px solid #f0d999; border-left: 7px solid var(--sun); border-radius: 6px; }
.story-passage > span { color: #9a6811; font-size: 12px; font-weight: 900; }
.story-passage h3 { margin: 5px 0 8px; font-size: 24px; }
.story-passage p { margin: 0; color: #33474c; font-size: 18px; line-height: 1.75; }
.story-match-layout { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(300px, .72fr); gap: 16px; align-items: start; }
.story-targets-panel, .story-options-panel { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.story-panel-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--teal-dark); font-size: 15px; font-weight: 800; }
.story-panel-heading b { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 50%; }
.story-options-panel .story-panel-heading { color: #9a6811; }
.story-options-panel .story-panel-heading b { color: var(--ink); background: var(--sun); }
.story-targets { display: grid; gap: 10px; }
.story-target-row { min-height: 88px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 108px; gap: 12px; align-items: center; padding: 8px 10px; background: #f8fbfa; border: 1px solid #dce8e7; border-radius: 7px; }
.story-row-number { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--teal-dark); border-radius: 50%; font: 800 14px/1 Georgia, serif; }
.story-target-row p { margin: 0; font-size: 16px; font-weight: 750; line-height: 1.4; }
.story-drop { width: 108px; height: 70px; display: grid; place-items: center; padding: 5px; overflow: hidden; color: #8a7544; background: #fffdf6; border: 2px dashed #cdb676; border-radius: 6px; font-size: 12px; font-weight: 800; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.story-drop img { width: 100%; height: 100%; object-fit: contain; display: block; }
.story-drop.is-active { transform: scale(1.03); background: var(--teal-pale); border-color: var(--teal); }
.story-drop.is-filled { background: #fff; border-style: solid; border-color: var(--teal); }
.story-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.story-option { position: relative; min-height: 116px; padding: 8px; overflow: hidden; background: #fff; border: 2px solid #dce5e5; border-radius: 7px; touch-action: none; user-select: none; transition: border-color .16s ease, box-shadow .16s ease, opacity .16s ease; }
.story-option > span { position: absolute; top: 7px; left: 7px; z-index: 1; width: 25px; height: 25px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 50%; font-size: 11px; font-weight: 900; }
.story-option img { width: 100%; height: 100px; object-fit: contain; display: block; pointer-events: none; }
.story-option:hover, .story-option.is-picked { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(69, 136, 216, .12); }
.story-option.is-dragging { z-index: 3; opacity: .82; box-shadow: 0 14px 30px rgba(23, 39, 43, .22); }
.story-option.is-used { display: none; }
.story-submit-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 12px 18px; background: var(--teal-pale); border-left: 7px solid var(--teal); border-radius: 6px; }
.story-submit-row > span { color: var(--teal-dark); font-size: 15px; font-weight: 800; }
.story-submit-row .primary-button:disabled { color: #879699; background: #dfe7e7; box-shadow: none; cursor: default; }

.result-screen { padding: 54px 0 76px; }
.result-header { max-width: 820px; margin-bottom: 36px; }
.result-header h2 { margin: 0; font-size: clamp(34px, 4.8vw, 56px); line-height: 1.2; }
.result-header > p:last-child { margin: 16px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.result-overview { display: grid; grid-template-columns: .9fr 1.3fr; gap: 26px; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.estimate-block span, .estimate-block strong, .estimate-block small { display: block; }
.estimate-block span { color: var(--muted); font-size: 14px; }
.estimate-block strong { margin: 9px 0; color: var(--coral); font-size: 40px; }
.estimate-block small { color: var(--muted); line-height: 1.6; }
.score-block { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.score-block div { padding-left: 18px; border-left: 4px solid; }
.score-block div:nth-child(1) { border-color: var(--teal); }
.score-block div:nth-child(2) { border-color: var(--sun); }
.score-block div:nth-child(3) { border-color: var(--coral); }
.score-block strong, .score-block span { display: block; }
.score-block strong { font-size: 28px; }
.score-block span { margin-top: 6px; color: var(--muted); font-size: 13px; }
.report-section { padding: 38px 0 10px; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-heading span { color: var(--coral); font: 800 16px/1 Georgia, serif; }
.section-heading h3 { margin: 0; font-size: 26px; }
.stage-results { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stage-result { padding: 24px 26px 24px 0; }
.stage-result + .stage-result { padding-left: 26px; border-left: 1px solid var(--line); }
.stage-result b, .stage-result strong, .stage-result span { display: block; }
.stage-result b { font-size: 16px; }
.stage-result strong { margin: 10px 0; font-size: 30px; }
.stage-result span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.weak-topics { display: flex; flex-wrap: wrap; gap: 10px; }
.weak-topics span { padding: 10px 14px; background: var(--sun-pale); border-left: 4px solid var(--sun); font-weight: 700; }
.wrong-review-intro { margin: -8px 0 17px; color: var(--muted); line-height: 1.7; }
.wrong-review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.wrong-review-card { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 14px; min-width: 0; padding: 12px; background: #fff; border: 1px solid #e4e7ed; border-radius: 15px; box-shadow: 0 8px 20px rgba(34,58,70,.08); }
.wrong-review-picture { width: 92px; height: 76px; background-repeat: no-repeat; border-radius: 10px; }
.wrong-review-card div { min-width: 0; }
.wrong-review-card strong, .wrong-review-card small { display: block; }
.wrong-review-card strong { overflow: hidden; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.wrong-review-card small { margin-top: 5px; color: var(--muted); line-height: 1.4; }
.wrong-review-card button { display: grid; place-items: center; gap: 2px; min-width: 58px; padding: 9px 8px; color: #5e56bd; background: #f0efff; border: 1px solid #dcd8ff; border-radius: 12px; }
.wrong-review-card button span { font-size: 20px; }
.wrong-review-card button b { font-size: 10px; }
.recommendation-section { border-top: 8px solid var(--teal); margin-top: 32px; padding: 30px 32px 32px; background: var(--teal-pale); }
.recommendation-section p { margin: 8px 0; line-height: 1.75; }
.recommendation-section strong { color: var(--teal-dark); }
.recommendation-verdict { padding: 20px 22px; background: #fff; border-left: 5px solid var(--coral); }
.recommendation-verdict span, .recommendation-verdict strong { display: block; }
.recommendation-verdict span { margin-bottom: 8px; color: var(--coral); font-size: 13px; font-weight: 900; }
.recommendation-verdict strong { font-size: 18px; line-height: 1.7; }
.recommendation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.recommendation-grid > div { min-height: 176px; padding: 20px; background: #fff; border-top: 4px solid var(--teal); }
.recommendation-grid span { display: block; color: var(--coral); font: 800 14px/1 Georgia, serif; }
.recommendation-grid b { display: block; margin-top: 10px; font-size: 17px; }
.recommendation-grid p { color: var(--muted); font-size: 14px; }
.growth-route { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding: 16px 18px; color: var(--teal-dark); background: #fff; font-size: 14px; font-weight: 800; }
.growth-route i { color: var(--coral); font-style: normal; }
.feijie-closing { margin-top: 18px; padding: 22px 24px; color: #fff; background: var(--teal-dark); }
.feijie-closing > span { display: inline-block; margin-bottom: 10px; padding: 5px 9px; color: var(--teal-dark); background: #fff; border-radius: 999px; font-size: 12px; font-weight: 900; }
.feijie-closing b { display: block; color: #fff; font-size: 22px; line-height: 1.5; }
.feijie-closing p { margin: 10px 0 0; color: rgba(255,255,255,.86); font-size: 15px; }
.result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.result-actions .text-button { margin-left: auto; }
.result-disclaimer { margin: 24px 0 0; color: var(--muted); font-size: 12px; }

footer { min-height: 70px; display: flex; align-items: center; justify-content: space-between; width: min(1180px, calc(100% - 40px)); margin: 0 auto; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }

dialog { width: min(920px, calc(100% - 30px)); max-height: 84vh; padding: 0; color: var(--ink); background: #fff; border: 0; border-radius: 8px; box-shadow: 0 28px 80px rgba(11, 43, 46, .26); }
dialog::backdrop { background: rgba(10, 34, 36, .56); backdrop-filter: blur(3px); }
.dialog-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 24px 30px; background: #fff; border-bottom: 1px solid var(--line); }
.dialog-header small { color: var(--teal); font-weight: 800; }
.dialog-header h2 { margin: 5px 0 0; font-size: 28px; }
.dialog-header button { width: 42px; height: 42px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 50%; font-size: 28px; line-height: 1; }
.dialog-intro, .license-note { margin: 24px 30px; color: var(--muted); line-height: 1.7; }
.library-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; padding: 0 30px 20px; }
.library-column h3 { padding-bottom: 12px; border-bottom: 5px solid; font-size: 20px; }
.library-column:first-child h3 { border-color: var(--teal); }
.library-column:last-child h3 { border-color: var(--coral); }
.library-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #edf1f1; font-size: 14px; }
.library-item b { min-width: 84px; color: var(--muted); font-family: Georgia, serif; }
.license-note { padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: 12px 18px; color: #fff; background: var(--ink); border-radius: 6px; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 5; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .landing-screen { grid-template-columns: 1fr; gap: 40px; padding-top: 44px; }
  .challenge-grid { grid-template-columns: repeat(2, 1fr); }
  .path-step { min-height: auto; }
  .result-overview { grid-template-columns: 1fr; }
  .story-match-layout { grid-template-columns: 1fr; }
  .story-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .verify-area { grid-template-columns: 1fr; }
  .ability-map { grid-template-columns: repeat(2, 1fr); }
  .verify-progress { grid-column: auto; }
  .verify-answer-row { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .verify-answer { min-height: 130px; }
  .sequence-options { grid-template-columns: 1fr; }
  .question-heading { align-items: stretch; flex-direction: column; }
  .question-actions { width: 100%; }
  .instruction-audio-button, .audio-button { flex: 1; min-width: 0; }
  .question-heading p { font-size: 24px; line-height: 1.35; }
}

@media (max-width: 620px) {
  .topbar, main, footer { width: min(100% - 28px, 1180px); }
  .topbar { height: 74px; }
  .brand small { display: none; }
  .quiet-button { font-size: 13px; }
  .landing-screen { gap: 26px; padding: 24px 0 48px; }
  .landing-screen::before { inset: 8px -14px 20px; }
  .hero-badge { margin-bottom: 16px; }
  h1 { font-size: 36px; }
  .lead { font-size: 16px; }
  .metric-row { justify-content: space-between; }
  .metric-row div { min-width: 0; flex: 1; padding-right: 12px; }
  .metric-row div + div { padding-left: 12px; }
  .metric-row strong { font-size: 28px; }
  .start-panel { padding: 24px; }
  .challenge-grid { gap: 8px; }
  .challenge-card { min-height: 112px; padding: 14px 11px 11px; }
  .challenge-card b { font-size: 15px; }
  .challenge-card small { font-size: 10px; }
  .test-trust-row { gap: 6px; }
  .test-trust-row span { font-size: 10px; }
  .start-steps { gap: 3px; padding: 9px 6px; }
  .start-steps span { font-size: 10px; }
  .start-steps b { display: none; }
  .stage-transition { padding: 14px; }
  .stage-transition-card { padding: 30px 20px; }
  .stage-transition-card h2 { font-size: 34px; }
  .quiz-screen { padding-top: 24px; }
  .quiz-topline { grid-template-columns: auto 1fr auto; gap: 8px; font-size: 12px; }
  .quiz-topline span { text-align: center; }
  .progress-track { margin-bottom: 16px; }
  .ability-map { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-bottom: 18px; }
  .ability-step { min-height: 63px; justify-content: center; gap: 0; padding: 7px 4px; text-align: center; }
  .ability-step b { display: none; }
  .ability-step strong { font-size: 11px; white-space: normal; }
  .ability-step small { margin-top: 3px; font-size: 9px; line-height: 1.25; white-space: normal; }
  .question-heading { align-items: flex-start; }
  .question-copy { align-items: flex-start; flex-direction: column; gap: 7px; }
  .question-heading p { font-size: 21px; line-height: 1.35; }
  .question-heading { flex-direction: column; padding: 14px; }
  .question-actions { width: 100%; }
  .instruction-audio-button { flex: 0 0 92px; min-width: 0; height: 58px; padding: 0 8px; }
  .audio-button { flex: 1; min-width: 0; min-height: 92px; padding: 6px 8px; }
  .listen-mascot { width: 78px; height: 78px; flex-basis: 78px; }
  .audio-button-copy b { font-size: 14px; }
  .interaction-guide { align-items: flex-start; }
  .option-grid { gap: 9px; padding: 9px; }
  .option-card { min-height: 176px; padding: 7px; }
  .option-card .word-picture { height: 164px; }
  .choice-feedback { align-items: flex-start; flex-wrap: wrap; gap: 9px; padding: 13px; }
  .choice-feedback:not(.is-hidden) { position: fixed; left: 12px; right: 12px; bottom: 14px; z-index: 30; margin: 0; box-shadow: 0 16px 42px rgba(29,35,65,.28); }
  .choice-feedback > div { min-width: 100%; }
  .choice-feedback p { min-width: 0; flex: 1; }
  .choice-feedback button { margin-left: auto; }
  .wrong-review-list { grid-template-columns: 1fr; }
  .wrong-review-card { grid-template-columns: 76px 1fr auto; gap: 10px; }
  .wrong-review-picture { width: 76px; height: 68px; }
  .option-letter { width: 28px; height: 28px; font-size: 12px; }
  .instruction-overlay { place-items: start center; padding: 14px; }
  .instruction-card { margin: auto 0; padding: 22px 18px; }
  .instruction-card h2 { font-size: 27px; }
  .instruction-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 12px; }
  .instruction-types div { min-height: 98px; padding: 12px; }
  .instruction-types strong { margin: 6px 0 3px; font-size: 14px; }
  .instruction-types small { font-size: 10px; }
  .instruction-icon { width: 27px; height: 27px; font-size: 12px; }
  .instruction-card ul { margin-bottom: 16px; font-size: 12px; line-height: 1.65; }
  .sequence-guide { align-items: flex-start; }
  .sequence-options { gap: 10px; }
  .sequence-option { min-height: 146px; padding: 20px 8px 8px; }
  .sequence-strip { grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 16px minmax(0, 1fr); gap: 2px; }
  .sequence-strip > strong { font-size: 18px; }
  .sequence-step { height: 108px; padding: 5px 2px 2px; }
  .sequence-image { height: 98px; }
  .passage-picture-grid, .passage-picture-grid.is-six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .passage-picture-option { min-height: 156px; padding: 7px; }
  .passage-picture-option > i { height: 142px; }
  .passage-placement-layout { grid-template-columns: 1fr; }
  .passage-card-source { order: -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 10px; }
  .passage-drag-card { min-height: 92px; padding: 3px; }
  .passage-drag-card > i { height: 82px; }
  .passage-slots { padding: 10px; }
  .passage-slot-row { min-height: 92px; grid-template-columns: 68px minmax(0, 1fr); }
  .passage-drop-slot { height: 86px; }
  .passage-drop-slot .passage-drag-card { height: 74px; }
  .passage-drop-slot .passage-drag-card > i { height: 64px; }
  .passage-submit-row { align-items: stretch; flex-direction: column; }
  .passage-submit-row .primary-button { width: 100%; }
  .story-area { gap: 12px; }
  .story-passage { padding: 17px 16px; }
  .story-passage h3 { font-size: 20px; }
  .story-passage p { font-size: 15px; line-height: 1.68; }
  .story-options-panel { order: -1; }
  .story-targets-panel, .story-options-panel { padding: 13px; }
  .story-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .story-option { min-height: 90px; padding: 5px; }
  .story-option img { height: 80px; }
  .story-option > span { width: 22px; height: 22px; top: 5px; left: 5px; }
  .story-target-row { min-height: 78px; grid-template-columns: 28px minmax(0, 1fr) 78px; gap: 8px; padding: 7px; }
  .story-row-number { width: 24px; height: 24px; font-size: 12px; }
  .story-target-row p { font-size: 14px; }
  .story-drop { width: 78px; height: 62px; font-size: 10px; }
  .story-submit-row { align-items: stretch; flex-direction: column; gap: 10px; padding: 14px; }
  .story-submit-row .primary-button { width: 100%; }
  .verify-area { gap: 12px; }
  .verify-picture-card { min-height: 270px; padding: 12px; }
  .verify-picture-card .word-picture { height: 235px; }
  .verify-answer-row { gap: 10px; }
  .verify-answer { min-height: 112px; grid-template-columns: 42px 1fr; column-gap: 10px; padding: 14px 12px; }
  .verify-answer > span { width: 42px; height: 42px; font-size: 24px; }
  .verify-answer strong { font-size: 21px; }
  .verify-answer small { font-size: 11px; }
  .result-screen { padding-top: 36px; }
  .result-header h2 { font-size: 36px; }
  .score-block { gap: 8px; }
  .score-block div { padding-left: 10px; }
  .score-block strong { font-size: 22px; }
  .stage-results { grid-template-columns: 1fr; }
  .stage-result + .stage-result { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .recommendation-section { padding: 24px 20px; }
  .recommendation-grid { grid-template-columns: 1fr; }
  .recommendation-grid > div { min-height: 0; }
  .growth-route { align-items: stretch; flex-direction: column; }
  .growth-route i { transform: rotate(90deg); align-self: center; }
  .feijie-closing b { font-size: 19px; }
  .result-actions > * { width: 100%; }
  .result-actions .text-button { margin-left: 0; }
  .library-groups { grid-template-columns: 1fr; }
  footer { flex-direction: column; justify-content: center; gap: 6px; }
}

@media print {
  .topbar, footer, .result-actions, .result-disclaimer { display: none !important; }
  main { width: 100%; }
  .result-screen { padding: 24px; }
  .recommendation-section { break-inside: avoid; }
}

/* v23 game-style experience, rebuilt from Feijie's own content library. */
body[data-screen="landing"] {
  background: linear-gradient(180deg, #f1f4ff 0%, #f8f4ff 58%, #fff 100%);
}
body[data-screen="landing"] .topbar { display: none; }
body[data-screen="landing"] main { width: min(720px, calc(100% - 28px)); }
body[data-screen="landing"] footer { width: min(720px, calc(100% - 28px)); border-top-color: rgba(118, 130, 176, .18); }
.landing-screen {
  display: block;
  min-height: 0;
  padding: 24px 0 54px;
}
.landing-screen::before { display: none; }
.game-home { display: grid; gap: 18px; }
.game-brand-banner {
  position: relative;
  min-height: 166px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 30px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.42) 0 5px, transparent 6px),
    radial-gradient(circle at 90% 68%, rgba(255,255,255,.26) 0 9px, transparent 10px),
    linear-gradient(135deg, #6188f4 0%, #7366e9 54%, #af71ee 100%);
  border: 3px solid rgba(255,255,255,.78);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(88, 86, 191, .26), inset 0 2px 0 rgba(255,255,255,.45);
}
.game-brand-banner::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -52px;
  width: 210px;
  height: 150px;
  background: rgba(255,255,255,.13);
  border-radius: 50%;
  transform: rotate(-12deg);
}
.game-brand-icon {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff 0%, #eaf0ff 100%);
  border: 4px solid rgba(255,255,255,.72);
  border-radius: 24px;
  box-shadow: 0 12px 24px rgba(50, 44, 135, .28);
  transform: rotate(-4deg);
}
.game-brand-icon b { color: #6259d9; font-size: 22px; font-weight: 900; line-height: 1.08; text-align: center; }
.game-brand-icon span { position: absolute; right: -10px; bottom: -9px; padding: 5px 8px; color: #573fc3; background: #ffe670; border: 2px solid #fff; border-radius: 12px; font-size: 11px; font-weight: 900; }
.game-brand-banner > div:last-child { position: relative; z-index: 1; min-width: 0; }
.game-brand-banner small { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 800; opacity: .9; }
.game-brand-banner h1 { margin: 0; color: #fff; font-size: clamp(30px, 7vw, 46px); line-height: 1.1; text-shadow: 0 3px 0 rgba(55, 39, 150, .28); }
.game-brand-banner p { margin: 10px 0 0; font-size: 15px; font-weight: 700; opacity: .9; }
.play-mode-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 2px 4px 0; }
.play-mode-heading span, .play-mode-heading strong { display: block; }
.play-mode-heading span { color: #6a65d9; font-size: 12px; font-weight: 900; }
.play-mode-heading strong { margin-top: 4px; font-size: 21px; }
.play-mode-heading small { color: #7c8293; font-size: 11px; }
.play-mode-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.play-mode-button {
  min-height: 78px;
  padding: 13px 14px;
  color: #fff;
  background: linear-gradient(145deg, #6aa8fb 0%, #597ee9 58%, #6b65de 100%);
  border: 3px solid rgba(255,255,255,.82);
  border-radius: 19px;
  box-shadow: 0 9px 18px rgba(70, 101, 187, .22), inset 0 2px 0 rgba(255,255,255,.42);
  text-align: left;
  transition: transform .16s ease, box-shadow .16s ease, outline-color .16s ease;
}
.play-mode-button:nth-child(2) { background: linear-gradient(145deg, #65cbd0, #3f9fcf 58%, #4f80db); }
.play-mode-button:nth-child(3) { background: linear-gradient(145deg, #ffa66c, #f27a69 60%, #e26182); }
.play-mode-button:nth-child(4) { background: linear-gradient(145deg, #b483f4, #8a69e9 58%, #655bd2); }
.play-mode-button b, .play-mode-button small { display: block; }
.play-mode-button b { font-size: 20px; }
.play-mode-button small { margin-top: 4px; font-size: 11px; opacity: .86; }
.play-mode-button.is-active { outline: 4px solid rgba(104, 91, 220, .18); transform: translateY(-2px); box-shadow: 0 13px 24px rgba(70, 78, 178, .3), inset 0 2px 0 rgba(255,255,255,.5); }
.mode-preview-note { min-height: 44px; margin: -4px 0 0; padding: 11px 14px; color: #5f6176; background: rgba(255,255,255,.72); border: 1px solid rgba(117, 112, 196, .16); border-radius: 13px; font-size: 12px; line-height: 1.7; }
.theme-library-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 5px; padding: 0 4px; }
.theme-library-heading span, .theme-library-heading strong { display: block; }
.theme-library-heading span { color: #6a65d9; font-size: 12px; font-weight: 900; }
.theme-library-heading strong { margin-top: 4px; font-size: 20px; }
.theme-library-heading small { color: #8a8da0; font-size: 10px; }
.ability-library-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ability-library-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.07;
  overflow: hidden;
  background: #fff;
  border: 3px solid #fff;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(69, 67, 132, .18);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
  padding: 0;
  color: inherit;
  text-align: left;
}
.ability-library-card.is-active { transform: translateY(-3px); box-shadow: 0 0 0 4px rgba(105, 94, 219, .2), 0 16px 32px rgba(69, 67, 132, .24); }
.ability-library-card:focus-visible { outline: 4px solid rgba(105, 94, 219, .36); outline-offset: 3px; }
.ip-cover-card { aspect-ratio: 1; background: #e9e8f8; }
.ip-cover-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ip-card-status {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  padding: 5px 9px;
  color: #fff;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(25, 25, 70, .16);
  font-size: 10px;
  backdrop-filter: blur(5px);
}
.ip-cover-card.is-active .ip-card-status { color: #5848c2; background: #ffe66f; border-color: #fff; }
.library-preview-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 2px; background: #e9ecf7; }
.library-preview-grid i { display: block; background-color: #fff; background-repeat: no-repeat; }
.library-card-overlay { position: absolute; inset: 32% 0 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 16px 15px; color: #fff; background: linear-gradient(180deg, transparent 0%, rgba(22,24,54,.68) 35%, rgba(18,21,50,.95) 100%); }
.library-card-overlay span { font-size: 10px; font-weight: 800; opacity: .8; }
.library-card-overlay strong { margin-top: 3px; font-size: 21px; }
.library-card-overlay small { margin-top: 3px; padding-right: 54px; font-size: 10px; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.library-card-overlay b { position: absolute; right: 13px; bottom: 13px; padding: 6px 10px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.42); border-radius: 999px; font-size: 10px; }
body[data-screen="landing"] .test-trust-row { justify-content: center; margin: 0 0 2px; }
body[data-screen="landing"] .test-trust-row span { color: #646681; background: rgba(255,255,255,.74); border-color: rgba(111,108,184,.16); }
.is-modal-open { overflow: hidden; }
.question-count-overlay { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(25, 24, 65, .58); backdrop-filter: blur(7px); }
.question-count-card { position: relative; width: min(560px, 100%); padding: 30px 28px 26px; color: #20233a; background: linear-gradient(180deg, #fff, #f5f3ff); border: 3px solid rgba(255,255,255,.92); border-radius: 24px; box-shadow: 0 24px 60px rgba(30, 27, 91, .35); text-align: center; }
.question-count-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; color: #77758f; background: #eceaf7; border: 0; border-radius: 50%; font-size: 24px; line-height: 1; }
.question-count-kicker { color: #6d63dc; font-size: 12px; font-weight: 900; }
.question-count-card h2 { margin: 6px 0 9px; font-size: 27px; }
.question-count-card > p { margin: 0; color: #696a7e; font-size: 14px; }
.question-count-card > p strong { color: #5449bc; }
.question-count-total { display: grid; justify-items: center; margin: 23px 0 18px; }
.question-count-total b { color: #7658ff; font-size: clamp(52px, 12vw, 72px); line-height: 1; letter-spacing: 0; }
.question-count-total span { margin-top: 8px; color: #8a86aa; font-size: 13px; }
.question-count-slider { margin: 2px 0 22px; }
.question-count-slider input { width: 100%; accent-color: #7359ff; cursor: pointer; }
.question-count-ticks { display: flex; justify-content: space-between; gap: 4px; margin-top: 9px; color: #7e79a9; font-size: 11px; }
.question-count-ticks span { min-width: 0; }
.question-count-ticks span.is-active { color: #7359ff; font-weight: 900; }
.question-count-start { width: 100%; min-height: 56px; margin-bottom: 14px; color: #fff; background: linear-gradient(100deg, #7657ff, #5c83f6); border: 0; border-radius: 16px; box-shadow: 0 12px 24px rgba(91, 86, 222, .24); font-size: 19px; font-weight: 900; }
.question-count-start span { margin-left: 5px; font-size: 14px; }
.question-count-start:focus-visible { outline: 4px solid rgba(106, 93, 219, .28); outline-offset: 2px; }
.question-count-tip { display: block; color: #85869a; font-size: 11px; line-height: 1.7; }

.ip-subbank-card { grid-template-columns: 104px minmax(0, 1fr) auto; align-items: center; min-height: 126px; overflow: hidden; text-align: left; }
.ip-subbank-card > img { width: 104px; height: 96px; object-fit: cover; border-radius: 12px; }
.ip-subbank-card > div { min-width: 0; }
.ip-subbank-card em { display: block; margin-top: 8px; color: #6d63dc; font-size: 11px; font-style: normal; font-weight: 800; line-height: 1.45; }
body[data-screen="landing"] .start-panel { padding: 24px; border: 3px solid rgba(255,255,255,.9); border-radius: 24px; box-shadow: 0 18px 38px rgba(71, 68, 132, .18); }
body[data-screen="landing"] .start-panel.theme-entered { animation: theme-entered 1.1s ease; }
@keyframes theme-entered {
  0%, 100% { transform: translateY(0); box-shadow: 0 18px 38px rgba(71, 68, 132, .18); }
  38% { transform: translateY(-5px); box-shadow: 0 0 0 7px rgba(111, 94, 224, .17), 0 24px 48px rgba(71, 68, 132, .28); }
}
.selected-theme-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -5px 0 18px; padding: 11px 14px; color: #5f5aa8; background: #f0efff; border: 1px solid #ddd9ff; border-radius: 13px; }
.selected-theme-chip span { font-size: 11px; font-weight: 800; }
.selected-theme-chip strong { font-size: 14px; }
body[data-screen="landing"] .panel-heading span { color: #6d62dc; }
body[data-screen="landing"] .start-steps { background: #f0efff; }
body[data-screen="landing"] .start-steps span { color: #625eb4; }
body[data-screen="landing"] .start-steps b { background: #6d64dc; }
body[data-screen="landing"] select { background: #fafaff; border-color: #d9daf0; border-radius: 12px; }
body[data-screen="landing"] .primary-button { background: linear-gradient(135deg, #725fe7, #9d68e7); border-radius: 14px; box-shadow: 0 11px 22px rgba(105, 87, 207, .28); }

body[data-screen="theme"] { background: linear-gradient(180deg, #eef0ff, #faf9ff 55%, #fff); }
.theme-screen { max-width: 760px; padding: 20px 0 64px; }
.theme-back-button { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px; padding: 10px 14px; color: #5f5aa8; background: #fff; border: 1px solid #deddf1; border-radius: 999px; font-weight: 800; }
.theme-back-button span { font-size: 24px; line-height: .7; }
.theme-hero { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 24px; padding: 22px; color: #fff; background: linear-gradient(135deg, #665dde, #8a68e9 58%, #b172e5); border: 3px solid rgba(255,255,255,.86); border-radius: 26px; box-shadow: 0 18px 38px rgba(74, 65, 157, .25); }
.theme-hero img { width: 180px; aspect-ratio: 1; object-fit: cover; border: 4px solid rgba(255,255,255,.82); border-radius: 24px; box-shadow: 0 12px 24px rgba(44,38,119,.25); }
.theme-hero span { font-size: 12px; font-weight: 900; opacity: .82; }
.theme-hero h2 { margin: 8px 0; font-size: 35px; line-height: 1.1; }
.theme-hero p { margin: 0; font-size: 14px; line-height: 1.7; opacity: .9; }
.theme-quick-start { width: 100%; min-height: 58px; margin-top: 14px; padding: 13px 18px; color: #fff; background: linear-gradient(135deg, #675ddd, #9568e9); border: 2px solid rgba(255,255,255,.9); border-radius: 17px; box-shadow: 0 12px 25px rgba(74,65,157,.22); font-size: 17px; font-weight: 900; }
.theme-quick-start:hover, .theme-quick-start:focus-visible { transform: translateY(-2px); outline: 3px solid rgba(103,93,221,.2); outline-offset: 2px; }
.theme-bank-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 28px 4px 14px; }
.theme-bank-heading span, .theme-bank-heading strong { display: block; }
.theme-bank-heading span { color: #685fcd; font-size: 13px; font-weight: 900; }
.theme-bank-heading strong { margin-top: 4px; font-size: 21px; }
.theme-bank-heading small { color: #85889a; }
.theme-bank-list { display: grid; gap: 13px; }
.theme-bank-card { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 15px; width: 100%; padding: 18px; text-align: left; background: #fff; border: 2px solid #e7e5f5; border-radius: 18px; box-shadow: 0 10px 24px rgba(74, 69, 130, .1); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.theme-bank-card:hover, .theme-bank-card:focus-visible { transform: translateY(-2px); border-color: #8b7ee7; box-shadow: 0 14px 30px rgba(74,69,130,.17); outline: none; }
.theme-bank-card > span { display: grid; place-items: center; width: 48px; height: 48px; color: #fff; background: linear-gradient(135deg, #7268e4, #a96ce7); border-radius: 14px; font-size: 16px; font-weight: 900; }
.theme-bank-card div { min-width: 0; }
.theme-bank-card strong, .theme-bank-card small, .theme-bank-card em { display: block; }
.theme-bank-card strong { color: #202438; font-size: 20px; }
.theme-bank-card small { margin-top: 4px; color: #6e7284; line-height: 1.5; }
.theme-bank-card em { margin-top: 7px; color: #7a6fd0; font-size: 11px; font-style: normal; font-weight: 800; }
.theme-bank-card > b { padding: 9px 12px; color: #655bd0; background: #f1efff; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.theme-test-note { margin-top: 18px; padding: 17px 19px; color: #5c6071; background: rgba(255,255,255,.75); border: 1px solid #e5e3f1; border-radius: 16px; }
.theme-test-note b { color: #5550a3; }
.theme-test-note p { margin: 5px 0 0; font-size: 12px; line-height: 1.8; }

body[data-screen="quiz"] { background: linear-gradient(180deg, #eef3ff, #faf7ff 60%, #fff); }
body[data-screen="quiz"] .topbar { width: min(720px, calc(100% - 28px)); height: 72px; border: 0; }
body[data-screen="quiz"] main { width: min(720px, calc(100% - 28px)); }
body[data-screen="quiz"] footer { width: min(720px, calc(100% - 28px)); }
.quiz-screen { max-width: 720px; padding: 18px 0 64px; }
.quiz-topline { min-height: 48px; padding: 0 14px; color: #4b5270; background: rgba(255,255,255,.78); border: 1px solid rgba(102, 112, 176, .16); border-radius: 15px; }
.quiz-topline strong { color: #675bd2; font-size: 15px; }
.progress-track { height: 10px; margin: 12px 6px 18px; background: #dfe4f2; border: 2px solid rgba(255,255,255,.9); box-shadow: inset 0 1px 3px rgba(67,74,118,.12); }
.progress-track span { background: linear-gradient(90deg, #66d1cd, #6b7eee 58%, #f4bd55); }
.ability-map { display: none; }
.question-heading { display: block; margin-bottom: 12px; padding: 18px; color: #fff; background: linear-gradient(135deg, #6679e9, #5864d4 55%, #7b68df) !important; border: 3px solid rgba(255,255,255,.8) !important; border-radius: 22px; box-shadow: 0 13px 28px rgba(72, 74, 169, .24), inset 0 2px 0 rgba(255,255,255,.3); }
.mode-sentence .question-heading { background: linear-gradient(135deg, #52c1c7, #459ccc 58%, #5b7cda) !important; }
.mode-verify .question-heading { background: linear-gradient(135deg, #f3a16d, #ef756d 58%, #da6387) !important; }
.mode-sequence .question-heading { background: linear-gradient(135deg, #a177eb, #8264dc 58%, #6658cb) !important; }
.question-copy { align-items: flex-start; }
.question-type { color: #574cc5 !important; background: rgba(255,255,255,.94) !important; border-radius: 10px; box-shadow: 0 5px 14px rgba(42,39,124,.12); }
.question-heading p { color: #fff; font-size: 24px; text-shadow: 0 2px 0 rgba(45, 41, 126, .18); }
.question-copy small { color: rgba(255,255,255,.78); }
.question-actions { margin-top: 16px; }
.instruction-audio-button, .audio-button { height: 64px; border: 2px solid rgba(255,255,255,.72); border-radius: 15px; }
.instruction-audio-button { color: #554fb3; background: rgba(255,255,255,.94); }
.audio-button, .mode-sentence .audio-button, .mode-verify .audio-button, .mode-sequence .audio-button { background: linear-gradient(135deg, #ffad4e, #ff7b48); box-shadow: 0 10px 22px rgba(214, 89, 52, .27), inset 0 2px 0 rgba(255,255,255,.35); }
.theme-listen-picture .question-heading,
.theme-listen-word .question-heading { padding: 0; background: transparent !important; border: 0 !important; box-shadow: none; }
.theme-listen-picture .question-copy,
.theme-listen-word .question-copy { display: none; }
.theme-listen-picture .question-actions,
.theme-listen-word .question-actions { width: 100%; margin: 0; }
.theme-listen-picture .audio-button,
.theme-listen-word .audio-button { width: 100%; min-height: 132px; display: flex; flex-direction: row; gap: 14px; padding: 16px 24px; background: linear-gradient(135deg, #7560ee, #4c91ee) !important; border: 3px solid rgba(255,255,255,.86); border-radius: 22px; box-shadow: 0 13px 28px rgba(72,74,169,.22), inset 0 2px 0 rgba(255,255,255,.28); }
.theme-listen-picture .listen-mascot,
.theme-listen-word .listen-mascot { width: 86px; height: 86px; flex-basis: 86px; }
.theme-listen-picture .audio-button-copy,
.theme-listen-word .audio-button-copy { text-align: left; }
.theme-listen-picture .audio-button-copy b,
.theme-listen-word .audio-button-copy b { font-size: 22px; }
.theme-listen-picture .audio-button-copy small,
.theme-listen-word .audio-button-copy small { display: none; }
.theme-listen-picture .audio-button-copy em,
.theme-listen-word .audio-button-copy em { margin-top: 6px; font-size: 14px; font-weight: 800; opacity: .9; }
.theme-listen-picture .audio-button.is-playing .listen-mascot,
.theme-listen-word .audio-button.is-playing .listen-mascot { animation: listen-pulse .7s ease-in-out infinite alternate; }
@keyframes listen-pulse { from { transform: scale(.96); } to { transform: scale(1.05); } }
.theme-read-picture .question-heading,
.theme-read-word .question-heading { display: none; }
.theme-read-picture .reading-stem,
.theme-read-word .reading-stem { display: flex; flex-direction: column; align-items: center; min-height: 278px; margin: 0 0 18px; padding: 28px 22px; background: linear-gradient(145deg, #fff, #f8f6ff); border: 0; border-radius: 28px; box-shadow: 0 14px 34px rgba(80, 69, 150, .11); }
.theme-read-picture #reading-word { order: 1; margin: 2px 0 0; color: #2e285a; font-size: 64px; font-weight: 900; line-height: 1.05; }
.theme-read-picture #reading-prompt-label { order: 2; margin-top: 14px; color: #8b85ac; font-size: 13px; font-weight: 700; }
.theme-read-picture .reading-audio-button { order: 3; width: 66px; min-width: 66px; min-height: 66px; height: 66px; margin-top: 18px; padding: 7px; background: #fff; border: 0; border-radius: 50%; box-shadow: 0 10px 25px rgba(91, 74, 175, .18); }
.theme-read-picture .reading-listen-mascot { width: 52px; height: 52px; }
.theme-read-picture .reading-audio-copy { display: none; }
.theme-read-word #reading-prompt-label { order: 1; color: #8b85ac; font-size: 13px; font-weight: 700; }
.theme-read-word .reading-picture-prompt { order: 2; width: min(250px, 72vw); margin-top: 15px; }
.theme-read-picture .option-letter,
.theme-read-word .option-letter { display: none; }
.theme-mode .option-card:not(.text-option-card) { background: #fffaf1; border-color: #fff; }
.theme-mode .option-card .word-picture { background-color: #fffaf1; background-repeat: no-repeat; }
.theme-mode .option-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.28), transparent 30%); }
.theme-mode .option-card .word-picture { position: relative; z-index: 1; }
.theme-mode .option-card.is-correct::after,
.theme-mode .option-card.is-wrong::after { z-index: 3; }
.theme-read-word .text-option-card { min-height: 132px; border-color: #fff; border-radius: 20px; }
.theme-read-word .text-option-card > strong { font-size: 26px; }
.interaction-guide { border-radius: 13px; background: rgba(255,255,255,.75) !important; border-color: rgba(100,112,176,.2) !important; }
.option-grid { gap: 12px; padding: 0; background: transparent !important; border: 0 !important; }
.option-card { min-height: 244px; padding: 10px; border: 3px solid #fff; border-radius: 21px; box-shadow: 0 10px 24px rgba(61,70,112,.14); }
.option-card:hover { border-color: #fff; }
.option-card.is-selected { border-color: #7165e4; box-shadow: 0 0 0 4px rgba(113,101,228,.18), 0 12px 26px rgba(61,70,112,.18); }
.option-card .word-picture { height: 220px; }
.verify-progress, .verify-picture-card, .verify-answer, .sequence-area, .sequence-option { border-radius: 18px; }
.verify-picture-card, .sequence-option { border-width: 3px; border-color: #fff; box-shadow: 0 10px 24px rgba(61,70,112,.13); }
.sequence-area { background: rgba(255,255,255,.55); border-color: rgba(118,102,202,.18); }
.sequence-guide { border-radius: 12px; }
.quiz-note { color: #767b91; }
.stage-transition { background: rgba(37, 39, 85, .64); }
.stage-transition-card { border: 3px solid rgba(255,255,255,.82); border-radius: 26px; box-shadow: 0 28px 70px rgba(31,32,83,.34); }
.stage-transition-card .primary-button { background: linear-gradient(135deg, #7060e6, #a16be7); border-radius: 14px; }
.instruction-overlay.is-theme-quick .type-verify,
.instruction-overlay.is-theme-quick .type-sequence { display: none; }

@media (max-width: 620px) {
  body[data-screen="landing"] main, body[data-screen="quiz"] main { width: min(100% - 20px, 720px); }
  .landing-screen { padding-top: 10px; }
  .game-home { gap: 13px; }
  .game-brand-banner { min-height: 132px; gap: 13px; padding: 20px 17px; border-radius: 23px; }
  .game-brand-icon { width: 70px; height: 70px; flex-basis: 70px; border-radius: 19px; }
  .game-brand-icon b { font-size: 17px; }
  .game-brand-banner small { font-size: 11px; }
  .game-brand-banner h1 { font-size: clamp(25px, 8vw, 35px); }
  .game-brand-banner p { margin-top: 7px; font-size: 12px; }
  .play-mode-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .theme-library-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .play-mode-heading strong { font-size: 18px; }
  .play-mode-button { min-height: 69px; padding: 11px; border-radius: 16px; }
  .play-mode-button b { font-size: 17px; }
  .ability-library-grid { gap: 10px; }
  .ability-library-card { border-radius: 18px; }
  .library-card-overlay { padding: 18px 11px 11px; }
  .library-card-overlay strong { font-size: 17px; }
  .library-card-overlay small { display: none; }
  .library-card-overlay b { right: 8px; bottom: 9px; padding: 4px 7px; }
  body[data-screen="landing"] .start-panel { padding: 20px 16px; border-radius: 20px; }
  .theme-screen { padding-top: 10px; }
  .theme-hero { grid-template-columns: 92px 1fr; gap: 14px; padding: 15px; border-radius: 21px; }
  .theme-hero img { width: 92px; border-radius: 17px; }
  .theme-hero h2 { margin: 5px 0; font-size: 25px; }
  .theme-hero p { font-size: 11px; }
  .theme-bank-heading { align-items: flex-start; flex-direction: column; gap: 3px; margin-top: 22px; }
  .theme-bank-card { grid-template-columns: 42px 1fr; gap: 11px; padding: 14px; border-radius: 16px; }
  .theme-bank-card > span { width: 42px; height: 42px; border-radius: 12px; }
  .theme-bank-card strong { font-size: 17px; }
  .theme-bank-card > b { grid-column: 2; justify-self: start; margin-top: -3px; }
  .ip-subbank-card { grid-template-columns: 86px minmax(0, 1fr); }
  .ip-subbank-card > img { width: 86px; height: 86px; }
  .ip-subbank-card > b { grid-column: 2; }
  .question-count-card { padding: 27px 18px 22px; }
  .question-count-ticks { font-size: 10px; }
  .quiz-screen { padding-top: 10px; }
  .question-heading { padding: 14px; border-radius: 18px; }
  .question-heading p { font-size: 21px; }
  .question-actions { display: grid; grid-template-columns: .78fr 1.22fr; gap: 8px; }
  .instruction-audio-button, .audio-button { width: 100%; min-width: 0; height: 58px; border-radius: 13px; }
  .option-grid { gap: 8px; }
  .option-card { min-height: 177px; padding: 6px; border-radius: 16px; }
  .option-card .word-picture { height: 164px; }
  .reading-stem { margin-top: 12px; padding: 18px 12px; }
  .reading-stem strong { font-size: 39px; }
  .text-option-card { min-height: 118px; padding: 28px 12px 18px; }
  .text-option-card > strong, .theme-read-word .text-option-card > strong { font-size: 22px; }
  .theme-listen-picture .question-actions,
  .theme-listen-word .question-actions { display: block; }
  .theme-listen-picture .audio-button,
  .theme-listen-word .audio-button { min-height: 116px; gap: 10px; padding: 12px 20px; }
  .theme-listen-picture .listen-mascot,
  .theme-listen-word .listen-mascot { width: 76px; height: 76px; flex-basis: 76px; }
  .theme-listen-picture .audio-button-copy b,
  .theme-listen-word .audio-button-copy b { font-size: 20px; }
  .theme-listen-picture .audio-button-copy em,
  .theme-listen-word .audio-button-copy em { font-size: 13px; }
  .theme-read-picture .reading-stem,
  .theme-read-word .reading-stem { min-height: 242px; padding: 24px 16px; border-radius: 24px; }
  .theme-read-picture #reading-word { font-size: 55px; }
  .theme-read-picture #reading-prompt-label,
  .theme-read-word #reading-prompt-label { font-size: 12px; }
  .theme-read-picture .reading-audio-button { width: 60px; min-width: 60px; min-height: 60px; height: 60px; margin-top: 15px; }
  .theme-read-picture .reading-listen-mascot { width: 48px; height: 48px; }
  .theme-read-word .reading-picture-prompt { width: min(218px, 70vw); margin-top: 12px; }
  .theme-read-picture .option-card { min-height: 180px; }
  .theme-read-word .text-option-card { min-height: 104px; }
  .theme-read-word .text-option-card > strong { font-size: 23px; }
}
