/* Screen treatment based on the saved Figma board's green/pale palette.
   System typography; no substitute logo, fabricated brand artwork or external fonts. */
:root{--text:#153322;--muted:#4f6655;--card:#fffef9;--border:#b6c9ad;--line:#e0e9d7;--ok:#1c663b;--okbg:#e6f4dc;--warn:#80500c;--danger:#9d2727}
body{background:var(--background);color:var(--text);font-size:17px;line-height:1.5}
[hidden]{display:none!important}
header{background:var(--primary);color:#f3ffda;gap:16px;padding:22px clamp(18px,4vw,52px);border-bottom:1px solid #ffffff25}
header h1{font-size:clamp(19px,2.4vw,30px);font-weight:750;letter-spacing:-.025em;line-height:1.25}
#connection{color:#eff7e1;display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:650}
#connection::before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}
#connection.ok{color:#e3ffc4}#connection.warn{color:#ffe8a5}
main{max-width:1000px;padding:30px 20px 48px}
section{border:1px solid var(--line);border-radius:22px;padding:clamp(20px,3.5vw,34px);box-shadow:0 10px 28px #183d1810}
h2{letter-spacing:-.025em;font-size:clamp(22px,3vw,30px);line-height:1.2}h3{font-size:18px}
.round{text-transform:uppercase;font-size:12px;letter-spacing:.06em;font-weight:750;color:var(--muted);margin-bottom:16px}
.question{font-size:clamp(22px,3vw,30px);font-weight:700;line-height:1.3;margin-bottom:18px}
.timer{display:inline-flex;align-items:center;min-width:90px;min-height:58px;background:var(--background);border:1px solid var(--border);border-radius:16px;padding:4px 18px;font-size:36px;line-height:1.1;margin:4px 0 18px}
.timer.paused{border-color:#c99244;background:#fff2d6}.timer.over{font-size:18px;background:var(--line);color:var(--text)}
label{font-size:15px}.muted{font-size:15px;line-height:1.5}
input,select{min-height:54px;border-radius:12px;background:#fff;border-width:1.5px;padding:12px 14px}
button{font-weight:650;border-width:1.5px;transition:background-color .15s,border-color .15s}
button.primary{background:var(--primary);color:#f3ffda;min-height:54px;box-shadow:0 3px 0 #0e2816}
button:disabled{opacity:.65}.options{gap:12px}
.option{min-height:72px;background:#fff;border-radius:16px;padding:15px;line-height:1.3;font-weight:550;box-shadow:none}
.option b{border-radius:10px;background:var(--background);color:var(--primary);width:34px;height:34px;font-weight:750}
.option.chosen{border-color:var(--primary);background:#e8f4d9}.option.right{border-color:var(--ok);background:var(--okbg)}
.option.right b{color:#fff}.done,.note{display:block;padding:14px 16px;border-radius:12px;background:var(--okbg);font-size:16px;line-height:1.4}
.note{background:#fff1d7;border:1px solid #dfbd84;color:#704107}
.me{padding:12px 14px;border:1px solid var(--line);font-size:14px;margin-bottom:22px}
.answer{border-top:2px solid var(--border);padding-top:12px}.qimg{object-fit:contain;border-radius:14px;max-height:38vh;max-width:100%;width:auto}
.board h2{font-size:22px}.board table{margin-top:16px}td,th{padding:12px 7px;overflow-wrap:anywhere}td.name{min-width:0}
tr.mine td{border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
body.player:not([data-joined=true]) main{max-width:620px;margin-top:clamp(12px,6vh,70px)}
body.player:not([data-joined=true]) #screen,body.player:not([data-joined=true]) #rankings{display:none}
body[data-final=true] #screen{border-top:6px solid var(--primary)}
body[data-final=true] .personal-board tbody tr:first-child td{background:var(--background);font-weight:800;font-size:1.1em}
body.host .badge{background:#f3ffda;color:var(--primary);font-weight:750;border-radius:8px}
body.host main{max-width:1280px}.host .status{background:var(--primary);color:#f3ffda;border:0}.host .status .timer{background:#f3ffda;color:var(--primary);margin:0}
.host details#answerKey{background:#f5f3ff;padding:10px 16px;border:1px solid #c9c0db;border-radius:12px}
.host .actions{border-top:1px solid var(--line);padding-top:22px;margin-top:22px}.host .actions button{min-height:54px;flex:1 1 180px}
.host .rounds button{padding:15px}.host .tools{box-shadow:none}.host .release-note{margin-bottom:0}
body.broadcast main{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr);gap:22px;max-width:1800px;padding:26px 32px}
body.broadcast #error{grid-column:1/-1}body.broadcast section{margin:0;padding:26px}
body.broadcast #rankings:not(:empty){display:flex;flex-direction:column;gap:26px}
body.broadcast .board+.board{margin-top:0}body.broadcast .board h2{font-size:23px}
body.broadcast .question{font-size:clamp(26px,2.3vw,40px)}body.broadcast .timer{font-size:48px}
body.broadcast .option{font-size:22px;min-height:80px}body.broadcast .option b{width:36px;height:36px;font-size:19px}
body.broadcast table{font-size:18px}body.broadcast th{font-size:13px}body.broadcast td{padding:9px 5px}
body.broadcast .qimg{max-height:34vh}body.broadcast .qr{width:250px}body.broadcast .round{font-size:14px}
body.broadcast[data-phase=leaders] #screen{grid-column:1/-1}body.broadcast[data-phase=leaders] #rankings{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}
@media(max-width:719px){header{padding:18px 20px;gap:9px}main{padding:18px 12px 28px}section{border-radius:18px;padding:21px 18px}.me{gap:8px}.timer{min-height:52px;font-size:30px}.option{min-height:66px}.board h2{font-size:21px}td,th{padding:11px 4px}.host .status .phase{font-size:19px}.host .actions button{flex-basis:100%}.host .badge{order:3}body.broadcast main{display:block}.broadcast section{margin-bottom:20px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
