:root {
  --sky: #dff3ff;
  --cream: #fff8e5;
  --paper: #fffdf5;
  --ink: #263238;
  --muted: #66717a;
  --line: #25313a;
  --blue: #73c7f3;
  --blue-dark: #2586c4;
  --green: #9edb8f;
  --green-dark: #378b4d;
  --orange: #ffad66;
  --coral: #ff8d7a;
  --yellow: #ffd84d;
  --pink: #ffc8dc;
  --purple: #c6b8ff;
  --shadow: 0 10px 0 rgba(38, 50, 56, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 216, 77, 0.35), transparent 18rem),
    radial-gradient(circle at 88% 8%, rgba(115, 199, 243, 0.55), transparent 20rem),
    radial-gradient(circle at 70% 88%, rgba(158, 219, 143, 0.36), transparent 22rem),
    linear-gradient(180deg, var(--sky), var(--cream));
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

input,
select {
  font: inherit;
}

.app {
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px;
}

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

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

.planet {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 4px 5px 0 rgba(38, 50, 56, 0.14);
  font-size: 1.8rem;
  font-weight: 900;
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.brand p,
.muted,
.card p,
.hint {
  color: var(--muted);
}

.brand p {
  margin: 4px 0 0;
}

.onboarding {
  display: grid;
  justify-items: start;
  align-content: center;
  width: 100%;
  min-height: calc(100vh - 36px);
  max-width: 760px;
  margin: 0 auto;
  border: 3px solid var(--line);
  border-radius: 24px;
  padding: clamp(22px, 6vw, 52px);
  background: rgba(255, 253, 245, 0.96);
  box-shadow: var(--shadow);
}

.onboarding h1 {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 7vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.onboarding p,
.feedback,
.muted {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.name-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  margin: 14px 0;
}

.name-form input {
  min-height: 56px;
  width: 100%;
  min-width: 0;
  border: 3px solid var(--line);
  border-radius: 16px;
  padding: 10px 14px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 4px 5px 0 rgba(38, 50, 56, 0.13);
  font-weight: 800;
}

.feedback {
  margin: 16px 0 0;
  color: var(--muted);
}

.feedback strong {
  color: var(--ink);
}

.sound-toggle,
.btn,
.kid-switch select {
  border: 3px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 4px 5px 0 rgba(38, 50, 56, 0.13);
  font-weight: 900;
}

.sound-toggle {
  min-height: 44px;
  padding: 8px 12px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.kid-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.kid-switch select {
  min-height: 44px;
  padding: 8px 34px 8px 12px;
  font: inherit;
  font-weight: 900;
  background: var(--paper);
}

.hero,
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.panel,
.card,
.test-card,
.result-card {
  min-width: 0;
  max-width: 100%;
  border: 3px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 245, 0.95);
  box-shadow: var(--shadow);
}

.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 4vw, 38px);
}

.panel::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -34px;
  height: 110px;
  border: 3px solid var(--line);
  border-radius: 50% 50% 0 0;
  background: linear-gradient(90deg, rgba(255, 173, 102, 0.58), rgba(255, 216, 77, 0.48));
  z-index: 0;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.4;
}

.hero-title {
  max-width: 760px;
  margin: 16px 0;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-title span {
  display: block;
  color: var(--blue-dark);
  text-shadow: 3px 4px 0 rgba(115, 199, 243, 0.28);
}

.hero-copy {
  max-width: 660px;
  margin: 0 0 24px;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  line-height: 1.85;
  overflow-wrap: anywhere;
  word-break: normal;
}

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

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -10px 0 22px;
}

.primary-path {
  display: grid;
  gap: 14px;
}

.mode {
  min-height: 190px;
  padding: 18px;
  text-align: left;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 6px 7px 0 rgba(38, 50, 56, 0.13);
  transition: transform 150ms ease;
}

.mode.recommended {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 0;
  background: #ffffff;
}

.mode.recommended .btn {
  grid-column: 1 / -1;
  width: 100%;
}

.mode:hover {
  transform: translateY(-3px);
}

.mode:nth-child(2) {
  background: #fff0c4;
}

.badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 3px solid var(--line);
  border-radius: 15px;
  background: var(--blue);
  font-size: 1.7rem;
  font-weight: 900;
  transform: rotate(-7deg);
}

.mode:nth-child(2) .badge {
  background: var(--pink);
}

.mode h2 {
  margin: 14px 0 8px;
  font-size: 1.35rem;
}

.mode p {
  margin: 0 0 16px;
  line-height: 1.65;
}

.mode-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-mode-grid .mode-actions {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  width: fit-content;
  min-width: min(100%, 230px);
}

.home-mode-grid .mode-actions .btn {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  text-decoration: none;
}

.btn:disabled,
.sound-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.btn:active,
.mode:active,
.sound-toggle:active,
.group-tile:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 3px 0 rgba(38, 50, 56, 0.12);
}

.primary {
  background: var(--blue);
}

.good {
  background: var(--blue);
}

.bad {
  background: var(--pink);
}

.warn {
  background: var(--orange);
}

