:root{font-family:Inter,sans-serif;color:#f7f2e8;--player-slot-width: 410px;--stage-width: 860px;--arena-gap: 26px;background:radial-gradient(circle at top,rgba(255,197,92,.14),transparent 24%),linear-gradient(180deg,#11151c,#090c11)}*{box-sizing:border-box}body{font-family:Inter,sans-serif;margin:0;min-height:100vh}#root{min-height:100vh}button,input,select,textarea{font:inherit}.app-shell{display:grid;min-height:100vh;place-items:center;padding:8px}.card{width:min(1780px,calc(100vw - 16px));max-height:calc(100vh - 16px);overflow:auto;border:1px solid rgba(247,242,232,.11);border-radius:28px;padding:22px;background:linear-gradient(180deg,#ffffff08,#ffffff03),#0a0d12f0;box-shadow:0 24px 80px #0000006b}.hero,.room-headline,.slot-topline,.actions,.stage-footer{display:flex;gap:14px;align-items:center;justify-content:space-between}.room-headline{justify-content:flex-end;margin-bottom:-2px}.eyebrow,.meta-label,.slot-label{margin:0 0 8px;text-transform:uppercase;letter-spacing:.12em;color:#f3ba46;font-size:12px}h1,h2,h3,p{margin:0}h1{font-size:52px;line-height:1}h2{font-size:25px}h3{font-size:17px;line-height:1.15}.status-pill,.round-state,.slot-badge{border-radius:999px;padding:7px 12px;font-size:14px}.status-pill{background:#f3ba4629;color:#f7f2e8}.hero-actions{display:flex;align-items:center;gap:12px}.host-info-card{position:relative}.host-card-trigger{border:0;cursor:pointer}.host-card-panel{position:absolute;top:calc(100% + 10px);right:0;width:340px;padding:16px;border:1px solid rgba(247,242,232,.1);border-radius:18px;background:linear-gradient(180deg,#ffffff0a,#ffffff05),#0c1016fa;box-shadow:0 22px 50px #00000061;opacity:0;pointer-events:none;transform:translateY(-6px);transition:opacity .18s ease,transform .18s ease;display:grid;gap:12px;z-index:20}.status-info-card{z-index:24}.info-trigger{width:44px;min-width:44px;padding:0;display:grid;place-items:center;font-weight:800}.status-card-panel{width:320px}.status-message-list{display:grid;gap:8px}.host-tab-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.host-tab-button,.score-adjust-button{border:1px solid rgba(247,242,232,.1);border-radius:12px;padding:10px 12px;background:#ffffff08;color:#f7f2e8;cursor:pointer}.host-tab-button.active{border-color:#f3ba4657;background:#f3ba4621}.host-panel-section,.rename-list{display:grid;gap:12px}.host-panel-counter{color:#f7f2e8b8;font-size:15px}.inline-field-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.compact-field{display:grid;gap:8px}.compact-field input,.compact-field select{width:100%;border:1px solid rgba(247,242,232,.14);border-radius:14px;padding:12px 14px;background:#ffffff0a;color:#f7f2e8}.compact-field input:focus,.compact-field select:focus{outline:2px solid rgba(243,186,70,.5);border-color:transparent}.host-panel-actions{display:flex;gap:10px;flex-wrap:wrap}.rename-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.rename-field{min-width:0}.host-info-card:hover .host-card-panel,.host-info-card.open .host-card-panel,.host-info-card:focus-within .host-card-panel{opacity:1;pointer-events:auto;transform:translateY(0)}.panel{margin-top:20px;border:1px solid rgba(247,242,232,.08);border-radius:20px;padding:18px;background:#ffffff08}.field{display:grid;gap:8px;margin-top:14px}.field span,.muted,.host-note,.info-line,.error-line,.slot-status{color:#f7f2e8c2}.field input{width:100%;border:1px solid rgba(247,242,232,.14);border-radius:14px;padding:12px 14px;background:#ffffff0a;color:#f7f2e8}.field input:focus{outline:2px solid rgba(243,186,70,.5);border-color:transparent}.actions{margin-top:18px;justify-content:flex-start;flex-wrap:wrap}.role-picker{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.role-button{border:1px solid rgba(247,242,232,.1);border-radius:14px;padding:12px 14px;background:#ffffff08;color:#f7f2e8;cursor:pointer}.role-button.active{border-color:#f3ba4673;background:#f3ba461f}.role-button:disabled{opacity:.45;cursor:not-allowed}.button,.slot-buzzer{border:0;border-radius:14px;padding:11px 14px;cursor:pointer;transition:transform .15s ease,opacity .15s ease,background .15s ease}.button:hover,.slot-buzzer:hover{transform:translateY(-1px)}.button:disabled,.slot-buzzer:disabled{cursor:not-allowed;opacity:.55;transform:none}.button-primary{background:#f3ba46;color:#181c24;font-weight:700}.button-secondary{background:#f7f2e814;color:#f7f2e8}.quiz-layout{display:grid;grid-template-columns:var(--player-slot-width) minmax(380px,calc(var(--stage-width) / 2)) minmax(380px,calc(var(--stage-width) / 2)) var(--player-slot-width);grid-template-rows:repeat(2,var(--player-slot-height)) auto;column-gap:var(--arena-gap);row-gap:26px;margin-top:22px;align-items:stretch;justify-content:center}.stage-panel{grid-column:2 / 4;grid-row:1 / 3;position:relative;height:calc((2 * var(--player-slot-height)) + 4px);width:100%;max-width:none;border:1px solid rgba(247,242,232,.1);border-radius:26px;padding:26px;background:radial-gradient(circle at top,rgba(255,204,102,.07),transparent 32%),#ffffff08;display:flex;flex-direction:column;justify-content:flex-start;gap:16px}.video-expand-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#05080dc7;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:24}.stage-panel.video-expanded{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(92vw,1680px);height:88vh;max-width:none;z-index:25;margin:0;box-shadow:0 30px 100px #00000073}.question-surface{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:flex-start;gap:10px;overflow:visible;border:1px dashed rgba(247,242,232,.12);border-radius:22px;padding:20px 28px 22px;background:#ffffff04;position:relative}.video-panel{flex:1;min-height:0;display:flex;align-items:stretch;justify-content:center;overflow:hidden;border:1px dashed rgba(247,242,232,.12);border-radius:22px;background:#ffffff04;position:relative}.video-stage-toolbar{display:flex;justify-content:center}.video-player{width:100%;height:100%;min-height:0;display:block;background:#090c11}.video-embed{aspect-ratio:auto}.video-panel-blocker{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;background:transparent}.question-content{display:grid;gap:8px;flex:0 0 auto;align-content:start}.question-header-row{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.host-answer-inline,.host-answer-info{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-left:auto}.host-answer-points,.host-answer-meta{color:#f7f2e8ad;font-size:15px}.host-answer-inline-value{font-size:16px;font-weight:700;color:#f7f2e8;line-height:1.3}.host-answer-tooltip{position:relative}.host-answer-info-button{width:30px;height:30px;border:1px solid rgba(247,242,232,.14);border-radius:999px;padding:0;background:#ffffff0a;color:#f7f2e8;font-weight:700;cursor:default}.host-answer-tooltip-card{position:absolute;top:calc(100% + 12px);right:0;width:280px;display:grid;gap:8px;padding:14px;border-radius:16px;border:1px solid rgba(247,242,232,.12);background:linear-gradient(180deg,#ffffff0a,#ffffff05),#0f1319fa;box-shadow:0 18px 44px #00000057;opacity:0;pointer-events:none;transform:translateY(-4px);transition:opacity .18s ease,transform .18s ease;z-index:24}.host-answer-tooltip:hover .host-answer-tooltip-card,.host-answer-tooltip:focus-within .host-answer-tooltip-card{opacity:1;pointer-events:auto;transform:translateY(0)}.results-list{display:grid;gap:10px}.results-overlay{position:fixed;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:28px;background:#06090ed1;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);z-index:120}.results-modal{width:min(860px,calc(100vw - 48px));max-height:min(760px,calc(100vh - 48px));overflow:auto;display:grid;gap:20px;padding:30px;border-radius:28px;border:1px solid rgba(247,242,232,.12);background:radial-gradient(circle at top,rgba(243,186,70,.1),transparent 28%),#14181ff5;box-shadow:0 24px 90px #00000070}.results-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border-radius:14px;background:#ffffff08;border:1px solid rgba(247,242,232,.08)}.results-row.rank-1{border-color:#f3ba4657;background:linear-gradient(180deg,#f3ba4624,#ffffff08),#ffffff08}.results-row.rank-2{border-color:#cad2e03d;background:linear-gradient(180deg,#cad2e01f,#ffffff08),#ffffff08}.results-row.rank-3{border-color:#c3855242;background:linear-gradient(180deg,#c385521f,#ffffff08),#ffffff08}.results-player{display:flex;align-items:center;gap:14px}.results-rank{min-width:42px;padding:6px 10px;border-radius:999px;background:#f7f2e814;color:#f7f2e8e0;text-align:center;font-size:14px}.results-actions{display:flex;justify-content:center}.room-meta{display:flex;align-items:center;gap:12px;margin-left:auto}.question-counter{color:#f7f2e8b8;font-size:15px}.question-title{font-size:37px;line-height:1.12;max-width:100%;overflow-wrap:anywhere}.question-title.medium{font-size:26px;line-height:1.16}.question-title.compact{font-size:20px;line-height:1.18}.question-title.tiny{font-size:17px;line-height:1.16}.question-title.micro{font-size:15px;line-height:1.14}.stage-copy{max-width:560px;font-size:15px;line-height:1.45}.stage-controls{display:grid;gap:10px;width:100%;max-width:920px;margin:0 auto;justify-items:stretch}.question-import{display:grid;gap:8px}.question-import textarea{min-height:92px;resize:vertical;border:1px solid rgba(247,242,232,.14);border-radius:14px;padding:12px 14px;background:#ffffff0a;color:#f7f2e8}.question-import textarea:focus{outline:2px solid rgba(243,186,70,.5);border-color:transparent}.question-file-import input{width:100%;border:1px solid rgba(247,242,232,.14);border-radius:14px;padding:12px 14px;background:#ffffff0a;color:#f7f2e8}.question-file-import input:focus{outline:2px solid rgba(243,186,70,.5);border-color:transparent}.file-help{color:#f7f2e89e;font-size:14px;line-height:1.35}.stage-actions{display:flex;gap:10px;flex-wrap:wrap}.stage-actions-primary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}.stage-actions-secondary{justify-content:center}.stage-actions-secondary .button{min-width:180px}.button-success{background:linear-gradient(180deg,#4fd47f,#20864a);color:#07120b}.button-danger{background:linear-gradient(180deg,#6f7782,#4f5661);color:#f7f2e8}.round-state.waiting{background:#55c67c2e;color:#9ae6b1}.round-state.locked{background:#e957572e;color:#ffb4b4}.player-slot{min-height:0;box-sizing:border-box;overflow:hidden;border-radius:18px;padding:12px 14px;border:1px solid rgba(247,242,232,.09);background:#ffffff08;display:grid;gap:8px;align-content:start}.player-slot .slot-topline{gap:10px}.player-slot .slot-label{margin:0 0 4px;font-size:11px}.player-slot h3{font-size:20px;line-height:1.08;margin-bottom:30px}.top-left-slot,.middle-left-slot,.top-right-slot,.middle-right-slot{height:var(--player-slot-height)}.top-left-slot{grid-column:1;grid-row:1}.middle-left-slot{grid-column:1;grid-row:2}.top-right-slot{grid-column:4;grid-row:1}.middle-right-slot{grid-column:4;grid-row:2}.player-slot.empty{border-style:dashed;background:#ffffff04}.player-slot.me{border-color:#f3ba4673;box-shadow:0 0 0 1px #f3ba4624}.player-slot.winner{background:linear-gradient(180deg,#f3ba4624,#ffffff08),#ffffff08;border-color:#f3ba4661}.slot-badge{background:#f3ba4629;color:#f7f2e8;padding:6px 11px;font-size:13px}.slot-status{line-height:1.35;font-size:16px}.slot-answer-preview{min-height:1.05rem;color:#f7f2e8eb;font-size:14px;font-weight:700;line-height:1.12;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slot-answer-preview.placeholder{color:#f7f2e847}.slot-answer-preview.submitted{color:#f3ba46eb}.slot-score-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.slot-score-block{display:grid;gap:2px}.slot-score-label{color:#f7f2e885;font-size:12px;text-transform:uppercase;letter-spacing:.08em}.slot-score-value{font-size:18px;line-height:1}.slot-score-actions{display:flex;gap:8px}.score-adjust-button{width:36px;height:36px;padding:0;font-size:18px;font-weight:700}.score-adjust-button:hover{transform:translateY(-1px)}.slot-buzzer{width:100%;padding:9px 12px;border-radius:12px;margin-top:0;align-self:end;background:radial-gradient(circle at 30% 25%,rgba(255,255,255,.26),transparent 24%),linear-gradient(180deg,#ef4f43,#ab2017);color:#fff;font-weight:800;font-size:13px;letter-spacing:.08em;box-shadow:inset 0 -6px #0000002e}.slot-buzzer:disabled{background:linear-gradient(180deg,#69707b,#434951);box-shadow:inset 0 -6px #00000024}.slot-buzzer-placeholder{min-height:58px;align-self:end}.bottom-slots{display:grid;grid-template-columns:repeat(4,var(--player-slot-width));grid-column:1 / -1;grid-row:3;gap:20px;width:100%;margin:0;align-items:start;justify-content:space-between}.bottom-slots .player-slot{height:var(--player-slot-height)}.feedback-block{margin-top:18px;min-height:72px;display:grid;align-items:center}.info-line,.error-line{margin:6px 0 0}.error-line{color:#ff8b8b}.host-note{text-align:center}.abcd-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.text-input-panel{display:grid;gap:10px}.text-answer-input,.text-input-locked{width:100%;min-height:72px;border-radius:16px;border:1px solid rgba(247,242,232,.12);padding:14px 16px;background:#ffffff0a;color:#f7f2e8;font-size:16px;line-height:1.45}.text-answer-input{resize:none}.text-answer-input:focus{outline:2px solid rgba(243,186,70,.5);border-color:transparent}.text-input-locked{display:flex;align-items:flex-start;overflow:hidden;text-overflow:ellipsis}.abcd-option{display:flex;align-items:center;gap:12px;width:100%;min-height:68px;border:1px solid rgba(247,242,232,.1);border-radius:16px;padding:12px 14px;background:#ffffff0a;color:#f7f2e8;cursor:default;text-align:left;opacity:1}.abcd-option:disabled{opacity:1}.abcd-option.selected{border-color:#f3ba466b;background:linear-gradient(180deg,#f3ba4624,#ffffff0a),#ffffff0a;box-shadow:0 0 0 1px #f3ba4629}.abcd-option.correct{border-color:#4fd47f99;background:linear-gradient(180deg,#4fd47f2e,#ffffff0a),#ffffff0a;box-shadow:0 0 0 1px #4fd47f38}.abcd-option-letter{width:34px;height:34px;border-radius:999px;display:grid;place-items:center;background:#f3ba4629;color:#f3ba46;font-weight:800;flex:0 0 auto}.abcd-option-text{font-size:16px;line-height:1.35}@media (max-width: 1180px){.card{max-height:none;overflow:visible}.quiz-layout{grid-template-columns:1fr;grid-template-rows:none}.bottom-slots{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.top-left-slot,.middle-left-slot,.top-right-slot,.middle-right-slot,.stage-panel,.bottom-slots{grid-column:auto;grid-row:auto}.bottom-slots{width:100%;margin:0;justify-content:initial}.stage-panel{min-height:340px}}@media (max-width: 720px){.hero,.room-headline,.slot-topline,.stage-footer{flex-direction:column;align-items:flex-start}.bottom-slots{grid-template-columns:1fr}.hero-actions{width:100%;flex-direction:column;align-items:flex-start}.host-card-panel{position:static;width:100%;opacity:1;pointer-events:auto;transform:none;margin-top:10px}.host-tab-row,.inline-field-group,.rename-row{grid-template-columns:1fr}.results-overlay{padding:16px}.results-modal{width:min(100vw - 32px,860px);max-height:calc(100vh - 32px);padding:22px}.stage-controls{width:100%}.stage-actions{justify-content:flex-start}.stage-actions-primary,.abcd-grid{grid-template-columns:1fr}.card{padding:14px}.stage-panel{padding:18px;min-height:300px}}
