/* SAT diagnostic — Anannt Education
   Navy, paper, gold. Logo-led. Test chrome stays task-first. */

:root {
  --navy: #111a2e;
  --navy-2: #1f2b45;
  --ink: #172033;
  --muted: #4c5870;
  --line: #dfe5ee;
  --paper: #fffdf8;
  --cream: #fff8ef;
  --surface: #ffffff;
  --soft: #f7f8fb;
  --gold: #d89022;
  --gold-deep: #b86606;
  --gold-soft: #f5dfb7;
  --green: #19745d;
  --danger: #b42318;
  --focus: #f2a529;
  --shadow: 0 18px 48px rgba(17, 26, 46, 0.1);
  --shadow-soft: 0 10px 28px rgba(17, 26, 46, 0.07);
  --radius: 8px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; min-width: 320px; }

body {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: #315c92; }

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

:focus:not(:focus-visible) { outline: none; }

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

::selection {
  color: var(--navy);
  background: #f7cf92;
}

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

body.is-testing {
  background: var(--soft);
  overflow: hidden;
}

body.is-testing .site-header,
body.is-testing .site-footer,
body.is-testing #landing,
body.is-testing .site-skip-link {
  display: none !important;
}

body.is-testing .test-shell { display: flex; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  width: min(1120px, calc(100% - 32px));
  min-height: var(--header-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 120px;
}

.brand img {
  width: auto;
  height: 48px;
  max-width: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}

.site-nav a:hover { background: var(--cream); color: var(--gold-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn--gold {
  background: var(--gold);
  color: #15110a;
  box-shadow: 0 14px 28px rgba(216, 144, 34, 0.22);
}

.btn--gold:hover:not(:disabled) { background: #c47d14; }

.btn--navy {
  background: var(--navy);
  color: #fff;
}

.btn--navy:hover:not(:disabled) { background: var(--navy-2); }

.btn--ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}

.btn--ghost:hover:not(:disabled) { border-color: var(--navy); }

.btn--whatsapp {
  background: #1f8f5f;
  color: #fff;
}

.btn--full { width: 100%; }

/* ---- Landing ---- */
#landing { display: block; }
#landing[hidden],
.test-shell[hidden],
[hidden] { display: none !important; }

.hero {
  padding: 28px 0 40px;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.97) 0%, rgba(255, 248, 239, 0.92) 52%, rgba(247, 248, 251, 0.88) 100%);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  font-size: 0.85rem;
  font-weight: 700;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover { color: var(--gold-deep); }

.crumbs [aria-current="page"] { color: var(--navy); }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 40px;
  align-items: start;
}

.hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: 2.75rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
  max-width: 11em;
}

.lede {
  margin: 16px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}

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

.hero-note {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.start-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.start-card__logo {
  width: 132px;
  height: auto;
  margin: 0 0 16px;
}

.logo-plate {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
}

.logo-plate img {
  width: auto;
  height: 36px;
  max-width: none;
}

.start-card .logo-plate,
.result-hero .logo-plate { margin-bottom: 16px; }

.start-card h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0;
}

.start-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.start-card ol {
  margin: 18px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.9);
}

.start-card li { margin: 8px 0; }

.start-card .btn { margin-top: 22px; width: 100%; }

.section {
  padding: 56px 0;
}

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

.section h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0;
}

.section-lead {
  margin: 12px 0 0;
  max-width: 62ch;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.panel h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--navy);
}

.panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.panel li { margin: 8px 0; }

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

.tool {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
}

.tool svg {
  width: 22px;
  height: 22px;
  color: var(--gold-deep);
}

.tool strong {
  display: block;
  margin-top: 10px;
  color: var(--navy);
  font-size: 0.95rem;
}

.tool p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.warn {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--cream);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
}

