@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Inter:wght@500;600;700;800;900&family=Roboto+Mono:wght@700&display=swap');
:root{--broadcast-paper:#f4f1ea;--broadcast-card:#fff;--broadcast-ink:#171717;--broadcast-orange:#f26722}
body{background:var(--broadcast-paper)!important;color:var(--broadcast-ink)!important;font-family:Inter,Arial,Helvetica,sans-serif!important}
.app-shell{max-width:1460px!important}
#gameView{background:#ece8df!important}
#gameView .route-banner,#gameView aside,#gameView .stage article,#gameView .answer{box-shadow:0 6px 22px rgba(23,23,23,.07)!important}
#gameView .stage{grid-template-areas:"meta meta" "rail rail" "question answer" "timer controls" "hint controls"!important;row-gap:9px!important}
#gameView .stage .meta{justify-content:flex-end!important;min-height:20px!important}
.question-rail{grid-area:rail;display:grid;grid-template-columns:minmax(90px,max-content) minmax(0,1fr) 178px;align-items:center;gap:10px;min-height:50px;overflow:visible}
.question-rail #categoryLabel{height:36px;margin:0!important;padding:0 12px!important;border:0!important;border-radius:9px!important;background:var(--broadcast-ink)!important;color:#fff!important;font-family:Inter,Arial,sans-serif!important;font-size:.72rem!important}
.question-rail #activePlayerLabel{min-width:0;max-width:100%;height:50px;margin:0!important;padding:0 10px!important;overflow:hidden;text-overflow:clip;white-space:normal;color:var(--broadcast-ink)!important;font-family:Inter,Arial,sans-serif!important;font-size:.82rem!important;font-weight:800!important;line-height:1.15!important;display:flex;align-items:center;justify-content:center;text-align:center;align-self:center!important}
.question-rail .value{justify-self:end!important;margin:0!important;position:relative;z-index:2;background:#fff!important}
.question-rail .value{width:178px!important;min-width:178px!important}
.question-rail.resolved{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:50px!important;height:50px!important;min-height:50px!important;max-height:50px!important;overflow:hidden!important}
.question-rail.resolved #categoryLabel,.question-rail.resolved .value{display:none!important}
.question-rail.resolved #activePlayerLabel{grid-column:1!important;grid-row:1!important;width:100%!important;height:50px!important;padding:0 16px!important;overflow:hidden!important;white-space:normal!important;text-align:center!important;font-size:clamp(.82rem,1.1vw,1rem)!important;line-height:1.15!important}
#gameView .stage article#questionText{font-family:'Atkinson Hyperlegible',Arial,Helvetica,sans-serif!important;font-weight:700!important;letter-spacing:0!important}
.timer #timerDisplay{min-width:2.3ch;font-family:'Roboto Mono',monospace!important;font-variant-numeric:tabular-nums;letter-spacing:-.05em}
#gameView #gameControls button{display:flex!important;align-items:center;justify-content:center;gap:6px}
#gameView #gameControls button.hidden{visibility:hidden!important}
.state-icon{font-size:1rem;font-weight:900;line-height:1}
#gameView .score-row strong,#gameView .value strong{font-variant-numeric:tabular-nums}
#presentationToggle{border:1px solid #171717;border-radius:9px;background:#fff;color:#171717;padding:9px 12px;font-family:Inter,Arial,sans-serif;font-weight:800;cursor:pointer}
body:has(#gameView.hidden) #presentationToggle{display:none}
body.presentation-mode{overflow:auto;background:#ece8df!important}
body.presentation-mode .app-shell{max-width:none!important;padding:10px 14px!important}
body.presentation-mode header{height:0!important;padding:0!important;border:0!important}
body.presentation-mode header>*{display:none!important}
body.presentation-mode header #presentationToggle{display:block!important;position:fixed;top:8px;right:9px;z-index:40;background:#171717;color:#fff;border-color:#fff;opacity:.72}
body.presentation-mode #gameView{max-width:none!important;margin-top:0!important}
body.presentation-mode #backSetup,body.presentation-mode .hint{display:none!important}
#gameView .stage:has(.final-splash) .question-rail{grid-area:player;min-height:28px}
#gameView .stage:has(.final-splash) .question-rail #categoryLabel{display:none!important}
#gameView .stage:has(.final-splash) .question-rail #activePlayerLabel{padding:0!important}
@media(max-width:1050px){.question-rail{grid-template-columns:1fr 178px;grid-template-rows:36px 28px;gap:5px 8px;min-height:69px}.question-rail #categoryLabel{grid-column:1;grid-row:1;justify-self:start}.question-rail .value{grid-column:2;grid-row:1;width:178px!important}.question-rail #activePlayerLabel{grid-column:1/-1;grid-row:2;height:28px;padding:0!important;white-space:normal}}
@media(max-width:1050px){.question-rail.resolved{grid-template-rows:69px!important;height:69px!important;min-height:69px!important;max-height:69px!important}.question-rail.resolved #activePlayerLabel{height:69px!important;white-space:normal!important}}
@media(max-width:850px){#gameView .stage{grid-template-areas:"meta" "rail" "question" "answer" "timer" "controls" "hint"!important}.question-rail{grid-template-columns:1fr 178px}.presentation-mode #presentationToggle{font-size:0}.presentation-mode #presentationToggle::first-letter{font-size:1rem}}
