/* Wiggle 2.1 — a small, quiet puzzle interface. No remote fonts or assets. */
:root {
  color-scheme: light;
  --bg: #fdfcf8;
  --ink: #24292b;
  --muted: #676b70;
  --line: #ddded8;
  --line-strong: #c4c7cb;
  --soft: #f2f2ed;
  --disabled: #eaebed;
  --disabled-ink: #72767c;
  --selected: #262729;
  --selected-ink: #ffffff;
  --green: #53804c;
  --green-ink: #426c3d;
  --green-wash: #edf3eb;
  --green-band: rgba(83, 128, 76, .14);
  --button: #24292b;
  --accent: #b7432b;
  --accent-band: rgba(183, 67, 43, .10);
  --button-hover: #3e474a;
  --on-button: #ffffff;
  --focus: #487aab;
  --overlay: rgba(0, 0, 0, .28);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151617;
  --ink: #ededee;
  --muted: #abafb4;
  --line: #35373a;
  --line-strong: #5a5e63;
  --soft: #222427;
  --disabled: #2c2e31;
  --disabled-ink: #a4a8ae;
  --selected: #e4e5e7;
  --selected-ink: #151617;
  --green: #86ac7f;
  --green-ink: #a6ca9e;
  --green-wash: #233221;
  --green-band: rgba(134, 172, 127, .16);
  --button: #e6e8e4;
  --on-button: #202524;
  --accent: #f29b80;
  --accent-band: rgba(242, 155, 128, .12);
  --button-hover: #cfd4cf;
  --focus: #94c7f8;
  --overlay: rgba(0, 0, 0, .62);
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--sans); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
button, a, input, summary { touch-action: manipulation; }
button { border: 0; background: none; }
a { color: inherit; text-underline-offset: 3px; }
svg { display: block; width: 22px; height: 22px; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
#main:focus { outline: none; }
.mono { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; padding: 12px 20px; background: var(--ink); color: var(--bg); z-index: 100; }
.skip-link:focus { top: 8px; }
.header { border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 760px; height: 66px; margin: 0 auto; padding: 0 24px; }
.header-left, .header-nav { display: flex; align-items: center; }
.header-nav { justify-content: flex-end; gap: 3px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 32px; line-height: 1; letter-spacing: -1.5px; font-weight: 850; padding: 6px 7px; }
.brand::before, .brand::after { content: ''; width: 6px; height: 29px; border-top: 2px solid var(--accent); border-bottom: 2px solid var(--accent); flex-shrink: 0; }
.brand::before { border-left: 2px solid var(--accent); }
.brand::after { border-right: 2px solid var(--accent); }
.nav-button, .dialog-close { display: grid; place-items: center; width: 42px; height: 42px; padding: 9px; border-radius: 4px; }
.nav-button:hover, .dialog-close:hover { background: var(--soft); }
#main { max-width: 680px; padding: 0 24px; margin: 0 auto; }
.game { padding: 24px 0 0; }
.game-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.game-heading h1 { font-size: 14px; line-height: 1.3; font-weight: 650; }
.game-date { margin-top: 4px; color: var(--muted); font-size: 12px; }
.scoreboard { text-align: right; }
.score-total { font-size: 25px; font-weight: 700; line-height: 1.15; letter-spacing: -.7px; }
.score-total span { font-size: 12px; color: var(--muted); letter-spacing: 0; font-weight: 400; }
.score-caption { font-size: 11px; color: var(--muted); margin-top: 4px; }
.question-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.q-link { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 1px 7px; border-radius: 3px; min-width: 0; }
.q-number { display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; border: 1px solid var(--line-strong); font-weight: 650; font-size: 16px; line-height: 1; }
.q-link.active .q-number { border-color: var(--selected); background: var(--selected); color: var(--selected-ink); }
.q-link.hit .q-number { color: var(--bg); background: var(--green); border-color: var(--green); }
.q-link.miss .q-number { color: var(--muted); background: var(--disabled); border-color: var(--disabled); }
.q-link.active.hit .q-number, .q-link.active.miss .q-number { outline: 1px solid var(--ink); outline-offset: 3px; }
.q-info { min-width: 0; max-width: 100%; }
.q-category { color: var(--muted); font-size: 11px; white-space: nowrap; display: block; overflow: hidden; text-overflow: ellipsis; }
.q-link.active .q-category { color: var(--ink); font-weight: 600; }
.q-link:hover .q-number { border-color: var(--ink); }
.nav-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; color: var(--muted); padding: 4px 0 8px; border-bottom: 1px solid var(--line); }
.text-button { padding: 5px 0; font-size: inherit; line-height: inherit; color: var(--muted); text-underline-offset: 3px; }
.text-button:hover { text-decoration: underline; color: var(--ink); }
.nav-meta .text-button { text-decoration: underline; }
.question-head { min-height: 146px; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 26px 5px 18px; }
.question-meta { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 10px; }
.question-head h2 { font-size: 28px; line-height: 1.25; font-weight: 650; letter-spacing: -.7px; max-width: 590px; margin: 0 auto; text-wrap: balance; }
.question-note { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 10px auto 0; max-width: 510px; }
.ruler-shell { position: relative; }
.ruler-instruction { font-size: 11px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px; }
.ruler-instruction svg { width: 14px; height: 14px; }
.ruler-instruction > span:first-child { display: flex; align-items: center; gap: 5px; }
.ruler-instruction .scale-unit { text-transform: uppercase; font-weight: 600; font-size: 10px; letter-spacing: 1px; }
.ruler-pad { padding: 0 13px; }
.ruler { position: relative; height: 128px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.ruler.dragging { cursor: grabbing; }
.ruler:focus-visible { border-radius: 4px; outline-offset: 3px; }
.ruler.inactive { cursor: crosshair; }
.ruler-pad { cursor: crosshair; touch-action: none; }
.ruler.revealed { height: 174px; cursor: default; }
.ruler-line { position: absolute; top: 93px; left: 0; right: 0; height: 2px; background: var(--line-strong); }
.tick { position: absolute; top: 82px; width: 1px; height: 13px; background: var(--line); }
.tick.major { top: 74px; height: 21px; background: var(--line-strong); }
.tick-label { position: absolute; top: 104px; transform: translateX(-50%); font-size: 11px; color: var(--muted); line-height: 1.3; white-space: nowrap; }
.tick-label.edge-start { transform: none; }
.tick-label.edge-end { transform: translateX(-100%); }
.ruler-band { position: absolute; top: 57px; height: 38px; border: 2px solid var(--accent); border-radius: 1px; background: var(--accent-band); pointer-events: none; z-index: 1; }
.ruler-centre { position: absolute; top: 48px; height: 47px; width: 1px; transform: translateX(-50%); background: var(--accent); pointer-events: none; z-index: 1; }
.ruler-grip { position: absolute; top: 83px; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--bg); border-radius: 50%; background: var(--accent); color: var(--bg); transform: translateX(-50%); z-index: 3; pointer-events: none; }
.ruler-grip svg { width: 16px; height: 16px; }
.range-bubble { position: absolute; top: 6px; transform: translateX(-50%); padding: 6px 10px; font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--selected-ink); background: var(--selected); border-radius: 4px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; pointer-events: none; z-index: 4; }
.inactive .range-bubble { color: var(--muted); background: transparent; font-size: 12px; font-weight: 400; top: 15px; }
.inactive .ruler-band, .inactive .ruler-centre, .inactive .ruler-grip { display: none; }
.inactive.has-position .ruler-centre, .inactive.has-position .ruler-grip { display: grid; }
.inactive.has-position .range-bubble { color: var(--accent); background: var(--accent-band); font-weight: 600; }
.ruler.revealed.hit .ruler-band { border-color: var(--green); background: var(--green-band); }
.revealed .ruler-grip, .revealed .ruler-centre { display: none; }
.revealed .range-bubble { color: var(--muted); background: var(--soft); font-size: 12px; }
.revealed.miss .ruler-band { border-color: var(--line-strong); background: var(--soft); }
.answer-pin { position: absolute; top: 62px; height: 73px; width: 2px; transform: translateX(-50%); background: var(--green); z-index: 2; }
.answer-pin::before { content: ''; display: block; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; background: var(--green); transform: rotate(45deg); }
.answer-label { position: absolute; top: 140px; font-size: 12px; font-weight: 650; transform: translateX(-50%); white-space: nowrap; color: var(--green-ink); }
.window-section { margin-top: 5px; }
.section-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 12px; font-weight: 600; }
.section-label .subtle { font-weight: 400; color: var(--muted); }
.window-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.window-option { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; height: 84px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 8px 2px; background: var(--bg); }
.window-option:not(:disabled):hover { border-color: var(--ink); background: var(--soft); }
.window-name { font-size: 12px; font-weight: 600; }
.window-points { font-size: 19px; font-weight: 700; letter-spacing: -.3px; line-height: 1.2; }
.window-points small { font-size: 10px; font-weight: 400; letter-spacing: 0; }
.window-percent { font-size: 10px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.window-option.selected, .window-option.selected:not(:disabled):hover { background: var(--selected); border-color: var(--selected); color: var(--selected-ink); }
.window-option.selected .window-percent { color: var(--selected-ink); opacity: .76; }
.window-option.used { border-color: var(--disabled); background: var(--soft); color: var(--disabled-ink); }
.window-option.used .window-points { font-size: 13px; font-weight: 400; line-height: 1.75; letter-spacing: 0; }
.window-option.used .window-name { text-decoration: line-through; text-decoration-thickness: 1px; }
.window-caption { text-align: center; min-height: 31px; padding: 9px 0 5px; font-size: 11px; color: var(--muted); }
.commit-zone { display: grid; grid-template-columns: 205px 1fr; gap: 12px; align-items: center; margin-top: 8px; }
.precision-controls { height: 48px; display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; min-width: 0; }
.precision-controls.is-disabled { background: var(--soft); border-color: var(--line); }
.nudge-button { width: 34px; min-width: 34px; height: 46px; padding: 0; font-size: 20px; font-weight: 400; line-height: 1; display: grid; place-items: center; }
.nudge-button:not(:disabled):hover { background: var(--soft); }
.nudge-button:disabled { color: var(--disabled-ink); }
.number-entry { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: center; gap: 3px; }
.number-entry input { width: 100%; min-width: 0; max-width: 112px; border: 0; border-radius: 2px; background: transparent; color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; line-height: 1.4; text-align: center; padding: 5px 0; appearance: textfield; -moz-appearance: textfield; }
.number-entry input::-webkit-inner-spin-button, .number-entry input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.number-entry input::placeholder { color: var(--muted); opacity: 1; font-size: 12px; }
.number-entry input[aria-invalid="true"] { outline: 2px solid var(--focus); }
.number-entry input:focus-visible { outline-offset: 1px; }
.number-entry .unit { color: var(--muted); font-size: 10px; white-space: nowrap; padding-right: 4px; }
.number-entry .unit:empty { display: none; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 0 19px; min-height: 48px; border-radius: 4px; font-size: 14px; font-weight: 600; line-height: 1.3; border: 1px solid transparent; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--button); color: var(--on-button); }
.btn.primary:not(:disabled):hover { background: var(--button-hover); }
.btn.primary:disabled { color: var(--disabled-ink); background: var(--disabled); }
.btn.secondary { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn.secondary:hover { border-color: var(--ink); background: var(--soft); }
.btn.full { width: 100%; }
.btn.small { min-height: 42px; font-size: 13px; }
#lockButton { justify-content: space-between; }
.commit-warning { text-align: center; font-size: 11px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.game-bottom:empty { display: none; }
.game-bottom { display: flex; justify-content: center; align-items: center; min-height: 27px; font-size: 11px; color: var(--muted); margin: 5px 0 0; }
.game-bottom .text-button { font-size: 11px; text-decoration: underline; }
.fresh-day { margin: 18px 0 0; padding: 13px 15px; background: var(--green-wash); font-size: 12px; border: 1px solid var(--green); border-radius: 4px; }
.fresh-day .text-button { margin-left: 5px; color: var(--green-ink); text-decoration: underline; }
.reveal { border-top: 1px solid var(--line); padding-top: 17px; animation: reveal-in 160ms ease-out both; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.reveal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.reveal h3 { font-size: 12px; color: var(--green-ink); font-weight: 600; }
.reveal.miss h3 { color: var(--muted); }
.reveal-value { margin-top: 3px; font-size: 26px; font-weight: 650; letter-spacing: -.5px; }
.reveal-points { font-size: 22px; line-height: 1.3; color: var(--green-ink); font-weight: 650; white-space: nowrap; }
.reveal-points small { display: block; font-size: 10px; font-weight: 400; text-align: right; color: var(--muted); }
.reveal.miss .reveal-points { color: var(--muted); }
.reveal-guess { font-size: 12px; color: var(--muted); margin: 9px 0 10px; }
.reveal-fact { font-size: 13px; line-height: 1.65; }
.source-link { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); margin-top: 8px; text-decoration: underline; }
.source-link svg { width: 13px; height: 13px; }
.reveal-bottom { margin-top: 20px; }
.reveal-bottom .btn { width: 100%; justify-content: space-between; }
.footer { margin: 18px auto 0; max-width: 632px; padding: 16px 0 22px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; justify-content: center; align-items: center; gap: 17px; }
.footer-note { display: block; font-size: 11px; margin-top: 6px; }
.storage-warning { max-width: 632px; margin: 16px auto 0; padding: 12px; font-size: 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; }
.results { padding: 31px 0 0; max-width: 580px; margin: 0 auto; }
.results-heading { text-align: center; }
.eyebrow { font-size: 10px; color: var(--muted); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.results-heading h1 { font-size: 25px; font-weight: 650; letter-spacing: -.4px; margin: 16px 0 5px; }
.results-heading p { font-size: 13px; color: var(--muted); }
.result-ticket { margin-top: 17px; }
.result-ticket-top { text-align: center; }
.big-score { font-size: 65px; font-weight: 650; letter-spacing: -2.7px; line-height: 1.1; }
.big-score span { display: block; font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-top: 8px; }
.result-caught { font-size: 13px; margin-top: 13px; }
.result-caught strong { font-weight: 500; }
.window-receipt { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 400px; margin: 22px auto 0; }
.receipt-column { text-align: center; }
.receipt-window { width: 49px; height: 49px; display: grid; place-items: center; margin: 0 auto; background: var(--green); color: var(--bg); font-weight: 600; font-size: 25px; }
.receipt-window.miss { background: var(--disabled); color: var(--muted); }
.receipt-label { font-size: 11px; color: var(--muted); margin-top: 9px; }
.receipt-score { font-size: 12px; font-weight: 600; margin-top: 3px; font-variant-numeric: tabular-nums; }
.receipt-legend { color: var(--muted); font-size: 11px; text-align: center; margin: 14px 0 20px; }
.share-actions { display: grid; grid-template-columns: 1fr 48px; gap: 8px; max-width: 340px; margin: 0 auto; }
.share-actions .btn.secondary { padding: 0; }
.results-stats, .dialog-stats { display: grid; gap: 12px; }
.results-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin: 27px 0 0; }
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 26px; font-weight: 500; line-height: 1.25; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.stat-item span { display: block; font-size: 10px; color: var(--muted); line-height: 1.3; margin: 4px auto 0; }
.results-notice { text-align: center; font-size: 11px; color: var(--muted); margin: 11px 0 19px; }
.round-review { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.round-review summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; cursor: pointer; font-size: 13px; font-weight: 600; list-style: none; }
.round-review summary::-webkit-details-marker { display: none; }
.round-review summary svg { width: 16px; height: 16px; transition: transform 120ms ease-out; }
.round-review[open] summary svg { transform: rotate(180deg); }
.review-row { display: flex; align-items: center; width: 100%; text-align: left; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.review-row:hover { background: var(--soft); }
.review-row > span:nth-child(2) { flex: 1; }
.review-row .q-number { width: 29px; height: 29px; font-size: 13px; background: var(--green-wash); color: var(--green-ink); border: 0; }
.review-row.miss .q-number { background: var(--soft); color: var(--muted); }
.review-question { font-size: 13px; font-weight: 600; }
.review-answer { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.review-score { font-size: 12px; font-weight: 600; white-space: nowrap; }
.results-bottom { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin: 19px 0 12px; }
.countdown-label { font-size: 10px; color: var(--muted); }
.countdown { font-size: 19px; letter-spacing: 1px; margin-top: 3px; }
.results-bottom .btn { min-height: 42px; }
.dialog { width: min(100% - 32px, 492px); max-height: min(90vh, 900px); max-height: min(90dvh, 900px); padding: 26px; border: 1px solid var(--line); border-radius: 8px; margin: auto; color: var(--ink); background: var(--bg); box-shadow: 0 8px 40px rgba(0,0,0,.1); overscroll-behavior: contain; }
.dialog::backdrop { background: var(--overlay); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.dialog-head h2 { font-family: var(--sans); font-weight: 700; font-size: 28px; letter-spacing: -.6px; }
.dialog-close { flex: 0 0 36px; width: 36px; height: 36px; margin-right: -6px; }
.dialog-body p { font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.dialog-body p:last-child { margin-bottom: 0; }
.dialog-body .source-note { color: var(--muted); font-size: 11px; }
.help-step { display: flex; gap: 12px; margin: 18px 0; }
.step-number { width: 22px; height: 22px; border: 1px solid var(--line-strong); flex: 0 0 22px; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.help-step h3 { font-size: 13px; font-weight: 650; margin-bottom: 4px; }
.help-step p { margin: 0; color: var(--muted); font-size: 12px; }
.help-windows { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 17px 0; }
.help-window { padding: 9px 0; border: 1px solid var(--line-strong); text-align: center; }
.help-window strong { display: block; font-size: 15px; }
.help-window span { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.help-note { padding: 12px 0; margin: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.6; }
.help-example { background: var(--green-wash); padding: 13px 15px; font-size: 12px; line-height: 1.6; border-radius: 4px; }
.help-example strong { color: var(--green-ink); }
.all-question { display: flex; align-items: center; width: 100%; text-align: left; gap: 13px; padding: 15px 0; border-top: 1px solid var(--line); }
.all-question:hover, .practice-item:not(:disabled):hover { background: var(--soft); }
.all-question .q-number { width: 28px; height: 28px; font-size: 13px; }
.all-question-main .eyebrow { font-size: 9px; }
.all-question-main strong { display: block; font-size: 13px; font-weight: 600; margin-top: 3px; line-height: 1.45; }
.practice-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 0; text-align: left; width: 100%; border-top: 1px solid var(--line); }
.practice-item strong { font-size: 13px; font-weight: 600; }
.practice-item span { font-size: 11px; color: var(--muted); }
.practice-item:disabled { opacity: .65; }
.practice-item:last-of-type { margin-bottom: 16px; }
.dialog-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 26px; margin: 21px 0 30px; }
.dialog-stats .stat-item strong { font-size: 34px; }
.dialog-body details { border-top: 1px solid var(--line); padding: 12px 0; }
.dialog-body details summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.dialog-body details p:first-of-type { margin-top: 12px; }
.dialog-body details p { font-size: 12px; }
.share-field { display: block; width: 100%; height: 156px; padding: 12px; resize: vertical; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--ink); background: var(--soft); font-size: 12px; line-height: 1.65; margin-bottom: 14px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 0; border-top: 1px solid var(--line); cursor: pointer; }
.setting-row strong { display: block; font-size: 14px; font-weight: 600; }
.setting-row .setting-note { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.setting-row input { appearance: none; position: relative; flex: 0 0 40px; width: 40px; height: 24px; border: 0; border-radius: 14px; background: var(--line-strong); cursor: pointer; margin: 0; }
.setting-row input::before { content: ''; position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 50%; top: 3px; left: 3px; }
.setting-row input:checked { background: var(--button); }
.setting-row input:checked::before { left: 19px; background: var(--on-button); }
.setting-note-bottom { margin-top: 15px; }
.toast { position: fixed; z-index: 100; top: 80px; left: 50%; transform: translate(-50%, -8px); max-width: min(90vw, 430px); width: max-content; background: var(--selected); color: var(--selected-ink); padding: 12px 17px; border-radius: 4px; font-size: 13px; font-weight: 500; text-align: center; opacity: 0; pointer-events: none; transition: opacity 130ms, transform 130ms; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 600px) {
  .header-inner { padding: 0 12px; height: 60px; }
  .brand { font-size: 28px; gap: 7px; }
  .nav-button { width: 37px; height: 40px; padding: 8px; }
  .header-nav { gap: 0; }
  #main { padding: 0 20px; }
  .game { padding-top: 18px; }
  .game-top { margin-bottom: 15px; }
  .question-head { min-height: 149px; padding: 24px 0 16px; }
  .question-head h2 { font-size: 25px; letter-spacing: -.65px; }
  .question-note { font-size: 12px; margin-top: 10px; }
  .question-meta { margin-bottom: 9px; font-size: 9px; }
  .q-number { width: 33px; height: 33px; font-size: 15px; }
  .q-category { font-size: 10px; }
  .nav-meta { padding-bottom: 8px; }
  .ruler-instruction { font-size: 10px; }
  .ruler-pad { padding: 0 5px; }
  .window-options { gap: 6px; }
  .window-option { height: 78px; padding: 8px 1px; }
  .window-name { font-size: 11px; }
  .window-points { font-size: 18px; }
  .window-points small { display: none; }
  .window-percent { font-size: 9px; }
  .section-label { font-size: 11px; }
  .commit-zone { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px; }
  .nudge-button { width: 30px; min-width: 30px; }
  .number-entry input { font-size: 13px; }
  .number-entry .unit { font-size: 9px; padding-right: 1px; }
  #lockButton { padding: 0 13px; font-size: 13px; }
  .commit-warning { font-size: 10px; }
  .game-bottom { font-size: 10px; }
  .footer { margin: 18px 20px 0; padding: 12px 0 18px; font-size: 11px; }
  .footer-note { font-size: 10px; }
  .storage-warning { margin: 12px 20px 0; font-size: 11px; }
  .results { padding-top: 25px; }
  .results-heading h1 { font-size: 24px; }
  .big-score { font-size: 61px; }
  .results-stats { gap: 8px; }
  .stat-item strong { font-size: 24px; }
  .dialog { padding: 21px; width: calc(100% - 28px); }
  .dialog-head h2 { font-size: 27px; }
}
@media (max-width: 359px) {
  #main { padding: 0 14px; }
  .question-head h2 { font-size: 23px; }
  .question-head { min-height: 144px; }
  .q-category { font-size: 9px; }
  .window-options { gap: 5px; }
  .window-option { height: 74px; }
  .window-name { font-size: 10px; }
  .window-points { font-size: 17px; }
  .window-caption { font-size: 10px; }
  .nudge-button { width: 25px; min-width: 25px; }
  #lockButton { font-size: 12px; padding: 0 10px; gap: 5px; }
  #lockButton svg { width: 16px; }
  .dialog { padding: 18px; }
  .receipt-window { width: 43px; height: 43px; }
  .receipt-label { font-size: 10px; }
  .receipt-score { font-size: 11px; }
  .review-row { gap: 9px; }
  .review-question { font-size: 12px; }
  .review-score { font-size: 11px; }
  .stat-item strong { font-size: 22px; }
  .stat-item span { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
:root[data-reduced-motion="true"] *, :root[data-reduced-motion="true"] *::before, :root[data-reduced-motion="true"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (forced-colors: active) {
  .window-option.selected, .q-link.active .q-number { outline: 2px solid Highlight; }
  .ruler-band, .ruler-grip { border-color: Highlight; forced-color-adjust: none; }
  .answer-pin, .ruler-centre { background: Highlight; forced-color-adjust: none; }
  .ruler-line, .tick { background: CanvasText; }
}


.launch-message{padding:70px 0;text-align:center}.launch-message h1{font-size:32px;letter-spacing:-1px;margin:15px 0}.launch-message p{max-width:420px;margin:0 auto 24px;color:var(--muted)}.network-status{font-size:13px;color:var(--muted);margin:12px 0}.submitting{pointer-events:none;opacity:.7}