.soft {
  background: var(--pink);
}

.review {
  background: var(--orange);
}

.ghost {
  background: #ffffff;
}

.stack {
  display: grid;
  gap: 16px;
}

.card {
  padding: 18px;
}

.card h3 {
  margin: 0 0 12px;
}

.stats {
  display: grid;
  gap: 10px;
}

.stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px dashed rgba(38, 50, 56, 0.18);
}

.stat:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.group-section {
  margin-top: 18px;
}

.group-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

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

.group-tile {
  min-height: 82px;
  border: 3px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 4px 5px 0 rgba(38, 50, 56, 0.12);
  text-align: left;
  padding: 10px;
}

.group-tile.done {
  background: #fff0c4;
}

.group-tile.active {
  background: #fff0c4;
}

.group-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
}

.mini-progress {
  height: 9px;
  margin-top: 10px;
  border: 2px solid var(--line);
  border-radius: 99px;
  background: #ffffff;
  overflow: hidden;
}

.mini-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--blue);
}

.test-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
}

.page-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.page-nav strong {
  min-width: 0;
  text-align: center;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.nav-spacer {
  min-width: 72px;
}

.test-card {
  padding: clamp(18px, 4vw, 32px);
}

.test-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.test-top h2 {
  margin: 0 0 4px;
}

.progress {
  height: 22px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: repeating-linear-gradient(-45deg, var(--yellow), var(--yellow) 14px, #ffe985 14px, #ffe985 28px);
}

.hanzi-stage {
  display: grid;
  place-items: center;
  min-height: min(48vh, 430px);
  margin: 18px 0;
  border: 3px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 20% 20%, rgba(255, 216, 77, 0.35), transparent 7rem),
    radial-gradient(circle at 80% 70%, rgba(115, 199, 243, 0.35), transparent 9rem),
    #ffffff;
}

.hanzi {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-synthesis: none;
  font-size: clamp(8rem, 28vw, 18rem);
  font-weight: 800;
  line-height: 1;
}

.judge-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.judge-row .btn {
  min-height: 74px;
  font-size: clamp(1.15rem, 3.8vw, 1.45rem);
}

.desktop-only {
  display: inline;
}

.desktop-only-block {
  display: block;
}

.progress-number {
  margin: 8px 0;
  color: var(--blue-dark);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
}

.side-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.full-btn {
  width: 100%;
}

.group-detail {
  border: 3px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 253, 245, 0.92);
  box-shadow: var(--shadow);
}

.group-detail summary {
  cursor: pointer;
  font-weight: 900;
}

.group-detail .group-grid {
  margin-top: 14px;
}

.danger-zone {
  max-width: none;
}

.group-list-page {
  max-width: 1040px;
}

.result-card {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(22px, 5vw, 42px);
}

.big-number {
  margin: 10px 0;
  font-size: clamp(3.6rem, 13vw, 7.2rem);
  font-weight: 900;
  line-height: 1;
  color: var(--blue-dark);
}

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

.metric {
  border: 3px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
}

.metric strong {
  display: block;
  font-size: 1.6rem;
}

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

.bottom-actions {
  justify-content: center;
  margin-top: 24px;
}

.wrong-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.wrong-tile {
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 96px;
  border: 3px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 4px 5px 0 rgba(38, 50, 56, 0.12);
  color: var(--ink);
}

.wrong-tile strong {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: 2.4rem;
  line-height: 1;
}

.wrong-tile span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.guide-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.guide-list p {
  margin: 0;
  line-height: 1.75;
}

.method-detail {
  margin: 18px 0;
  border: 3px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: #ffffff;
}

.method-detail summary {
  cursor: pointer;
  font-weight: 900;
}

.method-detail p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  margin: 28px auto 10px;
  padding: 0 12px;
  color: var(--muted);
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.65;
}

.site-footer p {
  margin: 2px 0;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.report-preview {
  display: flex;
  justify-content: center;
  margin: 18px 0;
}

.report-page > h2 {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.report-page > .hero-copy {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.report-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 520px;
  margin: 18px auto 24px;
  border: 3px solid var(--line);
  border-radius: 16px;
  padding: 6px;
  background: #ffffff;
  box-shadow: 4px 5px 0 rgba(38, 50, 56, 0.12);
}

.report-tab {
  min-height: 46px;
  border-radius: 11px;
  color: var(--ink);
  background: transparent;
  font-weight: 900;
}

.report-tab.active {
  background: rgba(115, 199, 243, 0.32);
  box-shadow: inset 0 -5px 0 var(--blue);
}

.report-tab:disabled {
  cursor: not-allowed;
  color: var(--muted);
  opacity: 0.45;
}

.report-chooser {
  max-width: 760px;
}

.report-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.report-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 116px;
  border: 3px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  text-align: left;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 5px 6px 0 rgba(38, 50, 56, 0.13);
}

.report-option.quick-option {
  background: rgba(115, 199, 243, 0.22);
}

.report-option.group-option {
  background: rgba(255, 200, 220, 0.28);
}

.report-option strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.25rem;
  font-weight: 900;
}

