:root {
  color-scheme: light;
  --paper: #f2edff;
  --paper-soft: #faf8ff;
  --surface: #ffffff;
  --surface-2: #e6ecff;
  --ink: #25144a;
  --muted: #665c80;
  --line: #cec4ec;
  --violet: #632fd1;
  --violet-2: #824fe8;
  --violet-deep: #32136f;
  --blue: #176dd8;
  --blue-deep: #0d3f93;
  --coral: #ee5f6f;
  --coral-deep: #a72d48;
  --coral-soft: #ffe0e5;
  --gold: #ffbe55;
  --success: #18856e;
  --shadow: 0 20px 52px rgb(59 33 113 / .13);
  --radius: 24px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1d103c;
  --paper-soft: #281452;
  --surface: #351968;
  --surface-2: #253f87;
  --ink: #fff5ff;
  --muted: #d8c9f4;
  --line: #624ba1;
  --violet: #b596ff;
  --violet-2: #d0bcff;
  --violet-deep: #241047;
  --blue: #69a9ff;
  --blue-deep: #173c83;
  --coral: #ff8792;
  --coral-deep: #ffafba;
  --coral-soft: #6b2949;
  --gold: #ffd17a;
  --success: #78dbc2;
  --shadow: 0 22px 54px rgb(17 4 53 / .36);
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif; }
body { margin: 0; min-width: 280px; background: radial-gradient(circle at 94% 2%, rgb(238 95 111 / .16), transparent 24rem), radial-gradient(circle at 5% 22%, rgb(23 109 216 / .12), transparent 28rem), var(--paper); }
button, a, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.site-header { max-width: 1240px; margin: 0 auto; padding: 18px 24px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { filter: drop-shadow(0 7px 12px rgb(50 19 111 / .25)); }
.brand span { display: grid; }
.brand strong { font-size: 1.2rem; letter-spacing: .08em; }
.brand small { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.nav-deck { display: flex; justify-content: center; align-items: stretch; gap: 9px; min-width: 0; }
.nav-group { min-width: 120px; padding: 8px 10px 9px; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 9px 20px rgb(66 40 125 / .08); }
.nav-group > span { display: block; margin-bottom: 5px; font-size: .64rem; font-weight: 850; letter-spacing: .12em; }
.nav-group > div { display: flex; flex-wrap: wrap; gap: 4px; }
.nav-group a { padding: 5px 8px; border-radius: 8px; color: var(--ink); font-size: .82rem; font-weight: 780; text-decoration: none; }
.nav-group a:hover, .nav-group a[aria-current] { color: #fff; }
.nav-results { background: #e5edff; border-color: #a9c4f7; }
.nav-results > span { color: #174f9e; }
.nav-results a:hover, .nav-results a[aria-current] { background: var(--blue); }
.nav-learn { background: #eee4ff; border-color: #c3a9ef; }
.nav-learn > span { color: #5a26b7; }
.nav-learn a:hover, .nav-learn a[aria-current] { background: var(--violet); }
.nav-social { background: #ffe5e9; border-color: #f1aab4; }
.nav-social > span { color: #a72d48; }
.nav-social a:hover, .nav-social a[aria-current] { background: var(--coral-deep); }
[data-theme="dark"] .nav-results { background: #18366f; border-color: #466fbe; }
[data-theme="dark"] .nav-results > span { color: #bcd7ff; }
[data-theme="dark"] .nav-learn { background: #482586; border-color: #7958b4; }
[data-theme="dark"] .nav-learn > span { color: #e3d4ff; }
[data-theme="dark"] .nav-social { background: #682b4b; border-color: #a84d70; }
[data-theme="dark"] .nav-social > span { color: #ffd2d8; }
.theme-toggle { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; background: var(--violet-deep); color: #fff; box-shadow: 0 9px 20px rgb(50 19 111 / .2); }

main { max-width: 1160px; margin: 0 auto; padding: 22px 24px 72px; }
.live-strip { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; padding: 20px 22px; border: 1px solid #7155ba; border-radius: 22px; background: linear-gradient(118deg, #32136f 0 46%, #144da3 100%); color: #fff; box-shadow: var(--shadow); }
.live-strip::after { content: ""; position: absolute; width: 190px; height: 190px; right: -90px; bottom: -120px; border: 30px solid rgb(255 255 255 / .09); border-radius: 50%; pointer-events: none; }
.live-meta, .live-countdown { display: grid; gap: 5px; position: relative; z-index: 1; }
.live-meta time, .live-status, .live-countdown span { color: #dcd7ff; font-size: .78rem; }
.live-countdown { text-align: right; }
.live-countdown strong { font-size: 1.55rem; font-variant-numeric: tabular-nums; color: #fff; }
.live-countdown button { justify-self: end; border: 0; background: transparent; color: #ffd5dc; text-decoration: underline; }
.equation, .question-digits, .fixed-sample { display: flex; align-items: center; justify-content: center; gap: 9px; }
.equation b, .question-digits span, .fixed-sample span { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 50%; background: #fff; color: var(--violet-deep); border: 3px solid #d8cbff; font-size: 1.35rem; box-shadow: 0 7px 18px rgb(21 10 62 / .18); }
.equation b:nth-of-type(2), .question-digits span:nth-of-type(2), .fixed-sample span:nth-of-type(2) { color: var(--blue-deep); border-color: #add0ff; }
.equation b:nth-of-type(3), .question-digits span:nth-of-type(3), .fixed-sample span:nth-of-type(3) { color: var(--coral-deep); border-color: #ffc0c8; }
[data-theme="dark"] .equation b:nth-of-type(3), [data-theme="dark"] .question-digits span:nth-of-type(3), [data-theme="dark"] .fixed-sample span:nth-of-type(3) { color: #8f1f3d; border-color: #ff8792; }
.equation i, .question-digits i, .fixed-sample i { font-style: normal; opacity: .72; }
.equation em, .question-digits strong, .fixed-sample strong { display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 8px; border-radius: 15px; background: var(--coral); color: #fff; font-style: normal; font-size: 1.55rem; box-shadow: 0 8px 18px rgb(136 35 61 / .25); }
[data-theme="dark"] .equation em, [data-theme="dark"] .question-digits strong, [data-theme="dark"] .fixed-sample strong { background: #a72d48; color: #fff; }
.live-status { grid-column: 1 / -1; margin: 0; text-align: center; }
.live-strip .kicker { color: #ffd17a; }

.kicker { color: var(--violet); font-size: .68rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.home-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 24px; margin: 28px 0 24px; }
.hero-copy, .recent-card, .practice-panel, .progress-card, .boundary-table, .chat-shell, .scratch-shell { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-copy { position: relative; overflow: hidden; padding: 42px; background: linear-gradient(145deg, #fff 0 52%, #e3e9ff 100%); }
.hero-copy::before { content: ""; position: absolute; inset: 0 0 auto auto; width: 14px; height: 100%; background: linear-gradient(var(--violet), var(--blue), var(--coral)); }
[data-theme="dark"] .hero-copy { background: linear-gradient(145deg, #3d2075 0 52%, #234487 100%); }
.hero-copy h1, .page-heading h1 { margin: .18em 0; font-family: "Iowan Old Style", "Songti SC", serif; font-size: clamp(2.35rem, 5vw, 4.65rem); line-height: 1.02; }
.hero-copy p, .page-heading p { max-width: 60ch; color: var(--muted); line-height: 1.75; }
.hero-actions, .question-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 13px; font-weight: 800; text-decoration: none; }
.button.primary { border-color: transparent; background: linear-gradient(135deg, var(--violet), var(--blue)); color: #fff; }
.button.ghost { background: var(--surface); color: var(--violet); }
.button:disabled { cursor: not-allowed; opacity: .48; }
.topic-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.topic-row span { padding: 7px 10px; border: 1px solid #c8b0f3; border-radius: 9px; background: #f0e8ff; color: #4b2498; font-size: .78rem; font-weight: 720; }
.topic-row span:nth-child(2n) { border-color: #a9c6f7; background: #e7efff; color: #164b9a; }
.topic-row span:last-child { border-color: #efabb7; background: #ffe5e9; color: #9d2943; }
[data-theme="dark"] .topic-row span { background: #4a2884; color: #f4eaff; }
[data-theme="dark"] .topic-row span:nth-child(2n) { background: #1b448d; color: #e5f0ff; }
[data-theme="dark"] .topic-row span:last-child { background: #6e2c4c; color: #ffeaf0; }
.recent-card { overflow: hidden; padding: 0; background: var(--surface); }
.recent-card .section-heading { padding: 21px 23px 16px; background: linear-gradient(120deg, #183f8b, #5a2ab1); color: #fff; }
.section-heading, .practice-header { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.section-heading h2, .practice-header h2, .progress-card h2 { margin: .25em 0; }
.section-heading .kicker { color: #ffd17a; }
.section-heading a { color: #ffd9df; font-size: .8rem; }
.recent-list { display: grid; gap: 9px; margin: 0; padding: 17px 18px 19px; list-style: none; }
.recent-list li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; min-height: 55px; padding: 10px 12px; border: 1px solid var(--line); border-left: 6px solid var(--blue); border-radius: 13px; background: var(--paper-soft); }
.recent-list li:nth-child(2) { border-left-color: var(--violet); }
.recent-list li:nth-child(3) { border-left-color: var(--coral); }
.recent-list small { color: var(--muted); }
.recent-list strong { color: var(--coral-deep); }
.practice-panel { padding: 28px; background: linear-gradient(155deg, var(--surface), var(--paper-soft)); border-top: 8px solid var(--violet); }
.progress-mini { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .78rem; }
.progress-mini b { color: var(--coral-deep); }
.feed-status { margin: 0 0 14px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: .82rem; }
.feed-status[data-state="conflict"] { background: var(--coral-soft); color: var(--coral-deep); }
.feed-status[data-state="waiting"] { background: #fff1cb; color: #71490a; }
[data-theme="dark"] .feed-status[data-state="waiting"] { background: #5e421b; color: #ffe0a0; }
.question-loading { padding: 40px; color: var(--muted); text-align: center; }
.question-card { margin-top: 22px; }
.question-source { color: var(--muted); font-size: .82rem; }
.question-card h3 { margin: .4em 0 1em; font-family: "Iowan Old Style", "Songti SC", serif; font-size: clamp(1.4rem, 3vw, 2.1rem); }
.question-digits { justify-content: flex-start; margin: 16px 0 24px; }
.answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.answer { min-height: 54px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font-weight: 800; }
.answer:hover:not(:disabled), .answer:focus-visible { border-color: var(--violet); box-shadow: 0 0 0 3px rgb(99 47 209 / .18); }
.answer.correct { border-color: var(--success); background: color-mix(in srgb, var(--success), transparent 82%); }
.answer.wrong { border-color: var(--coral); background: var(--coral-soft); }
.explanation { margin-top: 20px; padding: 20px; border-left: 6px solid var(--blue); border-radius: 12px; background: var(--surface-2); }
.explanation strong { font-size: 1.05rem; }
.explanation p, .explanation li { color: var(--muted); line-height: 1.65; }
.question-actions { justify-content: space-between; }

.page-heading { margin: 12px 0 18px; padding: 34px 38px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(120deg, #e6ddff, #e0ecff 65%, #ffe2e7); box-shadow: var(--shadow); }
[data-theme="dark"] .page-heading { background: linear-gradient(120deg, #46227f, #1f478c 65%, #6a2d4c); }
.page-heading h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.topic-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.topic-picker button { min-height: 42px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-weight: 800; }
.topic-picker button:nth-child(3n+2) { border-color: #aec6f4; }
.topic-picker button:nth-child(3n) { border-color: #efabb7; }
.topic-picker button.active { border-color: var(--violet); background: var(--violet); color: #fff; }
.practice-layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
.progress-card { padding: 24px; background: linear-gradient(165deg, #32136f, #144da3); color: #fff; }
.progress-card .kicker { color: #ffd17a; }
.progress-card dl { display: grid; gap: 4px; }
.progress-card dl div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgb(255 255 255 / .24); }
.progress-card dd { margin: 0; color: #ffd1d8; font-weight: 850; }
.storage-note { color: #d7d7ff; font-size: .78rem; line-height: 1.55; }
.text-button { padding: 0; border: 0; background: none; color: #fff; text-decoration: underline; }
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rule-grid article { padding: 24px; border: 1px solid var(--line); border-top: 7px solid var(--violet); border-radius: 20px; background: var(--surface); }
.rule-grid article:nth-child(2n) { border-top-color: var(--blue); }
.rule-grid article:nth-child(3n) { border-top-color: var(--coral); }
.rule-grid article > b { color: var(--coral-deep); font-size: .8rem; }
.rule-grid h2 { margin: .35em 0; }
.rule-grid p { color: var(--muted); line-height: 1.7; }
.rule-grid article:last-child { grid-column: 1 / -1; }
.boundary-table { margin-top: 20px; padding: 28px; background: linear-gradient(120deg, var(--violet-deep), var(--blue-deep)); color: #fff; }
.boundary-table .kicker { color: #ffd17a; }
.boundary-table p { color: #d7dcff; }
.fixed-sample { justify-content: flex-start; margin: 18px 0; }

.scratch-page { max-width: 900px; }
.scratch-shell { padding: 24px; background: linear-gradient(155deg, var(--surface), var(--paper-soft)); border-top: 8px solid var(--coral); }
.scratch-ticket { position: relative; overflow: hidden; min-height: 340px; border: 1px solid var(--line); border-radius: 24px; background: url('/assets/ace28-scratch-study-v1.png') center / cover; }
.scratch-meta { display: flex; justify-content: space-between; padding: 22px; color: var(--violet-deep); font-weight: 800; }
.scratch-result { display: grid; place-items: center; min-height: 245px; padding: 20px; }
.scratch-result .question-digits { justify-content: center; }
.scratch-result p { color: var(--violet-deep); font-weight: 850; }
.scratch-ticket canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.scratch-controls { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.scratch-help { color: var(--muted); font-size: .84rem; text-align: center; }
[data-theme="dark"] .scratch-meta, [data-theme="dark"] .scratch-result p { color: #241047; }

.chat-page { max-width: 900px; }
.chat-heading { display: flex; align-items: center; gap: 18px; margin: 10px 0 18px; }
.chat-heading h1 { margin: .1em 0; }
.chat-shell { padding: 24px; background: linear-gradient(155deg, var(--surface), var(--paper-soft)); border-top: 8px solid var(--blue); }
.chat-profile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.chat-profile img { border: 3px solid #c3b1ef; border-radius: 18px; background: var(--surface-2); }
.chat-profile label, .chat-form label { display: block; color: var(--muted); font-size: .75rem; }
.chat-profile input { padding: 4px 0; border: 0; background: transparent; color: var(--ink); font-size: 1.05rem; font-weight: 850; }
.chat-profile input:disabled { opacity: 1; }
.chat-profile small { display: block; color: var(--muted); }
.connection-pill { padding: 7px 10px; border-radius: 999px; background: var(--coral-soft); color: var(--coral-deep); font-size: .78rem; font-weight: 800; }
.chat-announcement { margin: 18px 0; padding: 13px 15px; border-left: 5px solid var(--violet); border-radius: 12px; background: var(--surface-2); color: var(--muted); }
.messages { display: grid; align-content: start; gap: 12px; min-height: 190px; max-height: 480px; overflow: auto; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-soft); }
.messages .empty { margin: auto; padding: 16px; color: var(--muted); text-align: center; }
.message { display: grid; grid-template-columns: 38px 1fr; gap: 10px; max-width: 88%; }
.message.self { justify-self: end; grid-template-columns: 1fr 38px; }
.message img { width: 38px; height: 38px; border-radius: 12px; }
.message-body { padding: 10px 12px; border-radius: 14px; background: #e6edff; color: #25144a; }
.message.self .message-body { order: -1; background: #eee4ff; }
.message-meta { display: flex; gap: 8px; margin-bottom: 3px; font-size: .7rem; color: #61597b; }
.message p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 16px; }
.chat-form label { grid-column: 1 / -1; }
.chat-form textarea { min-height: 76px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); resize: vertical; }
.chat-form-status { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .78rem; }

.site-footer { max-width: 1160px; margin: 0 auto 20px; padding: 18px 24px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px; }
.not-found { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; }
.not-found h1 { margin: 0; font-family: "Iowan Old Style", "Songti SC", serif; font-size: 2.4rem; }
.not-found p { color: var(--muted); }
.content-stack { display: grid; gap: 18px; }
.content-card { padding: 26px; border: 1px solid var(--line); border-left: 7px solid var(--violet); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.content-card:nth-child(2n) { border-left-color: var(--blue); }
.content-card:nth-child(3n) { border-left-color: var(--coral); }
.content-card h2 { margin-top: 0; }
.content-card p, .content-card li { color: var(--muted); line-height: 1.75; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; gap: 12px; }
  .site-header .brand { grid-column: 1; grid-row: 1; }
  .site-header .theme-toggle { grid-column: 2; grid-row: 1; }
  .nav-deck { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; }
  .nav-group { flex: 1 1 150px; }
  .live-strip { grid-template-columns: 1fr auto; }
  .live-meta { grid-column: 1 / -1; grid-template-columns: 1fr auto; }
  .live-countdown { align-items: end; }
  .home-grid, .practice-layout { grid-template-columns: 1fr; }
  .home-grid .recent-card { order: -1; }
  .rule-grid { grid-template-columns: 1fr; }
  .rule-grid article:last-child { grid-column: auto; }
  .hero-copy { padding: 30px; }
  .chat-profile { grid-template-columns: auto 1fr; }
  .connection-pill { grid-column: 1 / -1; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 560px) {
  .site-header { padding: 14px; }
  .brand small { white-space: normal; }
  .nav-deck { gap: 7px; }
  .nav-group { min-width: 0; flex: 1 1 calc(50% - 7px); padding: 7px 8px; }
  .nav-social { flex-basis: 100%; }
  .nav-group a { min-height: 38px; display: inline-flex; align-items: center; padding: 6px 8px; }
  main { padding: 12px 14px 54px; }
  .live-strip { gap: 12px; padding: 14px; }
  .live-strip .equation b { width: 38px; height: 38px; border-width: 2px; }
  .live-strip .equation em { min-width: 42px; height: 42px; font-size: 1.3rem; }
  .live-countdown strong { font-size: 1.2rem; }
  .home-grid { margin: 16px 0; }
  .hero-copy { padding: 25px; }
  .hero-copy h1 { font-size: 2.55rem; }
  .page-heading { padding: 26px 22px; }
  .recent-card .section-heading { padding: 17px 18px 13px; }
  .recent-list { padding: 12px; }
  .recent-list li { min-height: 50px; padding: 8px 10px; }
  .practice-panel, .progress-card, .boundary-table, .scratch-shell, .chat-shell { padding: 18px; border-radius: 19px; }
  .practice-header { display: grid; }
  .answers { grid-template-columns: 1fr; }
  .question-digits span { width: 42px; height: 42px; }
  .topic-picker { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 5px; }
  .topic-picker button { white-space: nowrap; }
  .scratch-ticket { min-height: 300px; }
  .scratch-controls { display: grid; }
  .chat-profile { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
  .chat-profile > div { min-width: 0; }
  .chat-profile input { width: 100%; min-width: 0; }
  .connection-pill { width: fit-content; max-width: 100%; }
  .chat-form { grid-template-columns: 1fr; }
  .chat-form label, .chat-form-status { grid-column: auto; }
  .message { max-width: 96%; }
  .question-actions { align-items: stretch; }
  .question-actions .button { width: 100%; }
}

@media (max-width: 340px) {
  .site-header { gap: 7px; padding: 9px 10px; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: 1rem; }
  .brand small { font-size: .65rem; }
  .theme-toggle { width: 40px; height: 40px; }
  .nav-deck { gap: 4px; }
  .nav-group { padding: 5px 6px; border-radius: 12px; }
  .nav-group > span { margin-bottom: 2px; font-size: .58rem; }
  .nav-group > div { gap: 1px; }
  .nav-group a { font-size: .76rem; }
  .live-strip { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "meta meta" "equation countdown" "status status"; gap: 7px; padding: 10px; }
  .live-meta { grid-area: meta; }
  .live-strip .equation { grid-area: equation; gap: 3px; }
  .live-strip .equation b { width: 30px; height: 30px; font-size: .92rem; }
  .live-strip .equation em { min-width: 34px; height: 34px; border-radius: 11px; padding: 0 5px; font-size: 1rem; }
  .live-countdown { grid-area: countdown; }
  .live-countdown span { font-size: .64rem; }
  .live-countdown strong { font-size: 1rem; }
  .live-countdown button { font-size: .7rem; }
  .live-status { grid-area: status; font-size: .66rem; }
  .equation, .question-digits { gap: 5px; }
  .live-countdown { text-align: right; }
  .live-countdown button { justify-self: end; }
  .recent-card .section-heading { padding: 11px 12px 9px; }
  .recent-card .section-heading h2 { font-size: 1.1rem; }
  .recent-list { gap: 5px; padding: 8px; }
  .recent-list li { min-height: 43px; padding: 5px 7px; font-size: .73rem; }
  .recent-list small { font-size: .57rem; white-space: nowrap; }
  .hero-copy h1 { font-size: 2.15rem; }
  .question-digits span { width: 36px; height: 36px; font-size: 1.05rem; }
}

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