:root{color-scheme:dark;--bg:#151431;--panel:#201e42;--border:#383460;--text:#f9f6ff;--muted:#c7c0e0;--violet:#b49aff;--yellow:#ffdf80;--teal:#83efcf;font-family:"Segoe UI",system-ui,sans-serif;color:var(--text);background:var(--bg)}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 62% -10%,#342759 0%,#191633 40%,#14132d 78%);font-size:16px}
button,input{font:inherit}
button{cursor:pointer;border:0;border-radius:12px;min-height:44px;font-weight:750;padding:10px 16px}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible,.upload:focus-within{outline:3px solid #fce89e;outline-offset:3px}
a{color:var(--teal)}
.bar{display:flex;align-items:center;justify-content:space-between;padding:15px max(18px,calc((100vw - 1100px)/2));border-bottom:1px solid #ffffff20;background:#17142d;color:var(--muted);gap:8px;min-height:68px}
.brand{display:flex;align-items:center;gap:10px;font-weight:850;letter-spacing:-.035em;font-size:1.4rem;color:var(--text)}
.bolt{background:var(--yellow);color:#241943;font-size:1.65rem;display:grid;place-items:center;width:36px;height:36px;border-radius:11px}
.live,.eyebrow{font-size:.83rem;color:var(--violet);font-weight:850;letter-spacing:.12em}
.live{margin-left:7px;white-space:nowrap}
#role{white-space:nowrap;font-size:.9rem}
main{width:min(1080px,100% - 40px);margin:32px auto 52px}
h1,h2,p{margin-top:0}
h1{font-size:clamp(2rem,5.5vw,3.8rem);line-height:1.06;letter-spacing:-.048em;margin-bottom:12px;overflow-wrap:anywhere}
h2{font-size:1.3rem;margin:0;letter-spacing:-.022em}
.eyebrow{margin-bottom:10px}
.muted{color:var(--muted);line-height:1.5}
.panel{background:var(--panel);border:1px solid var(--border);padding:clamp(17px,3vw,28px);border-radius:20px}
.primary{background:var(--yellow);color:#241943}
.primary:hover:enabled{background:#fff0ad}
.secondary{background:#342b5b;color:var(--text);border:1px solid #655886}
.secondary:hover:enabled{background:#44376c}
.quiet{color:#e3d8fa;background:transparent;padding-inline:10px}
.quiet:hover:enabled{background:#372c53}
label{display:block;font-weight:700}
input:not([type=radio],[type=file]){display:block;width:100%;border:1px solid #645984;background:#16152e;color:var(--text);padding:11px 12px;border-radius:10px;margin-top:7px;min-height:44px}
input::placeholder{color:#b2a7c8}
.fieldline{display:flex;align-items:center;gap:7px}
.fieldline input{max-width:85px}
.toolbar,.edit-head,.round-top,.round-foot{display:flex;justify-content:space-between;align-items:center;gap:12px}
.toolbar{margin:24px 0;flex-wrap:wrap}
.tools{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.deck{display:grid;gap:14px}
.edit-head{margin-bottom:12px}
.edit-body{display:grid;grid-template-columns:minmax(190px,.75fr) minmax(0,1.3fr);gap:20px}
.image-field img,.placeholder{display:block;background:#171633;border:1px solid #48406d;width:100%;height:150px;border-radius:12px;object-fit:contain}
.placeholder{display:grid;place-items:center;color:var(--muted)}
.upload{position:relative;cursor:pointer;margin-top:9px;display:inline-block;padding:9px 12px;border:1px solid #655886;border-radius:10px}
.upload input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}
.edit-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 13px}
.edit-option{display:flex;align-items:center;gap:7px}
.edit-option input[type=radio]{accent-color:var(--yellow);width:20px;height:20px;flex:none;margin:7px 0 0}
.hint{margin:12px 0 0;font-size:.9rem}
.footer-tools{margin-top:15px}
.join{max-width:510px;margin:8vh auto 0}
.join form{display:grid;gap:15px}
.join button{margin-top:4px}
.lobby{display:grid;gap:16px}
.invite{background:linear-gradient(130deg,#2a2250,#201e42 62%)}
.invite-content{display:flex;align-items:center;gap:clamp(12px,4vw,30px);flex-wrap:wrap}
.invite-content .eyebrow{margin:0}
.invite-actions{margin-top:12px}
.qr{width:clamp(125px,22vw,185px);border-radius:12px;background:white;aspect-ratio:1}
.code{font-size:clamp(2.6rem,8vw,4.2rem);font-weight:850;letter-spacing:.05em;line-height:1.1;margin:0 0 8px;color:var(--yellow)}
.join-url{overflow-wrap:anywhere}
.pill{border:1px solid #635983;border-radius:100px;padding:7px 12px;color:var(--text);font-size:.92rem;white-space:nowrap}
.names{display:flex;flex-wrap:wrap;gap:8px;min-height:35px;margin-bottom:14px}
.names span{background:#332953;padding:6px 11px;border-radius:10px;overflow-wrap:anywhere;max-width:100%}
.names .empty{background:none;color:var(--muted);padding-left:0}
.round{max-width:940px;margin:auto}
.round h1{font-size:clamp(1.5rem,4.4vw,3.2rem);margin:13px 0 16px}
.timer{min-width:64px;text-align:right;color:var(--yellow);font-weight:850;font-variant-numeric:tabular-nums}
.rail{height:7px;border-radius:8px;background:#43385e;overflow:hidden;margin:12px 0}
#progress{height:100%;width:100%;background:var(--yellow);transition:width .14s linear}
.question-image{width:100%;height:clamp(150px,32vh,350px);display:block;object-fit:contain;border-radius:16px;background:#171633;border:1px solid #41395e}
.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.choice{display:flex;align-items:center;gap:10px;min-height:73px;text-align:left;color:#21183d;overflow-wrap:anywhere;padding:12px;font-size:clamp(.91rem,2.2vw,1.35rem)}
.choice span{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#1e17344a;flex:none}
.choice strong{min-width:0}
.choice:enabled:hover{filter:brightness(1.11)}
.choice.selected{outline:3px solid white;outline-offset:2px}
.tone0{background:#b5a2ff}.tone1{background:#82e6d1}.tone2{background:#ffb5ca}.tone3{background:#ffdc83}
.round-foot{margin-top:13px;color:var(--muted)}
.board{max-width:790px;margin:auto}
.personal{padding:12px;background:#322752;border-radius:10px;margin-bottom:14px}
.personal span{color:var(--muted)}
.ranks{display:grid;gap:6px}
.rank{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:8px;background:#30294a;padding:9px 12px;border-radius:10px}
.rank.top{background:#40325e}
.rank strong{overflow-wrap:anywhere}
.place{display:grid;place-items:center;width:29px;height:28px;background:#211c39;border-radius:7px;font-weight:850}
.rank:first-child .place{background:var(--yellow);color:#221735}
.finish{margin-top:18px}
#notice:not(:empty){position:fixed;z-index:4;bottom:16px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 26px);padding:11px 15px;border:1px solid #766594;border-radius:12px;background:#342752;box-shadow:0 7px 24px #0005;overflow-wrap:anywhere}
@media(max-width:560px){.live{display:none}main{width:calc(100% - 24px);margin-top:20px}.edit-body{grid-template-columns:1fr}.edit-answers{gap:5px 8px}.choice{min-height:64px;gap:7px;padding:9px}.choice span{width:26px;height:26px}.question-image{height:clamp(145px,27vh,225px)}.bar{min-height:58px;padding-block:10px}}
@media(prefers-reduced-motion:reduce){#progress{transition:none}}
select,textarea{font:inherit;width:100%;display:block;border:1px solid #645984;background:#16152e;color:var(--text);padding:11px 12px;border-radius:10px;margin-top:7px;min-height:44px}
select{appearance:none;padding-right:36px;background-image:linear-gradient(45deg,transparent 50%,#c7c0e0 50%),linear-gradient(135deg,#c7c0e0 50%,transparent 50%);background-position:calc(100% - 19px) 19px,calc(100% - 13px) 19px;background-size:6px 6px;background-repeat:no-repeat}
textarea{resize:vertical}
select:focus-visible,textarea:focus-visible{outline:3px solid #fce89e;outline-offset:3px}
.edit-body label:has(select),.text-label{margin-top:12px}
.check-label{display:flex;align-items:center;gap:9px;margin-top:14px}
input[type=checkbox]{width:20px!important;height:20px;min-height:20px!important;margin:0!important;accent-color:var(--yellow);flex:none}
.text-answer{display:grid;gap:12px}
.text-answer button{justify-self:start}
.round-top:has(+.question-image){margin-bottom:12px}
.choice.correct{outline:3px solid #fff;outline-offset:2px}
.solution{background:#30294a;border:1px solid #655886;border-radius:12px;padding:14px;overflow-wrap:anywhere}
.round-foot{flex-wrap:wrap}
.close-quiz{position:fixed;left:max(16px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));z-index:3;display:grid;place-items:center;width:48px;height:48px;min-height:48px;padding:0;border-radius:12px;background:#d52b42;color:#fff;font-size:2rem;line-height:1;box-shadow:0 4px 16px #0005}
.close-quiz:hover:enabled{background:#b91e34}
.close-quiz:disabled{opacity:.6;cursor:wait}
body:has(.close-quiz) main{padding-bottom:64px}
.brand{text-decoration:none}nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.auth-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:55px;align-items:center;min-height:70vh}
.auth-panel h2{margin-bottom:20px;font-size:1.65rem}.auth-panel form{display:grid;gap:15px}.auth-links{display:flex;flex-wrap:wrap;margin-top:12px}
.feature-list{display:flex;gap:8px;flex-wrap:wrap}.feature-list span{padding:9px 13px;border:1px solid #5b4b79;border-radius:20px;color:var(--teal)}
.dashboard-meta,.game-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.dashboard-meta{margin:22px 0;color:var(--muted)}
.live-games{margin-bottom:20px}.game-row{margin-top:15px}
.new-quiz{display:flex;gap:12px;margin:20px 0}.new-quiz input{margin-top:0!important;flex:1}
.quiz-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.quiz-card{display:flex;flex-direction:column;min-height:230px}.quiz-card h2{font-size:1.55rem;margin:22px 0 10px;overflow-wrap:anywhere}
.quiz-card-top{display:flex;justify-content:space-between;align-items:center}.quiz-card .tools{margin-top:auto}.empty-state{grid-column:1/-1;padding:50px}
.plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.plan{display:flex;flex-direction:column;padding:28px}.plan.featured{border-color:var(--violet);background:#30234d}
.plan ul{padding-left:20px;line-height:1.7;flex:1}.plan li{margin-bottom:8px}.price{font-size:2.5rem;font-weight:850;margin:22px 0 6px;letter-spacing:-.05em}.price span{font-size:.9rem;font-weight:400;letter-spacing:0;color:var(--muted)}
.billing-toggle{display:flex;gap:8px;margin:28px 0}.pricing-note{margin-top:20px}.plan button:disabled{opacity:.55}
.editor-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}
.quiz-settings form{display:grid;grid-template-columns:1fr 180px auto;align-items:end;gap:15px}
.editor-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px;margin-top:22px}.question-list{display:flex;flex-direction:column;gap:8px}.question-list h2{margin:0 0 10px}
.question-list>button:not(.secondary){display:flex;gap:12px;text-align:left;background:#26203f;color:var(--text);border:1px solid #3c3157}
.question-list>button.current{background:#40305f;border-color:#b49aff}.question-list strong{display:block;font-size:.95rem;overflow-wrap:anywhere}.question-list small{display:block;font-size:.85rem;color:var(--muted);margin-top:4px}
.question-picture{margin:16px 0}.question-picture img{display:block;width:100%;height:220px;object-fit:contain;background:#171633;border:1px solid #48406d;border-radius:12px}
.editor-actions{margin-top:24px}.estimate-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.slider-answer{padding:24px;border:1px solid #625083;background:#211c3e;border-radius:16px}
.slider-answer output{display:block;font-size:2.7rem;font-weight:850;color:var(--yellow);margin:14px 0}
input[type=range]{accent-color:var(--violet);padding:0!important;background:transparent!important;border:0!important;margin:0!important;width:100%;height:46px;cursor:pointer}
.range-labels{display:flex;justify-content:space-between;color:var(--muted);margin-bottom:20px}
#answer-form button{margin-top:14px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:850px){.quiz-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.plans{grid-template-columns:1fr}.auth-layout{grid-template-columns:1fr;gap:25px}.editor-layout{grid-template-columns:1fr}.question-list{max-height:230px;overflow:auto}.quiz-settings form{grid-template-columns:1fr}.bar{flex-wrap:wrap}.price{font-size:2.8rem}}
@media(max-width:520px){.quiz-grid{grid-template-columns:1fr}.new-quiz{flex-direction:column}.estimate-fields{grid-template-columns:1fr}.dashboard-meta{align-items:flex-start;flex-direction:column}nav{gap:4px}nav button{padding-inline:9px}}
.history,.report-question{margin-top:24px}.history h2{margin-bottom:16px}.section-title{margin:28px 0 16px}.answer-editor{padding:10px;border:1px solid var(--border);border-radius:12px;min-width:0}.option-image{display:block;width:100%;height:130px;object-fit:contain;border-radius:8px;margin:6px 0}.choice strong{flex:1}.quiz-extra{grid-column:1/-1}.quiz-extra summary,.report-question summary{cursor:pointer;font-weight:750;padding:12px 0}.quiz-extra fieldset{margin-top:18px;border:1px solid var(--border);border-radius:12px}.brand-preview{width:160px;height:80px;object-fit:contain;margin:12px 0}#room-logo{max-width:130px;height:40px;object-fit:contain}.pin-board{position:relative;width:min(100%,720px);margin:16px auto;line-height:0;cursor:crosshair;touch-action:manipulation}.pin-board>img{display:block;width:100%;height:auto}.pin-marker{position:absolute;transform:translate(-50%,-50%);background:#ffffff;color:#111;outline:2px solid #111;border-radius:50%;width:26px;height:26px;line-height:24px;text-align:center;font-size:24px;font-weight:800;pointer-events:none;z-index:1}.pin-target{position:absolute;transform:translate(-50%,-50%);border:3px solid #19a76f;background:#19a76f44;border-radius:50%;pointer-events:none}.pin-board[data-pin=locked],.pin-board[data-pin=solution]{cursor:default}.puzzle-list{list-style:none;padding:0;display:grid;gap:12px}.puzzle-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;background:var(--panel);border:1px solid var(--border);border-radius:12px}.puzzle-list li div{display:flex;gap:5px}.puzzle-solution li{padding:10px}.wordcloud{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px;padding:24px;min-height:120px}.wordcloud span{color:var(--teal);overflow-wrap:anywhere;max-width:100%}.wordcloud small{font-size:.85rem}.poll-row{margin-top:18px}.poll-row>div{display:flex;justify-content:space-between;gap:12px}.poll-row progress{width:100%;height:20px;accent-color:var(--teal)}.audience-questions p,.moderation-entry{padding:14px;background:#30294a;border:1px solid var(--border);border-radius:12px;overflow-wrap:anywhere}.moderation-entry small{display:block;color:var(--muted);margin-bottom:12px}#moderation-panel{margin-top:20px}.report-responses{max-height:400px;overflow:auto;overflow-wrap:anywhere}.custom-brand{background:var(--brand-background);color:var(--brand-text)}.custom-brand .primary{background:var(--brand-accent);color:var(--brand-ink)}.custom-brand .rail #progress{background:var(--brand-accent)}.custom-brand .panel,.custom-brand .puzzle-list,.custom-brand .bar{color:var(--text)}.custom-brand .round>.round-top .pill,.custom-brand .timer{color:var(--brand-text)}.custom-brand .round>.muted{color:var(--brand-text)}.custom-brand .round-foot{color:var(--brand-text)}
@media(max-width:560px){.puzzle-list li{align-items:flex-start;flex-direction:column}.edit-answers:has(.answer-editor){grid-template-columns:1fr}.game-row{flex-wrap:wrap}.option-image{height:100px}}
