* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root {
  color-scheme: dark;
  --bg: #101319;
  --panel: #171d27;
  --surface: #1d2736;
  --ink: #edf3fa;
  --muted: #a8b5c8;
  --line: #344256;
  --accent: #83b9ff;
  --button: #79b0fa;
  --button-ink: #101722;
  --radius: 14px;
  font-family: Inter, "SF Pro Text", system-ui, sans-serif;
}
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6; }
a { color: var(--accent); text-underline-offset: .25em; }
a:hover { color: var(--ink); }
button, input, textarea { font: inherit; }
button { cursor: pointer; border: 1px solid transparent; border-radius: 10px; padding: .54rem .95rem; min-height: 44px; font-weight: 670; background: var(--button); color: var(--button-ink); }
button:hover { filter: brightness(1.12); }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
input, textarea { width: 100%; min-width: 0; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
input::placeholder { color: var(--muted); }
label { display: block; font-weight: 620; }
h1, h2, h3 { line-height: 1.17; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 0; }
h2 { font-size: clamp(1.3rem, 3.4vw, 1.85rem); }
p { margin: .55rem 0 1rem; }
.wrap { width: min(1040px, calc(100% - 36px)); margin-inline: auto; }
.mast { border-bottom: 1px solid #283242; }
.mast-in, .mast nav, .foot nav { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem 1.1rem; }
.mast-in { justify-content: space-between; min-height: 65px; padding-block: .4rem; }
.mast a { text-decoration: none; }
.mark { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.22rem; font-weight: 790; letter-spacing: -.035em; color: var(--ink); }
.brand-icon { display: block; width: 31px; height: 31px; flex: none; }
.brand-accent { color: var(--accent); }
.mast nav a, .foot a { color: var(--muted); font-size: .9rem; }
.mast nav a:hover, .foot a:hover { color: var(--ink); }
#open-menu, .menu-head button, .actions button, .quiet, .comment button { color: var(--ink); background: var(--panel); border-color: var(--line); }
#open-menu span { margin-left: .3em; }
#site-menu { width: min(680px, calc(100% - 28px)); max-height: calc(100% - 40px); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: clamp(16px, 4vw, 32px); }
#site-menu::backdrop { background: #080b12bf; }
.menu-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.menu-head h3 { font-size: clamp(1.3rem, 3.4vw, 1.85rem); }
.menu-head h3, .menu-head form { margin: 0; }
.mast .menu-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.menu-links a, .related a { display: grid; align-content: start; gap: .2rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; text-decoration: none; }
.menu-links a:hover, .related a:hover { border-color: var(--accent); }
.menu-links strong, .related strong { color: var(--ink); }
.menu-links span, .related span { font-size: .84rem; color: var(--muted); }
.intro { text-align: center; margin: 1.45rem 0 1.5rem; }
.intro p { color: var(--muted); margin: .25rem 0 0; }
.file, .related { max-width: 740px; margin-inline: auto; }
.tab { display: flex; justify-content: space-between; gap: .5rem; color: var(--muted); font-size: .81rem; font-weight: 680; letter-spacing: .045em; padding: 0 .1rem .55rem; }
.stage { position: relative; height: 394px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stage[data-gf-state="playing"] { height: max(394px, var(--player-height, 394px)); }
.stage:fullscreen { width: 100%; height: 100%; }
.cover, .loader { position: absolute; inset: 0; display: grid; align-items: center; padding: clamp(14px, 4vw, 44px); }
.cover { background: radial-gradient(ellipse at 75% 10%, #1e2c41 0%, transparent 68%), var(--panel); }
.cover-main { display: grid; gap: .9rem; }
.cover-note { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: .85rem; padding: clamp(12px, 3vw, 23px); background: var(--surface); border: 1px solid #527bac; border-radius: var(--radius); }
.cover-note p { margin: 0; color: var(--muted); }
.cover-note [data-cover-clue] { margin: .25rem 0 .35rem; color: var(--ink); font-size: clamp(1.3rem, 3.4vw, 1.85rem); font-weight: 700; line-height: 1.17; letter-spacing: -.035em; text-wrap: balance; }
.clue-number { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--button); color: var(--button-ink); border-radius: 50%; font-size: .85rem; font-weight: 760; }
.label { color: var(--accent); font-size: .72rem; text-transform: uppercase; font-weight: 730; letter-spacing: .12em; }
.cover button { justify-self: start; }
.cover button span { margin-left: .35rem; }
.loader { justify-content: center; align-content: center; text-align: center; gap: .8rem; }
.loader div { height: 3px; background: var(--accent); animation: scan 1s ease-in-out infinite alternate; transform-origin: left; }
@keyframes scan { from { transform: scaleX(.18); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .loader div { animation: none; } }
.actions, .guess-controls { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .6rem; }
.actions button { font-size: .85rem; }
.actions [aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.related { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .65rem; margin-block: 1.25rem 2.15rem; }
.reading { max-width: 740px; margin: 0 auto 2.7rem; }
.inner { margin-top: 2.4rem; min-height: 45vh; }
.inner h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
.reading h2 { margin: 1.7rem 0 .6rem; }
.reading li { margin: .5rem 0; }
.reading details { padding: .8rem 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-size: 1.05rem; font-weight: 710; padding: .2rem 0; }
.case-list { list-style: none; padding: 0; }
.case-list a { display: block; padding: .7rem .9rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.foot { border-top: 1px solid var(--line); padding: 1.4rem 0 2rem; color: var(--muted); font-size: .9rem; }
.foot p { max-width: 68ch; }
.foot strong { color: var(--ink); }
.discussion label { margin-bottom: .75rem; }
.comment { border-top: 1px solid var(--line); padding: .8rem 0; }
.comment [data-gf-c-replies] { padding-left: 1rem; }
.comment[data-gf-owner] { border-left: 3px solid var(--accent); padding-left: 1rem; }
[data-gf-comments][data-gf-empty]::after { content: "Share a spoiler-free tip for reading the case."; color: var(--muted); }
.embed { width: min(calc(100% - 28px), 680px); margin-inline: auto; padding: 1rem 0; font-size: .95rem; }
.puzzle-top, .guess-meta { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.puzzle-top h1 { font-size: 1.35rem; }
.puzzle-top p, .guess-meta span { font-size: .8rem; color: var(--muted); margin: .15rem 0; font-variant-numeric: tabular-nums; }
.mode-row { display: flex; flex-wrap: wrap; align-items: center; column-gap: .65rem; row-gap: .2rem; margin: .65rem 0; color: var(--muted); font-size: .8rem; }
.mode-switch { display: inline-flex; gap: .2rem; padding: .2rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.mode-switch button { min-height: 34px; padding: .3rem .82rem; border-radius: 999px; background: transparent; color: var(--muted); }
.mode-switch [aria-pressed="true"] { color: var(--accent); background: #24354c; }
.clues { list-style: none; padding: 0; margin: .65rem 0 .85rem; display: grid; gap: .42rem; counter-reset: clues; }
.clues li { counter-increment: clues; display: grid; grid-template-columns: 25px minmax(0,1fr); align-items: start; gap: .65rem; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.clues li:last-child { border-color: #527bac; }
.clues li::before { content: counter(clues); display: grid; place-items: center; border-radius: 50%; height: 25px; background: #2a415f; color: var(--ink); font-weight: 730; font-size: .77rem; }
.guess-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .45rem; margin-top: .3rem; }
.embed #puzzle-status { margin: .45rem 0; color: var(--muted); }
.embed #result { margin-top: .8rem; padding-top: .35rem; border-top: 1px solid var(--line); }
.embed #result h2 { margin: .35rem 0; }
.answers [data-answer] { padding: .45rem 0; }
.answers summary { color: var(--accent); }
@media (max-width: 560px) {
  .wrap { width: calc(100% - 24px); }
  .mast-in, .mast nav { column-gap: .65rem; }
  .mast-in nav > a { display: none; }
  .mast .menu-links { grid-template-columns: 1fr; }
  .intro { margin-block: 1.15rem; }
  .related { grid-template-columns: 1fr; }
  .related a { padding: .65rem .8rem; }
  .guess-controls button { padding-inline: .55rem; }
}
.diagnosis-help { margin: .35rem 0 .15rem; color: var(--muted); font-size: .82rem; }
.diagnosis-options { list-style: none; margin: .35rem 0 0; padding: .25rem; max-height: 235px; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.diagnosis-options li { display: grid; gap: .1rem; padding: .45rem .65rem; border-radius: 7px; cursor: pointer; }
.diagnosis-options li:hover, .diagnosis-options [aria-selected="true"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent); }
.diagnosis-options li span { color: var(--muted); font-size: .83rem; }
.reading dl dd { margin-inline-start: 0; }

/* Practice room and interaction refinement. Existing brand tokens are shared. */
button,a,input,summary { -webkit-tap-highlight-color: transparent; }
button { transition: background .18s, border-color .18s, transform .18s; }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .5; }
button:disabled:hover { filter: none; }
.eyebrow { margin: 0 0 .65rem; color: var(--accent); font-size: .72rem; font-weight: 720; letter-spacing: .14em; text-transform: uppercase; }
.subtle { color: var(--muted); font-weight: 450; }
.fine-print { color: var(--muted); font-size: .82rem; }
.text-link { text-decoration: none; font-weight: 650; }
.mast-in { min-height: 78px; }
.mark { font-size: 1.5rem; gap: .65rem; }
.brand-icon { width: 40px; height: 40px; }
#open-menu { border-radius: 999px; padding-inline: 1.1rem; }
#site-menu { width: min(860px,calc(100% - 28px)); padding: clamp(22px,4vw,42px); }
#site-menu::backdrop { background: #070a10bd; backdrop-filter: blur(7px); }
#site-menu .menu-head { margin-bottom: 1.6rem; }
#site-menu .menu-head button { font-size: 1.4rem; border-radius: 50%; width: 44px; padding: 0; }
.mast .menu-links { gap: .5rem 1.7rem; }
.menu-links a { border-width: 0 0 1px; border-radius: 0; padding: 1rem .25rem; background: transparent; transition: color .2s,background .2s; }
.menu-links strong { font-size: 1.08rem; }
.menu-links a:hover { background: #ffffff04; }
.more-play { max-width: 900px; margin: 2.5rem auto; }
.section-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-top h2 { font-size: 1.35rem; margin: 0; }
.section-top a { font-size: .82rem; white-space: nowrap; text-decoration: none; }
.play-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; }
.play-card { display: flex; flex-direction: column; min-width: 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--panel); text-decoration: none; transition: transform .2s,border-color .2s,background .2s; }
.play-card:hover { transform: translateY(-4px); border-color: var(--accent); background: #1a2535; }
.play-card h3 { margin: 1.1rem 0 .5rem; font-size: 1.12rem; }
.play-card p { font-size: .87rem; color: var(--muted); margin: 0 0 1.35rem; line-height: 1.5; }
.card-action { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .4rem; color: var(--accent); font-size: .75rem; font-weight: 660; }
.card-action b { font-size: 1.2rem; font-weight: 450; }
.mode-art { display: grid; grid-template-columns: repeat(2,18px); gap: 5px; width: fit-content; height: 41px; color: var(--accent); }
.mode-art span { display: block; border: 1px solid currentColor; border-radius: 4px; background: #83b9ff18; }
.art-duel { grid-template-columns: 20px 20px; gap: 9px; transform: rotate(-7deg); }
.art-duel span { grid-row: span 2; }
.art-duel span:nth-child(n+3) { display: none; }
.art-duel span:nth-child(2) { transform: rotate(14deg) translateY(3px); background: #83b9ff45; }
.art-groups { color: #76d6c2; }
.art-groups span:nth-child(2),.art-groups span:nth-child(3) { background: #76d6c245; }
.art-evidence { color: #dec18b; grid-template-columns: 44px; grid-template-rows: repeat(3,10px); gap: 5px; }
.art-evidence span { border-radius: 2px; }
.art-evidence span:nth-child(2) { width: 75%; background: #dec18b35; }
.art-evidence span:last-child { display: none; }
.art-practice { grid-template-columns: 42px; grid-template-rows: repeat(3,10px); gap: 5px; }
.art-practice span:nth-child(1) { background: #83b9ff60; }
.art-practice span:last-child { display: none; }
.lab-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 3rem auto 2rem; max-width: 900px; }
.lab-heading h1 { font-size: clamp(2.2rem,5vw,3.5rem); line-height: 1.08; }
.lab-heading p:last-child { color: var(--muted); margin: .8rem 0 0; }
.lab-heading > a { flex: none; font-size: .88rem; margin-bottom: .2rem; }
#lab-app,.lab-actions { max-width: 900px; margin-inline: auto; }
.lab-tabs { display: flex; gap: .3rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; padding-bottom: .7rem; }
.lab-tabs button { background: transparent; color: var(--muted); font-size: .85rem; font-weight: 620; padding: .55rem .85rem; }
.lab-tabs [aria-pressed="true"] { color: var(--accent); background: #24354c; }
.lab-shell { border: 1px solid var(--line); background: var(--panel); border-radius: 22px; padding: clamp(20px,4vw,40px); min-height: 360px; }
.lab-welcome { max-width: 540px; margin: 1.3rem auto; }
.lab-welcome .mode-art { margin-bottom: 1.7rem; }
.lab-welcome h2 { font-size: clamp(2rem,4vw,2.6rem); margin: .5rem 0 .8rem; }
.lab-welcome > p:not(.eyebrow) { color: var(--muted); }
.lab-welcome .guess-controls { margin: 1.25rem 0; }
.round-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.round-top h2 { margin: .35rem 0 .9rem; font-size: clamp(1.5rem,3vw,2rem); }
.score-pill { padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--accent); white-space: nowrap; font-size: .82rem; font-variant-numeric: tabular-nums; }
.round-rail { display: flex; gap: .55rem; margin: .35rem 0 1.8rem; }
.round-rail span { flex: 1; padding: 0 0 .45rem; border-bottom: 3px solid var(--line); color: var(--muted); font-size: .7rem; }
.round-rail .active { border-color: var(--accent); color: var(--accent); }
.round-rail .complete { border-color: #76d6c2; color: #76d6c2; }
.case-narrative { background: #10131970; border: 1px solid #344256aa; border-radius: 14px; padding: 1.1rem 1.25rem; margin: 0 0 1.5rem; line-height: 1.8; }
.case-narrative p:last-child { margin-bottom: 0; }
.case-narrative summary { font-size: .9rem; }
.case-narrative .eyebrow { color: var(--muted); font-size: .67rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.choice-stack { display: grid; gap: .6rem; }
.choice { display: flex; align-items: center; gap: .8rem; min-height: 74px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); text-align: left; font-size: .94rem; font-weight: 580; line-height: 1.5; padding: .9rem 1rem; }
.choice:not(:disabled):hover { border-color: var(--accent); background: #283b54; filter: none; }
.choice-letter { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border: 1px solid #55739b; border-radius: 8px; color: var(--accent); font-size: .8rem; }
.selected-diagnosis { color: var(--muted); font-size: .88rem; }
.selected-diagnosis strong { color: var(--ink); }
.lab-feedback { margin: 1.3rem 0 0; padding: 1.1rem 1.2rem; border-radius: 12px; border: 1px solid #4c746b; background: #76d6c209; }
.lab-feedback strong { color: #9ee7d4; }
.lab-feedback.incorrect { border-color: #796647; background: #dec18b08; }
.lab-feedback.incorrect strong { color: #ead09e; }
.lab-feedback p { margin: .4rem 0 0; font-size: .92rem; }
.round-next { display: flex; justify-content: flex-end; margin-top: 1.15rem; }
.round-prompt { font-weight: 650; margin: 1.2rem 0 .7rem; }
.evidence-claim { padding: .3rem .15rem 1rem; }
.evidence-claim h3 { font-size: 1.35rem; line-height: 1.4; margin: 0; }
.evidence-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.evidence-options button { font-size: .88rem; }
.group-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; margin-top: 1.1rem; }
.group-tile { min-height: 105px; font-size: .82rem; font-weight: 550; line-height: 1.5; background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: .85rem; }
.group-tile[aria-pressed="true"] { background: #234c5b; border-color: #76d6c2; color: #e5fff9; box-shadow: inset 0 0 0 1px #76d6c2; }
.group-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.group-footer > span { color: var(--muted); font-size: .82rem; }
.group-footer .guess-controls { padding: 0; }
.solved-group { padding: .85rem 1rem; border-radius: 10px; background: #24443f; margin: .6rem 0; text-align: center; }
.solved-group p { color: #c6e6dc; font-size: .84rem; margin: .3rem 0 0; }
#lab-status { margin: 1rem 0 0; font-size: .87rem; color: var(--muted); }
#lab-status:empty { display: none; }
.save-status { color: var(--muted); font-size: .75rem; text-align: right; min-height: 1.25rem; margin: .55rem .2rem; }
.session-result { text-align: center; padding: .75rem 0 1.5rem; }
.session-result h2 { font-size: clamp(1.65rem,3.5vw,2.2rem); }
.session-result > p:not(.eyebrow) { color: var(--muted); }
.session-result .guess-controls { justify-content: center; }
.result-orbit { width: 146px; height: 146px; display: grid; place-items: center; margin: 1.8rem auto; border: 2px solid var(--accent); border-radius: 50%; background: #83b9ff09; box-shadow: 0 0 0 10px #83b9ff05; }
.result-orbit strong { font-size: 3rem; letter-spacing: -.06em; }
.result-orbit span { font-size: 1.1rem; letter-spacing: 0; font-weight: 450; color: var(--muted); }
.result-orbit.perfect { border-color: #76d6c2; }
.session-review details { border-top: 1px solid var(--line); padding: .75rem 0; }
.session-review summary { font-size: .95rem; line-height: 1.6; }
.session-review p,.session-review li { font-size: .9rem; }
.review-mark { display: inline-block; width: 1.8rem; color: var(--accent); }
.progress-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; margin: 1.2rem 0; }
.progress-stats > div { display: grid; gap: .2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; }
.progress-stats strong { font-size: 2.1rem; letter-spacing: -.04em; }
.progress-stats span { color: var(--muted); font-size: .8rem; }
.progress-list > div { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding: 1rem 0; font-size: .85rem; }
.progress-list small { display: block; color: var(--muted); margin-top: .25rem; }
.progress-good { color: #9ee7d4; }
.empty-progress { padding: 1rem 0; }
#lab-leave { max-width: min(440px,calc(100% - 32px)); padding: 1.8rem; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; }
#lab-leave::backdrop { background: #070a10bf; backdrop-filter: blur(5px); }
#lab-leave h2 { margin-top: 0; }
.practice-guide { margin-top: 3rem; }
.clue-track { display: flex; gap: 6px; margin: 1rem 0; }
.clue-track span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .25s; }
.clue-track .opened { background: var(--accent); }
.clues li { padding: .9rem 1rem; line-height: 1.7; }
.guess-history { list-style: none; padding: 0; display: grid; gap: .35rem; }
.guess-history:empty { display: none; }
.guess-history li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .7rem; border-radius: 8px; background: #ffffff04; font-size: .82rem; }
.guess-history span { flex: none; color: var(--muted); }
.guess-history .guess-correct { color: #9ee7d4; background: #76d6c20e; }
.reveal-confirm { padding: .8rem; border: 1px solid var(--line); border-radius: 10px; margin-top: .7rem; }
.reveal-confirm p { margin: 0; font-size: .88rem; }
.result-score { font-variant-numeric: tabular-nums; color: var(--accent); }
.embed #result { padding: 1rem; background: #83b9ff05; border: 1px solid var(--line); border-radius: 14px; }
.embed #result.is-solved { border-color: #558b80; }
.after-game { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; margin-top: 1rem; }
.after-game a { display: grid; gap: .35rem; padding: .75rem; text-decoration: none; border: 1px solid var(--line); border-radius: 10px; }
.after-game strong { font-size: .85rem; }
.after-game span { color: var(--muted); font-size: .76rem; }
#result[hidden] ~ .after-game { display: none; }
@media (prefers-reduced-motion:no-preference) {
  dialog[open],.lab-feedback,.session-result,.solved-group { animation: settle-in .24s ease-out both; }
  .clues li:last-child { animation: clue-in .28s ease-out both; }
  .choice { animation: settle-in .2s ease-out both; }
  .choice:nth-child(2) { animation-delay: .025s; }
  .choice:nth-child(3) { animation-delay: .05s; }
  .choice:nth-child(4) { animation-delay: .075s; }
  #result.is-solved { animation: solved-in .4s ease-out both; }
  @keyframes settle-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes clue-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes solved-in { from { opacity: .5; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }
@media (max-width:700px) {
  .play-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lab-heading { align-items:flex-start; flex-direction:column; margin-top:2rem; }
  .lab-tabs { gap:.25rem; }
  .lab-tabs button { padding-inline:.65rem; font-size:.8rem; }
  .group-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .group-tile { min-height:110px; }
}
@media (max-width:420px) {
  .play-card { padding:1rem; }
  .section-top { align-items:flex-start; flex-direction:column; gap:.4rem; }
  .choice-grid { grid-template-columns:1fr; }
  .evidence-options { grid-template-columns:1fr; }
  .round-top { align-items:flex-start; }
  .score-pill { font-size:.7rem; }
  .progress-stats { gap:.35rem; }
  .progress-stats > div { padding:.7rem .5rem; }
  .progress-stats strong { font-size:1.7rem; }
  .progress-stats span { font-size:.7rem; }
  .after-game { grid-template-columns:1fr; }
  .lab-shell { padding:17px; }
}

.choice.choice-correct:disabled { opacity:1; border-color:#76d6c2; background:#24443f; }
#lab-screen [tabindex="-1"]:focus { outline:none; }
@media(max-width:560px) { .lab-heading { margin:1.5rem auto; } .lab-heading h1 { font-size:2rem; } .lab-heading > div > p:last-child { font-size:.9rem; } .group-tile { min-height:94px; } }
