:root{--bg: #f3f5f9;--surface: #ffffff;--ink: #172033;--muted: #5d6679;--line: #dde2ec;--accent: #2747c9;--accent-ink: #ffffff;--accent-soft: #e5eaff;--ask: #9a5a00;--ask-soft: #fff1d6;--ok: #1f8a4c;--bad: #c8372d;--stage: #1d2433;--stroop-red: #ff5a4f;--stroop-green: #3ccf6e;--stroop-blue: #5b95ff;--stroop-yellow: #ffd23f;--duel-a: #e7ecff;--duel-b: #fff0e0;--font-display: "Unbounded", "Arial Black", system-ui, sans-serif;--font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--radius: 14px;color-scheme:light}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg: #0f131b;--surface: #181e2a;--ink: #e8ecf4;--muted: #9aa3b5;--line: #2a3242;--accent: #7d95ff;--accent-ink: #0f131b;--accent-soft: #232c4a;--ask: #ffc266;--ask-soft: #3a2a10;--ok: #4fd38a;--bad: #ff7a6e;--stage: #0a0d13;--duel-a: #1c2440;--duel-b: #33261a;color-scheme:dark}}:root[data-theme=dark]{--bg: #0f131b;--surface: #181e2a;--ink: #e8ecf4;--muted: #9aa3b5;--line: #2a3242;--accent: #7d95ff;--accent-ink: #0f131b;--accent-soft: #232c4a;--ask: #ffc266;--ask-soft: #3a2a10;--ok: #4fd38a;--bad: #ff7a6e;--stage: #0a0d13;--duel-a: #1c2440;--duel-b: #33261a;color-scheme:dark}*{box-sizing:border-box}html,body{height:100%}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 var(--font-body);-webkit-tap-highlight-color:transparent}#root{min-height:100%}h1,h2{margin:0;text-wrap:balance}h1{font:700 1.5rem/1.2 var(--font-display);letter-spacing:-.01em}p{margin:0}button,input,select{font:inherit;color:inherit}button{cursor:pointer}:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.page{max-width:560px;margin:0 auto;padding:20px 16px 40px;display:flex;flex-direction:column;gap:16px}.center{align-items:center;text-align:center;padding-top:15vh}.row{display:flex;flex-wrap:wrap;gap:10px}.muted{color:var(--muted);font-size:.9rem}.eyebrow{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.topbar{position:sticky;top:env(safe-area-inset-top,0px);z-index:5;display:flex;align-items:center;gap:12px;padding:10px 16px;background:var(--bg);border-bottom:1px solid var(--line)}.topbar-title{font-weight:600;color:var(--muted)}.link-btn{border:0;background:none;padding:4px 0;color:var(--accent);font-weight:600}.link-btn.danger{color:var(--bad);align-self:flex-start;font-size:.9rem}.btn{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:12px 18px;font-weight:600;min-height:48px}.btn:disabled{opacity:.5}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn-wide{width:100%}.btn-big{flex:1;min-height:72px;font-size:1.1rem}.chip{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:.75rem;font-weight:600;background:var(--bg);color:var(--muted);border:1px solid var(--line);white-space:nowrap}.chip-ask{background:var(--ask-soft);color:var(--ask);border-color:transparent;margin-left:6px}input,select{width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}label{font-size:.85rem;font-weight:600;color:var(--muted)}.segmented{display:flex;padding:4px;gap:4px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.segmented button{flex:1;border:0;border-radius:9px;padding:10px;background:none;font-weight:600;color:var(--muted)}.segmented button.on{background:var(--accent);color:var(--accent-ink)}.progress{color:var(--muted);font-variant-numeric:tabular-nums}.home{gap:28px}.home-head{display:flex;flex-direction:column;gap:10px;padding-top:12px}.brand{font:700 .9rem var(--font-display);letter-spacing:.04em;color:var(--accent)}.home-head p{color:var(--muted)}.game-section{display:flex;flex-direction:column;gap:10px}.section-head h2{font:700 1.05rem var(--font-display)}.section-head p{color:var(--muted);font-size:.9rem}.game-list{display:flex;flex-direction:column;gap:8px}.game-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:14px 16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);transition:border-color .15s}.game-card:hover{border-color:var(--accent)}.game-title{font-weight:600;font-size:1.05rem}.game-desc{color:var(--muted);font-size:.92rem}.game-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.home-foot{color:var(--muted);font-size:.88rem;border-top:1px solid var(--line);padding-top:14px}.measures{color:var(--accent);font-weight:600}.rules{display:flex;flex-direction:column;gap:10px}.params{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}.params li{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:.95rem}.param-value{font-weight:600;text-align:right}.field-group{display:flex;flex-direction:column;gap:6px}.result-block{display:flex;flex-direction:column;gap:8px}.athlete{font:700 1rem var(--font-display)}.metrics{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.metric{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px}.metric dt{font-size:.8rem;color:var(--muted)}.metric dd{margin:2px 0 0;font-size:1.3rem;font-weight:600;font-variant-numeric:tabular-nums}.metric small{font-size:.8rem;color:var(--muted);font-weight:500}.note{font-size:.9rem;padding:10px 12px;border-radius:10px;background:var(--accent-soft)}.raw summary{cursor:pointer;color:var(--muted);font-size:.9rem}.raw pre{max-height:260px;overflow:auto;font-size:.75rem;padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:10px}.big-number{font:700 2.5rem var(--font-display);font-variant-numeric:tabular-nums}.stroop-stage{height:200px;display:grid;place-items:center;background:var(--stage);border-radius:var(--radius)}.stroop-word{font:700 clamp(1.6rem,9vw,2.6rem) var(--font-display);letter-spacing:.02em}.fixation{color:#8891a5;font-size:2.5rem}.stroop-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stroop-btn{min-height:64px;display:flex;align-items:center;justify-content:center;gap:8px}.status{font:700 1.2rem var(--font-display);min-height:1.6em}.status.ok{color:var(--ok)}.status.bad{color:var(--bad)}.corsi-board{position:relative;width:100%;max-width:100%;aspect-ratio:1;background:var(--stage);border-radius:var(--radius)}.corsi-block{position:absolute;width:15%;aspect-ratio:1;border:0;border-radius:10px;background:#3a4560;transition:background .1s,transform .1s}.corsi-block.lit{background:var(--stroop-yellow);transform:scale(1.06)}.corsi-board.active .corsi-block:active{background:var(--stroop-blue)}.corsi-block.tapped{background:#5b6a8f}.reaction-field{position:relative;height:52vh;min-height:280px;border-radius:var(--radius);background:var(--stage);display:grid;place-items:center;touch-action:manipulation;-webkit-user-select:none;user-select:none}.reaction-field .hint{color:#8891a5}.false-start{display:flex;flex-direction:column;align-items:center;gap:12px;color:var(--stroop-red);font-size:1.2rem}.target{width:110px;height:110px;border-radius:50%;background:var(--stroop-green)}.target.left{justify-self:start;margin-left:12%}.target.right{justify-self:end;margin-right:12%}.choice-buttons{flex-wrap:nowrap}.schulte-grid{display:grid;gap:4px;width:100%;max-width:100%;aspect-ratio:1}.schulte-cell{border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:clamp(1.1rem,5.5vw,1.6rem);font-weight:600;font-variant-numeric:tabular-nums;touch-action:manipulation;-webkit-user-select:none;user-select:none}.schulte-cell.wrong{background:var(--bad);color:#fff}.duel{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;background:var(--bg);touch-action:none;-webkit-user-select:none;user-select:none}.duel-half{position:relative;flex:1;overflow:hidden;background:var(--duel-a)}.duel-half.flipped{transform:rotate(180deg);background:var(--duel-b);border-bottom:2px solid var(--line)}.duel-info{position:absolute;left:16px;right:16px;bottom:calc(12px + env(safe-area-inset-bottom,0px));display:flex;justify-content:space-between;font-weight:600;color:var(--muted)}.duel-half.flipped .duel-info{bottom:calc(12px + env(safe-area-inset-top,0px))}.duel-dot{position:absolute;width:68px;height:68px;margin:-34px 0 0 -34px;border:0;border-radius:50%;background:var(--accent)}.duel-time{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;font:700 2rem var(--font-display);font-variant-numeric:tabular-nums}.duel-time.warn{color:var(--bad)}.duel-exit{position:absolute;top:50%;right:12px;transform:translateY(-50%);border:1px solid var(--line);border-radius:999px;padding:6px 14px;background:var(--surface);font-size:.85rem;font-weight:600}.group-setup{display:flex;flex-direction:column;gap:12px}.setup-card{display:flex;flex-direction:column;gap:6px;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.session-code{display:flex;align-items:baseline;justify-content:space-between;padding:14px 16px;border-radius:var(--radius);background:var(--ink);color:var(--bg)}.session-code b{font:700 2rem var(--font-display);letter-spacing:.15em;font-variant-numeric:tabular-nums}.board{display:flex;flex-direction:column;gap:10px}.board-col{padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);display:flex;flex-direction:column;gap:8px}.board-col h2{font-size:1rem}.board-col header p{color:var(--muted);font-size:.9rem}.answers{margin:0;padding-left:1.4em;display:flex;flex-direction:column;gap:4px}.task-card{padding:18px;border-radius:var(--radius);background:var(--accent-soft);display:flex;flex-direction:column;gap:6px}.task-topic{font:700 1.6rem var(--font-display)}.answer-form{display:flex;gap:8px}.answer-form input{flex:1;min-width:0}.croc-head{display:flex;gap:10px;align-items:center}.word-reveal{flex:1;min-height:52px;border:1px dashed var(--accent);border-radius:12px;background:var(--accent-soft);font-weight:600;user-select:none;-webkit-user-select:none;touch-action:none}.timer{font:700 1.2rem var(--font-display);font-variant-numeric:tabular-nums;min-width:3.5em;text-align:right}.timer.warn{color:var(--bad)}.croc-canvas{width:100%;height:50vh;min-height:260px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);touch-action:none}.croc-tools{display:flex;justify-content:space-between;align-items:center;gap:10px}.palette{display:flex;flex-wrap:wrap;gap:8px}.color{width:36px;height:36px;border-radius:50%;border:3px solid var(--surface);box-shadow:0 0 0 1px var(--line)}.color.on{box-shadow:0 0 0 3px var(--accent)}@media(prefers-reduced-motion:reduce){*{transition:none!important}}.app-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px}.auth-page{gap:24px}.form{display:flex;flex-direction:column;gap:16px}.field{display:flex;flex-direction:column;gap:6px}.field-hint{color:var(--muted);font-size:.85rem}.check{display:flex;align-items:flex-start;gap:10px;font-size:.95rem;font-weight:400;color:var(--ink)}.check input{width:22px;min-height:22px;height:22px;margin:1px 0 0;flex:none;accent-color:var(--accent)}.form-error{color:var(--bad);font-weight:600}.card{display:flex;flex-direction:column;gap:14px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.invite-result{display:flex;flex-direction:column;gap:8px}a.game-card{color:inherit;text-decoration:none}a.btn{display:inline-flex;align-items:center;justify-content:center;color:inherit;text-decoration:none}a.link-btn{text-decoration:none}:root{--series-current: #2a78d6;--series-previous: #eb6834}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--series-current: #3987e5;--series-previous: #d95926}}:root[data-theme=dark]{--series-current: #3987e5;--series-previous: #d95926}.check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:1rem;font-weight:500;color:var(--ink);cursor:pointer}.check input{width:22px;min-height:22px;height:22px;padding:0;flex:none;accent-color:var(--accent)}.assign-form{display:flex;flex-direction:column;gap:8px}.athlete-picker{margin:8px 0;padding:0;border:0;display:flex;flex-direction:column}.athlete-picker legend{font-size:.85rem;font-weight:600;color:var(--muted);margin-bottom:4px}.athlete-picker .check:first-of-type{border-bottom:1px solid var(--line)}.batch{border-top:1px solid var(--line);padding-top:10px}.batch summary{display:flex;flex-direction:column;gap:2px;cursor:pointer;list-style:none}.batch summary::-webkit-details-marker{display:none}.batch-title{font-weight:600}.status-list,.team-list,.history-list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column}.status-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:40px;border-bottom:1px solid var(--line)}.chip-done{color:var(--ok);border-color:currentColor}.team-list li a{display:flex;align-items:center;min-height:44px;border-bottom:1px solid var(--line);color:var(--accent);text-decoration:none;font-weight:600}.game-card.assigned{border-color:var(--accent)}.trend{font-weight:700;padding:10px 12px;border-radius:10px;background:var(--accent-soft)}.trend-better{color:var(--ok)}.trend-worse{color:var(--bad)}.trend-chip{font-size:.8rem;font-weight:600}.save-state{font-size:.9rem;color:var(--muted)}.save-state.saved{color:var(--ok)}.save-state.queued{padding:10px 12px;border-radius:10px;background:var(--ask-soft);color:var(--ask);font-weight:600}.save-state.failed{display:flex;flex-direction:column;gap:8px;color:var(--bad);font-weight:600}.history{display:flex;flex-direction:column;gap:18px}.history-game h3{margin:0;font-size:1rem}.history-list li{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-bottom:1px solid var(--line);font-size:.95rem}.history-value b{font-variant-numeric:tabular-nums}.radar{margin:0;display:flex;flex-direction:column;gap:12px}.radar svg{width:100%;max-width:420px;align-self:center}.radar figcaption{display:flex;flex-direction:column;gap:10px}.radar-grid{fill:none;stroke:var(--line);stroke-width:1}.radar-label{font-size:15px;font-weight:600;fill:var(--ink)}.radar-value{font-weight:500;fill:var(--muted)}.radar-series polygon{stroke-width:2;stroke-linejoin:round}.radar-series circle{stroke:var(--surface);stroke-width:2}.radar-series.current polygon{fill:color-mix(in srgb,var(--series-current) 18%,transparent);stroke:var(--series-current)}.radar-series.current circle{fill:var(--series-current)}.radar-series.previous polygon{fill:none;stroke:var(--series-previous);stroke-dasharray:6 4}.radar-series.previous circle{fill:var(--series-previous)}.radar-legend{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:.9rem}.legend-item{display:inline-flex;align-items:center;gap:6px}.legend-swatch{width:18px;height:0;border-top:3px solid var(--series-current)}.legend-swatch.previous{border-top:3px dashed var(--series-previous)}.radar-table{width:100%;border-collapse:collapse;font-size:.9rem}.radar-table th,.radar-table td{text-align:left;padding:6px 4px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}.radar-table th{color:var(--muted);font-weight:600}.radar-table small{display:block;color:var(--muted);font-size:.75rem}.round-editor{display:flex;flex-direction:column;gap:12px}.placement-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap;margin-top:8px}.placement-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.placement-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid var(--line)}.placement-list label{flex:1;min-width:0;overflow-wrap:anywhere}.placement-list select{flex:0 1 50%;min-width:0}.placement-list select.absent{color:var(--muted)}.round{display:flex;flex-direction:column;gap:10px}.board-col h3{font-size:1rem}.members{color:var(--muted);font-size:.9rem;overflow-wrap:anywhere}.batch .board{margin-top:10px}.code-input{font:700 1.4rem var(--font-display);letter-spacing:.2em;text-align:center;font-variant-numeric:tabular-nums}.group-answers li{overflow-wrap:anywhere}.group-answers li>span+*{margin-left:10px}.danger-btn{color:var(--bad);border-color:var(--bad)}.summary-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.summary-list li{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:10px 0;border-top:1px solid var(--line)}.summary-list li>.muted{grid-column:1 / -1;font-size:.9rem}.summary-title{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-weight:600}.summary-value{font:700 1.4rem var(--font-display);font-variant-numeric:tabular-nums}
