:root{--bg:#f7f7fb;--card:#fff;--soft:#f1f3f9;--text:#15161a;--muted:#6c7280;--line:#e3e6ee;--brand:#3658f5;--brand2:#7447f7;--ok:#16a267;--bad:#df4a52;--shadow:0 24px 70px rgba(33,38,61,.10);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--text)}
*{box-sizing:border-box}html{background:var(--bg);scroll-behavior:smooth}body{margin:0;min-height:100vh;background:radial-gradient(circle at 12% 3%,rgba(54,88,245,.07),transparent 25%),radial-gradient(circle at 92% 12%,rgba(116,71,247,.06),transparent 22%),var(--bg);color:var(--text)}
body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.3;background-image:linear-gradient(rgba(40,48,76,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(40,48,76,.025) 1px,transparent 1px);background-size:28px 28px;mask-image:linear-gradient(to bottom,#000,transparent 70%)}
button,input,textarea{font:inherit;color:inherit}button{cursor:pointer;border:1px solid var(--line);background:rgba(255,255,255,.92);border-radius:13px;padding:11px 16px;font-weight:750;transition:.2s ease}button:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(30,35,55,.08)}
input,textarea{width:100%;border:1px solid var(--line);border-radius:13px;background:var(--card);padding:13px 14px;outline:none;transition:.18s}input:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(54,88,245,.10)}
.topbar{position:sticky;top:0;z-index:60;height:76px;width:min(1240px,calc(100% - 32px));margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 12px;background:rgba(247,247,251,.72);backdrop-filter:blur(18px);border-bottom:1px solid rgba(220,224,235,.75)}
.topbar nav{display:flex;gap:9px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:inherit;font-weight:900;letter-spacing:-.04em}.brand img{width:39px;height:39px;border-radius:12px;box-shadow:0 8px 24px rgba(54,88,245,.18)}
.primary{background:linear-gradient(135deg,var(--brand),#4a65ff);border-color:transparent;color:#fff;box-shadow:0 10px 25px rgba(54,88,245,.22)}.primary:hover{background:linear-gradient(135deg,#2849dc,#425cf2)}.xl{padding:15px 21px;font-size:16px}.wide{width:100%;margin-top:6px}.ghost-strong{background:#fff;border-color:#d7dbe7}
main{width:min(1220px,calc(100% - 32px));margin:auto;position:relative;z-index:1}.view{display:none;min-height:calc(100vh - 150px)}.view.active{display:block}.view.compact{width:min(760px,100%);margin:auto}
.hero-shell{display:grid;grid-template-columns:1.02fr .98fr;gap:54px;align-items:center;min-height:620px;padding:70px 0 52px}.hero-copy-block{position:relative}.eyebrow{font-size:12px;letter-spacing:.14em;text-transform:uppercase;font-weight:900;color:#72798a;margin:0 0 13px}
.live-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 11px;margin-bottom:18px;border:1px solid #dfe4f1;background:rgba(255,255,255,.82);border-radius:999px;color:#575e70;font-size:12px;font-weight:800;box-shadow:0 8px 24px rgba(31,36,57,.05)}.live-pill span,.status-dot{width:8px;height:8px;border-radius:50%;background:#19b46b;box-shadow:0 0 0 5px rgba(25,180,107,.11)}
.hero-shell h1{font-size:clamp(52px,5.8vw,82px);line-height:.98;letter-spacing:-.065em;margin:0 0 24px;max-width:700px}.hero-shell h1 span{background:linear-gradient(135deg,var(--brand),var(--brand2));-webkit-background-clip:text;background-clip:text;color:transparent}.lead{font-size:18px;line-height:1.7;color:var(--muted);max-width:650px;margin:0 0 30px}
.actions{display:flex;gap:11px;align-items:center}.hero-meta{display:flex;flex-wrap:wrap;gap:18px;margin-top:19px;color:#73798a;font-size:12px;font-weight:700}
.demo-wrap{position:relative;min-height:500px;display:grid;place-items:center}.glow{position:absolute;border-radius:50%;filter:blur(2px);opacity:.65}.glow-a{width:310px;height:310px;background:radial-gradient(circle,rgba(54,88,245,.19),rgba(54,88,245,0));top:10px;right:10px}.glow-b{width:280px;height:280px;background:radial-gradient(circle,rgba(116,71,247,.16),rgba(116,71,247,0));bottom:10px;left:20px}
.demo-card{position:relative;z-index:2;background:rgba(255,255,255,.94);border:1px solid rgba(218,222,235,.9);box-shadow:0 35px 90px rgba(49,55,86,.18);backdrop-filter:blur(16px)}.main-demo{width:min(100%,510px);border-radius:28px;padding:22px;transform:rotate(1.3deg)}
.demo-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#71788a;font-size:11px;font-weight:900}.demo-top>div{display:flex;align-items:center;gap:8px;color:#1d9b61}.demo-question{padding:34px 6px 20px}.demo-question small{color:#81889a;font-weight:900;letter-spacing:.12em}.demo-question h3{font-size:29px;line-height:1.16;letter-spacing:-.04em;margin:9px 0 0}
.demo-answers{display:grid;grid-template-columns:1fr 1fr;gap:10px}.demo-answer{display:grid;grid-template-columns:25px 1fr auto;gap:8px;align-items:center;padding:13px;border-radius:14px;background:#f4f5f9;color:#6e7484;font-size:12px}.demo-answer b{color:#272a31}.demo-answer i{font-style:normal;font-weight:900}.demo-answer.win{background:linear-gradient(135deg,#eafbf3,#f4fffa);border:1px solid #bfead5;color:#13895a}.demo-answer.win b{color:#126f4b}
.float-card{position:absolute;z-index:3;background:#fff;border:1px solid #e0e4ee;border-radius:18px;box-shadow:0 18px 48px rgba(33,39,65,.16);padding:14px 16px}.rank-card{left:-8px;bottom:36px;min-width:185px;transform:rotate(-4deg)}.rank-card small,.rank-card b,.rank-card span{display:block}.rank-card small{font-size:10px;color:#8a90a0;font-weight:900}.rank-card b{margin-top:5px;font-size:16px}.rank-card span{font-size:12px;color:var(--brand);font-weight:800}.speed-card{right:-8px;top:44px;transform:rotate(5deg)}.speed-card b,.speed-card span{display:block}.speed-card b{font-size:20px;color:#6b48e8}.speed-card span{font-size:10px;color:#858b9b;margin-top:2px}
.quick-stats{display:grid;grid-template-columns:repeat(4,1fr);margin:4px 0 88px;border:1px solid #e1e4ed;background:rgba(255,255,255,.78);backdrop-filter:blur(10px);border-radius:20px;overflow:hidden;box-shadow:0 18px 55px rgba(39,45,72,.06)}.quick-stats div{padding:21px 24px;border-right:1px solid #e6e8ef}.quick-stats div:last-child{border-right:0}.quick-stats b,.quick-stats span{display:block}.quick-stats b{font-size:20px;letter-spacing:-.03em}.quick-stats span{margin-top:3px;color:var(--muted);font-size:12px}
.section-title{display:flex;align-items:end;justify-content:space-between;gap:40px;margin-bottom:25px}.section-title h2{font-size:38px;letter-spacing:-.045em;margin:0;max-width:680px}.section-title>p{max-width:360px;color:var(--muted);line-height:1.6;margin:0}
.mode-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding-bottom:54px}.mode-grid article{position:relative;overflow:hidden;background:rgba(255,255,255,.88);border:1px solid #e1e4ed;border-radius:22px;padding:24px;min-height:205px;transition:.22s ease;box-shadow:0 14px 40px rgba(38,44,70,.045);cursor:pointer}.mode-card:focus-visible{outline:3px solid rgba(54,88,245,.28);outline-offset:3px;border-color:var(--brand)}.mode-grid article:after{content:"";position:absolute;width:120px;height:120px;border-radius:50%;right:-42px;top:-50px;background:radial-gradient(circle,rgba(54,88,245,.10),transparent 70%)}.mode-grid article:nth-child(2):after,.mode-grid article:nth-child(5):after{background:radial-gradient(circle,rgba(116,71,247,.12),transparent 70%)}.mode-grid article:hover{transform:translateY(-6px);border-color:#cfd5e6;box-shadow:0 22px 55px rgba(38,44,70,.10)}
.mode-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:#f1f3fa;font-size:20px;margin-bottom:18px}.mode-grid b{font-size:19px}.mode-grid p{margin:9px 0 16px;color:var(--muted);line-height:1.6;font-size:14px}.mode-link{position:absolute;left:24px;bottom:20px;color:var(--brand);font-size:12px;font-weight:850}
.sample-heading{display:flex;align-items:end;justify-content:space-between;gap:40px;margin:20px 0 24px}.sample-heading h2{font-size:36px;letter-spacing:-.045em;margin:0}.sample-heading>p{max-width:400px;margin:0;color:var(--muted);line-height:1.6}.sample-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:54px}.sample-card{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:start;padding:20px;border:1px solid var(--line);border-radius:20px;background:rgba(255,255,255,.88);box-shadow:0 12px 34px rgba(33,38,61,.05)}.sample-card>div{min-width:0}.sample-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:#f1f3fa;font-size:20px}.sample-card small{font-size:10px;letter-spacing:.08em;font-weight:900;color:#7b8190}.sample-card h3{font-size:18px;margin:5px 0 6px;letter-spacing:-.025em}.sample-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.sample-card button{grid-column:1/-1;width:100%;margin-top:3px}
.flow-strip{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:20px;margin:10px 0 80px;padding:28px;background:linear-gradient(135deg,#171922,#232637);color:#fff;border-radius:26px;box-shadow:0 25px 70px rgba(21,24,36,.18)}.flow-strip>div{display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:center}.flow-strip>div span{grid-row:1/3;width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:rgba(255,255,255,.09);color:#aeb8ff;font-weight:900}.flow-strip b{font-size:15px}.flow-strip p{margin:3px 0 0;color:#aeb3c1;font-size:12px}.flow-strip i{font-style:normal;color:#5f6474;font-size:22px}
.back{margin:26px 0;background:transparent;border-color:transparent;padding-left:0;color:#626979}.panel{background:rgba(255,255,255,.92);border:1px solid #e0e4ed;border-radius:24px;padding:30px;box-shadow:var(--shadow);backdrop-filter:blur(14px)}.panel.centered{text-align:center;max-width:540px;margin:62px auto}.panel h2{font-size:34px;letter-spacing:-.045em;margin:0 0 8px}.muted{color:var(--muted)}.icon{font-size:48px;margin-bottom:12px}.panel label{display:grid;gap:7px;margin:18px 0 0;font-size:13px;font-weight:800;text-align:left}.room-input{text-align:center;font-size:30px;font-weight:950;letter-spacing:.2em;margin:20px 0 10px}.message{min-height:24px;font-weight:800;margin:13px 0 0}
.picker{display:grid;grid-template-columns:repeat(2,1fr);gap:11px;margin:20px 0}.picker button{text-align:left;display:grid;gap:4px;padding:16px;background:#fafbfe}.picker button.selected{border-color:var(--brand);background:#f3f5ff;box-shadow:0 0 0 3px rgba(54,88,245,.09)}.picker small{color:var(--muted);font-weight:550}.answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 18px}
.host-head{display:flex;align-items:center;justify-content:space-between;padding:32px 0 22px}.host-head h2{font-size:36px;margin:0;letter-spacing:-.045em}.host-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px}.stage,.host-grid aside{background:rgba(255,255,255,.94);border:1px solid #e0e4ed;border-radius:23px;padding:22px;box-shadow:0 18px 50px rgba(38,44,70,.06)}.room-strip{display:flex;justify-content:space-between;padding-bottom:18px;border-bottom:1px solid var(--line)}
.lobby{min-height:470px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:34px;text-align:left}.lobby h3,.question-stage h3,.leaderboard h3{font-size:36px;letter-spacing:-.045em;margin:0 0 10px}.lobby canvas{background:#fff;padding:10px;border:1px solid var(--line);border-radius:20px;box-shadow:0 14px 35px rgba(30,35,55,.08)}.question-stage{min-height:470px;display:flex;flex-direction:column;justify-content:center}.counter{color:var(--muted);font-weight:800}.answers{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:26px}.answers>div,.answers.play button{display:flex;align-items:center;gap:12px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--soft);font-weight:800}.answers span{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:var(--text);color:#fff}.answers.play{grid-template-columns:1fr}.answers.play button{text-align:left;font-size:17px}.answers.play button.correct{border-color:var(--ok);background:#ebfbf4}.answers.play button.wrong{border-color:var(--bad);background:#fff1f2}
.host-actions{display:flex;gap:10px;padding-top:18px;border-top:1px solid var(--line)}.host-actions button{flex:1}.host-grid aside h3{margin:0 0 16px}.player-row,.rank-row{display:flex;justify-content:space-between;gap:15px;padding:11px 0;border-bottom:1px solid var(--line)}.leaderboard{min-height:470px;padding-top:40px}.rank-row{font-size:18px}.player-top{display:flex;justify-content:space-between;padding:22px 0;font-weight:800}footer{width:min(1220px,calc(100% - 32px));margin:40px auto 0;padding:24px 0 50px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}.hidden{display:none!important}
@keyframes floaty{0%,100%{transform:translateY(0) rotate(1.3deg)}50%{transform:translateY(-7px) rotate(.7deg)}}.main-demo{animation:floaty 6s ease-in-out infinite}
@media(max-width:980px){.hero-shell{grid-template-columns:1fr;gap:22px;padding-top:52px}.hero-copy-block{text-align:center}.hero-shell h1,.lead{margin-left:auto;margin-right:auto}.actions,.hero-meta{justify-content:center}.demo-wrap{min-height:455px}.section-title{align-items:start}.mode-grid{grid-template-columns:repeat(2,1fr)}.sample-grid{grid-template-columns:repeat(2,1fr)}.quick-stats{grid-template-columns:repeat(2,1fr)}.quick-stats div:nth-child(2){border-right:0}.quick-stats div:nth-child(-n+2){border-bottom:1px solid #e6e8ef}}
@media(max-width:800px){.topbar{width:100%;height:68px;padding:0 16px}.topbar nav button:first-child{display:none}main{width:min(100% - 22px,1220px)}.hero-shell{min-height:auto;padding:42px 0 34px}.hero-copy-block{text-align:left}.hero-shell h1{font-size:48px}.lead{font-size:16px;margin-left:0}.actions,.hero-meta{justify-content:flex-start}.actions{flex-direction:column;align-items:stretch}.actions button{width:100%}.hero-meta{display:grid;gap:8px}.demo-wrap{min-height:410px}.main-demo{width:92%;padding:18px}.demo-question{padding:26px 4px 16px}.demo-question h3{font-size:24px}.rank-card{left:0}.speed-card{right:0}.quick-stats{margin-bottom:58px}.section-title,.sample-heading{display:block}.section-title h2,.sample-heading h2{font-size:32px}.section-title>p,.sample-heading>p{margin-top:12px}.mode-grid{grid-template-columns:1fr 1fr}.flow-strip{grid-template-columns:1fr;gap:15px}.flow-strip>i{display:none}.host-grid{grid-template-columns:1fr}.host-grid aside{order:-1}.lobby{grid-template-columns:1fr;text-align:center;justify-items:center;min-height:420px}.answer-grid,.answers{grid-template-columns:1fr}.panel{padding:20px}.panel.centered{margin:30px auto}.host-head{align-items:flex-start;gap:15px}.host-head h2{font-size:28px}}
@media(max-width:560px){.brand span{font-size:14px}.topbar nav .primary{padding:9px 12px}.live-pill{font-size:10px}.hero-shell h1{font-size:41px}.demo-wrap{min-height:340px}.main-demo{width:100%;border-radius:22px}.demo-top{font-size:9px}.demo-question h3{font-size:21px}.demo-answers{grid-template-columns:1fr 1fr;gap:7px}.demo-answer{grid-template-columns:20px 1fr auto;padding:10px 9px;font-size:10px}.float-card{display:none}.quick-stats{grid-template-columns:1fr 1fr}.quick-stats div{padding:16px}.quick-stats b{font-size:17px}.mode-grid,.sample-grid{grid-template-columns:1fr}.mode-grid article{min-height:190px}.sample-card{padding:17px}.picker{grid-template-columns:1fr}.room-strip{font-size:13px}.host-actions{flex-direction:column}.lobby h3,.question-stage h3,.leaderboard h3{font-size:28px}.player-top{font-size:13px}.flow-strip{padding:22px}.section-title h2,.sample-heading h2{font-size:29px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.main-demo{animation:none}button,.mode-grid article{transition:none}}

/* Quiz Studio */
.studio-view{padding:18px 0 70px}.studio-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.studio-top .back{margin:0}.studio-actions{display:flex;align-items:center;gap:9px}.save-state{font-size:12px;color:var(--muted);padding-right:4px}.save-state.saved{color:var(--ok)}.studio-heading{display:flex;justify-content:space-between;gap:34px;align-items:end;padding:22px 0 28px}.studio-heading h2{font-size:42px;letter-spacing:-.05em;margin:0 0 8px}.studio-heading p:last-child{margin:0}.quiz-title-field{width:min(390px,42%);font-size:12px;font-weight:800;display:grid;gap:7px}.studio-shell{display:grid;grid-template-columns:300px minmax(0,1fr);gap:18px;align-items:start}.question-sidebar,.question-editor{background:rgba(255,255,255,.9);border:1px solid var(--line);border-radius:22px;box-shadow:0 18px 50px rgba(20,24,30,.06)}.question-sidebar{padding:14px;position:sticky;top:18px}.sidebar-head{display:flex;justify-content:space-between;align-items:center;padding:7px 6px 13px}.sidebar-head span{font-size:12px;color:var(--muted)}.question-list{display:grid;gap:7px;max-height:58vh;overflow:auto}.question-item{width:100%;display:grid;grid-template-columns:30px 1fr;gap:9px;text-align:left;padding:11px;border:1px solid transparent;background:transparent}.question-item>span{width:30px;height:30px;border-radius:9px;background:var(--soft);display:grid;place-items:center;font-size:12px}.question-item div{min-width:0}.question-item b,.question-item small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.question-item b{font-size:13px}.question-item small{font-size:10px;color:var(--muted);margin-top:3px}.question-item.active{background:#eef2ff;border-color:#cfd8ff}.question-item.active>span{background:var(--brand);color:#fff}.add-question{width:100%;margin-top:10px;border-style:dashed;background:var(--bg)}
.question-editor{padding:24px}.editor-toolbar{display:grid;grid-template-columns:1.3fr .8fr .8fr;gap:10px;padding-bottom:20px;border-bottom:1px solid var(--line)}.editor-toolbar label,.question-text-label,.text-answer-label{display:grid;gap:7px;font-size:12px;font-weight:800}.editor-toolbar select{width:100%;border:1px solid var(--line);border-radius:12px;background:var(--card);padding:12px}.question-text-label{margin:22px 0}.question-text-label textarea{font-size:20px;font-weight:750;line-height:1.4;min-height:115px}.answer-editor{display:grid;gap:10px}.answer-edit-row{display:grid;grid-template-columns:24px 36px 1fr;gap:10px;align-items:center}.answer-edit-row>input[type=radio]{width:18px;height:18px;accent-color:var(--brand)}.answer-letter{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:var(--text);color:#fff;font-weight:850}.answer-value{font-weight:650}.poll-dot{font-size:28px;line-height:1;color:var(--brand);text-align:center}.add-answer-option{justify-self:start;margin-top:2px;background:var(--soft)}.text-answer-label input{font-size:17px}.editor-footer{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}.editor-footer>div{display:flex;gap:8px}.danger-soft{color:var(--bad);background:#fff5f5;border-color:#ffd7d7}.qr-image{width:230px;max-width:100%;background:white;padding:10px;border:1px solid var(--line);border-radius:18px}.question-meta{display:flex;align-items:center;justify-content:space-between}.question-meta #host-timer{font-size:25px;font-weight:900;color:var(--brand);margin:0}.choice-count{margin-left:auto;padding-left:10px}.correct-answer{border-color:var(--ok)!important;background:color-mix(in srgb,var(--ok) 10%,white)!important}.text-question-note{grid-column:1/-1;color:var(--muted);font-weight:600}.presence{display:inline-block;width:8px;height:8px;border-radius:50%;background:#bbb;margin-right:7px}.presence.on{background:var(--ok)}.text-submit{display:grid;gap:10px}.text-submit input{font-size:18px;padding:16px}.host-actions .hidden{display:none}.host-actions{flex-wrap:wrap}
@media(max-width:900px){.studio-heading{align-items:stretch;flex-direction:column}.quiz-title-field{width:100%}.studio-shell{grid-template-columns:1fr}.question-sidebar{position:static}.question-list{display:flex;overflow:auto;max-height:none}.question-item{min-width:220px}.editor-toolbar{grid-template-columns:1fr 1fr 1fr}.editor-footer{align-items:flex-start;flex-direction:column}}
@media(max-width:620px){.studio-top{align-items:flex-start}.studio-actions{flex-wrap:wrap;justify-content:flex-end}.save-state{width:100%;text-align:right}.studio-heading h2{font-size:34px}.question-editor{padding:16px}.editor-toolbar{grid-template-columns:1fr}.question-text-label textarea{font-size:18px}.answer-edit-row{grid-template-columns:22px 32px 1fr}.answer-letter{width:32px;height:32px}.editor-footer>div{width:100%;display:grid;grid-template-columns:1fr 1fr}.host-actions{display:grid;grid-template-columns:1fr}}

/* Game modes */
.studio-heading-fields{display:grid;grid-template-columns:minmax(260px,1fr) 190px;gap:12px;width:min(610px,52%)}.studio-heading-fields .quiz-title-field{width:100%}.game-mode-field{font-size:12px;font-weight:800;display:grid;gap:7px}.game-mode-field select{width:100%;border:1px solid var(--line);border-radius:13px;background:#fff;padding:13px 14px}.mode-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 9px;border-radius:999px;background:#eef2ff;color:#314bd4;font-size:11px;font-weight:900;white-space:nowrap}
.team-tag,.life-tag{display:inline-flex;vertical-align:middle;margin-left:5px;padding:3px 6px;border-radius:999px;font-size:9px;font-style:normal;font-weight:900}.team-purple{background:#f2eaff;color:#7541c9}.team-blue{background:#e8f3ff;color:#2470bc}.life-tag.alive{background:#eaf9f1;color:#138354}.life-tag.out{background:#fff0f0;color:#c33e48}.team-assigned{display:inline-block;margin-top:12px;padding:9px 12px;border-radius:12px;background:#f2f4ff;color:#4350a7;font-size:13px}
.buzzer-judge{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px;padding:14px;border:1px solid #f0d596;background:#fffaf0;border-radius:16px}.buzzer-judge>span{font-weight:900}.buzzer-judge>div{display:flex;gap:8px}.buzz-button{width:100%;min-height:220px;display:flex!important;flex-direction:column;justify-content:center!important;gap:8px!important;font-size:46px!important;background:linear-gradient(145deg,#fff5ce,#ffe485)!important;border:2px solid #e7bb38!important;color:#6f5200}.buzz-button b{font-size:28px}.buzz-button small{font-size:12px;font-weight:800}.buzz-button:disabled{filter:grayscale(.45);opacity:.65}.eliminated-card{grid-column:1/-1;padding:34px;text-align:center;border-radius:18px;background:#f5f5f7;border:1px dashed #cfd1d8;font-size:22px;font-weight:900}.eliminated-card small{display:block;margin-top:6px;color:var(--muted);font-size:12px;font-weight:650}
.team-results{margin-bottom:22px;padding:16px;border-radius:16px;background:#f5f7ff;border:1px solid #dfe5ff}.team-results h4{margin:0 0 9px}.team-result{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #e4e8f5}.team-result:last-child{border-bottom:0}
@media(max-width:900px){.studio-heading-fields{width:100%;grid-template-columns:1fr 180px}}@media(max-width:620px){.studio-heading-fields{grid-template-columns:1fr}.buzzer-judge{align-items:stretch;flex-direction:column}.buzzer-judge>div{display:grid;grid-template-columns:1fr 1fr}.room-strip{gap:8px;flex-wrap:wrap}.player-top{gap:8px;flex-wrap:wrap}}

/* Smart import */
.smart-import{display:grid;grid-template-columns:.9fr 1.1fr;gap:22px;align-items:stretch;margin:0 0 20px;padding:22px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(243,246,255,.92));box-shadow:0 18px 50px rgba(38,44,70,.06)}
.smart-import-copy h3,.smart-review-head h3{font-size:26px;letter-spacing:-.035em;margin:0 0 9px}.smart-import-copy>p:last-child{margin:0;color:var(--muted);line-height:1.65}.smart-import-controls{display:grid;gap:12px}.drop-zone{min-height:145px;border:2px dashed #cdd4eb;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:5px;background:#fff;cursor:pointer;transition:.2s}.drop-zone:hover,.drop-zone.dragging{border-color:var(--brand);background:#f5f7ff;transform:translateY(-2px)}.drop-zone input{display:none}.drop-zone b{font-size:14px}.drop-zone small{color:var(--muted)}.drop-icon{font-size:29px;color:var(--brand);font-weight:900}.smart-options{display:grid;grid-template-columns:1.2fr .7fr auto;gap:9px;align-items:end}.smart-options label{display:grid;gap:6px;font-size:11px;font-weight:850}.smart-options select{border:1px solid var(--line);border-radius:12px;background:#fff;padding:11px}.smart-status{margin:0;min-height:20px;color:#586174;font-size:12px;font-weight:700}.smart-review{margin:0 0 20px;padding:20px;border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.93)}.smart-review-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.smart-candidates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.smart-candidate{padding:15px;border:1px solid var(--line);border-radius:17px;background:#fafbfe}.smart-candidate-top{display:flex;justify-content:space-between;gap:9px;margin-bottom:10px}.smart-candidate-top select{border:1px solid var(--line);border-radius:10px;background:#fff;padding:8px}.smart-candidate textarea{font-weight:800;line-height:1.45;resize:vertical}.smart-answer-list{display:grid;gap:7px;margin:9px 0}.smart-answer-line{display:grid;grid-template-columns:24px 1fr auto;gap:7px;align-items:center;font-size:11px}.smart-answer-line>span{width:24px;height:24px;display:grid;place-items:center;border-radius:7px;background:#242733;color:#fff;font-weight:850}.smart-answer-line input{padding:9px 10px}.smart-correct{display:flex;align-items:center;gap:4px;font-size:10px;font-weight:800;white-space:nowrap}.smart-correct input{width:15px;height:15px}.smart-explain{font-size:11px;color:var(--muted);line-height:1.45;margin:8px 0 0}
@media(max-width:900px){.smart-import{grid-template-columns:1fr}.smart-candidates{grid-template-columns:1fr}}@media(max-width:620px){.smart-import{padding:16px}.smart-options{grid-template-columns:1fr}.smart-review-head{align-items:stretch;flex-direction:column}.smart-candidate{padding:12px}}

/* AI Import v2 */
.smart-file-list-v2{display:grid;gap:7px}.smart-file-chip{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:11px;background:#fff;font-size:11px}.smart-file-chip span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smart-file-chip small{color:var(--muted)}.smart-file-chip button{padding:3px 8px;border:0;background:transparent;color:var(--bad);box-shadow:none}.smart-options.v2{grid-template-columns:1.05fr 1.25fr .55fr .7fr}.smart-types{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fff;font-size:11px}.smart-types>span{font-weight:850}.smart-types label{display:flex;align-items:center;gap:4px}.smart-types input{width:15px;height:15px;accent-color:var(--brand)}
.smart-progress-v2{height:7px;overflow:hidden;border-radius:999px;background:#e8ebf5}.smart-progress-v2 span{display:block;width:35%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--brand),var(--brand2));animation:ai-progress 1.25s ease-in-out infinite}.smart-status-v2{margin:0;min-height:20px;color:#586174;font-size:12px;font-weight:700}@keyframes ai-progress{0%{transform:translateX(-110%)}100%{transform:translateX(300%)}}
.smart-review-v2{margin:0 0 20px;padding:20px;border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.93)}.smart-review-v2-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.smart-review-v2-head h3{font-size:26px;letter-spacing:-.035em;margin:0}.smart-candidates-v2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.smart-candidate.v2{padding:15px;border:1px solid var(--line);border-radius:17px;background:#fafbfe;transition:.2s}.smart-candidate.v2.rejected{opacity:.58;background:#f4f4f6}.smart-candidate.v2.duplicate{border-color:#f0c47a}.candidate-state,.duplicate-badge{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:900;margin-right:5px}.candidate-state{background:#eaf8f1;color:#128155}.rejected .candidate-state{background:#eee;color:#777}.duplicate-badge{background:#fff3da;color:#9a6500}.source-proof{margin:10px 0;padding:9px 11px;border-radius:11px;background:#f0f3fa;font-size:11px}.source-proof summary{cursor:pointer;font-weight:850}.source-proof p{margin:7px 0 0;color:#62697a;line-height:1.5}.candidate-actions{display:grid;grid-template-columns:auto auto 1fr;gap:7px;margin-top:10px}.candidate-actions button{padding:9px 10px;font-size:11px}
/* Quiz library */
.library-view{padding:34px 0 70px}.library-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:22px}.library-head h2{font-size:42px;letter-spacing:-.05em;margin:0 0 8px}.library-head p:last-child{margin:0}.library-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-bottom:8px}.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}.library-card{padding:19px;border:1px solid var(--line);border-radius:20px;background:rgba(255,255,255,.92);box-shadow:0 14px 38px rgba(38,44,70,.05)}.library-card-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.library-card-top small{color:var(--muted);font-weight:800}.library-card h3{font-size:20px;letter-spacing:-.025em;margin:14px 0 7px}.library-card>p{font-size:12px;color:var(--muted);margin:0 0 16px}.library-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.library-actions button{padding:9px 10px;font-size:11px}.library-empty{grid-column:1/-1;text-align:center;padding:46px;border:1px dashed #ccd1df;border-radius:20px;background:#fff}.library-empty p{color:var(--muted)}
@media(max-width:900px){.smart-options.v2{grid-template-columns:1fr 1fr}.smart-candidates-v2,.library-grid{grid-template-columns:1fr 1fr}}@media(max-width:620px){.smart-options.v2{grid-template-columns:1fr}.smart-review-v2-head,.library-head{align-items:stretch;flex-direction:column}.smart-candidates-v2,.library-grid{grid-template-columns:1fr}.candidate-actions{grid-template-columns:1fr 1fr}.candidate-actions .primary{grid-column:1/-1}.library-toolbar{grid-template-columns:1fr}.library-head h2{font-size:34px}}

/* Match history + analytics */
.history-view,.report-view{padding:34px 0 70px}.history-head,.report-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:22px}.history-head h2,.report-head h2{font-size:42px;letter-spacing:-.05em;margin:0 0 8px}.history-head p:last-child,.report-head p:last-child{margin:0}.history-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:10px}.history-toolbar select{border:1px solid var(--line);border-radius:13px;background:#fff;padding:12px}.history-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}.history-card{padding:19px;border:1px solid var(--line);border-radius:20px;background:rgba(255,255,255,.92);box-shadow:0 14px 38px rgba(38,44,70,.05)}.history-card-top{display:flex;align-items:center;justify-content:space-between;gap:9px}.history-card h3{font-size:20px;margin:14px 0 7px}.history-card p{font-size:12px;color:var(--muted);margin:0 0 7px}.history-card small{display:block;color:var(--muted);margin-bottom:12px}.history-status{padding:5px 8px;border-radius:999px;font-size:10px;font-weight:900}.history-status.finished{background:#eaf8f1;color:#138354}.history-status.live{background:#eef2ff;color:#3658f5}.history-status.lobby{background:#fff5db;color:#9a6b00}
.report-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:16px}.report-stat{padding:17px;border:1px solid var(--line);border-radius:18px;background:#fff}.report-stat span,.report-stat b,.report-stat small{display:block}.report-stat span{font-size:18px}.report-stat b{font-size:22px;margin:8px 0 3px}.report-stat small{font-size:11px;color:var(--muted)}.report-highlight{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;margin-bottom:16px;border:1px solid #f1d8a6;border-radius:18px;background:#fff9ea}.report-highlight div span,.report-highlight div b{display:block}.report-highlight div span{font-size:11px;font-weight:900;color:#9a6b00}.report-highlight div b{margin-top:5px}.report-highlight strong{font-size:20px;color:#9a6b00;white-space:nowrap}.report-team,.report-section{margin-bottom:16px;padding:20px;border:1px solid var(--line);border-radius:20px;background:#fff}.report-team h3,.report-section h3{margin:0}.report-team-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:14px}.report-team-grid>div{padding:14px;border-radius:14px;background:#f5f7ff}.report-team-grid span,.report-team-grid b,.report-team-grid small{display:block}.report-team-grid b{margin:6px 0 3px}.report-team-grid small{color:var(--muted)}
.report-section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:14px}.report-questions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.report-question{padding:15px;border:1px solid var(--line);border-radius:16px;background:#fafbfe}.report-question-top{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted)}.report-question h4{font-size:15px;line-height:1.45;margin:10px 0}.accuracy-track{height:7px;border-radius:999px;background:#e7eaf3;overflow:hidden}.accuracy-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#16a267,#4cb88b)}.question-metrics{display:flex;flex-wrap:wrap;gap:8px 13px;margin-top:10px;color:var(--muted);font-size:10px;font-weight:750}.correct-text{margin:9px 0 0;font-size:11px}.report-choices{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.report-choices span{padding:5px 8px;border-radius:999px;background:#eef2ff;font-size:10px}.report-table-wrap{overflow:auto}.report-table{width:100%;border-collapse:collapse;min-width:720px}.report-table th,.report-table td{text-align:left;padding:10px 9px;border-bottom:1px solid var(--line);font-size:11px}.report-table th{color:var(--muted);font-weight:900;background:#fafbfe;position:sticky;top:0}.report-table td:first-child{max-width:260px}.report-table tr:last-child td{border-bottom:0}
@media(max-width:900px){.history-list{grid-template-columns:1fr 1fr}.report-summary{grid-template-columns:repeat(3,1fr)}.report-questions{grid-template-columns:1fr}}@media(max-width:620px){.history-head,.report-head,.report-section-head{align-items:stretch;flex-direction:column}.history-toolbar{grid-template-columns:1fr}.history-list{grid-template-columns:1fr}.report-summary{grid-template-columns:1fr 1fr}.report-highlight{align-items:flex-start;flex-direction:column}.report-team-grid{grid-template-columns:1fr}.history-head h2,.report-head h2{font-size:34px}.topbar nav{gap:5px}.topbar nav button{padding:8px 9px;font-size:11px}}
