:root{--paper:#f7f4ec;--white:#fffefb;--ink:#2d2538;--muted:#797382;--line:#e3ded4;--purple:#7448c8;--deep:#4a287c;--lavender:#eee7fa;--lime:#ddf490;--orange:#efa35b;--green:#227663;--red:#b73e50;--radius:22px}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:ui-rounded,"SF Pro Rounded",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.5;-webkit-tap-highlight-color:transparent}button,input,textarea,select{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button,a{-webkit-user-select:none;user-select:none}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid var(--purple);outline-offset:4px}input:focus,textarea:focus,select:focus{outline:3px solid #7448c825;border-color:var(--purple)}input,textarea,select{width:100%;border:1px solid var(--line);border-radius:12px;padding:13px 15px;background:var(--white);color:var(--ink);min-height:48px}textarea{resize:vertical;line-height:1.5}label{display:block;font-size:12px;font-weight:750;letter-spacing:.02em;margin-bottom:7px}h1,h2,h3,p{margin:0}h1,h2{line-height:1.09;letter-spacing:-.045em}h1{font-size:44px}h2{font-size:30px}h3{font-size:18px;letter-spacing:-.025em}p{color:var(--muted)}small,.small{font-size:12px}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:.17em;font-weight:800;text-transform:uppercase}.serif{font-family:Georgia,"Times New Roman",serif}.italic{font-style:italic}.mascot{display:block;width:100%;height:100%;overflow:visible}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:45px;border:1px solid transparent;border-radius:12px;padding:11px 18px;font-weight:700;line-height:1.3;transition:transform .15s,background .15s;white-space:nowrap}.btn:hover:not(:disabled){transform:translateY(-1px)}.primary{background:var(--purple);color:white}.primary:hover:not(:disabled){background:#653bb4}.secondary{background:var(--white);border-color:var(--line)}.soft{background:var(--lavender);color:var(--deep)}.lime{background:var(--lime);color:var(--ink)}.danger{color:var(--red);background:#fce8e9}.ghost{background:transparent;border:0;color:var(--muted);padding:8px 12px}.btn-sm{min-height:34px;padding:8px 12px;font-size:12px;border-radius:9px}.btn-lg{min-height:54px;padding:15px 22px;font-size:16px;border-radius:14px}.wide{width:100%}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.stack{display:flex;flex-direction:column;gap:16px}.gap8{gap:8px}.card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius)}.pill{display:inline-flex;align-items:center;gap:7px;border-radius:100px;padding:6px 12px;font-size:11px;font-weight:700;background:var(--lavender);color:var(--deep);white-space:nowrap}.pill.green{background:#e6f0e4;color:var(--green)}.pill.orange{background:#fcebd8;color:#8b511d}.pill .dot{width:6px;height:6px;background:currentColor;border-radius:50%}.brand{font-size:23px;font-weight:850;letter-spacing:-1.2px;line-height:1;white-space:nowrap}.brand-dot{color:var(--purple);display:inline-block;margin-left:5px;font-size:31px;vertical-align:-3px}.topbar{height:86px;display:flex;align-items:center;justify-content:space-between;padding:0 4vw;border-bottom:1px solid var(--line);background:var(--paper)}.brand-sub{font-size:9px;letter-spacing:.18em;font-weight:700;color:var(--muted);margin-top:8px}.nav-tabs{display:flex;gap:5px;background:#ede9e0;padding:5px;border-radius:14px}.nav-tab{border:0;background:transparent;border-radius:10px;padding:10px 20px;font-weight:700;color:var(--muted);font-size:13px}.nav-tab.active{background:var(--white);box-shadow:0 2px 5px #2d253809;color:var(--ink)}.host-wrap{max-width:1400px;margin:auto;padding:32px 4vw 40px}.page-title{margin-bottom:24px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.page-title .eyebrow{color:var(--purple);margin-bottom:10px}.page-title h1{font-size:39px;font-weight:650}.page-title p{margin-top:10px;font-size:13px}.host-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}.lobby-board{overflow:hidden;position:relative;background:#eee8f5;border:1px solid #e2d8ed;border-radius:24px;min-height:480px}.lobby-top{padding:26px 30px;display:flex;align-items:center;justify-content:space-between}.lobby-top .pill{background:#ffffffb3;color:var(--deep)}.lobby-intro{text-align:center;padding:3px 20px 15px}.lobby-intro h2{font-family:Georgia,serif;font-weight:500;font-size:52px;letter-spacing:-.055em;line-height:1.06}.lobby-intro h2 em{color:var(--purple)}.lobby-intro p{font-size:12px;margin-top:15px;color:#80718f}.mascot-wall{display:grid;grid-template-columns:repeat(auto-fill,minmax(74px,1fr));gap:15px 12px;padding:26px 32px 32px;max-height:525px;overflow:auto}.animal-entry{display:flex;align-items:center;flex-direction:column;gap:7px;min-width:0;animation:pop-in .3s both}.animal-entry .face{width:56px;height:56px}.animal-entry .animal-name{font-size:11px;font-weight:600;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.animal-entry.offline{opacity:.5}.animal-entry button{border:0;background:transparent;color:var(--muted);font-size:10px;padding:0}.animal-entry .remove-player{display:none}.animal-entry:hover .remove-player,.animal-entry:focus-within .remove-player{display:block}.empty-wall{display:flex;align-items:flex-end;justify-content:center;gap:18px;padding:30px 25px 42px}.empty-wall .mascot{width:82px;height:82px;animation:bob 3s ease-in-out infinite}.empty-wall .mascot:nth-child(even){animation-delay:-1.2s;width:70px;height:70px}.board-bottom{border-top:1px solid #e0d6eb;padding:14px 24px;display:flex;justify-content:space-between;font-size:11px;color:#7a6e88;background:#ffffff25}.join-panel{padding:26px;text-align:center}.join-panel .eyebrow{color:var(--muted)}.qr-box{background:white;margin:20px auto 12px;border-radius:15px;width:204px;height:204px;padding:6px;border:1px solid var(--line)}.qr-box img{width:100%;height:100%;display:block}.pin-label{font-size:10px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:var(--muted)}.pin{font-size:37px;font-weight:800;letter-spacing:.12em;margin:2px 0 6px;font-variant-numeric:tabular-nums}.join-address{font-size:12px;font-weight:650;overflow-wrap:anywhere;margin:10px 0 18px}.divider{height:1px;background:var(--line);margin:20px 0}.host-actions{padding:20px}.host-actions .hint{font-size:11px;text-align:center;margin-top:10px}.lobby-metrics{display:flex;gap:8px;justify-content:center;margin-bottom:16px}.lobby-metrics strong{font-size:28px;line-height:1}.lobby-metrics .metric{flex:1;display:flex;flex-direction:column;gap:6px}.lobby-metrics .metric span{font-size:10px;color:var(--muted)}.lobby-metrics .metric+.metric{border-left:1px solid var(--line)}.host-foot{margin-top:18px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted)}.host-foot .btn{font-size:11px}.question-stage{border:1px solid var(--line);background:var(--white);border-radius:24px;padding:30px;min-height:440px}.round-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.timer{width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--lavender);color:var(--deep);font-size:25px;font-weight:850;font-variant-numeric:tabular-nums;flex-shrink:0}.timer.urgent{background:#ffdfd6;color:#a73930}.time-track{height:5px;border-radius:20px;background:#e9e3f1;overflow:hidden;margin:16px 0 24px}.time-fill{height:100%;width:100%;background:var(--purple);border-radius:20px;transition:width .1s linear}.question-text{font-size:32px;line-height:1.23;font-weight:750;letter-spacing:-.035em;overflow-wrap:anywhere;margin:12px 0 28px}.answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.answer{position:relative;min-width:0;display:flex;align-items:center;text-align:left;gap:14px;padding:20px;border-radius:17px;border:2px solid transparent;font-size:17px;font-weight:720;min-height:104px;color:var(--ink);overflow-wrap:anywhere;transition:transform .12s,box-shadow .12s}.answer span:last-child{min-width:0}.answer-0{background:#e9def8}.answer-1{background:#fad5c1}.answer-2{background:#cee8dd}.answer-3{background:#f6e3a5}.answer-letter{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:31px;height:31px;border-radius:9px;background:#ffffff85;font-size:13px;font-weight:850}.answer:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 0 #2d253812}.answer:disabled{opacity:1}.answer.dimmed{opacity:.35}.answer.correct{border-color:var(--green);box-shadow:0 0 0 2px #22766320}.answer.selected{border-color:var(--purple)}.answer-status{margin-left:auto;font-size:21px;font-weight:800;flex-shrink:0}.answer-count{font-size:12px;color:var(--muted);margin-top:18px}.distribution{margin-top:22px}.dist-row{display:flex;align-items:center;gap:12px;margin:10px 0;font-size:12px}.dist-label{width:18px;font-weight:700}.dist-track{height:22px;background:#f1eee7;flex:1;border-radius:6px;overflow:hidden}.dist-fill{height:100%;min-width:0;display:block;border-radius:6px}.dist-number{width:30px;text-align:right;font-weight:700}.explanation{padding:16px 18px;border-radius:13px;background:#f3f1ea;font-size:14px;margin-top:20px}.countdown-stage{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:420px;background:var(--purple);color:white;border-color:var(--purple)}.countdown-stage p{color:#e0d3f6}.countdown-number{font-size:150px;font-weight:800;letter-spacing:-.07em;line-height:1.2}.countdown-stage .mascot{height:74px;width:74px;margin-bottom:20px}.standings{display:flex;flex-direction:column;gap:8px}.standing{display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid var(--line);border-radius:13px;background:var(--white)}.standing.you{border-color:var(--purple);background:#f3ecfb}.standing .mascot{width:38px;height:38px;flex-shrink:0}.rank{width:26px;font-size:14px;font-weight:800;color:var(--muted);flex-shrink:0}.standing-name{flex:1;font-size:14px;font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.standing-score{font-size:16px;font-weight:800;white-space:nowrap}.standing-score small{font-weight:400;color:var(--muted);font-size:10px}.scoreboard-title{margin-bottom:22px}.podium{display:flex;justify-content:center;align-items:flex-end;gap:15px;min-height:260px;margin:35px 0 28px}.podium-slot{width:28%;max-width:165px;text-align:center}.podium-slot .mascot{width:86px;height:86px;margin:0 auto 8px}.podium-name{font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.podium-points{font-size:12px;color:var(--muted);margin:4px 0 12px}.podium-block{background:#e5d9f5;border-radius:14px 14px 0 0;height:64px;padding:14px;font-size:26px;font-weight:850}.podium-slot.first .podium-block{background:var(--purple);color:white;height:100px}.podium-slot.third .podium-block{height:43px;padding-top:4px;background:#f5dfbe}.crown{font-size:24px;color:#ba8622;line-height:1}.editor-layout{display:grid;grid-template-columns:255px minmax(0,1fr);gap:22px}.editor-list{padding:13px;max-height:calc(100vh - 280px);overflow:auto}.q-list-item{display:flex;align-items:center;gap:11px;padding:12px 10px;margin-bottom:5px;width:100%;border:1px solid transparent;background:transparent;border-radius:12px;text-align:left;color:var(--ink)}.q-list-item.active{background:var(--lavender);border-color:#d8c7ef}.q-number{background:#f0ece4;border-radius:8px;min-width:30px;height:34px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800}.q-list-item.active .q-number{background:var(--purple);color:white}.q-list-copy{min-width:0;flex:1}.q-list-copy strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.q-list-copy span{font-size:10px;color:var(--muted)}.editor-panel{padding:28px}.editor-toolbar{margin-bottom:22px;display:flex;align-items:center;justify-content:space-between;gap:16px}.settings-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:18px;margin-bottom:23px}.settings-card{padding:20px 24px;margin-bottom:22px}.settings-main{display:grid;grid-template-columns:1.3fr 1.5fr 125px 150px;gap:16px;align-items:end}.number-pair{display:flex;gap:6px}.number-pair input{width:65px;padding:10px}.toggle-row{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600}.toggle-row input{width:17px;min-height:17px;accent-color:var(--purple)}.editor-form .field{margin-bottom:22px}.choice-editor{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:10px}.choice-field{border:2px solid transparent;border-radius:15px;padding:13px}.choice-field.chosen{border-color:var(--green)}.choice-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.choice-top label{display:flex;align-items:center;gap:6px;font-size:11px;margin:0;font-weight:650;cursor:pointer}.choice-top input{width:17px;height:17px;min-height:17px;accent-color:var(--green);margin:0}.choice-field>input{background:#ffffffb8;border-color:#ffffff80}.segmented{display:flex;background:#f0ece5;border-radius:11px;padding:4px;gap:4px}.segmented button{flex:1;border:0;border-radius:8px;padding:9px 14px;background:transparent;font-size:12px;font-weight:700}.segmented button.active{background:var(--white);box-shadow:0 1px 5px #2d25380d;color:var(--purple)}.editor-help{font-size:12px;margin:15px 0;color:var(--muted)}.notice{border:1px solid #edd4aa;background:#fff2da;border-radius:12px;padding:12px 16px;color:#785a28;font-size:12px;margin-bottom:18px}.editor-disabled{opacity:.6;pointer-events:none}fieldset{border:0;padding:0;margin:0;min-width:0}.login-shell{max-width:430px;margin:8vh auto;padding:30px}.login-shell .brand{display:block;text-align:center;margin-bottom:32px}.login-card{padding:30px}.login-card h1{font-size:31px;margin:15px 0 12px}.login-card p{font-size:13px;margin-bottom:24px}.login-card .mascot{height:84px;width:84px}.login-card input{margin-bottom:18px}.login-error{font-size:12px;color:var(--red);margin-top:12px}.guest-header{padding:24px 30px;display:flex;align-items:center;justify-content:space-between}.guest-header .brand{font-size:20px}.guest-header .brand-dot{font-size:27px}.guest-header .eyebrow{color:var(--muted)}.join-layout{max-width:1020px;margin:18px auto 35px;display:grid;grid-template-columns:1fr 430px;gap:70px;align-items:center;padding:10px 35px}.join-story .eyebrow{color:var(--purple);margin-bottom:20px}.join-story h1{font-family:Georgia,serif;font-weight:500;font-size:67px;line-height:1.02;letter-spacing:-.06em}.join-story h1 em{color:var(--purple)}.join-story p{margin-top:23px;max-width:310px;font-size:14px;line-height:1.7}.story-animals{display:grid;grid-template-columns:repeat(3,86px);gap:21px;margin-top:36px}.story-animals .mascot{width:86px;height:86px;animation:bob 4s ease-in-out infinite}.story-animals .mascot:nth-child(2n){animation-delay:-1.5s}.join-card{padding:25px 26px}.join-card .card-heading{font-size:19px;font-weight:800;margin-bottom:21px;letter-spacing:-.025em}.join-card .field{margin-bottom:17px}.pin-field{max-width:155px}.mascot-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.mascot-option{border:2px solid transparent;border-radius:14px;padding:7px 8px 4px;background:#f5f2eb;display:flex;align-items:center;flex-direction:column;gap:2px;min-width:0;position:relative}.mascot-option .mascot{width:56px;height:56px;transition:transform .2s}.mascot-option:hover .mascot{transform:translateY(-3px) rotate(-4deg)}.mascot-option.selected{border-color:var(--purple);background:var(--lavender)}.mascot-option.selected::after{content:'✓';position:absolute;right:3px;top:2px;background:var(--purple);color:white;width:14px;height:14px;border-radius:50%;font-size:9px}.mascot-option span{font-size:9px;color:var(--muted)}.picker-help{font-size:10px;text-align:center;margin:10px 0 18px}.join-footer{font-size:10px;text-align:center;margin-top:13px;color:var(--muted)}.guest-footer{text-align:center;padding:15px 20px 24px;font-size:10px;color:var(--muted)}.guest-footer a{border-bottom:1px solid var(--line)}.guest-shell{max-width:560px;margin:15px auto 35px;padding:0 24px}.guest-identity{display:flex;align-items:center;gap:10px;margin-bottom:25px}.guest-identity .mascot{width:43px;height:43px}.guest-identity strong{font-size:13px}.guest-score{margin-left:auto;font-size:19px;font-weight:850}.guest-score small{font-size:10px;color:var(--muted);font-weight:500}.waiting{text-align:center;padding:20px 0}.waiting-animal{height:170px;width:170px;margin:10px auto 27px;animation:bob 3.2s ease-in-out infinite}.waiting h1{font-size:37px;font-family:Georgia,serif;font-weight:500;line-height:1.13}.waiting p{font-size:14px;margin:15px auto 25px;max-width:330px}.waiting-pill{background:var(--white);border:1px solid var(--line);border-radius:100px;display:inline-flex;align-items:center;gap:10px;font-size:12px;font-weight:700;padding:12px 20px}.waiting-pill .dot{width:8px;height:8px;border-radius:50%;background:var(--purple);animation:pulse 1.7s infinite}.room-summary{margin:32px 0 16px;padding:20px 24px}.room-summary .row{justify-content:center}.mini-animals{display:flex;justify-content:center;margin-bottom:13px;gap:7px}.mini-animals .mascot{width:34px;height:34px}.room-summary p{margin:0;font-size:12px}.guest-play .round-top{margin-bottom:5px}.guest-play .question-text{font-size:29px;margin:22px 0}.guest-play .answer{min-height:125px;font-size:17px;padding:16px;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px}.guest-play .answer-status{position:absolute;right:12px;top:12px}.guest-play .answer-letter{width:26px;height:26px;font-size:11px}.submit-status{text-align:center;margin-top:20px;font-size:13px;font-weight:650;color:var(--purple);min-height:24px}.result-hero{text-align:center;padding:10px 0 27px}.result-hero .mascot{width:110px;height:110px;margin:0 auto 18px}.result-hero h1{font-size:37px;margin-bottom:10px}.result-points{font-size:34px;font-weight:850;color:var(--green);letter-spacing:-.04em}.result-points.neutral{color:var(--muted)}.result-hero p{font-size:12px;margin-top:8px}.correct-answer{background:var(--white);border:1px solid var(--line);border-radius:15px;padding:18px;text-align:left;margin:22px 0 4px}.correct-answer strong{display:block;font-size:17px;margin:5px 0}.correct-answer p{font-size:12px;line-height:1.6}.guest-rank-line{font-size:13px;text-align:center;margin-bottom:17px}.guest-rank-line strong{color:var(--purple)}.display-wrap{max-width:1800px;margin:auto;padding:35px 5vw}.display-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:35px}.display-top h2{font-size:23px}.display-grid{display:grid;grid-template-columns:1fr 350px;gap:35px}.display-wrap .lobby-board{min-height:660px}.display-wrap .lobby-intro h2{font-size:70px}.display-wrap .lobby-intro{padding-top:20px}.display-wrap .mascot-wall{grid-template-columns:repeat(auto-fill,minmax(70px,1fr));max-height:580px}.display-wrap .join-panel{padding:35px}.display-wrap .qr-box{width:250px;height:250px}.display-wrap .pin{font-size:43px}.display-wrap .question-stage{max-width:1250px;margin:auto;padding:35px 45px}.display-wrap .question-text{font-size:clamp(35px,4vw,59px);text-align:center;margin:30px 0 40px}.display-wrap .answer{font-size:26px;min-height:120px;padding:24px}.display-wrap .timer{height:75px;width:75px;font-size:33px}.display-wrap .countdown-stage{min-height:650px}.display-wrap .countdown-number{font-size:230px}.display-wrap .scoreboard-title{text-align:center}.display-wrap .standing{padding:15px 20px}.display-wrap .standing-name{font-size:20px}.display-wrap .standing-score{font-size:25px}.display-wrap .standings{max-width:800px;margin:auto}.display-wrap .podium{min-height:300px}.display-wrap .podium-slot{max-width:230px}.display-wrap .podium-slot .mascot{height:125px;width:125px}.display-wrap .podium-name{font-size:23px}.display-wrap .podium-points{font-size:17px}.boot{min-height:80vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px}.boot p{font-size:13px}#connection-banner{position:sticky;top:0;z-index:1000;padding:10px 15px;background:#ffe5b8;color:#76501c;text-align:center;font-size:12px;font-weight:650}#toast{position:fixed;z-index:2000;bottom:max(25px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);padding:14px 22px;background:var(--ink);color:white;box-shadow:0 6px 30px #0002;border-radius:14px;max-width:90vw;font-size:13px;line-height:1.5;text-align:center}#toast.error{background:#9e3546}[hidden]{display:none!important}.save-state{font-size:11px;color:var(--muted)}.dot-separator{margin:0 8px;color:#c2b9ce}.confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:20}.confetti i{position:absolute;top:-20px;left:var(--x);height:10px;width:6px;background:var(--c);animation:fall var(--t) linear forwards;animation-delay:var(--d)}@keyframes bob{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-9px) rotate(2deg)}}@keyframes pop-in{from{opacity:0;transform:translateY(10px) scale(.9)}to{opacity:1;transform:none}}@keyframes pulse{50%{opacity:.3}}@keyframes fall{to{transform:translate3d(70px,110vh,0) rotate(700deg)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.confetti{display:none}}
@media(min-width:1500px){.host-wrap{padding-top:45px}.lobby-board{min-height:540px}.lobby-intro h2{font-size:60px}.empty-wall{padding-top:50px}.empty-wall .mascot{width:95px;height:95px}}
@media(max-width:1000px){.host-grid{grid-template-columns:minmax(0,1fr) 270px}.join-panel{padding:20px}.qr-box{width:190px;height:190px}.page-title h1{font-size:31px}.topbar{padding:0 3vw}.topbar .brand-sub{display:none}.nav-tab{padding:9px 13px}.settings-main{grid-template-columns:1fr 1fr}.join-layout{gap:35px;grid-template-columns:1fr 405px;padding:10px 30px}.join-story h1{font-size:53px}.story-animals{grid-template-columns:repeat(3,70px);gap:17px}.story-animals .mascot{width:70px;height:70px}.editor-layout{grid-template-columns:205px 1fr}.display-grid{grid-template-columns:1fr 280px}.display-wrap .qr-box{width:210px;height:210px}.display-wrap .join-panel{padding:22px}.display-wrap .lobby-intro h2{font-size:53px}}
@media(max-width:760px){.topbar{height:auto;min-height:78px;flex-wrap:wrap;gap:15px;padding:18px 20px}.topbar .brand{font-size:20px}.topbar>.row:last-child .pill{display:none}.topbar .nav-tabs{order:3;width:100%}.topbar .nav-tab{flex:1}.host-wrap{padding:24px 18px}.page-title{align-items:flex-start}.page-title h1{font-size:30px}.page-title p{font-size:12px}.host-grid{grid-template-columns:1fr}.host-grid>aside{display:grid;grid-template-columns:1fr 1fr;gap:12px}.host-grid>aside.stack{gap:12px}.join-panel{padding:20px 12px}.qr-box{width:150px;height:150px;padding:2px;margin:15px auto 10px}.pin{font-size:28px;letter-spacing:.07em}.join-address{font-size:10px}.host-actions{padding:20px 15px;align-self:start}.host-actions .row{flex-wrap:wrap}.lobby-intro h2{font-size:45px}.lobby-top{padding:20px}.mascot-wall{padding:20px;gap:16px 10px;grid-template-columns:repeat(auto-fill,minmax(60px,1fr))}.empty-wall{gap:8px;padding:28px 18px}.empty-wall .mascot{width:62px;height:62px}.empty-wall .mascot:nth-child(even){width:55px;height:55px}.lobby-board{min-height:365px}.host-foot{flex-wrap:wrap;gap:10px}.host-foot>.row{flex-wrap:wrap}.question-stage{padding:22px}.question-text{font-size:27px}.answer{font-size:15px;padding:14px;gap:10px}.question-stage .answer-letter{width:26px;height:26px}.editor-layout{grid-template-columns:1fr}.editor-list{display:flex;gap:7px;max-height:110px;padding:9px;overflow-x:auto}.q-list-item{min-width:175px;max-width:175px;margin-bottom:0}.editor-list>.btn{min-width:130px}.editor-panel{padding:20px}.editor-toolbar{align-items:flex-start}.editor-toolbar .row{flex-wrap:wrap;justify-content:flex-end}.choice-editor{grid-template-columns:1fr}.settings-card{padding:18px}.settings-main{gap:12px}.editor-panel .settings-grid{grid-template-columns:1fr 110px;gap:15px}.page-title .row{flex-wrap:wrap;justify-content:flex-end;gap:8px}.page-title .row .btn{min-height:36px;font-size:11px;padding:8px 12px}.join-layout{max-width:450px;display:block;margin:0 auto 18px;padding:10px 22px}.join-story{text-align:center;margin:8px 0 25px}.join-story .eyebrow{margin-bottom:13px;font-size:9px}.join-story h1{font-size:43px;line-height:1.02}.join-story h1 br{display:none}.join-story p{font-size:12px;max-width:280px;margin:12px auto 0;line-height:1.6}.story-animals{display:none}.guest-header{padding:20px 24px 12px}.guest-header>.eyebrow{display:none}.guest-header .brand{font-size:19px}.join-card{padding:21px}.join-card .card-heading{display:none}.join-card .field{margin-bottom:15px}.mascot-option .mascot{width:51px;height:51px}.mascot-option{padding:6px 5px 3px}.mascot-picker{gap:7px}.join-card .pin-field{max-width:none}.join-card .fields-pair{display:grid;grid-template-columns:1.3fr 1fr;gap:12px}.guest-footer{padding-top:0}.guest-shell{padding:0 22px;margin:16px auto 25px}.guest-play .answer-grid{gap:10px}.guest-play .answer{min-height:128px;font-size:16px}.guest-play .question-text{font-size:28px}.guest-play .timer{width:50px;height:50px;font-size:22px}.display-wrap{padding:25px}.display-grid{grid-template-columns:1fr}.display-wrap .lobby-board{min-height:450px}.display-wrap .question-stage{padding:23px}.display-wrap .question-text{font-size:33px}.display-wrap .answer{font-size:18px;padding:15px}.display-top{flex-wrap:wrap;gap:17px}.display-top h2{font-size:19px}.display-wrap .countdown-stage{min-height:500px}.display-wrap .join-panel{max-width:400px;margin:auto}.display-wrap .podium-name{font-size:16px}.display-wrap .podium-slot .mascot{height:85px;width:85px}.display-wrap .standing-name{font-size:15px}.display-wrap .standing-score{font-size:17px}.settings-main>.field:last-child{align-self:center}.podium{gap:10px}}
@media(max-width:370px){.join-layout,.guest-shell{padding-left:15px;padding-right:15px}.join-card{padding:16px}.mascot-option .mascot{width:46px;height:46px}.mascot-option span{font-size:8px}.host-grid>aside{display:flex;flex-direction:column}.guest-play .question-text{font-size:25px}}
/* Keep a full 110-person lobby legible on the projector rather than hiding rows. */
.mascot-wall.dense{grid-template-columns:repeat(auto-fill,minmax(50px,1fr));gap:12px 7px}.mascot-wall.dense .face{width:42px;height:42px}.mascot-wall.dense .animal-name{font-size:10px}.display-wrap .mascot-wall.dense{grid-template-columns:repeat(auto-fill,minmax(52px,1fr))}

/* Give the host a quick read on capacity and answer collection. */
.host-progress{height:8px;margin:0 0 18px;border-radius:999px;background:#eae4f0;overflow:hidden}
.host-progress span{display:block;height:100%;border-radius:inherit;background:var(--purple);transition:width .2s ease}
.answer-grid.two-choice .answer{min-height:120px}
@media(max-width:760px){
 .host-grid{display:flex;flex-direction:column;align-items:stretch}
 .host-sidebar{order:-1;display:flex!important;flex-direction:column;gap:12px}
 .host-sidebar .host-actions{order:-1;align-self:stretch}
 .host-sidebar .join-panel{padding:20px}
 .answer-grid.two-choice{grid-template-columns:1fr}
 .guest-play .answer-grid.two-choice .answer{min-height:88px;flex-direction:row;align-items:center}
}

/* Keep the host's round controls and join code in the first desktop viewport. */
@media(min-width:761px){
 .topbar{height:70px}
 .host-wrap{padding-top:18px;padding-bottom:22px}
 .page-title{align-items:center;margin-bottom:15px}
 .page-title .eyebrow{margin-bottom:5px}
 .page-title h1{font-size:clamp(26px,2.5vw,34px)}
 .page-title p{margin-top:4px}
 .host-grid{gap:14px;grid-template-columns:minmax(0,1fr) 300px}
 .host-sidebar{gap:12px}
 .host-actions{padding:16px 18px}
 .host-actions .hint{margin-top:6px}
 .host-actions .lobby-metrics{margin-bottom:11px}
 .host-actions .host-progress{margin-bottom:11px}
 .host-actions .btn-lg{min-height:45px;padding:10px 16px;font-size:14px}
 .host-sidebar .join-panel{padding:15px 17px;text-align:left}
 .host-sidebar .join-core{display:flex;align-items:center;gap:12px;margin:8px 0}
 .host-sidebar .qr-box{width:102px;height:102px;flex:none;margin:0;padding:3px}
 .host-sidebar .join-code{min-width:0}
 .host-sidebar .pin{font-size:25px;letter-spacing:.04em;white-space:nowrap}
 .host-sidebar .join-address{font-size:11px;margin:2px 0 0}
 .host-sidebar .join-hint{display:none}
 .host-sidebar .join-panel .btn{min-height:33px}
 .lobby-board{min-height:375px}
 .lobby-top{padding:17px 23px}
 .lobby-intro{padding:0 20px 8px}
 .lobby-intro h2{font-size:clamp(38px,3.6vw,48px)}
 .lobby-intro p{margin-top:8px}
 .empty-wall{padding:18px 20px 25px}
 .empty-wall .mascot{width:66px;height:66px}
 .empty-wall .mascot:nth-child(even){width:60px;height:60px}
 .board-bottom{padding:10px 18px}
 .host-wrap .host-foot{margin-top:9px}
 .host-grid .question-stage{min-height:375px;padding:22px}
 .host-grid .question-text{font-size:28px;margin:8px 0 18px}
 .host-grid .answer{min-height:82px;padding:13px;font-size:15px}
 .host-grid .time-track{margin:10px 0 15px}
}

/* The editor keeps the question in view; event-wide settings open on demand. */
.quiz-settings{padding:0;margin-bottom:12px}
.quiz-settings summary{list-style:none;display:flex;align-items:center;gap:14px;padding:11px 16px;cursor:pointer;font-size:13px;font-weight:750}
.quiz-settings summary::-webkit-details-marker{display:none}
.quiz-settings summary::before{content:'▸';color:var(--purple);font-size:14px}
.quiz-settings[open] summary::before{content:'▾'}
.quiz-settings .settings-summary{margin-left:auto;font-size:11px;color:var(--muted);font-weight:500;text-align:right}
.quiz-settings .settings-main{padding:5px 16px 16px}
.editor-file-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:10px 16px 14px;color:var(--muted);font-size:11px}
#editor-root .page-title{margin-bottom:10px}
#editor-root .page-title .eyebrow,#editor-root .page-title p{display:none}
#editor-root .notice{padding:7px 12px;margin-bottom:10px}
.editor-layout{gap:14px}
.editor-list{max-height:calc(100dvh - 215px)}
.editor-panel{padding:18px 20px}
.editor-toolbar{margin-bottom:12px}
.editor-form .field{margin-bottom:12px}
.editor-form textarea{padding:9px 12px;min-height:58px}
.editor-panel .settings-grid{margin-bottom:13px;gap:12px}
.choice-editor{gap:8px}
.choice-field{padding:8px 10px}
.choice-top{margin-bottom:5px}
.choice-field>input{min-height:40px;padding:8px 10px}
.editor-help{margin:8px 0}
.editor-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:8px 18px}
.editor-form>.field:first-child{grid-column:1;grid-row:1;margin:0}
.editor-form>.settings-grid{grid-column:1;grid-row:2;margin:0}
.editor-form>label{grid-column:2;grid-row:1;align-self:start}
.editor-form>.choice-editor{grid-column:2;grid-row:1 / 4;align-self:start;margin-top:26px}
.editor-form>.field[style]{grid-column:1;grid-row:3;margin:0!important}
.editor-form>.editor-help{grid-column:1 / -1;grid-row:4;margin:0}
.more-leaders{margin:10px 0}
.more-leaders summary{padding:8px 12px;cursor:pointer;color:var(--purple);font-size:12px;font-weight:750;text-align:center}
.more-leaders .standings{margin-top:8px}

