:root{font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif;color:#f7f7ff;background:#101229;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh;overflow-x:hidden;background:radial-gradient(circle at 12% -5%,#34285f 0,transparent 37%),radial-gradient(circle at 92% 60%,#23275a 0,transparent 38%),#101229}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}a{text-decoration:none;color:inherit}.site-shell{max-width:1280px;margin:auto;padding:0 30px;position:relative;z-index:1}.bg-spark{position:fixed;width:310px;height:310px;filter:blur(100px);opacity:.26;pointer-events:none}.spark-one{background:#6655f0;top:250px;left:-160px}.spark-two{background:#ea4bc4;right:-230px;bottom:80px}.topbar{height:94px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff18}.logo{font-size:27px;letter-spacing:-1.5px;font-weight:950;display:inline-flex;align-items:center;gap:8px;direction:ltr}.logo-mark{height:38px;width:38px;border-radius:12px;display:grid;place-items:center;background:#8067ff;color:white;font-size:25px}.logo-live{font-size:10px;letter-spacing:2px;border-radius:5px;border:1px solid #a08cff;color:#c5baff;padding:5px 6px;margin-left:2px}.top-note,.muted{color:#a7a8c7}.top-note{font-size:14px}.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#5ce8be;box-shadow:0 0 0 4px #5ce8be19;margin-left:8px}footer{padding:30px 0 25px;color:#8587ac;font-size:12px;text-align:center}.eyebrow{color:#a99cff;font-size:12px;letter-spacing:1.3px;font-weight:800;margin-bottom:14px}.eyebrow-icon{color:#ffd079}.hero{min-height:465px;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:55px;padding:42px 0 20px}.hero h1{font-size:clamp(38px,4.4vw,64px);line-height:1.16;margin:0 0 22px;letter-spacing:-2.6px;font-weight:900}.gradient-text{background:linear-gradient(110deg,#b898ff 10%,#ff8bbb 75%,#ffc9a5);color:transparent;background-clip:text}.hero-subtitle{color:#b5b5d3;font-size:17px;line-height:1.8;max-width:530px}.hero-highlights{display:flex;flex-wrap:wrap;gap:9px;margin-top:28px}.hero-highlights span{border:1px solid #ffffff18;background:#ffffff09;border-radius:22px;padding:10px 14px;font-size:13px;color:#dbdbf3}.hero-illustration{height:390px;position:relative;display:grid;place-items:center}.quiz-shape{height:300px;width:270px;border:1px solid #a18cff70;border-radius:30px;background:linear-gradient(160deg,#6f5cef,#41339f);box-shadow:0 30px 95px #6052e145,0 0 0 16px #ffffff05;transform:rotate(-7deg);display:flex;flex-direction:column;align-items:center;justify-content:space-evenly}.quiz-shape>div:first-child{font-size:30px;font-weight:900;letter-spacing:3px}.quiz-shape strong{font-size:130px;line-height:1;font-weight:900}.shape-options{display:grid;grid-template-columns:repeat(4,40px);gap:7px}.shape-options span{height:38px;display:grid;place-items:center;border-radius:10px;background:#ffffff25;font-size:20px}.float-card{position:absolute;border-radius:17px;background:#272c51dd;box-shadow:0 17px 50px #080a1d65;border:1px solid #ffffff22;padding:15px 18px;font-size:16px;backdrop-filter:blur(16px);z-index:2}.float-top{right:5px;top:42px;transform:rotate(7deg);display:flex;align-items:center;gap:8px}.float-top small{display:block;color:#b7f6d8;font-size:12px}.float-bottom{bottom:31px;left:10px;transform:rotate(5deg)}.home-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.glass-card{border-radius:22px;background:linear-gradient(170deg,#242640ee,#191d38f2);border:1px solid #ffffff17;box-shadow:0 16px 60px #080a1a2b}.action-card{padding:30px 32px}.action-card h2{font-size:25px;margin:10px 0 8px}.action-card p{min-height:51px;line-height:1.7;color:#b9bbd7;font-size:14px}.action-card small{color:#8e91b3;display:block;margin-top:12px}.section-icon{font-size:26px;width:54px;height:54px;display:grid;place-items:center;background:#ffffff11;border-radius:15px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:46px;padding:12px 20px;border:1px solid transparent;border-radius:12px;font-weight:750;font-size:14px;transition:transform .15s,filter .15s;text-align:center}.btn:not(:disabled):hover{transform:translateY(-2px);filter:brightness(1.08)}.btn-primary{background:linear-gradient(110deg,#8769ff,#6552eb);color:white;box-shadow:0 6px 20px #6757e644}.btn-light{background:#eeeaff;color:#33266c}.btn-outline{background:#ffffff0b;color:#f0efff;border-color:#ffffff38}.btn-ghost-danger{background:#f65b7214;color:#ffacb6;border-color:#ff59602e}.btn-wide{width:100%}.action-card form{display:grid;gap:9px}.action-card input,.join-wrap input,.input{width:100%;min-height:47px;background:#111632;border:1px solid #ffffff2c;border-radius:11px;color:#fff;padding:12px 14px;outline:none}.action-card input:focus,.join-wrap input:focus,.input:focus{border-color:#a091ff;box-shadow:0 0 0 3px #806aff22}.action-card input{font-size:19px;text-align:center;font-weight:800;letter-spacing:4px}.action-card label,.editor-card label,.join-wrap label{color:#c4c4df;font-size:13px;font-weight:650}.join-wrap,.error-card{max-width:520px;margin:85px auto 80px;padding:40px;text-align:center}.join-wrap h1{font-size:30px;margin:14px 0}.join-wrap p{color:#b9bad7}.join-wrap form{text-align:right;display:grid;gap:12px;margin-top:25px}.join-symbol{font-size:70px}.join-wrap input{margin-bottom:10px}.join-wrap button{margin-top:12px}.error-card .btn{margin-top:18px}.game-header{display:flex;justify-content:space-between;align-items:center;padding:32px 0 20px;gap:14px}.game-title h1{font-size:32px;margin:0}.code-badge{background:#ffffff10;border:1px solid #ffffff28;border-radius:13px;display:grid;text-align:center;padding:10px 20px}.code-badge small{color:#a8aad4;font-size:11px}.code-badge strong{font-size:29px;letter-spacing:4px;font-variant-numeric:tabular-nums}.host-summary,.player-summary{display:flex;gap:14px;align-items:stretch;margin-bottom:22px}.metric{min-width:120px;padding:17px 24px;border-radius:14px;background:#ffffff0b;border:1px solid #ffffff17;display:flex;flex-direction:column;gap:4px}.metric strong{font-size:24px;line-height:1.2}.metric span{color:#aaaed1;font-size:12px}.metric small{font-size:11px;color:#aaaed1}.connection-status{align-self:center;margin-right:auto;color:#69ddb0;font-size:12px;white-space:nowrap}.room-bar{padding:25px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.room-main{display:flex;align-items:center;gap:18px}.room-emoji{font-size:40px}.room-main h2{margin:0 0 7px;font-size:20px}.room-main p{margin:0;word-break:break-all;direction:ltr;text-align:right;font-size:12px}.room-actions{display:flex;gap:10px;flex-wrap:wrap}.host-cols{display:grid;grid-template-columns:1fr 1fr;gap:22px}.control-card,.editor-card{padding:26px}.card-title-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px}.card-title-row h2,.card-title-row h3{margin:0}.count-tag{background:#8068f824;color:#c3b7ff;border:1px solid #8976ef45;padding:6px 10px;font-size:13px;font-weight:800;border-radius:8px}.chip-list{display:flex;flex-wrap:wrap;gap:9px;max-height:420px;overflow:auto;align-content:flex-start;min-height:145px}.player-chip{background:#ffffff0d;border:1px solid #ffffff1b;border-radius:25px;padding:6px 12px 6px 7px;display:inline-flex;align-items:center;gap:7px;font-size:13px}.chip-avatar{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#6358a8;font-size:11px}.empty-text{color:#9ea0c1;margin-top:30px;line-height:1.6}.start-button{margin-top:20px}.hint{font-size:12px;line-height:1.6}.editor-card .input{margin:8px 0 15px}.editor-card textarea{resize:vertical;line-height:1.5}.question-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}.tab{width:38px;height:38px;border-radius:9px;border:1px solid #ffffff27;background:#ffffff0e;color:#c8c9e9;font-weight:750}.tab.selected{background:#7863ed;color:#fff}.tab-add{border-style:dashed}.editor-options{display:grid;gap:0}.editor-option{display:flex;align-items:center;gap:10px}.option-indicator{flex-shrink:0;width:37px;height:37px;border-radius:9px;display:grid;place-items:center}.option-0{background:#e85871}.option-1{background:#3488e6}.option-2{background:#e2a63d}.option-3{background:#35a778}.editor-settings{display:grid;grid-template-columns:1fr 1fr;gap:12px}.editor-settings select{cursor:pointer}.editor-actions{display:flex;gap:10px;margin:7px 0 11px}.editor-card small{font-size:12px}.question-layout{display:grid;grid-template-columns:1.7fr .8fr;gap:20px}.question-board{padding:30px}.question-meta{display:flex;align-items:center;justify-content:space-between;gap:15px;color:#b0add5;font-size:14px;font-weight:750}.question-board h2,.mobile-question h2{font-size:clamp(23px,2.6vw,34px);margin:25px 0 30px;line-height:1.4}.timer{display:inline-block;font-size:23px;color:#f3e9fd;font-variant-numeric:tabular-nums}.timer-low{color:#ff758d;animation:pulse 1s infinite}.answers-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.answer-option{min-height:98px;border:2px solid transparent;border-radius:14px;display:flex;align-items:center;text-align:right;gap:18px;color:#fff;font-size:17px;font-weight:750;padding:15px 20px;transition:transform .15s,filter .15s;opacity:1!important;cursor:default}.answer-option[data-action]{cursor:pointer}.answer-option[data-action]:hover{transform:translateY(-3px);filter:brightness(1.1)}.answer-0{background:#c94967}.answer-1{background:#286ec0}.answer-2{background:#c99227}.answer-3{background:#208c69}.answer-icon{font-size:27px;flex-shrink:0}.answer-option.wrong{filter:grayscale(.8);opacity:.42!important}.answer-option.correct{outline:3px solid #d5ffd5;outline-offset:2px}.answer-option.chosen{border-color:#fff}.answer-status{margin-right:auto;font-size:26px}.stats-sidebar{padding:30px;display:flex;flex-direction:column;align-items:stretch}.stats-sidebar h2{margin:0}.big-count{font-size:70px;font-weight:950;letter-spacing:-2px;margin-top:35px}.big-count span{color:#9e9ec8;font-size:28px}.progress{width:100%;height:12px;background:#ffffff20;border-radius:20px;overflow:hidden;margin:5px 0 10px}.progress>div{height:100%;background:linear-gradient(90deg,#8d72ff,#5be3c1);transition:width .3s}.stats-sidebar p{line-height:1.6}.stats-sidebar .btn{margin-top:auto}.correct-label{color:#7ae6bb}.result-layout{display:grid;grid-template-columns:1.5fr 1fr;gap:20px;margin-top:20px}.leaderboard{padding:24px;margin-top:0}.rank-list{display:flex;flex-direction:column;gap:9px}.rank-row{display:flex;gap:15px;align-items:center;border:1px solid #ffffff14;background:#ffffff08;padding:12px 14px;border-radius:12px;font-size:14px}.rank-first{border-color:#eed08360;background:#ffe3a316}.rank-self{outline:1px solid #a091ff}.rank-num{width:40px;text-align:center;font-size:21px}.rank-points{margin-right:auto;color:#c0c0e0;font-variant-numeric:tabular-nums}.next-card{padding:28px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.next-card h2{font-size:24px}.next-card p{color:#b9bad7;margin-top:0}.next-card .btn{margin-top:20px}.finish-layout{display:grid;grid-template-columns:.9fr 1.2fr;gap:20px}.celebrate{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;min-height:270px;padding:30px}.confetti{font-size:35px;margin-bottom:10px}.celebrate h2{font-size:32px;margin-bottom:3px}.celebrate p{color:#c2c2db}.celebrate .btn{margin-top:15px}.player-content{max-width:790px;margin:auto;display:flex;flex-direction:column;gap:20px}.player-summary{max-width:790px;margin:0 auto 22px}.waiting{text-align:center;padding:45px 30px}.waiting-emoji{font-size:65px}.waiting h2{font-size:30px;margin:12px 0}.waiting p{color:#bfc0dc;line-height:1.65}.waiting-players{margin:28px auto 0;display:inline-block;border:1px solid #ffffff2b;background:#ffffff10;border-radius:30px;padding:12px 18px}.pulse-dots{display:flex;justify-content:center;gap:8px;margin-top:30px}.pulse-dots i{width:8px;height:8px;background:#ab93ff;border-radius:50%;animation:pulse 1.2s infinite}.pulse-dots i:nth-child(2){animation-delay:.2s}.pulse-dots i:nth-child(3){animation-delay:.4s}.mobile-question{padding:30px}.mobile-question h3{font-size:20px}.mobile-question .answers-grid{grid-template-columns:1fr 1fr}.mobile-question .answer-option{min-height:110px}.answer-sent{text-align:center;padding:20px}.answer-sent h3{font-size:24px}.answer-sent p{color:#acaeca}.answer-feedback{text-align:center;margin:12px 0 25px}.answer-feedback h2{font-size:28px}.feedback-emoji{font-size:58px}.score-bar{text-align:center;border-radius:11px;background:#ffffff10;padding:14px;margin-top:20px;color:#d7d6ef}.player-content .leaderboard{margin-bottom:20px}@keyframes pulse{50%{opacity:.42;transform:scale(.85)}}#toast{position:fixed;bottom:25px;right:50%;transform:translate(50%,30px);background:#4b408d;color:#fff;padding:13px 22px;border-radius:12px;z-index:30;box-shadow:0 12px 60px #09092088;opacity:0;transition:.2s;pointer-events:none;max-width:90vw;text-align:center}#toast.visible{opacity:1;transform:translate(50%,0)}#toast.bad{background:#a73e59}
@media(max-width:900px){.site-shell{padding:0 20px}.hero{gap:20px}.hero-illustration{transform:scale(.8)}.host-cols,.question-layout,.result-layout,.finish-layout{grid-template-columns:1fr}.stats-sidebar{min-height:230px}.stats-sidebar .btn{margin-top:20px}.room-bar{flex-direction:column;align-items:stretch}.room-actions{justify-content:stretch}.room-actions .btn{flex:1}.host-summary{flex-wrap:wrap}}
@media(max-width:640px){.site-shell{padding:0 15px}.topbar{height:78px}.logo{font-size:22px}.logo-mark{width:31px;height:31px;font-size:20px}.top-note{font-size:10px}.hero{display:block;min-height:0;padding:38px 5px 20px}.hero h1{letter-spacing:-1.5px;font-size:38px}.hero-subtitle{font-size:15px}.hero-illustration{height:250px;transform:scale(.65);margin:-45px auto -40px}.home-grid{grid-template-columns:1fr;gap:14px}.action-card{padding:24px}.game-header{padding:23px 0 17px}.game-title h1{font-size:23px}.code-badge{padding:9px 12px}.code-badge strong{font-size:21px}.host-summary,.player-summary{gap:8px;flex-wrap:wrap}.metric{min-width:0;flex:1;padding:12px;text-align:center}.metric strong{font-size:19px}.connection-status{width:100%;text-align:center;margin:2px 0 8px}.room-bar,.control-card,.editor-card,.question-board,.stats-sidebar,.mobile-question{padding:20px}.room-main h2{font-size:17px}.room-emoji{font-size:27px}.room-main{gap:10px}.question-board h2,.mobile-question h2{font-size:23px;margin:20px 0}.answer-option{min-height:78px;font-size:13px;padding:9px 12px;gap:7px;border-radius:10px}.answer-icon{font-size:21px}.mobile-question .answer-option{min-height:95px}.answers-grid{gap:9px}.code-badge strong{letter-spacing:2px}.editor-actions{flex-wrap:wrap}.editor-actions .btn{flex:1}.waiting{padding:32px 18px}.waiting h2{font-size:24px}.rank-row{padding:11px 9px;gap:8px}.rank-points{font-size:12px}.join-wrap{padding:30px 20px;margin:35px auto}}

/* Organizer handoff link: only shown to a verified host. */
.organizer-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 20px;margin-bottom:20px;border:1px solid #b59bfd55}
.organizer-bar>div{display:flex;flex-direction:column;gap:5px}
.organizer-bar strong{font-size:14px}
.organizer-bar small{font-size:12px;color:#bdc0dd}
.organizer-bar .btn{flex-shrink:0}
@media(max-width:640px){.organizer-bar{align-items:stretch;flex-direction:column}.organizer-bar .btn{width:100%}}

/* QR-based one-scan join: bundled in the app, no third-party QR service. */
.qr-join-panel{padding:28px;display:grid;grid-template-columns:240px minmax(0,1fr);gap:30px;align-items:center;margin-bottom:22px}
.qr-join-visual{max-width:240px;margin-inline:auto}
.qr-image{background:#fff;padding:14px;border-radius:16px;line-height:0;box-shadow:0 8px 35px #09091b22;width:min(100%,260px);aspect-ratio:1}
.qr-image svg{display:block;width:100%;height:100%;shape-rendering:crispEdges}
.qr-join-content{min-width:0}
.qr-join-content h2{font-size:clamp(22px,2.5vw,32px);margin:5px 0 10px}
.qr-join-content>p{font-size:15px;color:#c0c2df;line-height:1.65;margin:0 0 14px}
.qr-join-pin{font-size:18px;color:#ecebff}
.qr-join-pin strong{font-size:32px;letter-spacing:4px;margin-inline:8px}
.qr-join-address{font-size:13px;word-break:break-all;color:#b7b6de;margin-top:8px;text-align:right}
.qr-join-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.qr-local-setup{border:1px solid #ffcc6f68;background:#f9bb4411;border-radius:13px;padding:14px;margin-top:18px}
.qr-local-setup label{font-weight:750;color:#ffe2a5;font-size:14px}
.qr-local-setup p{font-size:12px;line-height:1.65;color:#e7d5b2}
.qr-local-setup code{direction:ltr;unicode-bidi:isolate}
.qr-local-field{display:flex;gap:8px}
.qr-local-field input{text-align:left;flex:1;min-width:0}
.qr-unavailable{line-height:1.7;background:white;color:#333;padding:20px;border-radius:12px;text-align:center}
.qr-overlay{position:fixed;inset:0;z-index:100;background:#101229f7;display:flex;justify-content:center;align-items:center;padding:24px;text-align:center;overflow:auto}
.qr-overlay-content{width:100%;max-width:860px;display:flex;flex-direction:column;align-items:center;gap:12px}
.qr-overlay h2{font-size:clamp(24px,4vw,42px);margin:0 0 5px}
.qr-overlay .qr-image{width:min(58vh,66vw,500px);max-width:500px;padding:18px;border-radius:18px}
.qr-close{align-self:flex-start}
.qr-full-pin{font-size:clamp(33px,5vw,56px);letter-spacing:6px;font-weight:900}
.qr-full-url{color:#ceceed;word-break:break-all;max-width:95%;margin:0;font-size:16px}
.qr-local-warning{color:#ffd27b;font-size:13px}
.join-room-tag{display:inline-flex;align-items:center;gap:12px;padding:12px 20px;background:#ffffff15;border:1px solid #ffffff33;border-radius:12px;font-weight:650}
.join-room-tag strong{letter-spacing:3px;font-size:19px}
.join-other{display:inline-block;color:#c4b5ff;font-size:13px;margin-top:20px;text-decoration:underline}
@media(max-width:760px){.qr-join-panel{grid-template-columns:1fr;gap:18px;padding:20px}.qr-join-visual{width:220px}.qr-join-actions .btn{width:100%}.qr-local-field{flex-direction:column}.qr-join-content{text-align:center}.qr-join-address{text-align:center}}


/* Event controls and accessible remove-player button */
.event-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.event-controls .btn:last-child{grid-column:1/-1}
.kick-mini{border:0;background:#f65b7233;color:#ffd5db;border-radius:50%;width:25px;height:25px;line-height:1;font-size:20px;margin-inline-start:6px;cursor:pointer}
.kick-mini:focus-visible{outline:3px solid #fff}
[data-player-count]{display:none}
@media(max-width:640px){.mobile-question .answer-option{font-size:17px;min-height:112px;line-height:1.45}.mobile-question .answer-option span:nth-child(2){overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}


/* Stage B: distraction-free projector and result visualizations */
.organizer-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.editor-tools{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.editor-tools .btn{min-height:40px;padding:8px 11px;font-size:13px}
.import-label{cursor:pointer}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.distribution{padding:24px;margin:20px 0}
.distribution h2{margin:0 0 20px;font-size:22px}
.distribution-bars{display:grid;gap:14px}
.distribution-bar{display:grid;grid-template-columns:minmax(100px,1fr) minmax(120px,2fr) 45px;gap:15px;align-items:center}
.dist-option{font-size:15px;overflow-wrap:anywhere}
.dist-track{height:22px;background:#ffffff14;overflow:hidden;border-radius:7px}
.dist-fill{height:100%;border-radius:7px;transition:width .5s ease}
.distribution-bar strong{font-size:18px;text-align:center;font-variant-numeric:tabular-nums}
.projector-screen{font-size:clamp(20px,2.4vw,36px);min-height:calc(100vh - 130px)}
.projector-screen .game-header{padding:24px 0}
.projector-screen .game-title h1{font-size:clamp(30px,3vw,50px)}
.projector-screen .code-badge strong{font-size:clamp(26px,3vw,50px)}
.projector-lobby,.projector-winners{text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px;justify-content:center;min-height:65vh}
.projector-lobby h2,.projector-winners h2,.projector-question h2{font-size:clamp(32px,4vw,68px);line-height:1.3;margin:18px 0}
.projector-lobby .qr-image{width:min(38vh,380px);max-width:380px}
.projector-code strong{letter-spacing:5px;font-size:1.5em}
.projector-question{padding:18px 0 28px}
.projector-question .answers-grid{gap:18px}
.projector-question .answer-option{min-height:130px;font-size:clamp(21px,2.5vw,38px);padding:24px}
.projector-footer{text-align:center;font-size:clamp(18px,2.1vw,32px);margin-top:32px}
.projector-screen .distribution-bar{grid-template-columns:minmax(140px,1fr) minmax(200px,2fr) 65px}
.projector-screen .dist-track{height:36px}
.projector-screen .leaderboard{margin:20px 0}
.projector-screen .rank-row{font-size:clamp(20px,2vw,34px)}
@media(max-width:760px){.organizer-bar{flex-direction:column;align-items:stretch}.organizer-actions .btn{flex:1}.editor-tools .btn{flex:1}.distribution-bar{grid-template-columns:1fr 1fr 32px;gap:9px}.dist-option{font-size:13px}.projector-question .answer-option{min-height:100px;padding:12px}}


/* Late joining, reliable answer feedback and optional quiz imagery */
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.sound-toggle{font-size:13px;min-height:40px;padding:9px 12px}
.pending-panel{padding:22px;margin:22px 0}
.pending-panel h2{font-size:22px;margin:0 0 8px}
.pending-panel p{font-size:14px;color:#c5c3df}
.pending-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #ffffff22;padding:12px 0}
.pending-row strong{overflow-wrap:anywhere}
.pending-row>div{display:flex;gap:8px;flex-wrap:wrap}
.pending-row .btn{min-height:37px;padding:8px 12px}
.question-image{display:block;max-width:100%;width:auto;max-height:min(34vh,330px);margin:12px auto 22px;object-fit:contain;border-radius:14px;background:#0d1234;border:1px solid #ffffff26;box-shadow:0 10px 25px #0002}
.editor-card .question-image{max-height:160px;margin:12px auto;max-width:100%}
.projector-question .question-image{max-height:min(36vh,400px)}
.mobile-question .question-image{max-height:220px}
.answer-sent{animation:quiz-feedback-appear .25s ease-out}
@keyframes quiz-feedback-appear{from{opacity:.5;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:680px){.header-actions{width:100%;justify-content:space-between}.game-header{flex-wrap:wrap}.sound-toggle{font-size:12px}.pending-row{align-items:stretch;flex-direction:column}.pending-row>div .btn{flex:1}.question-image{max-height:230px}}
@media(prefers-reduced-motion:reduce){.answer-sent{animation:none}}


/* Projector authorization help: clear recovery actions for an organizer. */
.screen-help-actions{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;margin-top:22px}
.screen-help-actions .btn{min-width:180px}
@media(max-width:640px){.screen-help-actions{flex-direction:column}.screen-help-actions .btn{width:100%}}


/* QUIZO Studio: a guided editor rather than forty tiny numbered tabs */
.host-cols{grid-template-columns:1fr}
.host-cols>.control-card{max-width:none}
.quiz-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:22px;border-bottom:1px solid #ffffff20}
.quiz-editor-heading h2{font-size:30px;line-height:1.2;margin:0 0 8px}
.quiz-editor-heading p{color:#b2b4d8;font-size:14px;line-height:1.6;margin:0}
.quiz-editor-heading-actions{display:flex;align-items:center;gap:12px}
.quiz-editor-shell{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);align-items:start;gap:24px;margin-top:24px}
.quiz-editor-sidebar{border:1px solid #ffffff18;background:#151a36b9;border-radius:17px;padding:18px;position:sticky;top:14px;min-width:0}
.quiz-editor-sidebar>label{display:block;margin-bottom:8px}
.quiz-editor-sidebar>h3{font-size:15px;margin:24px 0 12px}
.quiz-question-list{display:grid;gap:8px;max-height:460px;overflow:auto;scrollbar-color:#666b9b transparent;padding:2px}
.quiz-question-item{display:flex;text-align:start;align-items:center;gap:10px;width:100%;padding:12px;border:1px solid #ffffff15;background:#ffffff08;color:#f5f4ff;border-radius:12px;min-width:0;transition:background .15s,border-color .15s}
.quiz-question-item:hover{background:#ffffff15}
.quiz-question-item.selected{background:#7860e540;border-color:#ac9dff;box-shadow:inset 3px 0 #a893ff}
.quiz-question-number{flex:0 0 30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#ffffff19;font-weight:850}
.quiz-question-label{min-width:0;flex:1;display:grid;gap:4px}
.quiz-question-label strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}
.quiz-question-label small{font-size:11px;color:#b1b2d2}
.quiz-question-check{border-radius:100%;width:20px;height:20px;display:grid;place-items:center;background:#ffffff12;color:#a9f0d3;font-size:12px;font-weight:800}
.quiz-add-question{width:100%;margin-top:13px}
.quiz-editor-form{min-width:0}
.quiz-editor-current{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:20px}
.quiz-editor-current .eyebrow{margin:0}
.quiz-edit-tools{display:flex;gap:6px;flex-wrap:wrap}
.quiz-edit-tools .btn{padding:8px 10px;min-height:36px;font-size:12px}
.quiz-editor-form>label{display:block;font-size:14px;font-weight:800;margin-bottom:9px}
.quiz-question-textarea{min-height:104px;resize:vertical;font-size:18px;line-height:1.6}
.quiz-field-heading{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:12px}
.quiz-field-heading h3{margin:0;font-size:19px}
.quiz-field-heading small,.quiz-field-heading h3 small{font-size:12px;color:#9fa3cd;font-weight:450}
.quiz-image-section,.quiz-answer-section,.quiz-editor-settings,.quiz-editor-preview{margin-top:22px}
.quiz-upload-card{border:2px dashed #7167a6;border-radius:15px;min-height:112px;display:flex;justify-content:center;align-items:center;gap:9px;flex-direction:column;text-align:center;padding:14px;cursor:pointer;background:#ffffff07}
.quiz-upload-card:hover,.quiz-upload-card:focus-within{border-color:#b9a8ff;background:#aa92ff12}
.quiz-upload-card strong{color:#f1edff;font-size:15px}
.quiz-upload-card small{font-size:12px;font-weight:450;color:#b5b6d2}
.quiz-upload-icon{font-size:28px}
.quiz-image-preview{margin-top:12px;padding:14px;border:1px solid #ffffff1e;border-radius:14px;background:#11172f;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.quiz-image-preview .question-image{max-height:170px;max-width:min(100%,310px);margin:0}
.quiz-image-preview .btn{margin-right:auto}
.quiz-image-url{margin-top:13px;color:#bbbce0;font-size:13px}
.quiz-image-url summary{cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.quiz-image-url label{display:block;padding:12px 0 7px}
.quiz-upload-status{font-size:12px;color:#93e6c6;min-height:12px}
.quiz-answer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.quiz-answer-edit{padding:14px 15px;background:#ffffff08;border:1px solid #ffffff23;border-radius:13px;min-width:0}
.quiz-answer-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}
.quiz-answer-title label{flex:1;font-size:14px;font-weight:800}
.quiz-answer-symbol{font-size:24px}
.quiz-correct-button{background:#ffffff10;border:1px solid #ffffff35;border-radius:9px;color:#cfcfee;font-size:12px;padding:8px;white-space:nowrap}
.quiz-correct-button.active{color:#bcffde;background:#2bc9812a;border-color:#52eaaa80}
.quiz-answer-edit .input{font-size:15px}
.quiz-editor-settings{display:flex;align-items:center;gap:16px;padding:13px 17px;border-radius:12px;background:#ffffff08}
.quiz-editor-settings .input{width:min(100%,205px)}
.quiz-editor-preview{padding:20px;background:#0f1530;border:1px solid #ffffff25;border-radius:15px}
.quiz-editor-preview h3{text-align:center;font-size:24px;margin:12px 0 16px;line-height:1.4}
.quiz-editor-preview .question-image{max-height:180px}
.quiz-preview-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.quiz-preview-choice{padding:13px 15px;background:#ffffff0b;border:1px solid #ffffff1e;border-radius:10px;font-size:14px;overflow-wrap:anywhere}
.quiz-preview-choice.is-correct{border-color:#48da9f;background:#2fbe8842}
.quiz-editor-footer{margin-top:20px;display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid #ffffff1e;padding-top:18px}
.quiz-editor-footer .editor-tools{margin:0}
.quiz-editor-footnote{margin:24px 0 0;color:#9d9fbc;font-size:12px}
@media(max-width:900px){.quiz-editor-shell{grid-template-columns:1fr}.quiz-editor-sidebar{position:static}.quiz-question-list{display:flex;overflow:auto;max-height:none;padding-bottom:7px}.quiz-question-item{flex:0 0 175px}.quiz-editor-heading h2{font-size:26px}}
@media(max-width:600px){.editor-card{padding:18px}.quiz-editor-heading{align-items:stretch;flex-direction:column}.quiz-editor-heading-actions{justify-content:space-between}.quiz-editor-current{align-items:stretch;flex-direction:column}.quiz-answer-grid,.quiz-preview-options{grid-template-columns:1fr}.quiz-field-heading{align-items:flex-start;flex-direction:column}.quiz-answer-title{flex-wrap:wrap}.quiz-editor-footer{flex-direction:column;align-items:stretch}.quiz-editor-footer .btn{flex:1}.quiz-editor-settings{align-items:flex-start;flex-direction:column}.quiz-editor-settings .input{width:100%}}


/* Live presenter counters and controllable automatic question progression */
.auto-progress-card{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:18px 24px;margin:0 0 22px;border-radius:15px;background:#38315d40;border:1px solid #ac9bff45}
.auto-progress-card>div{display:grid;gap:6px;min-width:0}
.auto-progress-card strong{font-size:16px}
.auto-progress-card small{font-size:13px;line-height:1.5;color:#c7c7e4}
.auto-progress-card .btn{white-space:nowrap;flex:0 0 auto}
.auto-next-note{text-align:center;color:#baf6d6;font-size:18px;font-weight:750;border:1px solid #78ddb357;background:#2bbb8230;padding:12px 18px;border-radius:14px;margin:16px 0}
.auto-next-note strong{font-size:22px;font-variant-numeric:tabular-nums}
.projector-screen .auto-next-note{font-size:clamp(23px,2.8vw,39px);padding:20px 26px}
.projector-screen .auto-next-note strong{font-size:1.2em}
.projector-footer [data-answer-count],.projector-footer [data-player-total]{font-variant-numeric:tabular-nums}
@media(max-width:680px){.auto-progress-card{align-items:stretch;flex-direction:column}.auto-progress-card .btn{width:100%}}


.projector-response-track{height:15px;background:#ffffff25;border-radius:20px;margin:18px auto 0;max-width:620px;overflow:hidden}
.projector-response-track>div{height:100%;background:linear-gradient(90deg,#54e8b4,#94ffce);border-radius:inherit;transition:width .22s ease-out}


/* Organizer access, live presence and disconnected player indicators. */
.organizer-ready{color:#aeffd9!important;font-weight:700;min-height:0!important;font-size:15px!important}
.organizer-checking{font-size:14px;color:#a6a8ca!important;min-height:35px}
.organizer-logout{margin-top:10px;min-height:38px;font-size:12px}
.presence-dot{display:inline-block;width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#8790b5;box-shadow:0 0 0 3px #8790b524}
.is-online .presence-dot{background:#4de3a3;box-shadow:0 0 0 3px #4de3a336}
.is-offline{opacity:.62}
.is-offline .chip-avatar{filter:grayscale(.75)}
.projector-lobby [data-online-count],.projector-footer [data-online-count]{color:#7df2ba;font-weight:850;font-variant-numeric:tabular-nums}


/* Kahoot-style game modes — accessible, no external scripts or assets. */
.question-features{display:flex;gap:9px;align-items:center;justify-content:center;flex-wrap:wrap;margin:12px 0 16px}
.question-feature-badge{display:inline-flex;padding:8px 12px;border-radius:999px;background:#6b64af35;color:#d8d2ff;border:1px solid #a1a1ee50;font-size:13px;font-weight:760}
.question-feature-badge.double-badge{color:#ffdda1;border-color:#f0bb606d;background:#b5823433}
.quiz-question-type{margin:6px 0 24px}
.quiz-type-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.quiz-type-button{min-height:55px;padding:12px 16px;border:1px solid #ffffff38;border-radius:12px;background:#ffffff0b;color:#d4d3e9;font-size:14px;font-weight:750;transition:background .17s,border-color .17s}
.quiz-type-button.selected{color:#fff;border-color:#a895ff;background:linear-gradient(130deg,#8265ff70,#5f59ae55);box-shadow:inset 0 0 0 1px #b2a4ff55}
.quiz-type-button:focus-visible,.quiz-correct-button:focus-visible{outline:3px solid #d5ccff;outline-offset:3px}
.quiz-fixed-answer{display:grid;align-items:center;min-height:42px;border:1px solid #ffffff35;padding:10px 15px;border-radius:9px;background:#ffffff0b;font-size:17px;font-weight:820}
.quiz-answer-grid.two-answers .quiz-answer-edit{min-height:120px}
.quiz-reveal-setting{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-top:16px;padding:13px 16px;border-radius:12px;background:#423b6945;border:1px solid #a092ed35}
.quiz-reveal-setting>div{display:grid;gap:5px}
.quiz-reveal-setting strong{font-size:14px}
.quiz-reveal-setting small{font-size:12px;color:#bfb9de}
.quiz-preview-hint{text-align:center;color:#d6d2ff;font-size:12px;margin:4px 0 12px}
.quiz-editor-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.quiz-editor-settings>div{min-width:0;display:grid;gap:7px}
.quiz-editor-settings .input{width:100%;margin:0;min-width:0}
.answers-grid.two-answers{grid-template-columns:repeat(2,minmax(0,1fr))}
.answers-grid.two-answers .answer-option{justify-content:center;text-align:center;min-height:128px;gap:16px;font-size:clamp(20px,2.1vw,30px)}
.answers-grid.two-answers .answer-icon{font-size:clamp(26px,3vw,38px)}
/* Gradual photo reveal: 12 opaque tiles disappear in a fixed order derived from server time. */
.image-reveal-frame{position:relative;max-width:100%;width:min(100%,620px);margin:16px auto 22px;overflow:hidden;border-radius:17px;line-height:0;background:#181939;isolation:isolate;box-shadow:0 16px 36px #0005}
.image-reveal-frame .question-image{margin:0;display:block;width:100%;max-width:none;max-height:min(37vh,340px);height:auto;object-fit:contain;border:0;border-radius:0}
.image-reveal-curtain{position:absolute;inset:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));pointer-events:none;overflow:hidden}
.image-reveal-tile{opacity:1;background:linear-gradient(135deg,#323967,#1b1e3e);border:1px solid #ffffff16;transition:opacity .4s ease}
.image-reveal-tile.is-uncovered{opacity:0}
.projector-screen .image-reveal-frame{width:min(80%,680px)}
.projector-screen .image-reveal-frame .question-image{max-height:min(44vh,430px)}
.mobile-question .image-reveal-frame{width:100%}
.mobile-question .image-reveal-frame .question-image{max-height:230px}
/* Winner podium: dramatic but small, no CDN and accessible with reduced motion. */
.winner-podium{position:relative;text-align:center;padding:34px 28px 26px;margin:0 auto 24px;max-width:100%;overflow:hidden;background:radial-gradient(circle at 50% 0%,#67458d75,transparent 55%),#181735;border:1px solid #a693ff52;border-radius:22px}
.winner-podium h2{font-size:clamp(28px,3.2vw,51px);margin:0 0 10px;letter-spacing:-.8px}
.podium-subtitle{font-size:clamp(13px,1.6vw,19px);color:#c4c2df;margin:0 0 22px}
.podium-sparkles{position:absolute;inset:auto 0 14% 0;font-size:clamp(22px,3vw,40px);letter-spacing:3vw;color:#ffda9d;opacity:.2;pointer-events:none;animation:podium-sparkle 3.8s ease-in-out infinite alternate}
.podium-stage{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(6px,2vw,28px);align-items:end;max-width:850px;margin:0 auto}
.podium-position{display:flex;flex-direction:column;align-items:stretch;min-width:0;opacity:0;animation:podium-arrive .7s cubic-bezier(.16,1.28,.45,1) forwards}
.podium-place-3{animation-delay:.25s}.podium-place-2{animation-delay:.95s}.podium-place-1{animation-delay:1.65s}
.podium-competitor{min-height:135px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;position:relative;z-index:1;padding:5px;min-width:0}
.podium-medal{font-size:clamp(36px,5vw,66px);filter:drop-shadow(0 3px 10px #0006)}
.podium-name{font-size:clamp(15px,2.3vw,27px);font-weight:950;max-width:100%;overflow-wrap:anywhere;line-height:1.25}
.podium-points{color:#e9e0ff;font-size:clamp(11px,1.4vw,18px);font-variant-numeric:tabular-nums}
.podium-block{border-radius:16px 16px 0 0;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 3px 0 #ffffff44,0 -8px 30px #0003}
.podium-block span{font-size:clamp(38px,5vw,78px);font-weight:1000;color:#ffffffec;text-shadow:0 5px 14px #0003}
.podium-place-1 .podium-block{height:clamp(132px,19vw,230px);background:linear-gradient(150deg,#f8cc5b,#be801e)}
.podium-place-2 .podium-block{height:clamp(95px,15vw,177px);background:linear-gradient(150deg,#bed2e7,#6a819e)}
.podium-place-3 .podium-block{height:clamp(75px,12vw,138px);background:linear-gradient(150deg,#d89e70,#865537)}
.podium-place-1 .podium-name{color:#ffe39b}
.podium-unfilled .podium-block{opacity:.25}
.finish-actions{margin:10px auto 24px;padding:22px 26px;display:flex;gap:20px;justify-content:space-between;align-items:center}
.finish-actions h3{font-size:19px;margin:0 0 7px}
.finish-actions p{margin:0;color:#aaa8ce;font-size:13px}
.finish-buttons{display:flex;gap:10px;flex-wrap:wrap}
.player-finished{padding:22px 15px}
.player-content .winner-podium{width:100%;padding:25px 14px}
.projector-screen .winner-podium{max-width:1200px;padding:45px 34px}
.projector-screen .podium-competitor{min-height:180px}
.projector-screen .podium-stage{max-width:950px}
@keyframes podium-arrive{0%{opacity:0;transform:translateY(55px) scale(.92)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes podium-sparkle{from{opacity:.18;transform:scale(.94)}to{opacity:.4;transform:scale(1.08)}}
@media(max-width:700px){
  .quiz-type-switch{grid-template-columns:1fr}
  .quiz-reveal-setting{flex-direction:column;align-items:stretch}
  .quiz-editor-settings{grid-template-columns:1fr}
  .answers-grid.two-answers,.mobile-question .answers-grid.two-answers{grid-template-columns:1fr}
  .mobile-question .answers-grid.two-answers .answer-option{min-height:92px;font-size:21px}
  .podium-competitor{min-height:120px}
  .winner-podium{padding:24px 12px}
  .podium-stage{gap:5px}
  .finish-actions{flex-direction:column;align-items:stretch}
  .finish-buttons{justify-content:stretch}
  .finish-buttons .btn{flex:1}
}
@media(prefers-reduced-motion:reduce){
  .podium-position{opacity:1;animation:none}
  .podium-sparkles{animation:none}
  .image-reveal-tile{transition:none}
}


/* In true/false mode, ✓ is green and ✕ is red (consistent on all screens). */
.answers-grid.two-answers .answer-0{background:#23895f}
.answers-grid.two-answers .answer-1{background:#bd4761}
.quiz-answer-grid.two-answers .quiz-answer-edit.answer-0{border-color:#4ad49b88;background:#24896225}
.quiz-answer-grid.two-answers .quiz-answer-edit.answer-1{border-color:#f4829b88;background:#bd476125}
.quiz-preview-options.two-answers .quiz-preview-choice.answer-0{background:#23895f7a}
.quiz-preview-options.two-answers .quiz-preview-choice.answer-1{background:#bd47617a}


/* Public create-room flow. Turnstile controls only creation, never player joining. */
.turnstile-create-area{margin:15px 0 16px;min-height:56px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px}
.turnstile-create-area>div{max-width:100%;min-height:40px}
.turnstile-create-status{font-size:12px!important;color:#b6b4d7!important;text-align:center;margin:0!important;min-height:20px!important;line-height:1.5!important}
.action-card .organizer-ready{color:#a8ffd8!important;font-size:14px!important;line-height:1.55!important;min-height:0!important}
.action-card #create-game:disabled{opacity:.6;cursor:wait}
