body[data-screen="classroom"]{background:radial-gradient(ellipse at top,#17416b55,transparent 70%),#081d30;padding-bottom:0!important}
body[data-screen="classroom"] .show-controls,body[data-screen="classroom"] .top-actions,body[data-screen="classroom"] .stage-atmosphere{display:none}
body[data-screen="classroom"] .topbar{display:flex;justify-content:center;min-height:70px}
body[data-screen="classroom"] main{max-width:1200px;padding:20px 24px 32px}
.class-shell{max-width:1080px;margin:auto;color:#eaf5ff}
.class-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:26px}
.class-tools label{display:flex;align-items:center;gap:8px;font-size:.75rem;margin-inline-start:auto}.class-tools label+label{margin-inline-start:0}
.class-tools select{background:#123650;color:#ecf6ff;border:1px solid #53728a;border-radius:8px;min-height:42px;padding:8px;font:inherit}
.class-heading{margin:20px 0 24px}.class-heading h1{font-size:clamp(1.8rem,4vw,2.8rem);margin-bottom:10px;line-height:1.15;letter-spacing:-.035em}.class-heading p{color:#bdd2e4;line-height:1.6}.class-heading .eyebrow{color:#f4c659;font-size:.64rem}
.role-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.role-card{display:flex;align-items:flex-start;flex-direction:column;padding:30px;gap:14px;text-align:start;border:1px solid #61839d;border-radius:18px;background:linear-gradient(135deg,#194b70,#102e49);color:white;min-height:230px;transition:transform .15s,border-color .15s}
.role-card:hover{transform:translateY(-2px);border-color:#f4b517}.role-card>span{font-size:2.6rem}.role-card strong{font-size:1.75rem}.role-card small{font-size:1rem;line-height:1.5;color:#c6dfef}
.class-home-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.class-card{background:#10314c;border:1px solid #4a6a83;border-radius:15px;padding:24px;margin-bottom:20px}.class-card h2{font-size:1.35rem;line-height:1.5}.class-card .muted{color:#b7cee0;font-size:.84rem;line-height:1.6;margin-top:18px}
.class-shell .outline{background:#173f5d;color:#edf6ff;border-color:#61809a;min-height:44px}.class-shell .primary{background:#f4b517;color:#102a43;min-height:46px}.class-shell .field span{color:#e6f2fc}.class-shell .field select,.class-shell .field input,.class-shell .field textarea{font-size:16px;background:#09253d;color:#f1f8ff;border-color:#607f98}.class-shell input::placeholder{color:#aec5d7}
.teacher-steps{display:flex;gap:12px;flex-wrap:wrap;color:#ffe097;font-size:.85rem;margin-bottom:15px}.teacher-steps span{padding:8px 12px;border:1px solid #a88c4944;border-radius:8px}.join-card{max-width:640px}.join-buttons{display:flex;flex-wrap:wrap;gap:10px}.class-status{min-height:24px;color:#ffe39a;font-size:.9rem;line-height:1.6;overflow-wrap:anywhere}
.class-scores{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px;margin-bottom:18px}.class-score{padding:10px 12px;border:1px solid #4c6c86;border-radius:10px;min-width:0;background:#102b43}.class-score span{display:block;font-size:.78rem;overflow-wrap:anywhere}.class-score strong{display:block;font-size:1.4rem;color:#ffe098;margin-top:5px}.class-score.active{border:2px solid #f4b517;padding:9px 11px;background:#204961}
.lobby-card{display:grid;grid-template-columns:1fr 1fr;gap:30px}.join-number{font-size:clamp(2rem,5vw,3.8rem);font-weight:800;color:#ffd46b;letter-spacing:.05em;direction:ltr;margin:18px 0}.lobby-card img{display:block;margin:16px 0;border-radius:10px;background:white}.roster-row{display:flex;justify-content:space-between;gap:10px;align-items:center;border-bottom:1px solid #476c8244;padding-bottom:10px}.roster-row .tiny{font-size:.7rem}.waiting-card{text-align:center;padding:42px 20px}.waiting-card>span{display:inline-grid;place-items:center;width:70px;height:70px;background:#1f6652;color:#ceffde;border-radius:50%;font-size:2rem;margin-bottom:18px}
.host-board{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.host-board section{min-width:0}.host-board h3{min-height:55px;text-align:center;font-size:.7rem;line-height:1.4;overflow-wrap:anywhere}.host-board button{display:block;width:100%;height:62px;margin:8px 0;background:linear-gradient(130deg,#236590,#174569);border:1px solid #6b94b0;border-radius:8px;color:#ffdb82;font-size:1.5rem;font-weight:800}.host-board button:disabled{background:#0b253c;opacity:.5}
.class-prompt{font-size:clamp(1.35rem,3.8vw,2rem);font-weight:700;line-height:1.45;margin:12px 0 18px;letter-spacing:-.02em}.student-question{max-width:850px;margin-inline:auto}.student-choices{display:grid;gap:12px;margin:20px 0}.student-choice-row,.choice-option{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:stretch}.student-answer{display:flex;align-items:center;gap:16px;min-height:80px;border:1px solid #7493ab;background:#1c4564;color:white;border-radius:12px;padding:15px;text-align:start;font-size:1.15rem;font-weight:600}.student-answer:hover{border-color:#f4b517;background:#275977}.student-answer b{display:grid;place-items:center;width:35px;min-width:35px;height:35px;border-radius:7px;background:#eef6fb;color:#16466a;font-size:.9rem}.picture-cue{font-size:2rem;min-width:38px;text-align:center;line-height:1.2}
.listen-button,.choice-listen{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#0c2840;color:#cbeaff;border:1px solid #63849d;border-radius:9px;padding:10px 12px;min-width:46px;min-height:44px;font-size:.83rem}.student-choice-row>.listen-button{flex-direction:column;max-width:100px}.choice-option>.choice{width:100%;margin:0}.class-hint,.teacher-answer{border-block:1px solid #52748b55;padding:14px 0;margin:14px 0}.class-hint summary,.teacher-answer summary{cursor:pointer;min-height:28px}.teacher-answer{color:#ffe39a}.feedback-card.positive{background:#123e34;border-color:#5ba388}.class-host-actions{display:flex;justify-content:space-between;gap:10px;margin-top:14px}.feedback-card>.primary{display:block;margin-top:22px}.class-shell .notice{color:#123450}
@media(max-width:899px){body[data-screen="classroom"] main{padding:14px 14px 28px}.class-tools{gap:8px;margin-bottom:20px}.class-tools label{font-size:.68rem;gap:5px}.class-tools select{max-width:145px;font-size:.8rem}.class-heading{margin:14px 0 20px}.class-heading h1{font-size:1.85rem}.role-grid{gap:12px}.role-card{padding:20px;min-height:200px}.role-card strong{font-size:1.4rem}.role-card small{font-size:.85rem}.class-card{padding:18px;border-radius:12px}.lobby-card{grid-template-columns:1fr}.class-scores{grid-template-columns:repeat(3,minmax(0,1fr))}.host-board{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.host-board button{height:48px}.host-board h3{min-height:40px}.student-answer{padding:12px;gap:10px;min-height:72px;font-size:1rem}.student-answer b{width:28px;min-width:28px;height:30px}.picture-cue{font-size:1.65rem;min-width:29px}.student-choice-row{gap:7px}.student-choice-row>.listen-button{padding:8px;max-width:76px;min-width:49px;font-size:.66rem}.class-prompt{font-size:1.45rem}.class-tools label+label{margin-inline-start:auto}.join-buttons{flex-direction:column}.join-buttons button{width:100%}.teacher-steps{font-size:.75rem;gap:6px}.teacher-steps span{padding:7px 9px}.choice-option .picture-cue{font-size:1.4rem}.choice-listen{padding:8px;min-width:44px}}
@media(max-width:420px){.role-grid{grid-template-columns:1fr}.role-card{min-height:0;display:grid;grid-template-columns:50px 1fr;gap:8px 14px;padding:20px}.role-card>span{grid-row:1/3;font-size:2.3rem}.role-card strong{font-size:1.5rem}.role-card small{grid-column:2}.class-tools{display:grid;grid-template-columns:auto 1fr}.class-tools label{justify-self:end;margin:0}.class-tools label+label{grid-column:2;margin:0}.student-answer{gap:7px;font-size:.94rem}.student-answer .picture-cue{font-size:1.5rem}}
@media(prefers-reduced-motion:reduce){.role-card{transition:none}}
@media print{.class-tools,.class-host-actions,.listen-button{display:none!important}.class-card,.class-score{background:white;color:#123450;break-inside:avoid}.class-shell{color:#123450}}

@media(max-width:899px){body:not([data-screen="classroom"]) .top-actions #help-btn,body:not([data-screen="classroom"]) .top-actions #fullscreen-btn{display:none}.top-actions #classroom-home{font-size:.68rem;padding:8px;min-height:40px}.class-tools #class-signout{grid-column:1/-1;justify-self:start}}

main[data-class-role="player"][data-class-phase="question"] .class-heading{margin:8px 0 12px}main[data-class-role="player"][data-class-phase="question"] .class-heading .eyebrow,main[data-class-role="player"][data-class-phase="question"] .class-heading>p:last-child{display:none}main[data-class-role="player"][data-class-phase="question"] .class-heading h1{font-size:1.2rem}main[data-class-role="player"] .class-scores{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Highlands Forward 2.1 — a restrained stage, with the learning action first. */
body[data-screen="classroom"]{background:radial-gradient(ellipse at 82% 8%,#007dce1c,transparent 48%),radial-gradient(ellipse at 4% 42%,#163f6d33,transparent 50%),#071a2c;color:#eef5fc}
body[data-screen="classroom"] .topbar{height:80px;min-height:80px;background:#081b2c;border-bottom:1px solid #adcbe215;padding:12px 24px}
body[data-screen="classroom"] .brand{background:white;border:0;border-radius:11px;padding:0;box-shadow:0 2px 12px #0002}
body[data-screen="classroom"] .brand-logo{width:192px;height:51px}
body[data-screen="classroom"] main{max-width:1180px;padding:20px 32px 44px;min-height:calc(100svh - 132px)}
.class-shell{max-width:1080px;--class-line:#a8c5e326;--class-muted:#afc4d8}
.class-shell button,.class-shell input,.class-shell select,.class-shell textarea{font-family:inherit}
.class-shell :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #ffe09a;outline-offset:4px}
.class-shell button{transition:background .18s,border-color .18s,transform .18s,box-shadow .18s;text-shadow:none}
.class-tools{gap:10px;margin:0 0 22px;padding:0 0 17px;border-bottom:1px solid #adcbe214}
.class-tools .outline,.class-tools select{font-size:.78rem;min-height:42px;background:#0d293f;border:1px solid var(--class-line);border-radius:10px;box-shadow:none;color:#dceaf6;padding:9px 12px}
.class-tools label{font-size:.73rem;color:var(--class-muted);gap:9px}
.class-tools label+label{margin-inline-start:0}
.class-heading{margin:28px 0 24px}.class-heading h1{font-size:clamp(2rem,3.7vw,3rem);font-weight:750;line-height:1.1;letter-spacing:-.045em;margin:0 0 13px;text-shadow:none;color:#f6f9fc}
.class-heading p{font-size:1rem;color:var(--class-muted);margin-bottom:0;line-height:1.55}
.class-heading .eyebrow{display:flex;align-items:center;gap:9px;color:#f4cc76;font-size:.68rem;font-weight:700;letter-spacing:.19em;margin-bottom:18px}
.class-heading .eyebrow:before{content:"";display:block;width:7px;height:7px;border-radius:50%;background:#f4b517;box-shadow:0 0 12px #f4b51733}
.welcome-stage{display:grid;grid-template-columns:1fr 300px;align-items:center;gap:40px;min-height:255px;padding:10px 12px 25px 0}
.welcome-stage .class-heading{margin:0}.welcome-stage h1{font-size:clamp(2.7rem,4.8vw,4.2rem);max-width:650px;line-height:1.04;letter-spacing:-.052em;margin-bottom:18px}.welcome-stage .class-heading>p:last-child{font-size:1.12rem}
.welcome-board{width:262px;justify-self:center;transform:perspective(800px) rotateY(-11deg) rotateX(7deg) rotateZ(3deg);padding:12px;border:1px solid #77add454;border-radius:16px;background:linear-gradient(140deg,#163f61,#0b233a);box-shadow:10px 14px 0 -5px #030e1a,0 30px 55px #0004,inset 0 1px 0 #d9eeff20;pointer-events:none}
.welcome-board-top{display:flex;gap:5px;margin:0 0 10px 2px}.welcome-board-top i{width:4px;height:4px;border-radius:50%;background:#6d91ac}.welcome-board-top i:first-child{background:#f4b517}
.welcome-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.welcome-tiles span{display:grid;place-items:center;height:44px;border-radius:6px;border:1px solid #4e86b04d;background:linear-gradient(130deg,#17557c,#103c60);color:#dbedf9;font-size:1.05rem;font-weight:650;font-variant-numeric:tabular-nums}.welcome-tiles .lit{color:#092440;background:linear-gradient(130deg,#ffe19a,#f4b517);border-color:#ffe8b0;box-shadow:0 0 24px #f4b51720}
.welcome-board-base{height:3px;width:40px;background:#48687f;border-radius:4px;margin:11px auto 0}
.role-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.class-shell .role-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:start;min-height:234px;gap:0;padding:25px 25px 28px;border:1px solid #87afce3b;border-radius:19px;background:linear-gradient(145deg,#143a57,#102a41 85%);color:#f6f9fd;box-shadow:inset 0 1px 0 #fff06,0 12px 26px #00000018;overflow:hidden}
.class-shell .role-card:after{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,#007dce,transparent 80%);opacity:.8}
.role-card .role-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:14px;border:1px solid #83bcec33;background:#007dce18;color:#86cfff;font-size:inherit;margin-bottom:23px}
.role-card svg{display:block;width:29px;height:29px}.role-card strong{font-size:1.45rem;line-height:1.2;letter-spacing:-.025em;margin-bottom:10px;font-weight:700;padding-inline-end:20px}.role-card small{font-size:.88rem;color:#b8ccdd;line-height:1.55;max-width:240px;padding-inline-end:16px}
.role-card .role-arrow{position:absolute;inset-inline-end:19px;top:28px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;border:1px solid #87afce30;color:#adc9de;font-size:inherit}.role-arrow svg{width:18px;height:18px}
.class-shell .role-card:hover{transform:translateY(-3px);border-color:#85b8d9a0;box-shadow:0 16px 28px #0003,inset 0 1px 0 #fff1;background:linear-gradient(145deg,#1a4666,#113149)}
.class-shell .role-solo{background:linear-gradient(145deg,#243b48,#142c3e);border-color:#c7a76266}.class-shell .role-solo:after{background:linear-gradient(90deg,#f4b517,transparent)}.role-solo .role-icon{color:#ffdc8b;background:#f4b51714;border-color:#f4b51733}.role-solo .role-arrow{color:#ffdc8b;border-color:#f4b51733}.class-shell .role-solo:hover{border-color:#f4cc76;background:linear-gradient(145deg,#314959,#1b3448)}
.class-home-actions{margin:20px 0;gap:12px}.home-bottom{padding:17px 0 0;margin:18px 0 0;border-top:1px solid #adcbe214;align-items:center}.home-bottom #demo{background:transparent;border-color:transparent;padding-inline:0;color:#c0d5e7;box-shadow:none;font-weight:500}.home-bottom #demo:hover{color:#ffe09a}.home-bottom #reconnect{margin-inline-start:auto}
.class-shell .outline{background:#123048;color:#e0edf8;border:1px solid #9bbada33;border-radius:11px;min-height:46px;box-shadow:none;font-size:.86rem;font-weight:600;padding:11px 16px}.class-shell .outline:hover:not(:disabled){background:#1b3e59;border-color:#9bbada77}
.class-shell .primary{background:linear-gradient(135deg,#ffdc80,#f4b517);color:#112c43;border:1px solid #ffe2a066;border-radius:11px;min-height:48px;box-shadow:0 3px 9px #0002;font-size:.9rem;font-weight:750;padding:12px 18px}.class-shell .primary:hover:not(:disabled){background:#ffe09a;box-shadow:0 4px 18px #f4b51716;transform:translateY(-1px)}
.class-card{background:linear-gradient(145deg,#12314b,#0d263d);border:1px solid var(--class-line);border-radius:18px;padding:28px;margin-bottom:20px;box-shadow:0 14px 30px #00000018}.class-card h2{font-size:1.3rem;letter-spacing:-.025em}.class-card .muted{color:var(--class-muted);font-size:.86rem;line-height:1.65}.class-card .check-label small{color:var(--class-muted)}
.class-shell .field{margin:16px 0 22px}.class-shell .field>span{font-size:.85rem;font-weight:600;margin-bottom:9px;color:#dce9f4}.class-shell .field :is(select,input,textarea){background:#091f32;border:1px solid #91b9d747;min-height:51px;border-radius:10px;font-size:16px;padding:13px 14px;color:#eff6fd;box-shadow:inset 0 2px 4px #0001;width:100%;max-width:100%}.class-shell .field textarea{min-height:120px}.class-shell .field :is(select,input,textarea):focus{border-color:#f4cc76}
.class-shell input::placeholder{color:#90acc1}.class-shell input[type="checkbox"]{accent-color:#f4b517;width:19px;height:19px;flex-shrink:0}.teacher-steps{gap:0;margin-bottom:25px;border-bottom:1px solid var(--class-line);padding-bottom:20px}.teacher-steps span{border:0;border-radius:0;padding:0 18px;color:#b7cada;font-size:.82rem}.teacher-steps span:first-child{padding-inline-start:0;color:#ffe09a}.teacher-steps span+span{border-inline-start:1px solid #8aacc63b}
.join-card{max-width:660px}main[data-class-route="teacher"] .class-card{max-width:860px}main[data-class-route="join"] .class-home-actions{margin:-5px 0 18px}
#join-code{font-size:1.6rem;letter-spacing:.16em;font-variant-numeric:tabular-nums;direction:ltr}.join-buttons{gap:10px}.class-status:empty{min-height:0;margin:0}.class-status:not(:empty){padding:12px 15px;background:#f4b5170b;border:1px solid #f4b51733;border-radius:10px;margin-top:18px}
.class-scores{gap:12px;margin:20px 0}.class-score{border-color:var(--class-line);border-radius:12px;background:#102a40;padding:13px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:66px}.class-score span{font-size:.86rem;font-weight:600}.class-score strong{font-size:1.8rem;margin:0;font-variant-numeric:tabular-nums;color:#f9d68b}.class-score.active{border:1px solid #f4b51799;box-shadow:inset 3px 0 0 #f4b517;background:#17364b;padding:13px 17px}
.host-board{gap:10px}.host-board h3{color:#b9ccdc;font-size:.7rem;font-weight:650;letter-spacing:.02em}.host-board button{background:linear-gradient(145deg,#164e76,#10395b);border-color:#91b9d744;border-radius:9px;height:64px;color:#f9d68b;box-shadow:inset 0 1px 0 #d5edff12;font-size:1.55rem}.host-board button:hover:not(:disabled){border-color:#f4cc76;background:#1c557b;transform:translateY(-1px)}
.student-question{padding:30px;max-width:850px}.class-prompt{font-size:clamp(1.5rem,3vw,2.15rem);line-height:1.4;letter-spacing:-.03em;color:#f5f8fc}.student-answer{background:#163b56;border-color:#91b9d747;border-radius:12px;min-height:76px;font-size:1.13rem;padding:16px;box-shadow:0 2px 4px #0001}.student-answer b{background:#d7e9f8;color:#123857;border-radius:8px;font-weight:750}.student-answer:hover:not(:disabled){background:#204967;border-color:#f4cc76}.listen-button,.choice-listen{background:#0c263b;border-color:#91b9d744;color:#bee3fa;border-radius:11px}.listen-button:hover,.choice-listen:hover{background:#19435e;border-color:#91b9d788}
.class-hint,.teacher-answer{border-color:var(--class-line);font-size:.9rem}.class-hint summary,.teacher-answer summary{padding:8px 0;min-height:44px}.feedback-card.positive{background:linear-gradient(145deg,#123c36,#0f2d2c);border-color:#73bd9f66}.feedback-card.positive h2{color:#aff2cd}.waiting-card{padding:40px 25px}.waiting-card>span{border:1px solid #70c29e66;box-shadow:0 0 0 8px #49a77d0b;background:#163e34;color:#aff2cd}.lobby-card{gap:32px}.join-number{color:#ffdc8b}.roster-row{border-color:var(--class-line)}
body[data-screen="classroom"] footer{background:transparent;border-top:1px solid #adcbe214;color:#809fb6;font-size:.7rem;padding:17px 3%;gap:12px}body[data-screen="classroom"] footer a{color:#9ab6cb}
/* Same surface treatment on local play; preserve player and dialog positioning. */
body[data-screen="board"] .tile{background:linear-gradient(145deg,#185781,#103a5c);border-color:#8fb8d64d;border-radius:8px;text-shadow:none;box-shadow:inset 0 1px 0 #d9efff12;color:#ffdc8b}
body[data-screen="board"] .tile.used{background:#0b253c;color:#7092ac}
body[data-screen="board"] .game-board{border-color:#90aabe44;background:#0b2439;box-shadow:0 10px 35px #0002}
.question-stage .clue-question{text-shadow:none}.question-stage .choice{border-radius:11px;box-shadow:none}.question-stage .modal-head{border-bottom-color:#91b9d733}
@media(min-width:1500px){.welcome-stage{min-height:285px}.class-shell .role-card{min-height:252px;padding:28px}.role-card .role-icon{margin-bottom:29px}}
@media(max-width:899px){
 body[data-screen="classroom"] .topbar{height:70px;min-height:70px;padding:10px 18px}body[data-screen="classroom"] .brand-logo{width:174px;height:47px}body[data-screen="classroom"] main{padding:16px 20px 32px;min-height:calc(100svh - 132px)}
 .class-tools{display:flex;gap:8px;margin-bottom:18px;padding-bottom:15px}.class-tools label{margin-inline-start:auto;font-size:.7rem}.class-tools label+label{margin-inline-start:0}.class-tools select{max-width:140px;font-size:.75rem}.class-tools .outline{font-size:.75rem;padding:9px 12px}
 .welcome-stage{grid-template-columns:1fr 210px;gap:15px;min-height:230px;padding:5px 0 26px}.welcome-board{width:195px;border-radius:12px;padding:10px}.welcome-tiles span{height:34px;font-size:.83rem}.welcome-stage h1{font-size:2.8rem}.welcome-stage .class-heading>p:last-child{font-size:1rem}
 .role-grid{gap:12px}.class-shell .role-card{padding:19px;min-height:222px}.role-card strong{font-size:1.23rem}.role-card small{font-size:.83rem;padding:0}.role-card .role-icon{width:44px;height:44px;border-radius:12px;margin-bottom:22px}.role-card .role-arrow{inset-inline-end:12px;top:22px;width:27px;height:27px}.role-card svg{width:25px;height:25px}.role-arrow svg{width:16px;height:16px}
 .class-card{padding:22px;border-radius:15px}.class-heading h1{font-size:2rem}.class-heading .eyebrow{font-size:.62rem}.host-board{grid-template-columns:repeat(3,minmax(0,1fr))}.class-scores{gap:8px}.class-score,.class-score.active{padding:12px;gap:8px}.class-score strong{font-size:1.5rem}.class-score span{font-size:.78rem}.student-question{padding:22px}.student-answer{min-height:74px;padding:13px;font-size:1.05rem}.student-choice-row>.listen-button{min-width:53px;font-size:.7rem}.student-answer b{min-width:30px;width:30px}.class-prompt{font-size:1.6rem}.class-home-actions{gap:8px}.class-shell .button-row{gap:10px}
}
@media(max-width:620px){
 .welcome-stage{grid-template-columns:1fr;min-height:0;padding:13px 0 26px}.welcome-board{display:none}.welcome-stage h1{font-size:2.7rem;max-width:460px}.welcome-stage .class-heading .eyebrow{margin-bottom:15px}
 .role-grid{grid-template-columns:1fr;gap:12px}.class-shell .role-card{display:grid;grid-template-columns:48px minmax(0,1fr) 25px;align-items:center;gap:6px 15px;min-height:113px;padding:21px;border-radius:15px}.role-card .role-icon{grid-column:1;grid-row:1/3;width:47px;height:47px;margin:0}.role-card strong{grid-column:2;grid-row:1;font-size:1.25rem;margin:0;padding:0;align-self:end}.role-card small{grid-column:2;grid-row:2;font-size:.85rem;align-self:start}.role-card .role-arrow{position:static;grid-column:3;grid-row:1/3;width:25px;height:25px;border:0}.home-bottom{margin-top:18px;padding-top:8px;display:flex;align-items:stretch;flex-direction:column}.home-bottom #demo{text-align:start;font-size:.85rem}.home-bottom #reconnect{margin:0}
 .class-tools{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px}.class-tools label{margin:0;justify-self:stretch;justify-content:flex-end;font-size:0;gap:0}.class-tools label+label{grid-column:auto;margin:0}.class-tools select{width:100%;max-width:155px;font-size:.73rem;min-height:44px;padding:8px}.class-tools #class-signout{grid-column:1/-1;justify-self:start}.class-tools #class-home{font-size:.73rem;min-height:44px;padding:8px 10px}
 .class-heading{margin:23px 0 21px}.class-heading h1{font-size:1.95rem}.class-card{padding:20px}.class-shell .field>span{font-size:.85rem}.teacher-steps span{padding:0 12px;font-size:.78rem}.class-shell .button-row{display:flex;flex-wrap:wrap}.class-shell .button-row>button{flex:1 1 145px}.class-shell .button-row>.primary{flex-basis:100%}.join-buttons{flex-direction:column}.join-buttons button{width:100%}.class-score{flex-direction:column;align-items:flex-start}.class-score strong{font-size:1.6rem}.class-prompt{font-size:1.45rem}.student-choices{gap:10px}.student-answer{gap:10px;font-size:1rem}.student-answer .picture-cue{font-size:1.6rem;min-width:29px}.student-choice-row{gap:7px}.student-choice-row>.listen-button{min-width:49px;max-width:60px;padding:8px 5px}.lobby-card{grid-template-columns:1fr}.class-host-actions{flex-wrap:wrap}.class-host-actions button{flex:1}.home-bottom #demo span{margin-inline-start:6px}
}
@media(max-width:360px){body[data-screen="classroom"] main{padding-inline:14px}.class-shell .role-card{padding:18px;gap:6px 11px}.role-card strong{font-size:1.17rem}.class-tools{gap:5px}.class-tools select{font-size:.7rem;padding-inline:5px}.student-question{padding:16px}.student-answer{gap:7px;padding:10px}.welcome-stage h1{font-size:2.4rem}}
@media(prefers-reduced-motion:reduce){.class-shell button{transition:none}.class-shell .role-card:hover,.class-shell .primary:hover{transform:none}}
@media print{.welcome-board,.role-arrow{display:none}.class-card,.class-score,.class-score.active{background:white;color:#163f6d;box-shadow:none}.class-prompt,.class-heading h1,.class-heading p,.class-score strong{color:#163f6d}}

/* Bundled soundtrack needs no side panel or video space. */
.game-layout{grid-template-columns:minmax(0,1fr)}
#modal.question-stage{inset:88px 3% 20px;width:94%;max-height:calc(100dvh - 108px)}
@media(max-width:899px){#modal.question-stage{inset:0;width:100%;height:100dvh;max-height:100dvh}}
@media(max-height:600px) and (min-width:900px){#modal.question-stage{inset:12px;width:calc(100% - 24px);max-height:calc(100dvh - 24px)}}

@media(max-width:899px){
 #modal.question-stage .question-sound{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px 0;margin:8px 0;border-block:1px solid #91b9d733}
 #modal.question-stage .question-sound .show-toggle{min-height:44px;padding:10px 12px}
 #modal.question-stage .question-sound label{display:flex;gap:8px;align-items:center;font-size:.8rem}
 #modal.question-stage .question-sound input{width:90px}
 #modal.question-stage .question-sound [data-sound-status]{width:100%;font-size:.75rem}
 #modal.question-stage .question-sound [data-sound-status]:empty{display:none}
}