.warn strong { color: var(--navy); display: block; margin-bottom: 6px; }
.warn p { margin: 0; color: #6b4a12; font-size: 0.95rem; }

/* ---- Test shell ---- */
.test-shell {
  display: none;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  background: var(--soft);
}

.test-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.test-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.test-brand img {
  width: auto;
  height: 40px;
  max-width: none;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.timer-block { text-align: center; }

.timer {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.timer.is-low { color: var(--danger); }

.timer-toggle {
  margin-top: 2px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.test-tools {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.tool-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 64px;
  min-height: 48px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius);
}

.tool-btn svg { width: 20px; height: 20px; }
.tool-btn:hover { background: var(--cream); }
.tool-btn:disabled { opacity: 0.28; cursor: not-allowed; }
.tool-btn[aria-pressed="true"] { background: var(--cream); color: var(--gold-deep); }

.progress {
  height: 4px;
  background: #e6ebf1;
}

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

.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.pane {
  overflow: auto;
  padding: 32px 36px;
  min-width: 0;
}

.pane--stimulus {
  border-right: 1px solid var(--line);
  background: var(--paper);
  font-size: 1.05rem;
  line-height: 1.65;
}

.pane--stimulus table {
  border-collapse: collapse;
  margin: 16px 0;
  width: 100%;
}

.pane--stimulus th,
.pane--stimulus td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

.pane--stimulus caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.pane--stimulus u,
.pane--stimulus .sat-u {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.sat-blank {
  display: inline-block;
  min-width: 5.5em;
  height: 0.15em;
  margin: 0 0.35em 0.15em;
  vertical-align: baseline;
  border-bottom: 2px solid var(--ink);
}

.passage-kicker {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.passage-kicker + p { margin-top: 0; }

.text-block + .passage-kicker,
p + .passage-kicker { margin-top: 22px; }

.sat-notes {
  margin: 10px 0 0;
  padding-left: 1.15em;
  color: var(--ink);
}

.sat-notes li { margin: 8px 0; }

.math {
  font-family: "Cambria Math", "Times New Roman", ui-serif, serif;
}

.math--display {
  margin: 8px 0 0;
  font-size: 1.2rem;
  line-height: 1.5;
}

.q-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding: 8px 10px;
  background: var(--soft);
  border-radius: var(--radius);
}

.q-num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 4px;
}

.mark-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.mark-btn[aria-pressed="true"] { color: var(--danger); }

.stem {
  margin: 0 0 20px;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.5;
  color: var(--navy);
}

.options {
  display: grid;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0;
}

.option-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.option:hover { border-color: var(--navy); }
.option[aria-checked="true"] {
  border-color: var(--gold);
  background: var(--cream);
}
.option.is-eliminated {
  opacity: 0.48;
  text-decoration: line-through;
}

.opt-letter {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--muted);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
}

.option[aria-checked="true"] .opt-letter {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.opt-text { flex: 1; padding-top: 1px; font-size: 0.98rem; }

.elim {
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  align-self: center;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius);
}

.elim svg {
  width: 28px;
  height: 18px;
}

.elim:hover { background: var(--soft); color: var(--navy); }

.elim[aria-pressed="true"] {
  color: var(--danger);
  border-color: #e8b4b0;
  background: #fdf2f2;
}

.test-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  min-height: 72px;
  padding: 10px 16px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.q-status { font-weight: 700; color: var(--navy); font-size: 0.9rem; }

.nav-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ---- Dialogs ---- */
dialog {
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  max-width: 760px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow);
  background: #fff;
  color: var(--ink);
}

dialog::backdrop { background: rgba(17, 26, 46, 0.55); }

.dialog-body { padding: 28px 24px; }

.dialog-logo {
  width: auto;
  height: 40px;
  margin: 0 0 16px;
}

.dialog-facts {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--ink);
}

