:root { color-scheme:dark; --bg:#061321;--navy:#0d2134;--panel:#11283e;--panel2:#0c1e30;--line:#28425a;--text:#f4f7fb;--muted:#9eb3c8;--orange:#ffac43;--red:#d94a4a;--blue:#2472d2;--yellow:#c99118;--green:#1f986b; --radius:20px }
* { box-sizing:border-box } html,body {margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--text);background:radial-gradient(ellipse at 80% 0%,#122f4a 0%,var(--bg) 50%);font-size:16px}
button,input,select {font:inherit} button {cursor:pointer} button:disabled {opacity:.4;cursor:not-allowed;filter:grayscale(.5)} input,select {color:var(--text);background:var(--panel2);border:1px solid #3a536b;border-radius:12px;padding:12px 14px;min-width:0} input:focus,button:focus-visible,select:focus {outline:2px solid var(--orange);outline-offset:2px} a {color:var(--orange)} h1,h2,h3,p{margin:0} h1{font-size:clamp(1.7rem,3vw,2.4rem);line-height:1.13} h2{font-size:1.14rem} p{line-height:1.6} small{font-size:.78em} .hidden{display:none!important}
.app {margin:0 auto;max-width:1550px;min-height:100vh;display:flex;flex-direction:column;padding:0 clamp(14px,2.8vw,44px)}
.masthead {min-height:95px;display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding:20px 2px} .brand {display:flex;gap:13px;align-items:center}.brandicon{display:grid;place-items:center;width:50px;height:50px;background:linear-gradient(135deg,#ffbd65,#e45b27);color:#071526;border-radius:15px;font-size:30px;font-weight:900}.brandtop{font-size:.7rem;font-weight:800;letter-spacing:.15em;color:#d3e0ed}.brandpill{color:var(--orange);margin-left:12px}.brandtitle{font-weight:900;letter-spacing:-.03em;font-size:clamp(1.25rem,2.4vw,1.75rem)}.flame{font-size:.8em}.mast-right{display:flex;gap:9px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.pill{border:1px solid #42607c;border-radius:999px;font-size:.73rem;letter-spacing:.04em;font-weight:800;padding:7px 12px;white-space:nowrap;color:#d9e7f2;background:#112c43}.pill.active{color:#b9ffe1;border-color:#2c906a;background:#0c3b30}.footer{display:flex;gap:18px;justify-content:space-between;margin-top:auto;padding:18px 2px 20px;color:#6c8da7;font-size:.72rem;border-top:1px solid #1d3448}.eyebrow{text-transform:uppercase;letter-spacing:.17em;color:var(--orange);font-size:.67rem;font-weight:900;margin-bottom:8px}.subtle,.smallnote{color:var(--muted);font-size:.85rem;line-height:1.5}.stack{display:grid;gap:18px;align-content:start}.stack-sm{display:grid;gap:9px}.panel{background:linear-gradient(150deg,rgba(25,55,79,.95),rgba(15,37,57,.95));border:1px solid #2a4961;border-radius:var(--radius);padding:clamp(18px,2.5vw,27px);box-shadow:0 14px 35px #020b1830}.panel h2{margin-bottom:12px}.panel p{margin-bottom:12px}.panel .eyebrow+h2{margin-bottom:18px}.section-heading,.rowspace{display:flex;justify-content:space-between;align-items:center;gap:14px}.host-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(310px,1fr);align-items:start;gap:20px;margin:26px 0}.hero{padding:29px}.hero h1{margin:3px 0 8px}.hero p{color:var(--muted)}.statbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:16px}.clock{display:inline-flex;border-radius:999px;padding:7px 13px;background:#fff0d8;color:#5b3504;font-size:.9rem;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}
.btn{border:0;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center;font-weight:800;padding:13px 18px;transition:transform .12s,filter .12s,background .12s}.btn:not(:disabled):hover{transform:translateY(-1px);filter:brightness(1.07)}.btn-main{background:linear-gradient(100deg,#ffbc5c,#f08335);color:#251805}.btn-light{background:#254560;color:#f6fbff;border:1px solid #49738e}.btn-amber{background:#ffcf80;color:#382108}.btn-ghost{border:1px solid #47637a;background:transparent;color:#bed4e6}.btn-outline{border:1px solid #597187;background:transparent;color:#edf7ff}.btn.small{font-size:.78rem;padding:8px 12px}.btn.full{width:100%}.actionsgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.modegrid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:15px}.modebox{position:relative;border:1px solid #425b71;border-radius:14px;padding:15px;display:flex;flex-direction:column;gap:6px;color:#b6ccdc;cursor:pointer}.modebox.picked{border-color:#edb050;background:#3a3024}.modebox input{position:absolute;right:14px;top:11px;accent-color:var(--orange)}.modetitle{font-size:1.1rem;font-weight:850;color:white;padding-right:18px}.modebox>span:last-child{font-size:.78rem}.settingsrow{display:flex;gap:14px;align-items:center;justify-content:space-between;margin-bottom:12px}.settingsrow label{color:#c5d8e9;font-size:.9rem}.settingsrow select{width:180px}.nextpreview{padding:14px;border:1px dashed #40627b;border-radius:12px;margin-top:13px;font-size:.88rem;line-height:1.5}.nextpreview .smallnote{margin-top:7px}.dangerzone{border-top:1px solid var(--line);margin-top:18px;padding-top:18px}.pinbox{border:1px dashed #e7a651;background:#2f2b29;border-radius:16px;display:flex;align-items:center;flex-direction:column;padding:16px;margin-bottom:12px}.pinbox span,.join-lobby span{font-size:.7rem;color:#d3c4b0;letter-spacing:.13em;font-weight:800}.pinbox strong{font-size:3rem;line-height:1.1;letter-spacing:.17em;color:#ffd099;font-variant-numeric:tabular-nums}.teamlist{display:grid;gap:3px}.teamline{display:flex;align-items:center;gap:9px;min-height:50px;border-bottom:1px solid #29445a;padding:8px 0}.teamline:last-child{border-bottom:0}.teamemoji{font-size:1.3rem}.teamname{flex:1;min-width:0;font-weight:750;font-size:.85rem}.teamname small{display:block;color:#95adc2;font-weight:500;font-size:.72rem}.teamline b{white-space:nowrap;font-size:.82rem}.tinybtn{background:#3b4d5e;border:0;color:#ddd;width:26px;height:26px;border-radius:6px;font-weight:900}.leaderlist{display:grid;gap:10px}.leaderrow{background:#0a2034;border:1px solid #2f516d;padding:14px;border-radius:12px;display:flex;align-items:center;gap:15px;min-height:56px}.leader-first{border-color:#dcaa51;background:#2a2a29}.leaderposition{font-size:1.1rem;font-weight:900;color:#ffbf68;min-width:20px}.leadername{flex:1;font-weight:760;min-width:0}.leaderpoints{font-size:1.08rem;font-variant-numeric:tabular-nums;white-space:nowrap}.leaderpoints small{color:#9ab0bf;font-size:.65rem}.success-msg{color:#93f1b9;font-weight:750;margin-top:14px}.warning{padding:12px 16px;background:#503b1d;border:1px solid #9b6e25;border-radius:12px;color:#ffd593;margin:14px 0}.error{color:#ffab9f}
.login,.player-join,.playercenter{display:flex;align-items:center;justify-content:center;flex:1;padding:28px 0 60px}.logocard{width:min(100%,475px);padding:35px;background:var(--panel);border:1px solid var(--line);border-radius:24px}.loginicon{font-size:2rem;margin-bottom:14px}.logocard h1{margin-bottom:12px}.logocard p{margin-bottom:24px;color:var(--muted)}.logocard form{display:grid;gap:12px}.logocard label{font-size:.85rem;font-weight:700}.logocard .smallnote{margin-top:21px;margin-bottom:0}.playerbox{width:min(100%,750px)}.playerbox h1{margin-bottom:13px}.playerbox>p{color:var(--muted)}.chooseteam{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:22px 0}.teamchoice{border:1px solid #40607b;border-radius:13px;background:#102b44;color:white;min-height:119px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;padding:9px 6px}.teamchoice>span{font-size:1.7rem}.teamchoice strong{font-size:.78rem}.teamchoice small{font-size:.67rem;color:#a5bfd3}.teamchoice.selected{border:2px solid #ffc46b;background:#3b342a}.playerbox form{display:grid;gap:13px}.playerbox input{width:100%;font-size:1.4rem;letter-spacing:.23em;text-align:center}.playerbox label{font-size:.84rem;font-weight:800}.playerwaiting{width:min(100%,650px);text-align:center;padding:42px 25px}.bigemoji{font-size:4rem;margin-bottom:18px}.playerwaiting h1{margin-bottom:17px}.playerwaiting p{color:var(--muted);margin-bottom:11px}.playerwaiting .success-msg{color:#9afbc3}.waitingdots{display:flex;gap:10px;justify-content:center;margin-top:25px}.waitingdots i{width:10px;height:10px;background:var(--orange);border-radius:100%;animation:pulse 1.4s infinite alternate}.waitingdots i:nth-child(2){animation-delay:.25s}.waitingdots i:nth-child(3){animation-delay:.5s}@keyframes pulse{to{opacity:.2;transform:scale(.7)}}
.playergame{width:min(100%,900px);margin:26px auto 42px}.playerquestion{margin-bottom:20px}.playerquestion h1{margin:20px 0 12px}.answergrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.answer{min-width:0;min-height:116px;border:2px solid transparent;border-radius:16px;color:white;font-weight:850;font-size:clamp(.95rem,1.45vw,1.2rem);padding:20px;display:flex;align-items:center;gap:14px;text-align:left;line-height:1.35;box-shadow:inset 0 -5px 0 #0002}.answer.red{background:#ba3444}.answer.blue{background:#1e68c3}.answer.yellow{background:#bb891d}.answer.green{background:#168a66}.answer-symbol{display:flex;flex:none;width:36px;height:36px;align-items:center;justify-content:center;border:2px solid #ffffff6b;border-radius:11px;font-size:1.3em}.answer.selected{border-color:#fff;box-shadow:0 0 0 2px #ffffffb3}.answer.dimmed{opacity:.26}.answer.correct{border-color:white;opacity:1;box-shadow:0 0 0 3px #ffffffe6}.checkmark{font-size:1.9rem;margin-left:auto}.answered{margin-top:18px;padding:15px;border:1px solid #3ba97a;border-radius:11px;background:#0d4937;font-weight:850}.player-bottom{margin-top:18px;color:var(--muted);display:flex;justify-content:space-between}.player-bottom b{color:#ffbd68}.explanation{margin-top:20px;background:#f4e7ce;color:#3a2611;border-radius:15px;padding:20px;line-height:1.5}.explanation-tag{font-size:.72rem;letter-spacing:.1em;color:#815007;font-weight:900}.explanation p{margin-top:7px;font-size:1rem}
body[data-role="screen"] .app{max-width:none;padding:0 3vw}body[data-role="screen"] .masthead{min-height:108px}body[data-role="screen"] .brandtitle{font-size:2rem}.screen-lobby{display:grid;grid-template-columns:1.8fr 1fr;gap:28px;align-items:stretch;flex:1;margin:3vh 0 5vh}.lobby-main{display:flex;flex-direction:column;justify-content:center;padding:36px;min-width:0}.lobby-main h1{font-size:clamp(3.3rem,7vw,7.4rem);letter-spacing:-.065em;line-height:1.04;margin-bottom:24px}.lobby-main h1 em{font-style:normal;color:var(--orange)}.lobby-main>p{font-size:clamp(1.1rem,2vw,1.55rem);color:#b8cddd}.join-lobby{display:flex;gap:30px;align-items:center;margin:34px 0}.join-lobby>div:first-child{background:var(--panel);padding:23px 28px;border:1px solid #3d5c75;border-radius:19px;display:flex;flex-direction:column}.join-lobby strong{font-size:clamp(2.7rem,5vw,5rem);line-height:1.1;letter-spacing:.13em;color:#ffc577;font-variant-numeric:tabular-nums}.qrbox{background:white;color:#162435;border-radius:13px;padding:11px;display:flex;flex-direction:column;align-items:center}.qrbox img{width:139px;height:139px;display:block}.qrbox small{font-size:.68rem}.lobby-roster{background:var(--panel2);padding:32px;border:1px solid #2a4b63;border-radius:25px;display:flex;flex-direction:column;justify-content:center;gap:11px}.lobby-roster h2{font-size:1.7rem;margin-bottom:22px}.rosterline{display:flex;justify-content:space-between;gap:10px;border:1px solid #2c445a;border-radius:13px;padding:20px 15px;align-items:center}.rosterline span:first-child{font-size:1.1rem;font-weight:800}.rosterline span:last-child{font-size:.65rem;font-weight:850;color:#8ca3b7}.rosterline.ready{border-color:#399573;background:#133f36}.rosterline.ready span:last-child{color:#83efbc}.screen-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(280px,1fr);gap:22px;flex:1;margin:28px 0}.screen-question{display:flex;flex-direction:column;min-height:0}.screen-top{display:flex;justify-content:space-between;align-items:center}.timer-big{font-size:clamp(1.2rem,2vw,2rem);font-weight:900;background:#f7dfb6;color:#362109;padding:10px 22px;border-radius:100px}.screen-question h1{margin:19px 0 30px;font-size:clamp(2rem,3.6vw,4rem);line-height:1.15;max-width:1100px}.screen-question .answer{font-size:clamp(1rem,1.5vw,1.6rem);min-height:clamp(100px,18vh,200px);padding:clamp(16px,2vw,32px)}.screen-footer{margin-top:22px;font-weight:850;color:#acc6d9;text-transform:uppercase;font-size:.87rem;letter-spacing:.07em}.screen-side{background:var(--panel2);border:1px solid #294962;border-radius:20px;padding:24px;align-self:stretch}.screen-side .leaderrow{padding:13px 10px;gap:10px}.screen-side .leadername{font-size:.92rem}.sidecount{border-top:1px solid #29455d;display:flex;justify-content:space-between;gap:20px;margin-top:20px;padding-top:20px;color:#a7bfd2}.sidecount b{color:#fff}.bigboard{max-width:930px;width:100%;margin:5vh auto 6vh;flex:1}.bigboard h1{font-size:clamp(2.7rem,5vw,5rem);letter-spacing:-.05em;margin:12px 0 40px}.bigboard .leaderrow{padding:23px 26px;font-size:1.45rem}.bigboard .leaderposition{font-size:1.5rem}.bigboard .leaderpoints{font-size:1.6rem}.endnote{font-size:1.25rem;color:#afc8d9;text-align:center;margin-top:40px}.center-error{margin:auto;text-align:center;padding:30px}.center-error p{margin-top:17px;color:var(--muted)}
.network-notice{position:fixed;top:10px;left:50%;transform:translateX(-50%);background:#5c3525;border:1px solid #bb744c;z-index:10;padding:12px 20px;border-radius:12px;font-weight:850;box-shadow:0 8px 30px #0008}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:#185740;color:#d9ffef;border:1px solid #359b72;padding:13px 24px;border-radius:13px;max-width:min(90vw,550px);z-index:20;font-weight:750;box-shadow:0 10px 28px #0008;text-align:center}.toast-bad{background:#642f32;border-color:#ae4b4e;color:#fff}
@media(max-width:1040px){.host-layout,.screen-layout,.screen-lobby{grid-template-columns:1fr}.screen-side{display:none}.screen-lobby{margin:10px 0}.lobby-main{padding:30px 0}.lobby-roster{padding:22px}.lobby-roster h2{margin-bottom:5px}.rosterline{padding:12px}.screen-question h1{font-size:clamp(2rem,5vw,3.5rem)}}
@media(max-width:640px){.app{padding:0 13px}.masthead{min-height:77px}.brandicon{width:40px;height:40px}.brandtop{font-size:.52rem;letter-spacing:.07em}.brandpill{display:none}.brandtitle{font-size:1.1rem}.mast-right .pill{display:none}.footer{font-size:.62rem;flex-wrap:wrap}.panel{padding:18px}.host-layout{margin:15px 0;gap:14px}.actionsgrid{grid-template-columns:1fr}.modegrid{grid-template-columns:1fr}.chooseteam{grid-template-columns:repeat(2,minmax(0,1fr))}.teamchoice{min-height:85px}.player-join,.playercenter{padding:20px 0}.answergrid{gap:9px}.answer{font-size:.86rem;min-height:150px;padding:11px;flex-direction:column;align-items:flex-start;justify-content:center;gap:10px}.answer-symbol{width:29px;height:29px}.playergame{margin-top:19px}.playerquestion h1{font-size:1.5rem;margin:14px 0}.player-bottom{font-size:.9rem}.pinbox strong{font-size:2.4rem}.settingsrow select{width:140px}.lobby-main h1{font-size:3.6rem}.join-lobby{flex-wrap:wrap}.qrbox img{height:110px;width:110px}}

/* MARLAN QUIZ V2 — host quiz selector and standalone editor */
.quiz-picker{border:1px solid #49687c;border-radius:15px;padding:17px;margin:5px 0 22px;background:#0a263c}.quiz-picker p{margin:3px 0 11px}.quiz-picker strong{color:#ffd28b}.quiz-pickrow{display:flex;align-items:center;gap:10px;margin-bottom:11px}.quiz-pickrow select{flex:1;width:100%;min-width:0}.quiz-pickrow button{white-space:nowrap}.editor-link{font-size:.94rem;font-weight:850;text-decoration:none;display:inline-block;margin:5px 0 7px}.quiz-picker .smallnote{font-size:.75rem}
.editor-container{max-width:1560px;margin:auto;padding:30px clamp(14px,3vw,45px);min-height:100vh;display:flex;flex-direction:column;gap:22px}.editor-header{display:flex;justify-content:space-between;gap:20px;align-items:center;padding-bottom:20px;border-bottom:1px solid var(--line)}.editor-header h1{font-size:clamp(1.9rem,3vw,3rem);margin-bottom:10px}.editor-grid{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:22px;align-items:start}.editor-aside{position:sticky;top:18px}.editor-aside .panel{padding:20px}.editor-quiz-list{display:flex;flex-direction:column;gap:9px;margin-top:15px;max-height:70vh;overflow:auto}.editor-quiz-choice{display:block;width:100%;padding:14px 15px;border:1px solid #355873;background:#0a2035;color:#fff;text-align:left;border-radius:12px}.editor-quiz-choice.active{border-color:#fdbb6b;background:#393023}.editor-quiz-choice strong{display:block;font-size:.94rem;line-height:1.3}.editor-quiz-choice small{display:block;margin-top:6px;color:#b5cada}.editor-quiz-choice:hover{border-color:#82a4bd}.editor-main{min-width:0}.editor-card{background:linear-gradient(145deg,#183249,#10273b);border:1px solid #31516a;border-radius:16px;padding:20px;margin-bottom:17px}.editor-label{display:block;color:#d4e6f2;font-weight:750;font-size:.87rem;margin:0 0 8px}.editor-input,.editor-textarea{width:100%;background:#071d31;color:#fff;border:1px solid #47617c;border-radius:10px;padding:12px 13px;font:inherit}.editor-textarea{min-height:82px;resize:vertical}.editor-input:focus,.editor-textarea:focus{outline:2px solid #ffac43}.editor-note{color:#8faac0;font-size:.79rem;line-height:1.45}.editor-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.editor-qtop{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.editor-qtop h3{font-size:1.08rem}.editor-qbuttons{display:flex;gap:6px;flex-wrap:wrap}.editor-qbuttons button{background:#1c405b;color:#f6faff;border:1px solid #46627d;border-radius:7px;padding:7px 11px}.editor-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.editor-option{display:flex;flex-direction:column;gap:6px}.editor-option label{font-weight:750;font-size:.82rem;color:#bdcfe0}.editor-option label span{color:#ffbd63}.editor-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.editor-toolbar.right{justify-content:flex-end}.editor-alert{background:#254a37;border:1px solid #50aa78;color:#d7ffe2;border-radius:12px;padding:14px 17px;font-weight:750}.editor-alert.error{background:#573039;border-color:#c45b6c;color:#fff}.editor-unsaved{display:inline-flex;align-items:center;color:#ffc67a;border:1px solid #b17d3b;background:#4f3822;padding:6px 12px;border-radius:999px;font-size:.76rem;font-weight:800}.editor-section-label{font-size:.75rem;color:#f6c37f;font-weight:900;letter-spacing:.12em;margin-bottom:12px;text-transform:uppercase}.editor-empty{background:#152e43;border:1px dashed #466780;padding:22px;border-radius:14px}.editor-panel-title{margin:0 0 16px;font-size:1.35rem}.editor-actions{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;align-items:center;margin:22px 0}.editor-meta{font-size:.8rem;color:#a6bed0}.editor-danger{border:1px solid #9e555a;background:#39252d;color:#ffc4c4}.editor-mobile-hint{display:none}
@media(max-width:900px){.editor-grid{grid-template-columns:1fr}.editor-aside{position:static}.editor-quiz-list{max-height:initial}.editor-header{flex-wrap:wrap}}
@media(max-width:600px){.quiz-pickrow,.editor-fields,.editor-options{grid-template-columns:1fr;flex-direction:column}.quiz-pickrow button{width:100%}.editor-card{padding:14px}.editor-qtop{align-items:flex-start;flex-direction:column}.editor-toolbar .btn{width:100%}.editor-actions{flex-direction:column;align-items:stretch}.editor-actions .btn{width:100%}.editor-mobile-hint{display:block}}
