.board-library{width:100%;max-width:1200px;color:#19283e}.board-library h1{font-size:clamp(1.8rem,4vw,2.75rem);font-weight:800;margin-bottom:24px}.library-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px;border-radius:24px;background:linear-gradient(110deg,#def7fa,#eee6ff,#fff0db);margin-bottom:24px}.library-intro h2{font-size:clamp(1.5rem,3vw,2.2rem);font-weight:800;margin:12px 0}.library-intro p{margin:12px 0;max-width:640px}.student-data-notice{padding:16px 20px;border:1px solid #85aab4;border-radius:14px;background:#effafd;color:#244050;margin:20px 0;font-size:.9rem;line-height:1.6}.student-data-notice strong{color:#173644}.student-data-notice p{margin-top:4px}.library-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:24px 0 12px}.library-toolbar label{flex:1;max-width:640px;font-weight:700}.library-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:20px;margin:20px 0}.library-card,.library-empty,.board-editor{background:#fff;border:1px solid #d1dbe8;border-radius:20px;padding:24px;box-shadow:0 8px 28px #2538580a}.library-card h2{font-size:1.5rem;font-weight:800;margin:8px 0;overflow-wrap:anywhere}.library-card p{overflow-wrap:anywhere}.library-category-list{margin:16px 0;line-height:1.6}.library-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.board-editor{color:#19283e}.board-editor h2,.library-dialog h2{font-size:1.6rem;font-weight:800;margin-bottom:12px}.editor-metadata{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}.board-editor label{display:block;font-weight:700}.board-editor .ui-input,.library-toolbar .ui-input{display:block;width:100%;margin-top:6px;color:#19283e;background:#fff;border:1px solid #71869f}.board-editor textarea{resize:vertical;font-weight:400}.editor-category{border:1px solid #b6c7db;border-radius:14px;padding:16px;margin:16px 0}.editor-category>summary{cursor:pointer;font-size:1.1rem;font-weight:800;padding:8px 0;overflow-wrap:anywhere}.editor-category>summary span{font-size:.85rem;color:#465d78;margin-left:12px;white-space:nowrap}.editor-category>label{margin:16px 0}.editor-question{border-top:1px solid #d1dbe8;margin:24px 0;padding:16px 0 0;display:grid;gap:16px}.editor-question legend{font-weight:800;color:#4c1d95;padding:0 10px 0 0}.presentation-review-question{border-top:1px solid #d1dbe8;padding:16px 0;overflow-wrap:anywhere}.presentation-review-question h3{font-weight:800;color:#4c1d95}.presentation-review-question p{margin-top:8px;white-space:pre-wrap}.app-dialog.library-dialog{color:#19283e;background:#fff;border-radius:20px;padding:28px;width:min(640px,calc(100% - 32px));overflow-wrap:anywhere}.app-dialog.board-edit-dialog{color:#19283e;background:#f4f8fc;border-radius:20px;padding:20px;width:min(1000px,calc(100% - 32px));max-height:90dvh;overflow:auto}.board-library .ui-muted,.board-editor .ui-muted{color:#465d78}.board-library .ui-button.secondary,.board-editor .ui-button.secondary,.library-dialog .ui-button.secondary{color:#173644;background:#eef4fa;border:1px solid #71869f}.board-library .ui-error,.board-editor .ui-error{color:#8a1e20;background:#fff1f0;padding:14px;border-radius:12px}@media(max-width:650px){.library-intro{padding:20px;flex-direction:column;align-items:start}.library-intro .trivia-artwork{max-width:180px;align-self:center}.library-toolbar{align-items:stretch;flex-direction:column}.editor-metadata{grid-template-columns:1fr}.board-editor,.library-card{padding:18px}.app-dialog.library-dialog{padding:24px 20px}.app-dialog.board-edit-dialog{padding:12px}}.board-library,.board-editor,.library-dialog,.board-edit-dialog{--ui-text:#19283e;--ui-muted:#465d78;--ui-accent:#155e75;--ui-focus:#6d28d9;--ui-field:#fff;--ui-border:#71869f;--ui-placeholder:#53627a;--ui-secondary:#eef4fa;--ui-primary:linear-gradient(105deg,#0e7490,#6d28d9);--ui-primary-hover:linear-gradient(105deg,#155e75,#5b21b6);color-scheme:light}.presenter-shell{min-height:100vh;background:#0b1220;color:#f1f5f9;padding:24px}.presenter-shell *,.student-window *{box-sizing:border-box}.presenter-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 auto 24px;max-width:1600px}.presenter-header h1{font-size:26px;font-weight:700;margin:0}.presenter-eyebrow{color:#67e8f9;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:6px}.presenter-muted{color:#b0bfd1;font-size:14px}.presenter-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.presenter-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #73839a;border-radius:9px;min-height:44px;padding:10px 16px;background:#243248;color:#f8fafc;font-size:14px;font-weight:600;cursor:pointer;text-decoration:none}.presenter-button:hover:not(:disabled){background:#33455f}.presenter-button.primary{background:#0e7490;border-color:#0e7490;color:#fff}.presenter-button.primary:hover:not(:disabled){background:#0e7490}.presenter-button.danger{background:#7f1d1d;border-color:#b45353}.presenter-button:disabled{opacity:.4;cursor:not-allowed}.presenter-button:focus-visible,.presenter-shell input:focus-visible,.presenter-shell select:focus-visible,.presenter-tile:focus-visible{outline:3px solid #67e8f9;outline-offset:3px}.presenter-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr);gap:24px;max-width:1600px;margin:auto;align-items:start}.presenter-panel{background:#152033;border:1px solid #324158;border-radius:16px;padding:22px;min-width:0}.presenter-panel+.presenter-panel{margin-top:20px}.presenter-panel h2{font-size:20px;font-weight:700;margin:0 0 16px}.presenter-panel h3{font-size:16px;font-weight:700;margin:0 0 8px}.presenter-panel p{margin:8px 0}.presenter-connection{font-size:14px;padding:9px 12px;border-radius:8px;background:#243248}.presenter-connection.connected{color:#86efac}.presenter-notice{max-width:1600px;margin:0 auto 20px;padding:14px 18px;background:#172b43;border:1px solid #365271;border-radius:10px;font-size:14px}.presenter-notice.error{background:#451b24;border-color:#9f4053}.presenter-teams{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.presenter-team{display:flex;flex-direction:column;gap:3px;min-width:105px;flex:1}.presenter-team[aria-pressed=true]{border-color:#67e8f9;background:#164e63}.presenter-board{display:grid;gap:7px}.presenter-category{overflow-wrap:anywhere;font-size:12px;font-weight:700;text-align:center;padding:10px 3px;color:#a5f3fc}.presenter-tile{min-height:48px;padding:10px 0;border:1px solid #73839a;border-radius:8px;background:#243248;color:#a5f3fc;font-size:20px;font-weight:700;cursor:pointer}.presenter-tile:hover:not(:disabled),.presenter-tile[aria-pressed=true]{background:#164e63;border-color:#67e8f9}.presenter-tile:disabled{opacity:.35;cursor:not-allowed}.presenter-question-text{font-size:24px;line-height:1.45;overflow-wrap:anywhere}.presenter-answer{border-left:3px solid #34d399;background:#112d2c;padding:14px 18px;margin:20px 0;border-radius:0 10px 10px 0;overflow-wrap:anywhere}.presenter-answer .answer-label{color:#86efac;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.presenter-answer strong{display:block;font-size:22px;margin:6px 0}.presenter-fields{display:flex;flex-wrap:wrap;gap:16px;align-items:end;margin:18px 0}.presenter-fields label{display:flex;flex-direction:column;gap:6px;font-size:14px}.presenter-shell input[type=number],.presenter-shell select{width:140px;max-width:100%;min-height:44px;padding:8px 10px;color:#f1f5f9;background:#0b1220;border:1px solid #73839a;border-radius:7px;font-size:16px}.presenter-shell select{width:auto}.presenter-timer{font-size:24px;font-weight:700;font-variant-numeric:tabular-nums}.presenter-disputes{display:flex;gap:14px;flex-wrap:wrap;margin:12px 0}.presenter-disputes label{display:flex;gap:7px;align-items:center;font-size:14px;min-height:44px}.presenter-result{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.presenter-end-dialog{width:min(480px,calc(100% - 32px));margin:auto;background:#152033;color:#f1f5f9;border:1px solid #73839a;border-radius:16px;padding:24px}.presenter-end-dialog h2{font-size:22px;font-weight:700;margin:0 0 12px}.presenter-end-dialog p{margin:0 0 20px}.presenter-end-dialog::backdrop{background:#000000bf}.student-window{background:#080e19;color:#f8fafc;min-height:100dvh}.student-controls{display:flex;justify-content:flex-end;gap:12px;align-items:center;padding:10px 20px;background:#0b1220;color:#d8e4f2;font-size:13px}:fullscreen .student-controls{display:none}:fullscreen .student-stage:not(.compact){min-height:100dvh}.student-stage{position:relative;isolation:isolate;color:#f8fafc;background:#101b2c;background-size:cover;background-position:center;min-height:calc(100dvh - 64px);padding:24px;display:flex;flex-direction:column}.student-stage:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;background:#040a14d9}.student-stage .stage-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px}.student-stage .stage-topic{font-size:clamp(18px,2vw,30px);font-weight:700;overflow-wrap:anywhere}.student-stage .stage-label{color:#a5f3fc;font-size:clamp(14px,1.3vw,20px)}.student-stage .stage-scores{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin-top:22px}.student-stage .stage-score{padding:10px 20px;background:#112033e6;border-radius:10px;min-width:130px;text-align:center;font-size:clamp(16px,1.5vw,23px)}.student-stage .stage-score.active{box-shadow:inset 0 0 0 2px #67e8f9}.student-stage .stage-score strong{display:block;color:#a5f3fc;font-size:clamp(22px,2.3vw,34px);font-variant-numeric:tabular-nums}.student-stage .stage-board{display:grid;grid-template-rows:minmax(68px,auto) repeat(5,minmax(64px,1fr));gap:8px;flex:1}.student-stage .stage-category{display:flex;align-items:center;justify-content:center;text-align:center;overflow-wrap:anywhere;padding:8px;background:#07586b;border-radius:8px;font-size:clamp(14px,1.5vw,24px);font-weight:700}.student-stage .stage-tile{display:flex;align-items:center;justify-content:center;background:#16263bf0;border-radius:8px;color:#a5f3fc;font-weight:700;font-size:clamp(26px,3vw,48px)}.student-stage .stage-tile.answered{color:#b0bfd1;background:#172033}.student-stage .stage-question{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px 6%;overflow-wrap:anywhere}.student-stage .stage-question h2{font-size:clamp(28px,3.7vw,64px);font-weight:700;line-height:1.35;margin:18px 0}.student-stage .stage-question.long h2{font-size:clamp(22px,2.6vw,44px)}.student-stage .stage-revealed{margin:22px 0 0;width:100%;border-top:1px solid #567084;padding-top:20px}.student-stage .stage-revealed h3{color:#86efac;font-size:clamp(26px,3.2vw,54px);font-weight:700;margin:8px 0}.student-stage .stage-revealed p{font-size:clamp(18px,1.8vw,30px);line-height:1.5;margin:14px 0}.student-stage .stage-clock{font-size:clamp(20px,2vw,32px);font-weight:700;font-variant-numeric:tabular-nums;margin-top:20px}.student-stage .stage-waiting{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:200px;padding:24px}.student-stage .stage-waiting h2{font-size:clamp(24px,3vw,48px);margin:12px 0;font-weight:700}.student-stage .stage-waiting p{font-size:clamp(16px,1.5vw,24px);color:#bccada}.student-stage.compact{min-height:310px;padding:14px;border-radius:12px}.student-stage.compact .stage-topic{font-size:14px}.student-stage.compact .stage-label{font-size:12px}.student-stage.compact .stage-board{grid-template-rows:minmax(35px,auto) repeat(5,28px);gap:4px}.student-stage.compact .stage-category{font-size:10px;padding:4px;border-radius:4px}.student-stage.compact .stage-tile{font-size:15px;border-radius:4px}.student-stage.compact .stage-score{font-size:12px;min-width:0;padding:6px 10px;flex:1}.student-stage.compact .stage-score strong{font-size:16px}.student-stage.compact .stage-scores{gap:5px;margin-top:10px}.student-stage.compact .stage-question{padding:10px}.student-stage.compact .stage-question h2{font-size:20px;margin:10px 0}.student-stage.compact .stage-revealed{margin-top:10px;padding-top:10px}.student-stage.compact .stage-revealed h3{font-size:20px}.student-stage.compact .stage-revealed p{font-size:13px}.student-stage.compact .stage-clock{font-size:16px;margin-top:10px}.student-stage.compact .stage-waiting h2{font-size:24px}.student-stage.compact .stage-waiting p{font-size:14px}@media(max-width:1000px){.presenter-grid{grid-template-columns:minmax(0,1fr)}}@media(max-width:600px){.presenter-shell{padding:14px}.presenter-panel{padding:16px}.presenter-header h1{font-size:22px}.presenter-category{font-size:10px}.presenter-board{gap:4px}.student-stage{padding:12px}.student-stage .stage-board{gap:4px;grid-template-rows:minmax(60px,auto) repeat(5,minmax(52px,1fr))}.student-stage .stage-category{font-size:11px;padding:4px}.student-stage .stage-tile{font-size:26px}.student-stage .stage-question{padding:12px 0}.student-stage .stage-score{flex:1;min-width:100px;padding:8px}}.presenter-shell.board-surface{background:radial-gradient(ellipse at 10% 10%,#ccf5f2,transparent 45%),radial-gradient(ellipse at 95% 20%,#eadfff,transparent 45%),#f6f8ff;color:var(--board-text)}.presenter-header h1{letter-spacing:-.025em}.presenter-eyebrow{color:#155e75}.presenter-muted{color:var(--board-muted)}.presenter-panel{background:var(--board-panel);border-color:var(--board-divider);border-radius:20px;box-shadow:0 12px 32px #0411250f}.presenter-button{background:var(--board-soft,#f2f5fc);color:var(--board-text,#18253d);border-color:var(--board-border,#71819a);border-radius:10px}.presenter-button:hover:not(:disabled){background:#ede9fe;color:#18253d}.presenter-button.primary,.presenter-button.primary:hover:not(:disabled){background:linear-gradient(105deg,#0e7490,#6d28d9);color:#fff;border-color:#0e7490}.presenter-button.danger{background:#b91c1c;color:#fff;border-color:#b91c1c}.presenter-button:focus-visible,.presenter-shell input:focus-visible,.presenter-shell select:focus-visible,.presenter-tile:focus-visible{outline-color:var(--ui-focus)}.presenter-connection{background:#fff;color:#475569;border:1px solid #d4deec}.presenter-connection.connected{color:#166534}.presenter-notice{background:#e1f7fa;border-color:#155e75;color:#18253d}.presenter-notice.error{background:#fff1f2;border-color:#be123c;color:#9f1239}.presenter-team[aria-pressed=true]{border-color:#6d28d9;background:#f0eaff}.presenter-team:disabled{opacity:1;cursor:default}.presenter-board{gap:8px}.presenter-category{color:#fff;background:var(--column-ink);border-radius:10px;display:flex;align-items:center;justify-content:center;min-height:56px}.presenter-tile{background:var(--column-soft);color:var(--column-ink);border-color:#71819a;border-radius:10px;min-height:52px;font-variant-numeric:tabular-nums}.presenter-tile:hover:not(:disabled),.presenter-tile[aria-pressed=true]{background:#f0eaff;border-color:#6d28d9}.presenter-tile:disabled{background:#eef2f8;color:#475569;opacity:1;border-color:#d4deec;cursor:default}.presenter-answer{background:#e2f7ef;border-color:#166534;border-radius:12px}.presenter-answer .answer-label{color:#166534}.presenter-shell input[type=number],.presenter-shell select{background:#f8fbff;color:#18253d;border-color:#71819a;border-radius:10px}.presenter-timer{padding:12px 16px;border-radius:12px;background:#f2f5fc}.student-stage.board-surface{color:var(--board-text)}.student-stage.board-surface:before{background:#040a1466}.student-stage.board-surface[data-appearance=light]:before{background:#f6f8ff1f}.student-stage .stage-header{padding:14px 18px;background:var(--board-panel);border:1px solid var(--board-divider);border-radius:16px}.student-stage .stage-label{color:var(--board-muted)}.student-stage .stage-category{background:var(--column-ink);color:#fff;border-radius:12px}.student-stage .stage-tile{flex-direction:column;gap:4px;border:1px solid var(--board-border);border-top:3px solid var(--column-ink);border-radius:12px;background:var(--board-panel);color:var(--column-bright)}.student-stage[data-appearance=light] .stage-tile{background:var(--column-soft);color:var(--column-ink)}.student-stage .stage-tile .tile-value{font-size:clamp(26px,3vw,48px)}.student-stage .stage-tile .tile-caption{font-size:clamp(12px,1.1vw,18px)}.student-stage .stage-tile.answered{color:var(--board-muted);background:var(--board-played);border-color:var(--board-divider)}.student-stage .stage-score{--score-accent:var(--board-accent);background:#131f30b8;color:var(--board-text);border:1px solid var(--board-border);border-radius:14px;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.student-stage[data-appearance=light] .stage-score{--score-accent:#4c1d95;background:#ffffffad}.student-stage .stage-score.active{border-color:var(--score-accent);box-shadow:inset 0 0 0 1px var(--score-accent)}.student-stage .stage-score strong{color:var(--score-accent)}.student-stage .stage-score-turn{display:block;color:var(--score-accent);font-size:12px;font-weight:600}.student-stage .stage-question{background:var(--board-panel);border:1px solid var(--board-divider);border-radius:20px}.student-stage .stage-revealed{border-color:var(--board-divider)}.student-stage .stage-revealed h3{color:var(--board-positive)}.student-stage .stage-clock{border-radius:12px;padding:10px 16px;background:var(--board-soft);color:var(--board-muted)}.student-stage .stage-waiting{background:var(--board-panel);border-radius:20px}.student-stage .stage-waiting p{color:var(--board-muted)}.student-stage.compact .stage-header{padding:10px;border-radius:10px}.student-stage.compact .stage-tile .tile-value{font-size:15px}.student-stage.compact .stage-tile .tile-caption{display:none}.student-stage.compact .stage-tile{gap:0;border-radius:7px}.student-stage.compact .stage-category{border-radius:7px}.student-stage.compact .stage-score-turn{font-size:9px}.student-stage.compact .stage-question{border-radius:12px}@media(min-width:601px)and (max-height:800px){.student-stage:not(.compact){padding:16px}.student-stage:not(.compact) .stage-header{padding:10px 14px}.student-stage:not(.compact) .stage-board{grid-template-rows:minmax(56px,auto) repeat(5,minmax(56px,1fr))}.student-stage:not(.compact) .stage-tile .tile-value{font-size:clamp(24px,2.7vw,40px)}.student-stage:not(.compact) .stage-tile .tile-caption{line-height:1.2}.student-stage:not(.compact) .stage-score{padding:8px 18px;font-size:17px;line-height:1.2}.student-stage:not(.compact) .stage-score strong{font-size:28px;line-height:1.2}}@media(max-width:600px){.presenter-category{font-size:10px}.student-stage .stage-tile .tile-value{font-size:26px}.student-stage.compact .stage-tile .tile-value{font-size:15px}}@media(forced-colors:active){.student-stage .stage-score{background:Canvas;color:CanvasText;backdrop-filter:none;-webkit-backdrop-filter:none}.student-stage .stage-score strong,.student-stage .stage-score-turn{color:CanvasText}.student-stage .stage-score.active{border-color:Highlight;box-shadow:none}}:root,.app-dialog{--ui-text: #f1f5f9;--ui-muted: #b7c5d6;--ui-accent: #67e8f9;--ui-focus: #67e8f9;--ui-card: #131f30;--ui-field: #0b1220;--ui-border: #73839a;--ui-divider: #35465c;--ui-placeholder: #a9b7ca;--ui-choice: #17263a;--ui-selected: #123747;--ui-secondary: #253449;--ui-primary: #0e7490;--ui-primary-hover: #155e75;--ui-error-bg: #3a1825;--ui-error-border: #fb7185;--ui-error-text: #fecdd3;color-scheme:dark}:root{font-family:Roboto,sans-serif}.auth-shell,.app-chrome.app-chrome-light,.setup-card,.account-surface,.app-dialog[data-appearance=light]{--ui-text: #18253d;--ui-muted: #475569;--ui-accent: #155e75;--ui-focus: #6d28d9;--ui-card: #ffffff;--ui-field: #f8fbff;--ui-border: #71819a;--ui-divider: #d4deec;--ui-placeholder: #53627a;--ui-choice: #f8fbff;--ui-selected: #e0f5fb;--ui-secondary: #ede9fe;--ui-primary: linear-gradient(105deg, #0e7490, #6d28d9);--ui-primary-hover: linear-gradient(105deg, #155e75, #5b21b6);--ui-error-bg: #fff1f2;--ui-error-border: #be123c;--ui-error-text: #9f1239;color-scheme:light;color:var(--ui-text)}body{margin:0;background:#0b1220;color:#f1f5f9}*,*:before,*:after{box-sizing:border-box}:where(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--ui-focus)!important;outline-offset:4px}:where(button,input,select,textarea,summary){font:inherit}.skip-link{position:absolute;left:16px;top:-100px;z-index:100;padding:12px 18px;background:#f1f5f9;color:#0b1220;border-radius:8px;font-weight:700}.skip-link:focus{top:12px;outline:3px solid #0e7490}.ui-eyebrow{color:var(--ui-accent);letter-spacing:.14em;font-size:.75rem;font-weight:700;margin:0 0 12px}.ui-muted,.setup-intro-copy>p:last-child{color:var(--ui-muted);font-size:.95rem;line-height:1.6}.ui-input{display:block;width:100%;background:var(--ui-field);border:1px solid var(--ui-border);border-radius:10px;padding:12px 14px;min-height:48px;color:var(--ui-text);margin-top:8px}.ui-input::placeholder{color:var(--ui-placeholder)}.ui-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;border-radius:10px;padding:12px 22px;font-weight:700;cursor:pointer;border:1px solid transparent}.ui-button.primary{background:var(--ui-primary);color:#fff}.ui-button.primary:hover{background:var(--ui-primary-hover)}.ui-button.secondary{background:var(--ui-secondary);color:var(--ui-text);border-color:var(--ui-border)}.ui-button:disabled{opacity:.65;cursor:wait}.ui-error{background:var(--ui-error-bg);border:1px solid var(--ui-error-border);color:var(--ui-error-text);border-radius:10px;padding:12px 16px;line-height:1.5;margin:16px 0}.setup-card{width:100%;background:var(--ui-card);border:1px solid var(--ui-divider);padding:32px;border-radius:20px;box-shadow:0 20px 60px #413b7614}.setup-intro h2{font-size:clamp(1.6rem,3vw,2.15rem);font-weight:700;letter-spacing:-.035em;line-height:1.25;margin:0 0 10px}.setup-intro{display:flex;align-items:center;gap:20px;margin:-12px -12px 28px;padding:24px;border-radius:16px;background:linear-gradient(110deg,#e1f7fa,#f1eaff 65%,#fff0d8)}.setup-intro-copy{flex:1;min-width:0}.setup-intro-copy>p:last-child{margin:0}.trivia-artwork{display:block;width:min(100%,460px);height:auto;margin:0 auto;object-fit:contain}.trivia-artwork.compact{width:210px;flex:0 0 210px;margin:-12px -8px -12px 0}.setup-section{min-width:0;padding:22px 0 26px;border:0;border-top:1px solid var(--ui-divider);margin:0}.setup-section legend{padding:0 12px 0 0;font-size:1.08rem;font-weight:700}.step-number{display:inline-grid;place-items:center;background:#6d28d9;color:#fff;border-radius:50%;width:28px;height:28px;margin-right:8px;font-size:.85rem}.source-choices,.mode-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.choice-card{min-width:0;display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid var(--ui-border);background:var(--ui-choice);border-radius:12px;cursor:pointer}.choice-card.selected{border-color:var(--ui-accent);background:var(--ui-selected);box-shadow:inset 0 0 0 1px var(--ui-accent)}.choice-card:has(input:focus-visible){outline:3px solid var(--ui-focus);outline-offset:4px}.choice-card input,.check-option input{width:20px;height:20px;margin:2px 0 0;flex-shrink:0;accent-color:#0e7490}.choice-card strong,.check-option strong{display:block;font-size:.98rem}.choice-card small,.check-option small{display:block;color:var(--ui-muted);font-size:.85rem;line-height:1.5;margin-top:5px}.content-input{margin-top:22px}.content-input>label,.team-options label{display:block;font-weight:700}.content-input .ui-muted{margin:7px 0 8px}.topic-presets{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.topic-chip{background:#e8f7fa;color:#18253d;border:1px solid var(--ui-border);border-radius:24px;padding:8px 13px;min-height:40px;font-size:.82rem;cursor:pointer}.topic-chip:nth-child(3n+2){background:#f0eaff}.topic-chip:nth-child(3n){background:#fff1dc}.topic-chip:hover,.topic-chip[aria-pressed=true]{background:#0e7490;color:#fff;border-color:#0e7490}.file-input{padding:10px;max-width:100%}.file-input::file-selector-button{border:0;border-radius:6px;padding:8px 12px;color:var(--ui-text);background:var(--ui-secondary);margin-right:12px;cursor:pointer}.team-options{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}.check-option{display:flex;gap:12px;padding:16px;margin-top:16px;border:1px solid var(--ui-divider);border-radius:12px;cursor:pointer}.appearance-options summary{min-height:44px;padding:10px 0;cursor:pointer;color:var(--ui-text)}.appearance-options .ui-muted{margin:4px 0 12px}.create-row{margin-top:16px;display:flex;align-items:center;justify-content:space-between;gap:20px}.credit-cost{font-size:.95rem;color:var(--ui-muted);margin:0}.credit-cost strong{color:var(--ui-text)}.setup-status{margin:0}.setup-finish{padding-bottom:0}.app-dialog{border:1px solid #73839a;border-radius:16px;padding:0;background:#131f30;color:#f1f5f9;width:min(960px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto}.app-dialog[data-appearance=light]{background:var(--ui-card);color:var(--ui-text);border-color:var(--ui-divider);box-shadow:0 20px 60px #25385826}.app-dialog::backdrop{background:#020617cc}.app-dialog [data-dialog-title]:focus{outline:none}.app-dialog button{min-height:44px}.app-dialog .bg-cyan-500,.app-dialog .bg-green-500,.app-dialog .bg-yellow-500{background:#0e7490}.app-dialog .bg-red-500{background:#b91c1c}.app-dialog.theme-dialog{width:min(1000px,calc(100% - 32px));overflow:hidden}.theme-picker{display:flex;flex-direction:column;max-height:calc(100dvh - 34px)}.theme-dialog .theme-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:none;padding:28px;border-bottom:1px solid var(--ui-divider);background:linear-gradient(110deg,#e1f7fa,#f1eaff,#fff0d8)}.theme-heading h2{color:var(--ui-text);font-size:1.6rem;font-weight:800;line-height:1.25;margin:0 0 8px}.theme-heading p{color:var(--ui-muted);line-height:1.5;margin:0}.theme-close{display:inline-grid;place-items:center;flex:none;width:44px;height:44px;font-size:1.5rem;color:var(--ui-accent);background:#fff;border:1px solid var(--ui-border);border-radius:10px;cursor:pointer}.theme-close:hover{background:#ede9fe}.theme-dialog .theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;flex:1 1 auto;min-height:0;overflow:auto;scrollbar-gutter:stable;padding:28px;gap:20px}.theme-dialog .theme-option{min-width:0;border:1px solid var(--ui-border);border-radius:14px;background:#fff;text-align:left;cursor:pointer;box-shadow:0 4px 12px #25385808;overflow:hidden}.theme-dialog .theme-option:hover{border-color:#6d28d9;box-shadow:0 6px 18px #6d28d914}.theme-dialog .theme-option[aria-pressed=true]{border-color:#6d28d9;box-shadow:0 0 0 2px #6d28d9}.theme-preview{aspect-ratio:16/9;position:relative;background:#eef4fa}.theme-preview img{display:block;width:100%;height:100%;object-fit:cover}.theme-selected-mark{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;color:#fff;background:#6d28d9}.theme-selected-mark svg{width:24px;height:24px}.theme-info{padding:18px}.theme-info h3{color:var(--ui-text);font-size:1.1rem;font-weight:800;line-height:1.4;margin:0 0 6px}.theme-info p{color:var(--ui-muted);font-size:.9rem;line-height:1.5;margin:0}.theme-dialog .theme-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;flex:none;padding:24px 28px;border-top:1px solid var(--ui-divider);background:#f8fbff}.theme-selection{color:var(--ui-muted);line-height:1.5;overflow-wrap:anywhere}.theme-selection strong{color:var(--ui-accent)}.theme-actions{display:flex;gap:12px}@media(min-width:701px)and (max-width:950px){.theme-dialog .theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-height:550px){.app-dialog.theme-dialog{overflow:auto}.theme-picker{max-height:none}.theme-dialog .theme-grid{flex:none;overflow:visible}}.auth-shell,.app-chrome.app-chrome-light{background:radial-gradient(ellipse at 12% 20%,#ccf5f2 0,transparent 50%),radial-gradient(ellipse at 90% 12%,#eadfff 0,transparent 42%),radial-gradient(ellipse at 80% 92%,#ffedcf 0,transparent 38%),#f6f8ff}.auth-shell{min-height:100dvh;display:flex;flex-direction:column}.auth-main{flex:1;width:min(1120px,100%);margin:auto;padding:48px 32px;display:grid;grid-template-columns:1.15fr 1fr;align-items:center;gap:60px}.auth-brand h1{font-weight:700;font-size:clamp(2.2rem,3.5vw,3rem);line-height:1.1;letter-spacing:-.045em;margin:16px 0 8px;max-width:550px}.auth-headline-accent{color:#6d28d9}.auth-brand>p{color:var(--ui-muted);line-height:1.7;font-size:1rem;margin:8px 0 0}.auth-benefits{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px;color:var(--ui-text)}.auth-benefits span{border:1px solid #b7d8e0;background:#e8f7fa;border-radius:20px;padding:6px 12px;font-size:.8rem;line-height:1.5}.auth-benefits span:nth-child(2){background:#f0eaff;border-color:#d4c9ef}.auth-benefits span:nth-child(3){background:#fff1dc;border-color:#e5ceab}.auth-card{width:100%;padding:32px;background:var(--ui-card);border:1px solid var(--ui-divider);border-top:4px solid #6d28d9;border-radius:20px;box-shadow:0 20px 60px #413b7614}.auth-card h2{font-size:1.75rem;font-weight:700;margin:0 0 8px;letter-spacing:-.025em}.auth-card form{display:grid;gap:18px;margin-top:24px}.auth-card label{display:block;font-size:.92rem;font-weight:700}.password-field{position:relative}.password-field .ui-input{padding-right:74px}.password-toggle{position:absolute;top:2px;right:3px;min-width:62px;min-height:44px;color:var(--ui-accent);font-size:.8rem;font-weight:700;background:transparent;border:0;cursor:pointer;border-radius:8px}.auth-switch{display:block;margin:18px auto 0;min-height:44px;padding:10px;font-size:.9rem;color:var(--ui-accent);cursor:pointer;background:transparent}.auth-credit-note{color:#166534;font-size:.9rem;margin-top:18px}.app-chrome{background:#0b1220}.app-chrome nav button{min-height:44px}.app-chrome .page-heading{text-shadow:none!important;font-family:Roboto,sans-serif;font-size:1.9rem!important;color:#f1f5f9;letter-spacing:-.03em}.app-chrome.app-chrome-light{color:#18253d;color-scheme:light;--ui-focus: #6d28d9}.app-chrome-light .page-heading{color:#18253d}.app-chrome-light .setup-subtitle{color:#475569}.app-chrome-light .app-navigation{background:#fff;border-color:#d4deec}.app-chrome-light .nav-brand{color:#0e7490}.app-chrome-light .nav-brand:hover{color:#155e75}.auth-shell>footer,.app-chrome-light>footer{color:#475569;border-color:#d4deec;background:#ffffffb3}.auth-shell>footer :is(a,button),.app-chrome-light>footer :is(a,button){color:#0e7490}.auth-shell>footer :is(a,button):hover,.app-chrome-light>footer :is(a,button):hover{color:#155e75}.mobile-board{display:none}@media(max-width:700px){.auth-main{grid-template-columns:1fr;gap:32px;padding:32px 20px}.auth-brand h1{font-size:2.15rem}.auth-benefits{display:none}.auth-brand .trivia-artwork{width:min(100%,300px)}.setup-intro{flex-direction:column-reverse;align-items:stretch;gap:12px;padding:18px;margin:-8px -8px 24px}.trivia-artwork.compact{flex:none;width:min(100%,220px);margin:-8px auto 0}.auth-card,.setup-card{padding:24px 20px}.create-row{align-items:stretch;flex-direction:column;gap:16px}.source-choices,.team-options{grid-template-columns:1fr}.choice-card{padding:12px;gap:8px}.mode-choices{gap:10px}.theme-dialog .theme-heading,.theme-dialog .theme-footer,.theme-dialog .theme-grid{padding:20px}.theme-dialog .theme-grid{grid-template-columns:minmax(0,1fr);gap:18px}.theme-heading h2{font-size:1.35rem}.theme-actions{width:100%}.theme-actions .ui-button{flex:1;min-width:0;padding:12px 16px}.mobile-board{display:block}.desktop-board{display:none!important}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}@media(forced-colors:active){.choice-card.selected,.topic-chip[aria-pressed=true]{outline:2px solid Highlight}:where(button,a,input,select,summary):focus-visible{outline-color:Highlight!important}}.end-game-dialog{max-width:520px}.tutorial-dialog{max-width:780px}.credit-dialog{max-width:680px}.app-chrome .bg-cyan-500.text-white{background:#0e7490}.app-chrome button.bg-gradient-to-r{background:#0e7490;min-height:44px}.app-chrome button[aria-expanded]{min-height:44px}.brand-name{display:inline;white-space:nowrap;padding:1px 4px;border-radius:4px;background:#20252b;font-weight:700;letter-spacing:-.025em;text-shadow:none}.brand-elevat{color:#f6f6f6}.brand-ed{color:#55b9f0}.brand-lockup{display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border-radius:12px;background:#20252b;color:#f6f6f6;text-align:left}.brand-mark{display:block;flex:none;width:56px;height:40px;object-fit:contain;background:#f6f6f6;border-radius:5px}.brand-lockup-copy{display:flex;flex-direction:column;gap:3px}.brand-lockup .brand-name{font-size:24px;line-height:1;padding:0}.brand-product{color:#f6f6f6;font-size:11px;font-weight:500;letter-spacing:.015em;line-height:1.3;white-space:nowrap}.nav-brand{min-width:0;flex-shrink:1;border-radius:12px;cursor:pointer}.nav-brand:hover .brand-lockup,.nav-brand:hover .brand-name{background:#303840}.brand-lockup-hero{padding:14px 18px;gap:14px;box-shadow:0 8px 24px #20252b15}.brand-lockup-hero .brand-mark{width:78px;height:56px}.brand-lockup-hero .brand-name{font-size:32px}.brand-lockup-hero .brand-product{font-size:13px}.auth-tagline{margin-top:20px}.account-desktop{display:block;width:320px;flex:none}.account-mobile{display:none;min-width:0}.account-surface{border:1px solid var(--ui-divider);border-radius:20px;background:var(--ui-card);box-shadow:0 16px 40px #413b7610}.account-card{position:sticky;top:16px;overflow:hidden}.account-heading{padding:24px 24px 20px;background:linear-gradient(110deg,#e1f7fa,#f1eaff)}.account-heading h2{font-size:1.25rem;font-weight:700;letter-spacing:-.025em;margin:0 0 6px}.account-email{display:block;color:var(--ui-muted);font-size:.8rem;line-height:1.5;overflow-wrap:anywhere;margin:0}.account-tier{display:inline-block;width:fit-content;padding:5px 10px;border:1px solid #aacfd9;border-radius:20px;background:#e0f5fb;color:#155e75;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.account-heading .account-tier{margin-top:14px}.account-body{padding:24px}.account-balance>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.account-balance>div:first-child>span{color:var(--ui-muted);font-weight:600;font-size:.9rem}.account-balance strong{color:var(--ui-text);font-size:2rem;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}.account-progress{height:8px;border-radius:8px;overflow:hidden;background:#e2e8f0}.account-progress>div{height:100%;background:linear-gradient(100deg,#0e7490,#6d28d9);border-radius:inherit}.account-muted{color:var(--ui-muted);font-size:.78rem;line-height:1.5;margin:10px 0 0}.credit-breakdown{margin-top:16px;color:var(--ui-muted);font-size:.85rem;line-height:1.5}.credit-breakdown dl{margin:0}.credit-breakdown dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin:6px 0}.credit-breakdown dt{min-width:0}.credit-breakdown dd{margin:0;color:var(--ui-text);font-weight:700;font-variant-numeric:tabular-nums}.credit-breakdown p{margin:10px 0 0;font-size:.8rem}.account-trial{display:flex;gap:12px;padding:16px;margin-top:20px;background:#f0eaff;border:1px solid #ded3f3;border-radius:12px}.account-trial>span{color:#6d28d9;font-size:1.4rem}.account-trial strong{display:block;font-size:.9rem;color:#4c1d95}.account-trial p{color:var(--ui-muted);font-size:.8rem;line-height:1.5;margin:4px 0 0}.account-details-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;margin:12px 0 0;color:#155e75;font-size:.9rem;font-weight:700;border-radius:8px;cursor:pointer}.account-details-toggle:hover{color:#0e7490;background:#f8fbff}.account-chevron{display:inline-flex;flex:none;color:#155e75}.account-chevron.expanded{transform:rotate(90deg)}.account-costs dl{margin:0}.account-costs dl>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin:8px 0;padding:12px;border-radius:10px;background:#f2f5fc;font-size:.8rem}.account-costs dt{color:var(--ui-muted)}.account-costs dd{margin:0;font-weight:700;color:var(--ui-text)}.account-buy{width:100%;margin-top:10px;font-size:.85rem}.account-reset{text-align:center;margin-top:16px}.account-mobile-toggle{display:flex;align-items:center;gap:12px;padding:16px;width:100%;text-align:left;cursor:pointer;background:linear-gradient(110deg,#e1f7fa,#f1eaff)}.account-mobile-copy{flex:1;min-width:0}.account-mobile-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-weight:700;margin-bottom:6px}.account-mobile-balance{display:flex;flex-direction:column;align-items:center;font-size:.75rem;color:var(--ui-muted)}.account-mobile-balance strong{font-size:1.5rem;color:var(--ui-text);line-height:1.2}.account-mobile-details{padding:20px;margin-top:10px}.review-setup-layout{display:flex;align-items:flex-start;gap:24px}.review-setup-layout>.setup-card{flex:1;min-width:0}@media(max-width:1023px){.account-desktop{display:none}.account-mobile{display:block}.review-setup-layout{flex-direction:column;align-items:stretch}}@media(max-width:400px){.brand-lockup{gap:8px;padding:8px}.brand-mark{width:44px;height:32px}.brand-lockup .brand-name{font-size:21px}.brand-product{font-size:10px}.brand-lockup-hero{padding:14px;gap:12px}.brand-lockup-hero .brand-mark{width:64px;height:46px}.brand-lockup-hero .brand-name{font-size:28px}.brand-lockup-hero .brand-product{font-size:12px}.account-mobile-toggle{padding:14px;gap:8px}}.board-surface{--board-panel:#131f30;--board-soft:#1b2b42;--board-text:#f1f5f9;--board-muted:#b7c5d6;--board-border:#73839a;--board-divider:#35465c;--board-accent:#a5f3fc;--board-positive:#86efac;--board-warning:#fbbf24;--board-negative:#fda4af;--board-played:#172033;--ui-focus:#67e8f9;color:var(--board-text);color-scheme:dark;font-family:Roboto,sans-serif}.board-surface[data-appearance=light]{--board-panel:#fff;--board-soft:#f2f5fc;--board-text:#18253d;--board-muted:#475569;--board-border:#71819a;--board-divider:#d4deec;--board-accent:#6d28d9;--board-positive:#166534;--board-warning:#b45309;--board-negative:#b91c1c;--board-played:#eef2f8;--ui-focus:#6d28d9;color:var(--board-text);color-scheme:light}.game-shell{background-size:cover;background-position:center}.game-shell.theme-colorful,.game-preview.theme-colorful,.student-stage.theme-colorful{background:radial-gradient(ellipse at 12% 20%,#ccf5f2,transparent 50%),radial-gradient(ellipse at 90% 12%,#eadfff,transparent 42%),#f6f8ff}.game-shell.theme-dark,.game-preview.theme-dark{background-color:#0b1220}.game-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#040a1466}.game-shell[data-appearance=light] .game-backdrop{background:#f6f8ff1f}.game-shell .game-header{padding:16px 24px;border-radius:18px;background:var(--board-panel);border:1px solid var(--board-divider);max-width:100%}.game-shell .game-header h1{color:var(--board-text);font-family:Roboto,sans-serif;font-size:clamp(1.2rem,2vw,1.75rem);text-shadow:none!important}.game-shell .game-header .game-topic{color:var(--board-muted)}.game-shell[data-appearance=light] .app-navigation{background:#fff;border-color:#d4deec}.game-shell[data-appearance=light] .nav-brand{color:#155e75}.game-shell[data-appearance=light] .nav-brand:hover{color:#164e63}.game-shell[data-appearance=light] footer{background:#fff;color:#475569;border-color:#d4deec}.game-shell[data-appearance=light] footer :is(a,button){color:#155e75}.game-shell[data-appearance=light] footer :is(a,button):hover{color:#164e63}.game-board,.scoreboard{padding:20px;border:1px solid var(--board-divider);border-radius:20px;background:var(--board-panel);box-shadow:0 12px 32px #04112514}.board-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.board-heading h2,.scoreboard h2{font-size:1.15rem;font-weight:700;margin:0 0 5px;letter-spacing:-.02em}.board-heading p{font-size:.85rem;line-height:1.5;color:var(--board-muted);margin:0}.board-progress{padding:7px 11px;border-radius:20px;background:var(--board-soft);color:var(--board-muted);font-size:.75rem;font-weight:600;white-space:nowrap}.board-grid{display:grid;gap:10px}.board-row{display:contents}.board-grid [role=cell]{min-width:0}.game-category{min-height:64px;display:flex;align-items:center;justify-content:center;padding:10px 8px;border-radius:12px;background:var(--column-ink);color:#fff;text-align:center;font-size:clamp(.75rem,1.2vw,1rem);font-weight:700;line-height:1.4;overflow-wrap:anywhere}.game-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%;min-height:clamp(64px,8vh,90px);padding:10px 4px;border:1px solid var(--board-border);border-top:3px solid var(--column-ink);border-radius:12px;background:var(--board-soft);color:var(--column-bright);cursor:pointer;transition:border-color .15s,box-shadow .15s}.board-surface[data-appearance=light] .game-tile{background:var(--column-soft);color:var(--column-ink)}.game-tile:hover:not(:disabled){border-color:var(--board-accent);box-shadow:0 4px 14px #04112522}.tile-value{font-size:clamp(1.35rem,2.5vw,2rem);font-weight:800;font-variant-numeric:tabular-nums;line-height:1.15}.tile-caption{font-size:.7rem;color:var(--board-muted);font-weight:600}.game-tile.played,.board-surface[data-appearance=light] .game-tile.played{background:var(--board-played);color:var(--board-muted);border:1px solid var(--board-divider);opacity:1;cursor:default}.game-tile.played .tile-value{font-size:1.25rem}.board-input{width:100%;min-height:46px;border:1px solid var(--board-border);border-radius:10px;padding:10px 12px;background:var(--board-panel);color:var(--board-text);font:inherit}.board-input::placeholder{color:var(--board-muted)}.mobile-board label{display:block;font-size:.9rem;font-weight:700;margin-bottom:8px}.mobile-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.board-button{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:10px 16px;border:1px solid var(--board-border);border-radius:10px;color:var(--board-text);background:var(--board-soft);font-weight:700;cursor:pointer}.board-button.primary{color:#fff;background:#0e7490;border-color:#0e7490}.board-surface[data-appearance=light] .board-button.primary{background:linear-gradient(105deg,#0e7490,#6d28d9);border-color:#0e7490}.board-button.danger{background:#b91c1c;color:#fff;border-color:#b91c1c}.board-button:disabled{opacity:.55;cursor:default}.board-button:hover:not(:disabled){filter:brightness(.92)}.scoreboard h2{margin-bottom:14px}.scoreboard{background:#131f30b8;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.scoreboard[data-appearance=light]{--board-accent:#4c1d95;background:#ffffffad}.scoreboard .score-card{background:transparent}.scoreboard .score-adjust{background:#131f3033}.scoreboard[data-appearance=light] .score-adjust{background:#fff3}.scoreboard .score-adjustment{background:var(--board-panel)}.score-list{display:grid;gap:12px}.score-card{border:1px solid var(--board-border);border-radius:14px;background:var(--board-soft);overflow:hidden}.score-card.active{border:2px solid var(--board-accent)}.score-select{width:100%;display:flex;flex-direction:column;align-items:center;gap:5px;padding:14px;border:0;background:transparent;color:var(--board-text);border-radius:12px}button.score-select{cursor:pointer}button.score-select:focus-visible{outline-offset:-5px}.score-name{font-size:.95rem;font-weight:700;overflow-wrap:anywhere;text-align:center}.score-value{font-size:2rem;font-weight:800;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.score-value.positive{color:var(--board-positive)}.score-value.negative,.score-error{color:var(--board-negative)}.score-turn{font-size:.75rem;font-weight:600;color:var(--board-muted)}.score-card.active .score-turn{color:var(--board-accent)}.score-adjust{display:block;width:100%;min-height:44px;border:0;border-top:1px solid var(--board-divider);color:var(--board-accent);background:var(--board-panel);font-size:.8rem;font-weight:600;cursor:pointer}.score-adjust:focus-visible{outline-offset:-4px}.score-adjustment{padding:12px;border-top:1px solid var(--board-divider)}.score-adjustment label{display:block;font-size:.75rem;font-weight:600;margin-bottom:8px}.score-adjust-row{display:flex;align-items:center;gap:6px}.score-adjust-row .board-button{flex:0 0 44px;padding:0;font-size:1.25rem}.score-adjust-row .board-input{min-width:0;text-align:center;padding:8px 4px}.score-error{font-size:.75rem;margin-top:8px}.question-dialog{background:var(--board-panel);border-color:var(--board-border)}.question-card{background:var(--board-panel);color:var(--board-text);display:flex;flex-direction:column;max-height:calc(100dvh - 36px)}.question-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--board-divider)}.question-heading h2{color:var(--board-accent);font-size:1.2rem;font-weight:700}.question-heading button{width:44px;min-height:44px;color:var(--board-muted);border-radius:8px}.question-content{padding:32px;overflow-y:auto;min-height:0;text-align:center;overflow-wrap:anywhere}.question-text{font-size:clamp(1.3rem,2.7vw,2.1rem);line-height:1.5;font-weight:600}.question-muted,.question-copyright{color:var(--board-muted)}.question-accent{color:var(--board-accent)}.question-special{color:var(--board-accent);font-size:2rem;font-weight:800}.question-feedback{padding:16px;border-radius:12px;background:var(--board-soft);color:var(--board-negative);font-size:1.6rem;font-weight:800}.question-feedback.correct{color:var(--board-positive)}.question-actions{display:flex;flex-direction:column;align-items:center;gap:16px;padding:20px 24px;border-top:1px solid var(--board-divider)}.question-actions input{min-width:0}.question-copyright{width:100%;text-align:center;font-size:.75rem;padding-top:12px;border-top:1px solid var(--board-divider)}.board-timer{max-width:440px;margin:auto}.board-timer-value{display:flex;justify-content:center;align-items:center;gap:8px;margin-bottom:8px;font-size:1.15rem;font-weight:700;font-variant-numeric:tabular-nums}.board-timer-track{height:10px;border:1px solid var(--board-border);border-radius:12px;overflow:hidden;background:var(--board-soft)}.board-timer-bar{height:100%;border-radius:12px;background:var(--board-positive);transition:width 1s linear}.board-timer-bar.warning{background:var(--board-warning)}.board-timer-bar.urgent{background:var(--board-negative)}.theme-preview-colorful{background:linear-gradient(110deg,#ccf5f2,#eadfff)}.theme-preview-colorful img{object-fit:contain;padding:12px}.game-preview{min-height:calc(100dvh - 140px);background-size:cover;background-position:center}.game-preview-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:20px;align-items:start}@media(max-width:900px){.game-preview-layout{grid-template-columns:minmax(0,1fr)}.score-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.game-board,.scoreboard{padding:16px;border-radius:16px}.board-heading{flex-wrap:wrap;gap:10px}.board-heading h2{font-size:1rem}.mobile-tiles .game-tile{min-height:90px}.mobile-tiles .tile-value{font-size:1.8rem}.question-heading,.question-actions{padding:16px}.question-content{padding:24px 16px}.score-list{grid-template-columns:minmax(0,1fr)}}@media(prefers-reduced-motion:reduce){.game-tile,.board-timer-bar{transition:none}}@media(forced-colors:active){.scoreboard{background:Canvas;color:CanvasText;backdrop-filter:none;-webkit-backdrop-filter:none}.score-card.active{border-color:Highlight}.game-tile{border:1px solid ButtonText}}.support-page,.app-dialog.support-dialog,.support-loading{--ui-text:#18253d;--ui-muted:#475569;--ui-accent:#155e75;--ui-focus:#6d28d9;--ui-card:#fff;--ui-field:#f8fbff;--ui-border:#71819a;--ui-divider:#d4deec;--ui-placeholder:#53627a;--ui-secondary:#ede9fe;--ui-primary:linear-gradient(105deg,#0e7490,#6d28d9);--ui-primary-hover:linear-gradient(105deg,#155e75,#5b21b6);--ui-error-bg:#fff1f2;--ui-error-border:#be123c;--ui-error-text:#9f1239;color:var(--ui-text);color-scheme:light}.support-page{width:100%;max-width:1180px;margin:auto;padding:32px;border:1px solid var(--ui-divider);border-radius:24px;background:#fff;box-shadow:0 20px 60px #413b7614;overflow-wrap:anywhere}.support-page h1{font-size:clamp(1.8rem,4vw,2.6rem);font-weight:800;line-height:1.2;letter-spacing:-.035em}.support-page h2,.support-dialog h2{font-weight:800;font-size:1.5rem;line-height:1.3}.support-page h3,.support-dialog h3{font-weight:750;font-size:1.1rem;line-height:1.4}.support-page p,.support-dialog p,.support-page li,.support-dialog li{line-height:1.65}.support-page a:not(.ui-button){color:var(--ui-accent);text-decoration:underline;text-underline-offset:3px}.support-hero{display:flex;align-items:center;gap:24px;padding:28px;margin-bottom:28px;border-radius:18px;background:linear-gradient(110deg,#e1f7fa,#f1eaff 65%,#fff0d8)}.support-hero-copy{flex:1;min-width:0}.support-hero h1{margin:0 0 12px}.support-hero p:last-child{color:var(--ui-muted);margin:0}.support-hero .trivia-artwork.compact{width:170px;flex-basis:170px}.support-heading-row{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.support-close{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid var(--ui-border);border-radius:10px;color:var(--ui-accent);background:#fff;font-size:1.5rem;cursor:pointer}.support-close:hover{background:#ede9fe}.support-section{margin-top:28px}.support-section>h2{margin-bottom:10px}.support-section>p{color:var(--ui-muted);margin-bottom:20px}.support-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.support-card{min-width:0;padding:24px;background:#fff;border:1px solid var(--ui-divider);border-radius:16px}.support-card h2,.support-card h3{margin-bottom:10px}.support-card p+p{margin-top:10px}.support-card.soft{background:#f8fbff}.support-callout{padding:20px 24px;border:1px solid #abcbd4;border-radius:14px;background:#e8f7fa}.support-callout.purple{background:#f0eaff;border-color:#d4c9ef}.support-callout.amber{background:#fff4df;border-color:#d5ba8b}.support-callout>p+p,.support-callout>h3+p{margin-top:8px}.support-callout-row{display:flex;justify-content:space-between;align-items:center;gap:20px}.support-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:24px}.support-muted{color:var(--ui-muted)}.support-accent{color:var(--ui-accent)}.support-pill{display:inline-block;border:1px solid #b7c9de;border-radius:24px;padding:6px 12px;font-size:.85rem;font-weight:700;color:#155e75;background:#e8f7fa}.support-list{padding-left:22px;list-style:disc}.support-list li+li{margin-top:8px}.support-mode-switcher{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}.support-mode-switcher button{background:#f0eaff;color:#18253d;border:1px solid #71819a;border-radius:12px;padding:12px 18px;min-height:48px;cursor:pointer;font-weight:700}.support-mode-switcher button[aria-pressed=true]{background:#6d28d9;color:#fff;border-color:#6d28d9}.support-steps{display:grid;gap:16px;list-style:none;padding:0;margin-top:18px}.support-steps li{display:flex;align-items:flex-start;gap:14px}.support-steps .step-number{flex:none;margin:0;width:32px;height:32px}.support-steps p{min-width:0;padding-top:2px}.plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:22px}.plan-card{display:flex;flex-direction:column;gap:16px;border-top:4px solid #0e7490}.plan-card:nth-child(2){border-top-color:#6d28d9}.plan-card:nth-child(3){border-top-color:#b45309}.plan-card .support-pill{align-self:flex-start}.plan-card ul{flex:1}.plan-card .ui-button{width:100%}.plan-price{color:#155e75;font-size:2.3rem;font-weight:800;line-height:1.2}.plan-price small{display:block;color:var(--ui-muted);font-size:.85rem;font-weight:400;margin-top:6px}.credit-pack-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px}.credit-pack{display:flex;flex-direction:column;align-items:flex-start;gap:12px;background:#f8fbff}button.credit-pack{text-align:left;cursor:pointer;min-height:48px;color:var(--ui-text)}button.credit-pack:hover{background:#f0eaff;border-color:#6d28d9}.credit-pack strong{font-size:1.4rem;color:var(--ui-accent)}.credit-pack .ui-button{width:100%;margin-top:auto}.app-dialog.support-dialog{width:min(800px,calc(100% - 32px));padding:0;overflow:hidden;border-radius:20px}.support-dialog-frame{display:flex;flex-direction:column;max-height:calc(100dvh - 34px)}.support-dialog-header{flex:none;padding:26px;background:linear-gradient(110deg,#e1f7fa,#f1eaff,#fff0d8);border-bottom:1px solid var(--ui-divider)}.support-dialog-header h2{font-size:clamp(1.4rem,3vw,1.9rem);margin-bottom:10px}.support-dialog-header [role=status]{color:var(--ui-muted)}.support-dialog-body{flex:1 1 auto;min-height:0;overflow:auto;padding:28px}.support-dialog-body>*+*{margin-top:20px}.support-dialog-footer{flex:none;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding:22px 26px;background:#f8fbff;border-top:1px solid var(--ui-divider)}.support-dialog-footer .support-actions{margin:0}.tutorial-progress{display:flex;gap:8px;margin-top:16px}.tutorial-progress span{display:block;width:10px;height:8px;border-radius:6px;background:#b6c2d6}.tutorial-progress span.current{width:32px;background:#6d28d9}.tutorial-progress span.complete{background:#0e7490}.tutorial-welcome{display:flex;align-items:center;gap:24px}.tutorial-welcome .trivia-artwork.compact{width:180px;flex-basis:180px}.app-dialog.password-dialog{width:min(520px,calc(100% - 32px));padding:28px;border-radius:20px}.password-dialog form{display:grid;gap:18px;margin-top:22px}.password-dialog label{font-weight:700}.support-success{padding:14px 18px;color:#166534;background:#ecfdf3;border:1px solid #15803d;border-radius:10px}.support-status-page{max-width:680px;text-align:center}.support-status-page .trivia-artwork.compact{max-width:220px;width:min(100%,220px);margin:0 auto 20px;flex:none}.support-loading{padding:32px;max-width:580px;margin:auto;border:1px solid #d4deec;border-radius:20px;background:#fff;text-align:center}.support-loading :is(h1,h2){font-size:1.4rem;font-weight:800;margin-top:16px}.support-loading p{margin-top:8px;line-height:1.6}.support-spinner{width:44px;height:44px;border:4px solid #d4deec;border-top-color:#6d28d9;border-radius:50%;margin:auto;animation:support-spin 1s linear infinite}@keyframes support-spin{to{transform:rotate(360deg)}}.legal-page{max-width:960px}.legal-page>h1{margin-bottom:16px}.legal-page section{padding-top:24px;border-top:1px solid var(--ui-divider)}.legal-page section h2{margin-bottom:12px}.legal-page ul{list-style:disc;padding-left:22px}@media(max-width:950px){.plan-grid{grid-template-columns:1fr}.plan-card{gap:12px}}@media(max-width:650px){.support-page{padding:20px;border-radius:20px}.support-hero{padding:20px;gap:16px;flex-direction:column-reverse;align-items:stretch}.support-hero .trivia-artwork.compact{flex:none;margin:auto;width:150px}.support-grid,.credit-pack-grid{grid-template-columns:1fr}.support-card,.support-callout{padding:20px}.support-callout-row{flex-direction:column;align-items:stretch}.support-mode-switcher{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.support-mode-switcher button{padding:12px 10px}.support-dialog-header,.support-dialog-body,.support-dialog-footer{padding:20px}.support-dialog-footer{align-items:stretch}.support-dialog-footer .support-actions{width:100%}.support-dialog-footer .support-actions .ui-button{flex:1;padding:12px}.tutorial-welcome{flex-direction:column-reverse;align-items:stretch}.tutorial-welcome .trivia-artwork.compact{flex:none;margin:auto;width:160px}.app-dialog.password-dialog{padding:24px 20px}.password-dialog .support-actions{flex-direction:column;align-items:stretch}}@media(max-height:550px){.app-dialog.support-dialog{overflow:auto}.support-dialog-frame{max-height:none}.support-dialog-body{flex:none;overflow:visible}}@media(prefers-reduced-motion:reduce){.support-spinner{animation:none}}.notice-card>.trivia-artwork{max-width:180px;margin:0 auto 22px;flex:none}.ad-slot{background:#ffffffb3;border-color:#d4deec}.legacy-admin fieldset{min-inline-size:0}.legacy-admin .overflow-x-auto{max-width:100%}.legacy-admin table[aria-label="Registered users"]{min-width:900px;overflow-wrap:normal}.legacy-admin [class*=bg-gray-8],.legacy-admin [class*=bg-gray-9]{background:#fff;border-color:#d4deec}.legacy-admin [class*=bg-gray-7],.legacy-admin [class*=bg-gray-6]{background:#f8fbff;border-color:#71819a;color:#18253d}.legacy-admin [class*=border-gray-]{border-color:#d4deec}.legacy-admin [class*=text-gray-],.legacy-admin [class*=text-white]{color:#18253d}.legacy-admin [class*=text-cyan-],.legacy-admin [class*=text-blue-]{color:#155e75}.legacy-admin [class*=text-purple-]{color:#5b21b6}.legacy-admin [class*=text-green-]{color:#166534}.legacy-admin [class*=text-yellow-],.legacy-admin [class*=text-orange-]{color:#92400e}.legacy-admin [class*=bg-red-9]{background:#fff1f2}.legacy-admin [class*=text-red-]{color:#9f1239}.legacy-admin button{min-height:44px}.legacy-admin [class*=bg-cyan-5]{background:#0e7490;color:#fff}.legacy-admin [class*=bg-purple-5]{background:#6d28d9;color:#fff}.legacy-admin [class*=bg-green-5]{background:#166534;color:#fff}.legacy-admin [class*=bg-yellow-5],.legacy-admin [class*=bg-orange-5]{background:#92400e;color:#fff}.legacy-admin [class*=bg-red-5]{background:#b91c1c;color:#fff}.legacy-admin [class*=bg-gray-5]{background:#475569;color:#fff}.legacy-admin button[class*=bg-green-6]{background:#166534}.legacy-admin button[class*=bg-yellow-6]{background:#92400e}.legacy-admin button[class*=bg-blue-6]{background:#1d4ed8}.legacy-admin button[class*=bg-purple-6]{background:#6d28d9}.legacy-admin button[class*=bg-red-6]{background:#b91c1c}.legacy-admin :is(button,span)[class*=bg-blue-6],.legacy-admin :is(button,span)[class*=bg-cyan-6],.legacy-admin :is(button,span)[class*=bg-purple-6],.legacy-admin :is(button,span)[class*=bg-red-6],.legacy-admin :is(button,span)[class*=bg-green-6],.legacy-admin :is(button,span)[class*=bg-yellow-6]{color:#fff}.app-header{--nav-text:#f1f5f9;--nav-muted:#b7c5d6;--nav-surface:#253449;--nav-border:#73839a;--nav-divider:#35465c;--nav-panel:#131f30;--nav-hover:#35465c;--nav-summary:#17263a;--nav-selected:#0e7490;position:relative;z-index:30;padding:16px 24px;border-bottom:1px solid var(--nav-divider);background:#131f30ed;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:var(--nav-text)}:is(.app-chrome-light,.game-shell[data-appearance=light],.game-preview[data-appearance=light]) .app-header{--nav-text:#18253d;--nav-muted:#475569;--nav-surface:#f5f2ff;--nav-border:#71819a;--nav-divider:#d4deec;--nav-panel:#ffffff;--nav-hover:#ede5fc;--nav-summary:linear-gradient(110deg,#e1f7fa,#f1eaff);--nav-selected:#6d28d9;background:#fff}.app-header-inner{max-width:1280px;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px}.app-header .nav-brand{flex:none}.app-nav-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px}.nav-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid var(--nav-border);border-radius:10px;background:var(--nav-surface);color:var(--nav-text);font-size:.875rem;font-weight:600;line-height:1.4;white-space:nowrap;cursor:pointer}.nav-button:hover{background:var(--nav-hover)}.nav-button:is([aria-current=page],[data-current=true],[aria-expanded=true]){background:var(--nav-selected);color:#fff;border-color:var(--nav-selected)}.app-header button:disabled{opacity:.6;cursor:default}.nav-dropdown{position:relative}.nav-dropdown-chevron{flex:none;transition:transform .15s ease}.nav-button[aria-expanded=true] .nav-dropdown-chevron{transform:rotate(180deg)}.nav-panel{position:absolute;top:calc(100% + 12px);right:0;width:272px;max-width:calc(100vw - 48px);max-height:calc(100dvh - 180px);overflow:auto;padding:8px;border:1px solid var(--nav-divider);border-radius:16px;background:var(--nav-panel);color:var(--nav-text);box-shadow:0 16px 48px #18253d26}.nav-panel-heading{margin:0;padding:10px 12px;font-size:.9rem;font-weight:700}.nav-panel-action{display:block;width:100%;min-height:44px;padding:12px;border:0;border-radius:8px;background:transparent;color:var(--nav-text);text-align:left;font-size:.875rem;font-weight:600;line-height:1.4;cursor:pointer}.nav-panel-action:hover{background:var(--nav-hover)}.nav-panel-action[aria-current=page]{background:var(--nav-surface)}.nav-panel-action:focus-visible{outline-offset:-3px}.nav-panel-action span{display:block;margin-top:4px;color:var(--nav-muted);font-weight:400;font-size:.8rem}.nav-account-panel{width:304px}.nav-account-summary{padding:8px 12px 14px;margin-bottom:6px;border-radius:10px;background:var(--nav-summary)}.nav-account-summary .nav-panel-heading{padding:4px 0}.nav-account-email{margin:0;color:var(--nav-muted);font-size:.8rem;line-height:1.5;overflow-wrap:anywhere}.nav-account-balance{margin:14px 0 0}.nav-account-balance div{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-top:8px;font-size:.85rem;line-height:1.5}.nav-account-balance dt{color:var(--nav-muted)}.nav-account-balance dd{margin:0;font-weight:700;text-align:right;font-variant-numeric:tabular-nums}.nav-account-balance div:last-child dd{font-size:1.25rem}.nav-panel-divider{margin:6px 12px;border-top:1px solid var(--nav-divider)}.nav-sign-out{color:var(--nav-muted)}.game-shell .app-header{padding-right:80px}.game-fullscreen-toggle{position:absolute;top:16px;right:16px;z-index:40;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--board-border);border-radius:10px;background:var(--board-panel);color:var(--board-text);cursor:pointer}.game-fullscreen-toggle:hover{background:var(--board-soft)}@media(max-width:760px){.app-header{padding:16px}.game-shell .app-header{padding-right:16px}.app-header-inner{align-items:stretch;flex-direction:column;gap:16px}.app-header .nav-brand{align-self:flex-start}.app-nav-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.nav-button{width:100%}.nav-help .nav-panel{left:0;right:auto}.nav-panel{top:calc(100% + 8px);max-height:calc(100dvh - 220px)}}@media(forced-colors:active){.nav-button:is([aria-current=page],[data-current=true],[aria-expanded=true]){outline:2px solid Highlight}.nav-panel{border-color:CanvasText}}