.dialog-facts li { margin: 6px 0; }
.dialog-body h2 { margin: 0; color: var(--navy); font-size: 1.35rem; }
.dialog-body p { margin: 10px 0 0; color: var(--muted); }

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.icon-close {
  width: 40px;
  height: 40px;
  border: 0;
  background: var(--soft);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

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

.stat {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}

.stat strong { display: block; font-size: 1.5rem; color: var(--navy); }
.stat span { font-size: 0.75rem; font-weight: 700; color: var(--muted); }

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

.q-jump {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  position: relative;
}

.q-jump.is-answered { background: var(--cream); border-color: var(--gold); }
.q-jump.is-current { background: var(--navy); color: #fff; border-color: var(--navy); }
.q-jump.is-marked::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  background: var(--danger);
  border-radius: 50%;
}

.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: #fff;
}

.swatch--current { background: var(--navy); border-color: var(--navy); }
.swatch--answered { background: var(--cream); border-color: var(--gold); }
.swatch--marked {
  background: #fff;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px var(--danger);
}

.map-label {
  margin: 16px 0 8px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 800;
}

.map-label:first-of-type { margin-top: 8px; }

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.calc-screen {
  background: var(--soft);
  padding: 16px;
  text-align: right;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 1.6rem;
  border-radius: var(--radius);
  margin-bottom: 12px;
  min-height: 56px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.calc-key {
  min-height: 48px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
}

.calc-key:hover { background: var(--soft); }
.calc-key--op { background: var(--navy); color: #fff; border-color: var(--navy); }
.calc-key--clear { background: var(--danger); color: #fff; border-color: var(--danger); }
.calc-key--eq { background: var(--green); color: #fff; border-color: var(--green); grid-column: span 2; }

/* ---- Results ---- */
#results { display: none; padding: 40px 0 72px; }
body.is-results #results:not([hidden]) { display: block; }
body.is-results .test-shell { display: none; }

.result-hero {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
}

.result-hero img {
  width: auto;
  height: 36px;
}

.result-hero p { margin: 0; color: rgba(255,255,255,0.72); font-weight: 700; }
.result-hero h1 { margin: 8px 0 0; font-size: 2rem; }

.score-row {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.score-box {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 16px;
}

.score-box span { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.score-box strong { display: block; margin-top: 4px; font-size: 1.6rem; }

.score-meter {
  display: block;
  height: 6px;
  margin-top: 10px;
  background: rgba(255,255,255,0.16);
  border-radius: 999px;
  overflow: hidden;
}

.score-meter i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
}

.disclaimer {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}

.followup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.form .hint { font-weight: 500; color: var(--muted); font-size: 0.82rem; }
.form input {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.form input:focus { border-color: var(--gold); }
.form-error { color: var(--danger); min-height: 1.2em; margin: 0; font-size: 0.88rem; }
.form-ok {
  margin: 0;
  padding: 12px;
  background: #e8f6ef;
  color: #0f5132;
  border-radius: var(--radius);
  font-weight: 700;
}

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

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 36px 0 28px;
}

.site-footer__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer img { width: auto; height: 36px; }
.site-footer a { color: #fff; }
.site-footer p { margin: 8px 0 0; color: rgba(255,255,255,0.72); font-size: 0.88rem; }

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .followup { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr 1fr; }
  .workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .pane--stimulus {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 28vh;
  }
  .hero h1 { font-size: 2.1rem; max-width: none; }
  .score-row { grid-template-columns: 1fr 1fr; }
  .test-bar { grid-template-columns: 1fr auto; }
  .test-tools { grid-column: 1 / -1; justify-content: flex-start; }
  .q-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header__inner { width: calc(100% - 24px); }
  .brand { min-width: 112px; }
  .brand img { height: 40px; }
  .site-nav a:not(.btn) { display: none; }
  .hero { padding-top: 20px; }
  .hero h1 { font-size: 1.85rem; }
  .tools { grid-template-columns: 1fr; }
  .test-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-height: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .nav-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
    width: 100%;
  }
  .nav-row .btn {
    flex: none;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  .score-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
