/* ---------- Session screens (/test, /retest) ---------- */
.run-main { padding: 0; min-height: 100vh; min-height: 100dvh; }
.run-screen { max-width: 600px; padding-block: 40px 60px; }
.run-logo { height: 30px; width: auto; margin-bottom: 28px; }
.run-h { font-size: clamp(26px, 5vw, 36px); margin-bottom: 22px; max-width: none; }
.lang-choices { display: grid; gap: 12px; max-width: 360px; }
.lang-choice { font-size: 20px; padding: 18px; justify-content: flex-start; }
.lang-choice[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; justify-content: flex-end; }
.consent-list { padding-inline-start: 20px; display: grid; gap: 10px; margin-bottom: 18px; font-size: 16px; }
.consent-links { margin-bottom: 18px; }
.consent-links a { color: var(--signal); }
.consent-check { margin-bottom: 20px; padding: 14px 16px; }
.age-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.age-grid .btn { padding: 18px 10px; font-size: 17px; }
.run .choice-row { flex-wrap: wrap; }
.run .choice { min-height: 48px; padding: 12px 18px; }
.choice-row.big .btn { min-width: 120px; padding: 18px 24px; font-size: 18px; }
.mini { display: flex; align-items: center; justify-content: center; min-height: 70vh; }
.mini-line { font-size: clamp(24px, 6vw, 34px); font-weight: 600; text-align: center; }

/* Top bar during tests: four dots + the one-sentence instruction */
.t-bar2 { position: fixed; top: 0; inset-inline: 0; z-index: 10; background: var(--bg); padding: 14px 16px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.t-bar2 .dots { display: flex; justify-content: center; gap: 10px; margin-bottom: 10px; direction: ltr; }
.t-bar2 .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); }
.t-bar2 .dot.on { background: var(--ink); }
.t-instruction { font-size: 17px; font-weight: 600; max-width: 34ch; margin-inline: auto; line-height: 1.4; }
body.testing .t-arena { top: 96px; }
#t-area[data-phase="practice"]::after { top: 104px; }
.t-gate .t-stage { cursor: pointer; }
.t-hint { font-size: 15px; color: var(--muted); }
.t-banner { text-align: center; }
.t-banner h2 { font-size: clamp(24px, 5vw, 32px); margin: 0; max-width: 22ch; }

/* Go / No-Go v2 shapes and fixation dot */
.gng-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.gng-slot:has(.gng-shape.on) .gng-dot { visibility: hidden; }
.gng-teal-square { background: var(--signal); border-radius: 4px; }
.gng-navy-circle { background: var(--ink); border-radius: 50%; }
.gng-teal-circle { background: var(--signal); border-radius: 50%; }
.gng-navy-square { background: var(--ink); border-radius: 4px; }

/* Bonus tests */
.fl-arrows { font-size: clamp(40px, 11vw, 64px); letter-spacing: 0.08em; font-weight: 600; }
.sd-key { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; width: min(520px, 94vw); }
.sd-pair { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 2px; font-weight: 600; }
.sd-sym { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sd-target .sd-sym { width: 84px; height: 84px; stroke-width: 1.2; }

/* Results */
.res-line { font-size: 17px; line-height: 1.5; }
.past { margin-top: 10px; }
.retest-invite { margin-top: 36px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.retest-invite h2 { font-size: 20px; margin-bottom: 6px; }
.retest-invite .btn { margin-block: 14px 10px; }
.bonus { margin-top: 32px; }
.bonus h2 { font-size: 20px; }

/* Spec v2 section 3: stimuli and response buttons are pixel-identical in every language.
   Arabic's taller page line-height and font metrics must not reach inside a test
   (checked by scripts/check_stimuli.js). */
.t-arena { line-height: 1.6; }
.t-arena .mr-btn { height: 60px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }

/* Email reminder (results screen) */
.rem-form { margin-block: 14px 6px; }
.rem-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.rem-row { display: flex; gap: 10px; flex-wrap: wrap; }
.rem-row input { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.rem-row input:focus { outline: 2px solid var(--signal); outline-offset: 1px; }
.retest-invite .rem-row .btn { margin: 0; }
.rem-note { margin-top: 10px; }
.rem-msg { margin-top: 6px; color: var(--ink); font-weight: 600; }
.rem-done { margin-block: 14px 6px; font-weight: 600; color: var(--ink); }

/* Go/No-Go v3: progress bar and tap mark (both outside the shape, never mirrored) */
.gng-progress { width: min(320px, 70vw); height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.gng-progress span { display: block; height: 100%; background: var(--signal); }
.gng-slot { position: relative; }
.gng-mark { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 14px; font-size: 28px; font-weight: 700; line-height: 1; visibility: hidden; color: var(--signal); }
.gng-mark.on { visibility: visible; }
.gng-mark.bad { color: var(--ink); }

/* Consent: tick box and Start button on one line, same height */
.consent-go { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.consent-go .consent-check { margin: 0; display: flex; align-items: center; }
.consent-go .btn { margin: 0; }

/* "Other" first language */
.other-lang { margin-top: 10px; width: 100%; max-width: 320px; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
/* SurveySwap completion code (src=surveyswap only) */
.ss-code { margin-bottom: 28px; padding: 20px 22px; border: 1px solid var(--signal); border-radius: 14px; background: #E6F2F4; display: grid; gap: 10px; }
.ss-code p { margin: 0; }
.ss-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ss-code code { font-size: 20px; font-weight: 700; letter-spacing: .06em; background: var(--surface); padding: 8px 12px; border-radius: 8px; user-select: all; }
.ss-code a { color: var(--ink); word-break: break-all; }
.partner-ps { margin-top: 28px; color: var(--muted); }
.ss-code p[lang="en"] { text-align: start; }
