:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#172033;background:#f4f7fb;--ink: #172033;--muted: #667085;--panel: #ffffff;--line: #dbe2ec;--primary: #3157d5;--primary-dark: #1d3da8;--shadow: 0 16px 40px rgb(25 45 82 / 8%)}*{box-sizing:border-box}body{margin:0;min-width:320px;background:#f4f7fb}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.page{width:min(1160px,calc(100% - 32px));margin:0 auto;padding:32px 0 64px}.centered-page{min-height:100vh;display:grid;place-items:center}.hero-card,.panel,.player-card{background:var(--panel);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:28px}.hero-card{width:min(460px,100%);text-align:center}.narrow-panel{width:min(480px,100%)}.eyebrow{margin:0 0 8px;color:var(--primary);font-size:.78rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}h1,h2,h3{margin-top:0;color:var(--ink)}h1{font-size:clamp(2rem,4vw,3.4rem);line-height:1.05}h2{font-size:1.25rem}.lede,.muted{color:var(--muted);line-height:1.6}.stack-form{display:grid;gap:10px;text-align:left}label{font-size:.85rem;font-weight:700}input,select{width:100%;border:1px solid var(--line);border-radius:12px;padding:13px 14px;color:var(--ink);background:#fff}.primary-button,.secondary-button{border:0;border-radius:12px;padding:13px 18px;font-weight:800}.primary-button{color:#fff;background:var(--primary)}.primary-button:hover{background:var(--primary-dark)}.button-link{display:inline-flex;justify-content:center;text-decoration:none}.secondary-button{color:var(--primary-dark);background:#e8edff}.text-link{display:inline-block;margin-top:20px;color:var(--primary-dark);font-weight:700}.error-text{color:#b42318;font-weight:700}.page-header,.topbar,.projector-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.access-badge,.connection{border-radius:999px;padding:7px 11px;font-size:.78rem;font-weight:800;white-space:nowrap}.access-badge{color:#0d6b4c;background:#dff7eb}.auth-panel{margin-bottom:20px;border-color:#e4b95f;background:#fff9e8}.auth-origin{overflow-wrap:anywhere;font-size:.8rem}.active-games-panel{margin-bottom:20px}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.section-heading h2{margin-bottom:6px}.active-game-list{list-style:none;padding:0;margin:0}.active-game-list li{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.active-game-list li:last-child{border-bottom:0}.active-game-info{display:grid;gap:4px;min-width:0}.active-game-info span{color:var(--muted);font-size:.82rem}.active-game-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.danger-button{border:0;border-radius:12px;padding:13px 18px;color:#fff;background:#b42318;font-weight:800}.danger-button:hover{background:#8f1d14}.connection-open{color:#0d6b4c;background:#dff7eb}.connection-connecting,.connection-closed{color:#8a5a00;background:#fff2cc}.dashboard-grid,.control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:20px}.control-row{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}.bank-list,.player-list,.leaderboard{list-style:none;padding:0;margin:0}.bank-list li,.player-list li,.leaderboard li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.bank-list li:last-child,.player-list li:last-child,.leaderboard li:last-child{border-bottom:0}code{color:var(--muted);font-size:.75rem}.online-dot,.offline-dot{width:8px;height:8px;border-radius:50%;margin-right:6px;background:#16a36b;display:inline-block}.offline-dot{background:#98a2b3}.room-code-large,.room-pill{color:var(--primary);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.12em}.room-pill{background:#e8edff;border-radius:10px;padding:8px 12px}.player-page{max-width:720px}.player-answer-page{width:min(100% - 20px,720px);height:100dvh;min-height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr);gap:8px;overflow:hidden;padding:max(12px,2vh) 0 max(12px,2vh)}.player-answer-page .topbar{margin-bottom:0}.player-answer-page .player-card{min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:clamp(14px,2.5vh,28px)}.player-answer-page .player-score{display:none}.player-card{text-align:center}.fit-text{display:block;min-width:0;min-height:0;max-width:100%;overflow:hidden;overflow-wrap:anywhere}.player-question{flex:0 1 auto;max-height:30%;margin-bottom:clamp(8px,1.5vh,18px);overflow:hidden;overflow-wrap:anywhere;font-size:clamp(1rem,min(6vw,4.8vh),2.7rem);line-height:1.08}.question-number{color:var(--muted);font-weight:800}.answer-grid{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(8px,1.5vh,12px);margin-top:clamp(8px,1.5vh,24px)}.answer-button{min-height:0;display:grid;place-items:center;gap:6px;border:0;border-radius:18px;padding:clamp(10px,2vw,16px);color:#fff;font-weight:800;box-shadow:0 8px 18px #0000001f}.answer-button:active{transform:translateY(2px)}.answer-label{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:clamp(.78rem,min(2.8vw,2.5vh),1.25rem);line-height:1.15;text-align:center;text-wrap:balance}.answer-submitted{flex:0 0 auto;margin:8px 0 0}.answer-red{background:#dd4f4f}.answer-blue{background:#3d73d9}.answer-yellow{color:#3b2a00;background:#f5c84b}.answer-green{background:#1b9a68}.player-score{margin-top:20px;color:var(--muted)}.buzzer-button{width:min(280px,90%);aspect-ratio:1;border:12px solid #f4b5be;border-radius:50%;color:#fff;background:#dc3545;font-size:2rem;font-weight:900;box-shadow:0 14px 30px #dc35454d}.jeopardy-board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;overflow-x:auto}.category-editor{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:18px}.category-editor label{display:grid;gap:6px;color:var(--muted);font-size:.75rem}.category-editor input{padding:9px 10px;font-size:.85rem}.jeopardy-board section{min-width:120px}.jeopardy-board h3{min-height:52px;display:grid;place-items:center;padding:8px;color:#fff;background:#172d69;font-size:.85rem;text-align:center}.jeopardy-board button{width:100%;min-height:60px;margin-top:8px;border:0;border-radius:8px;color:#fff;background:#3157d5;font-weight:900}.projector-page{position:relative;width:100%;height:100dvh;min-height:100dvh;overflow:hidden;display:flex;flex-direction:column;padding:clamp(12px,3vh,28px) 4vw;color:#fff;background:#0d1426}.projector-header{flex:0 0 auto;color:#c8d3f5;margin-bottom:clamp(8px,2vh,24px)}.projector-header span:first-child{color:#fff;font-weight:800}.projector-content{flex:1 1 auto;min-height:0;display:grid;place-items:center;overflow:hidden;padding-bottom:22px}.projector-center{max-width:100%;text-align:center}.projector-center h1{color:#fff}.projector-code{color:#8ea7ff;font-family:ui-monospace,monospace;font-size:clamp(5rem,18vw,12rem);font-weight:900;letter-spacing:.15em}.projector-question{width:min(1100px,100%);height:100%;max-height:100%;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr) minmax(0,2fr) auto;gap:clamp(6px,1.2vh,14px);overflow:hidden;text-align:center}.question-countdown-placeholder{min-height:0}.projector-prompt{margin:0;color:#fff;font-size:clamp(1rem,min(5vw,6vh),5rem);line-height:1.08}.projector-question .question-countdown{width:100%;margin:0}.projector-question .countdown-label-row strong{font-size:clamp(1.6rem,5vh,3rem)}.projector-options{min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:clamp(8px,1.5vh,16px);margin-top:0}.projector-option{min-height:0;overflow:hidden;display:flex;gap:clamp(8px,1.5vw,14px);align-items:center;padding:clamp(8px,1.8vh,18px);border-radius:16px;color:#fff;background:#1b2947;font-size:clamp(.78rem,min(2vw,3vh),1.5rem);line-height:1.15;text-align:left}.projector-option-label{flex:1 1 auto;width:0;font-size:inherit}.projector-option strong{flex:0 0 auto;display:grid;place-items:center;width:clamp(30px,5vh,42px);height:clamp(30px,5vh,42px);border-radius:50%;color:#0d1426;background:#8ea7ff}.reveal-banner{overflow:hidden;margin-top:0;padding:clamp(8px,1.5vh,16px);border-radius:12px;color:#10220f;background:#9ee6a5;font-size:clamp(.85rem,min(2vw,2.5vh),1.2rem);font-weight:900}.question-countdown{width:min(720px,100%);margin:0 auto 24px}.projector-reveal{width:min(1100px,100%);height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);align-items:center;gap:clamp(24px,5vw,72px);overflow:hidden}.projector-reveal-question{margin:0;color:#fff;font-size:clamp(1.1rem,min(4vw,5vh),3.5rem);line-height:1.1}.projector-reveal .reveal-banner{margin-top:clamp(16px,3vh,30px);font-size:clamp(1rem,min(2.5vw,3vh),1.5rem);text-align:center}.projector-reveal-hint{color:#8c9ac4;font-size:clamp(.85rem,2vw,1.1rem)}.projector-leaders{min-width:0;padding:clamp(16px,2vw,28px);border:1px solid #33466f;border-radius:18px;background:#111d35}.projector-leaders h2{margin-bottom:8px;color:#fff}.projector-leaders .leaderboard li{border-color:#2a3a5d;padding:9px 0}.projector-leaders .leaderboard strong{color:#9eb8ff}.countdown-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:16px;color:#c8d3f5;font-size:clamp(1rem,2vw,1.35rem);font-weight:800}.countdown-label-row strong{min-width:2ch;color:#fff;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:clamp(2.6rem,6vw,4.5rem);line-height:1;text-align:right}.countdown-track{height:18px;margin-top:12px;overflow:hidden;border:2px solid #33466f;border-radius:999px;background:#182541}.countdown-fill{height:100%;border-radius:inherit;background:#72a4ff;transition:width .1s linear,background-color .2s ease}.question-countdown-urgent .countdown-label-row strong{color:#ffb4a9}.question-countdown-urgent .countdown-fill{background:#f06a5f}.projector-shortcuts{position:fixed;right:18px;bottom:14px;margin:0;color:#8c9ac4;font-size:.78rem;opacity:.85}@media(max-width:720px){.page{width:min(100% - 20px,620px);padding-top:20px}.hero-card,.panel,.player-card{padding:20px;border-radius:18px}.dashboard-grid,.control-grid{grid-template-columns:1fr}.page-header,.active-game-list li{align-items:flex-start;flex-direction:column}.active-game-actions{justify-content:flex-start;width:100%}.projector-options{grid-template-columns:1fr}.projector-page{padding:12px 16px}.category-editor{grid-template-columns:repeat(2,minmax(0,1fr))}}