/* A phone can show the join action and a whole four-answer round together. */
@media(max-width:760px){
 .guest-header{padding:12px 18px 6px}
 .guest-header .brand-sub{display:none}
 .join-layout{padding:0 15px;margin:0 auto 10px}
 .join-story{margin:2px 0 12px}
 .join-story .eyebrow{margin-bottom:5px}
 .join-story h1{font-size:35px}
 .join-story p{display:none}
 .join-card{padding:13px 15px}
 .join-card .fields-pair{gap:8px}
 .join-card .field{margin-bottom:8px}
 .join-card label{margin-bottom:4px}
 .join-card input{min-height:44px;padding:9px 10px;font-size:16px}
 .mascot-picker{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
 .mascot-option{min-height:55px;padding:4px 1px 2px;border-radius:10px;gap:0}
 .mascot-option .mascot{width:36px;height:36px}
 .mascot-option span{font-size:8px;line-height:1.1}
 .picker-help{margin:6px 0 9px;line-height:1.2}
 .join-card .btn-lg{min-height:48px;padding:10px}
 .join-footer{margin-top:6px}
 .guest-footer{padding:5px 15px 12px}
 .guest-shell{margin:7px auto 14px;padding:0 15px}
 .guest-identity{margin-bottom:10px}
 .guest-identity .mascot{width:36px;height:36px}
 .guest-play .round-top{margin-bottom:3px}
 .guest-play .timer{width:43px;height:43px;font-size:19px}
 .guest-play .time-track{margin:7px 0 11px}
 .guest-play .question-text{font-size:clamp(22px,6vw,27px);line-height:1.14;margin:11px 0 16px}
 .guest-play .answer-grid{gap:8px}
 .guest-play .answer{min-height:88px;padding:10px 11px;font-size:15px;gap:7px}
 .guest-play .answer-grid.two-choice .answer{min-height:78px}
 .submit-status{margin-top:10px;font-size:12px}
 .waiting{padding:7px 0}
 .waiting-animal{height:115px;width:115px;margin:4px auto 12px}
 .waiting h1{font-size:32px}
 .waiting p{margin:9px auto 14px}
 .waiting .room-summary{margin:17px 0 8px;padding:12px}
 .result-hero .mascot{height:75px;width:75px;margin-bottom:8px}
 .result-hero{padding-bottom:12px}
 .result-hero h1{font-size:31px}
 .correct-answer{margin:12px 0 4px;padding:12px}
 .scoreboard-title{margin-bottom:12px}
 .standing{padding:7px 10px}
 .standing .mascot{width:30px;height:30px}
 .standings{gap:5px}
 #app:has(.guest-play) .guest-footer{display:none}
 .editor-panel{padding:15px}
 .editor-toolbar{gap:8px}
 .editor-toolbar .row{gap:5px}
 .editor-form{display:block}
 .editor-form>.field,.editor-form>.settings-grid,.editor-form>.choice-editor{margin-bottom:12px}
 .editor-form>.choice-editor{margin-top:9px}
 .editor-form .choice-editor{grid-template-columns:1fr 1fr}
 .choice-field{padding:6px}
 .choice-top label{font-size:10px}
 .quiz-settings .settings-summary{max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .editor-file-actions{flex-wrap:wrap}
}
@media(max-width:360px){
 .mascot-option .mascot{width:31px;height:31px}
 .mascot-option span{font-size:7px}
 .join-layout,.guest-shell{padding-left:10px;padding-right:10px}
 .join-card{padding:11px}
}
