:root {
 color-scheme: light;
 --bg:#f5f2ea; --panel:#fffdf8; --ink:#22352b; --muted:#60695f;
 --gold:#74551e; --accent:#24543f; --line:#d8ddd2; --red:#a03329;
 font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);min-height:100svh}
header{max-width:720px;margin:auto;padding:24px 22px 0;display:flex;align-items:center;justify-content:space-between;gap:16px}
.logo{background:none;border:0;padding:0;min-width:90px;min-height:70px;cursor:pointer;touch-action:manipulation}
.logo img{width:125px;height:80px;object-fit:contain}
.event{font-size:10px;font-weight:600;letter-spacing:.12em;color:var(--gold);text-align:right;line-height:1.9}
.event span{display:block;color:var(--muted);font-size:10px;letter-spacing:.05em}
main{max-width:640px;margin:auto;padding:38px 22px 48px;min-height:60svh}
.eyebrow{font-size:11px;font-weight:700;letter-spacing:.1em;color:var(--muted);margin:0 0 16px}
h1,h2,h3,p{margin-top:0}
h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;line-height:1.12;letter-spacing:-.035em}
h1{font-size:clamp(36px,8.4vw,52px);margin-bottom:28px;text-wrap:balance}
h2{font-size:30px;margin-bottom:18px}
h3{font-size:17px;font-weight:650;margin-bottom:14px}
p{line-height:1.6}
.card{background:var(--panel);padding:24px;border-radius:18px;box-shadow:0 1px 2px #22352b08,0 6px 24px #22352b05;margin:18px 0 20px}
.muted{color:var(--muted)}
small{font-size:12px;color:var(--muted);line-height:1.5}
label{display:block;font-size:14px;font-weight:600;margin-bottom:9px}
input,select{width:100%;font:inherit;font-size:16px;color:var(--ink);background:#fff;border:1px solid #889184;border-radius:10px;min-height:50px;padding:12px;margin-bottom:24px}
input::placeholder{color:#687261}
input[type=checkbox]{width:22px;min-height:22px;margin:0;accent-color:var(--accent)}
button,a.button{font:inherit;min-height:48px;border-radius:10px;padding:12px 16px;font-size:14px;font-weight:600;cursor:pointer;border:1px solid transparent;color:inherit;touch-action:manipulation;transition:transform .12s,background-color .12s}
button:active{transform:scale(.96)}
button:disabled{opacity:.55;cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.primary{width:100%;background:var(--accent);color:#fff;font-weight:650}
.primary:hover{background:#1c4533}
.secondary{background:#edf0e9;border-color:#879280}
.quiet{background:transparent;color:var(--muted);text-decoration:underline;text-underline-offset:4px}
.danger{background:#f8e9e4;color:#963025;border-color:#d4a197}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.teams{margin:12px 0 24px}
.team{border-radius:10px;padding:13px 12px;min-height:54px;position:relative;display:flex;gap:9px;align-items:center;text-align:left;background:#fff;border:1px solid #9ca596}
.team[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);background:#e9f0e8}
.team[aria-pressed=true]:after{content:'✓';margin-left:auto;color:var(--accent)}
.dot{width:13px;height:13px;min-width:13px;border-radius:50%;border:1px solid #61715f;display:inline-block;vertical-align:middle}
.noir{background:#242b27}.blanc{background:#fff}.vert{background:#538863}.pourpre{background:#995272}
.team span:last-child{font-size:12px}
.pill{display:inline-flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid #c2cbbd;border-radius:50px;font-size:12px;color:#4f5d4f;margin-bottom:22px;background:#fff9;max-width:100%;overflow-wrap:anywhere}
.row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.stack{display:flex;flex-wrap:wrap;gap:8px}.stack>*{flex:1}
.stat{font-family:Georgia,serif;font-size:42px;color:var(--accent);line-height:1}
.waiting{padding:26px 0 34px}
.waiting h2{font-size:26px}
.waiting p{margin-bottom:0}
.question{font-size:clamp(25px,6vw,34px);line-height:1.25;margin-bottom:24px}
.choice{width:100%;display:flex;gap:14px;align-items:center;text-align:left;background:var(--panel);border:1px solid #a0aa98;margin-bottom:12px;min-height:68px;font-size:16px;line-height:1.4}
.choice b{display:grid;place-content:center;min-width:32px;height:32px;border:1px solid #9ba591;border-radius:8px;font-size:13px;color:var(--muted);font-weight:600}
.choice.selected{border-color:var(--accent);background:#e9f0e8;box-shadow:0 0 0 1px var(--accent)}
.choice.correct{border-color:#608469;background:#e2efe4}
.choice.correct b{color:#205136;border-color:#608469}
.choice.wrong{border-color:#ac6b60;background:#fae8e4}
.choice:disabled{opacity:1}
.choice small{color:inherit}
.timer{font-variant-numeric:tabular-nums;font-size:20px;font-weight:700;color:var(--accent)}
.progress{height:3px;background:#dbe1d5;border-radius:5px;margin:12px 0 26px;overflow:hidden}
.progress>div{height:100%;background:var(--accent);width:100%;transform-origin:left}
#answer-status{font-size:14px;margin-top:18px}
#answer-status:empty{display:none}
.podium{margin:30px 0}
.section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:4px}
.section-heading h3{font-family:Georgia,serif;font-size:26px;font-weight:400;letter-spacing:-.03em;margin-bottom:6px}
.section-heading>span{font-size:12px;color:var(--muted)}
.board{padding:0;list-style:none;margin:0}
.board li{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}
.board .rank{width:22px;color:var(--gold);font-family:Georgia,serif;font-size:24px}
.board .who{flex:1;min-width:0;overflow-wrap:anywhere}
.board strong{font-variant-numeric:tabular-nums;font-size:18px;font-weight:650;white-space:nowrap}
.board small{display:block;font-size:11px;font-weight:400}
.board .who small{margin-top:2px}
.team-heading{margin:30px 0 0;color:var(--muted);font-size:14px}
.adminbar{padding-bottom:14px;margin-bottom:24px;border-bottom:1px solid var(--line)}
.adminbar .eyebrow{margin:0}
details{background:var(--panel);padding:18px;border-radius:12px;margin:14px 0}
summary{min-height:30px;cursor:pointer;font-weight:600;font-size:14px}
.score-rules{padding:0;background:transparent;margin-top:22px;color:var(--muted)}
.score-rules summary{font-size:12px;font-weight:400}
.score-rules p{font-size:13px;margin:8px 0 0;max-width:440px}
.setting{padding:18px 0;border-bottom:1px solid var(--line)}
.setting label{display:flex;gap:12px;align-items:flex-start;line-height:1.5}.setting select{margin-bottom:0}
.participant{padding:16px 0;border-bottom:1px solid var(--line)}
.participant .row{margin-bottom:12px}.participant strong{overflow-wrap:anywhere}.participant select{margin-bottom:8px}.participant button{font-size:12px;padding:10px}
.note{font-size:13px;line-height:1.6;margin:16px 0;color:var(--muted)}
.error{color:var(--red);font-size:13px}
.connected{font-size:12px;color:var(--muted);margin:16px 0}.connected:empty{display:none}
.button{display:block;text-decoration:none;text-align:center}
dialog{width:min(90vw,390px);padding:28px;background:var(--panel);color:var(--ink);border:1px solid #c2cbbd;border-radius:18px;box-shadow:0 20px 80px #22352b26}
dialog::backdrop{background:#24372b66}
dialog .quiet{width:100%;margin-top:8px}
#pin{font-size:28px;letter-spacing:.4em;text-align:center}
#toast{position:fixed;bottom:calc(20px + env(safe-area-inset-bottom));left:20px;right:20px;max-width:550px;margin:auto;padding:14px 18px;background:var(--ink);color:#fff;border-radius:12px;box-shadow:0 4px 30px #22352b26;display:none;z-index:20;font-size:14px}#toast.show{display:block}
fieldset{margin:0;padding:0;border:0}legend{font-size:14px;font-weight:600;margin-bottom:4px}.hidden{display:none!important}
@media(min-width:600px){header{padding-top:30px}main{padding-top:42px}.logo img{width:145px;height:90px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}button:active{transform:none}}
@media(max-width:350px){main{padding-left:16px;padding-right:16px}.card{padding:18px}.team{padding:12px 8px;gap:6px}}