.report-option small {
  display: block;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.5;
}

.report-option em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 40px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 3px 4px 0 rgba(38, 50, 56, 0.12);
  font-style: normal;
  font-weight: 900;
}

.report-card-view {
  max-width: 420px;
  border: 3px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(180deg, #dff3ff, #fffdf5 42%);
  box-shadow: 6px 7px 0 rgba(38, 50, 56, 0.13);
}

.report-card-view.group-report {
  background: linear-gradient(180deg, #ffe1ec, #fffdf5 48%);
}

.report-card-view.group-report .report-main-number {
  color: #d66a94;
}

.report-brand {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 900;
}

.report-card-view h3 {
  margin: 0;
  font-size: 1.5rem;
}

.report-main-number {
  margin: 12px 0 0;
  color: var(--blue-dark);
  font-size: 4.6rem;
  font-weight: 900;
  line-height: 1;
}

.report-metrics {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.report-metrics span {
  display: grid;
  gap: 2px;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  background: #ffffff;
  font-weight: 800;
}

.report-metrics small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.report-advice {
  margin: 12px 0 16px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.report-qr-row {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.report-qr-row img {
  width: 94px;
  height: 94px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.report-qr-row p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.report-canvas {
  display: none;
  width: min(100%, 450px);
  height: auto;
  margin: 16px 0;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.confetti-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
}

.confetti-layer span {
  position: absolute;
  left: var(--left);
  top: -24px;
  width: 12px;
  height: 18px;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--color);
  animation: confetti-fall 1.8s ease-in var(--delay) forwards;
}

.celebrate-message {
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  border: 3px solid var(--line);
  border-radius: 16px;
  padding: 10px 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(38, 50, 56, 0.28);
}

.modal-card {
  width: min(100%, 480px);
  border: 3px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.modal-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.6;
}

.modal-card input {
  width: 100%;
  margin-bottom: 16px;
  border: 3px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 4px 5px 0 rgba(38, 50, 56, 0.13);
  font: inherit;
  font-weight: 900;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@keyframes confetti-fall {
  0% {
    transform: translate3d(0, -20px, 0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translate3d(var(--drift), 110vh, 0) rotate(560deg);
    opacity: 0.9;
  }
}

@media (max-width: 900px) {
  .hero,
  .home-grid,
  .test-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .app {
    padding: 12px;
  }

  .planet {
    width: 44px;
    height: 44px;
    font-size: 1.45rem;
    border-width: 2px;
  }

  .brand h1 {
    font-size: 1.35rem;
  }

  .brand p {
    font-size: 0.9rem;
  }

  .sound-toggle,
  .kid-switch select,
  .btn {
    border-width: 2px;
    border-radius: 12px;
    box-shadow: 3px 4px 0 rgba(38, 50, 56, 0.12);
  }

  .tag {
    border-radius: 999px;
  }

  .panel {
    width: 100%;
    padding: 18px;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 2.55rem);
  }

  .hero-copy {
    max-width: 100%;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 8px;
    width: 100%;
  }

  .kid-switch {
    align-items: flex-start;
    display: grid;
    gap: 4px;
    grid-column: 1 / -1;
    width: 100%;
  }

  .kid-switch select {
    width: 100%;
  }

  .sound-toggle {
    width: 100%;
  }

  .mode-grid,
  .judge-row,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .mode.recommended {
    grid-template-columns: 1fr;
  }

  .mode-actions {
    display: grid;
  }

  .name-form {
    grid-template-columns: 1fr;
  }

  .onboarding {
    max-width: calc(100vw - 24px);
    min-height: calc(100vh - 24px);
    padding: 16px;
  }

  .onboarding .eyebrow,
  .onboarding .hero-copy,
  .onboarding .muted,
  .onboarding .feedback {
    max-width: 100%;
  }

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

  .page-nav {
    gap: 8px;
    margin-bottom: 14px;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .page-nav .btn {
    min-height: 40px;
    padding: 8px 10px;
  }

  .page-nav strong {
    padding: 8px 4px;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 900;
  }

  .nav-spacer {
    min-width: 48px;
  }

  .hanzi-stage {
    min-height: 230px;
  }

  .judge-row {
    border: 3px solid var(--line);
    border-radius: 18px;
    padding: 8px;
    background: rgba(255, 253, 245, 0.96);
    box-shadow: var(--shadow);
  }

  .desktop-only,
  .desktop-only-block {
    display: none;
  }

  .actions .btn,
  .side-actions .btn {
    width: 100%;
  }

  .report-qr-row {
    grid-template-columns: 1fr;
  }

  .report-option {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .report-option em {
    grid-column: 2;
    justify-self: start;
  }

  .panel p,
  .card p,
  .mode p,
  .result-card p,
  .guide-list p,
  .method-detail p {
    max-width: 100%;
    word-break: normal;
  }

  .celebrate-message {
    top: 10px;
    width: calc(100vw - 32px);
    text-align: center;
  }

  .site-footer {
    font-size: 0.78rem;
    line-height: 1.55;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }
}
