/* The play card shared by every test and game, plus the end screens. Module-specific bits live in games.css. */
.play { --pad: clamp(1rem, 3vw, 2rem); background: var(--mist); border-top: 6px solid var(--skill); border-radius: 0 0 var(--radius-l) var(--radius-l); padding: var(--pad); margin: 1.5rem 0 2rem; min-height: 22rem; display: flex; flex-direction: column; }
.play-meta { font-weight: 700; font-size: var(--step--1); color: var(--ink-soft); }
.play-how { max-width: 56ch; }
.play-how p:last-child { margin-bottom: 1.2rem; }
.play-error { color: var(--attention); font-weight: 700; }
.play [data-start] { opacity: 0.5; pointer-events: none; }
.play.is-ready [data-start] { opacity: 1; pointer-events: auto; }
.play-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.play-stage[hidden], .play-intro[hidden], .play-after[hidden] { display: none; }

/* Settings drawer. */
.set-panel { margin-top: 1.2rem; max-width: 30rem; }
.set-panel summary { cursor: pointer; font-weight: 700; }
.set-row { display: grid; grid-template-columns: 1fr 9rem 2.5rem; align-items: center; gap: 0.6rem; margin: 0.6rem 0; }
.set-row input[type=range] { accent-color: var(--skill); width: 100%; }
.set-row output { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.set-lock { font-size: var(--step--1); }

/* End screens. */
.end { max-width: 34rem; }
.end-kicker { font-weight: 700; color: var(--ink-soft); margin: 0; }
.end-score { font-size: clamp(3rem, 10vw, 5.5rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin: 0.15em 0 0.25em; color: var(--ink); font-variant-numeric: tabular-nums; }
.end-score.is-sealed { color: var(--skill); }
.delta { font-weight: 700; }
.delta.is-up { color: var(--reasoning); }
.delta.is-down { color: var(--attention); }
.end-pitch { font-size: var(--step-1); }
.end-alt, .end-pro { margin-top: 1rem; font-size: var(--step--1); }
.end-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* Common in-game pieces modules can use. */
.big-target { width: 100%; min-height: 16rem; border: 0; border-radius: var(--radius-l); font: inherit; font-size: var(--step-3); font-weight: 900; color: #fff; cursor: pointer; }
.hud { display: flex; gap: 1.5rem; justify-content: center; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.stim { font-size: clamp(2.5rem, 9vw, 5rem); font-weight: 900; line-height: 1; min-height: 1.2em; }
.answer-row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.answer-row .btn { min-width: 6rem; }
.grid-board { display: grid; gap: 6px; width: min(100%, 26rem); aspect-ratio: 1; }
.grid-board > * { border: 0; border-radius: var(--radius-s); background: var(--paper); cursor: pointer; font: inherit; font-weight: 800; font-size: var(--step-1); color: var(--ink); }
.grid-board > .is-on { background: var(--skill); color: #fff; }
.grid-board > .is-wrong { background: var(--attention); color: #fff; }
.grid-board > .is-done { background: var(--line); color: var(--ink-soft); }
.progress { width: min(100%, 26rem); height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--skill); }
