@import url('/styles.css');
:root{--bg:#10182c;--panel:#19233a;--panel2:#202e47;--text:#eef5ff;--muted:#a6b8d3;--line:#344760;--mint:#79e4c4;--gold:#fbd58a;--danger:#ffb3ad;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color-scheme:dark}
*{box-sizing:border-box}html,body{margin:0;min-width:0;min-height:100%;width:auto;overflow-x:clip}body{background:radial-gradient(ellipse at 10% 0%,#2a3f5940,transparent 60%),var(--bg);color:var(--text)}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{border:0;cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--mint);outline-offset:3px}p{margin:0;line-height:1.55}h1,h2,h3{font-family:inherit;margin:0;line-height:1.2;letter-spacing:-.035em}h1{font-size:clamp(28px,4vw,46px)}h2{font-size:24px}h3{font-size:18px}small,.muted{color:var(--muted)}[hidden]{display:none!important}.topbar{max-width:1320px;margin:auto;min-height:76px;width:100%;padding:16px 28px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.wordmark{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:850;letter-spacing:-.7px}.brand-tile{display:grid;place-items:center;width:33px;height:33px;background:var(--mint);color:#112c2f;border-radius:10px;font-size:22px;box-shadow:0 3px 0 #397c73}.beta{font-size:9px;letter-spacing:1.5px;color:var(--muted);margin-left:6px}.topbar nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.topbar nav a,.subtle{padding:9px 12px;background:none;border-radius:10px;font-size:13px;font-weight:650}.topbar nav a:hover,.subtle:hover{background:#ffffff0b}.topbar [aria-current=page]{color:var(--mint);background:#79e4c410}.nav-name{font-size:12px;color:var(--muted);max-width:18ch;overflow-wrap:anywhere;padding:0 6px}.wrap{max-width:1264px;margin:auto;padding:18px 28px 60px}.page-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:28px}.eyebrow{font-size:11px;color:var(--mint);letter-spacing:1.8px;font-weight:800;text-transform:uppercase;margin-bottom:9px}.page-intro p{color:var(--muted);margin-top:10px}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.spread{justify-content:space-between}.btn{border-radius:12px;border:1px solid var(--line);padding:12px 18px;background:#293b55;font-size:14px;font-weight:750;min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-align:center;color:var(--text);box-shadow:none}.btn.primary{background:var(--mint);color:#112e2c;box-shadow:0 4px 0 #397b6e}.btn.gold{background:var(--gold);color:#332a20}.btn.ghost{background:transparent}.btn.danger{border-color:#85525a;color:var(--danger);background:#58313b44}.btn:hover:not(:disabled){filter:brightness(1.08);transform:none}.btn.small{font-size:12px;padding:8px 12px;min-height:38px}.stack{display:grid;gap:18px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.panel{background:linear-gradient(145deg,#1c2940,#172238);border:1px solid var(--line);border-radius:20px;padding:24px;min-width:0;box-shadow:0 6px 20px #060d1d26}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;flex-wrap:wrap}.pill{border:1px solid #4c627d;color:#c6d9f0;background:#263b55;border-radius:50px;padding:5px 10px;font-size:11px;font-weight:750;white-space:normal;letter-spacing:.1px}.pill.live{color:var(--mint);background:#24483e;border-color:#3e806b}.pill.overdue{color:var(--danger);background:#492d3a;border-color:#78414e}.pill.done{color:var(--mint)}.empty{padding:24px 12px;text-align:center;border:1px dashed var(--line);border-radius:14px}.empty p{color:var(--muted);font-size:13px;margin-top:8px}.assignment{display:grid;gap:10px;padding:18px 0;border-bottom:1px solid var(--line)}.assignment:last-child{border-bottom:0;padding-bottom:0}.assignment:first-child{padding-top:0}.assignment h3{font-size:17px;overflow-wrap:anywhere}.assignment small{font-size:12px}.task-meta{display:flex;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:12px}.progress-track{height:6px;background:#0e172a;border-radius:8px;overflow:hidden;margin:7px 0}.progress-track>span{display:block;height:100%;background:var(--mint);border-radius:8px;max-width:100%}.course-card{display:grid;gap:12px;align-content:start}.course-icon{height:38px;width:38px;border:1px solid #63799c;border-radius:12px;display:grid;place-items:center;background:#273b58;color:var(--mint)}.course-code{font-family:ui-monospace,monospace;letter-spacing:2px;color:var(--gold)}.hub-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 26px}.hub-tabs button{padding:10px 15px;border-radius:99px;background:#192740;border:1px solid var(--line);font-weight:650;font-size:13px;min-height:42px}.hub-tabs [aria-selected=true]{background:var(--mint);color:#123d32;border-color:transparent}.field-label,label:not(.inline){display:grid;gap:7px;font-size:13px;font-weight:650;color:#c7d5e8;min-width:0}.field,input:not([type=checkbox]),select,textarea{width:100%;min-width:0;background:#0e192c;color:var(--text);border:1px solid #456080;border-radius:10px;padding:11px 12px;outline:none}textarea{resize:vertical;min-height:90px}input[type=checkbox]{width:18px;height:18px;accent-color:var(--mint)}label.inline{display:flex;align-items:center;gap:9px;font-size:13px;color:#d7e4f4}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid .full{grid-column:1/-1}.form-note{font-size:12px;color:var(--muted);line-height:1.6}.dialog-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:22px}.icon-btn{display:grid;place-items:center;min-width:40px;min-height:40px;border:1px solid var(--line);border-radius:10px;background:transparent;font-size:20px}.dialog-body{min-width:0}dialog{max-width:min(760px,calc(100vw - 24px));width:760px;max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #627793;border-radius:20px;padding:26px;background:#18243a;color:var(--text);box-shadow:0 30px 90px #0008}dialog::backdrop{background:#040a17b8;backdrop-filter:blur(5px)}.notice{position:fixed;z-index:200;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100% - 28px);padding:14px 20px;background:#254f4b;border:1px solid #63a194;border-radius:12px;box-shadow:0 7px 30px #0007;font-size:14px;text-align:center}.notice.error{background:#57363e;border-color:#bf7d83;color:#ffe2e4}.stat-line{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.metric{background:#102035;border:1px solid #314661;border-radius:14px;padding:14px;min-width:0}.metric b{font-size:23px;display:block;letter-spacing:-.8px}.metric small{font-size:11px;display:block;margin-top:6px}.table-wrap{max-width:100%;overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}th{color:var(--muted);font-size:11px;font-weight:650;letter-spacing:.4px;text-transform:uppercase}td,th{padding:12px 8px;border-bottom:1px solid #344760}td{overflow-wrap:anywhere}.right{text-align:right}.login-layout{display:grid;grid-template-columns:1.1fr .9fr;gap:56px;align-items:center;max-width:1100px;margin:20px auto 0}.login-art{padding:22px 0}.login-art h1{font-size:clamp(42px,6vw,72px);line-height:1.02;letter-spacing:-3px}.login-art h1 span{color:var(--mint)}.login-art p{color:var(--muted);max-width:44ch;margin-top:22px}.login-panel{display:grid;gap:18px}.login-panel .hub-tabs{margin:0}.hero-island{display:flex;gap:20px;align-items:center;padding:34px 0}.hero-island .avatar{transform:scale(1.3);margin:20px}.avatar{position:relative;display:inline-block;width:58px;height:65px;flex:none;background:linear-gradient(135deg,var(--avatar),var(--avatar-dark));border-radius:23px 23px 14px 14px;border:3px solid var(--avatar-accent);box-shadow:inset -9px -5px 0 #0a1b3130,0 7px 0 #050d2322}.avatar i{position:absolute;left:8px;right:8px;top:19px;height:18px;background:#152b43;border-radius:10px;border:2px solid var(--avatar-accent)}.avatar i:before,.avatar i:after{content:'';position:absolute;width:5px;height:5px;background:var(--avatar-accent);top:4px;border-radius:50%}.avatar i:before{left:5px}.avatar i:after{right:5px}.avatar b{position:absolute;height:6px;width:18px;left:17px;bottom:7px;background:var(--avatar-accent);border-radius:4px}.avatar.crown:after{content:'';position:absolute;left:8px;top:-13px;width:34px;height:15px;background:var(--avatar-accent);clip-path:polygon(0 0,30% 55%,50% 0,70% 55%,100% 0,90% 100%,10% 100%)}.avatar.horns:after{content:'';position:absolute;inset:-9px -6px 40px;border:6px solid var(--avatar-accent);border-top:0;border-bottom:0;border-radius:0 0 30px 30px}.avatar.mini{width:28px;height:31px;border-width:2px;border-radius:10px}.avatar.mini i{left:3px;right:3px;top:8px;height:10px;border-width:1px}.avatar.mini i:before,.avatar.mini i:after{width:3px;height:3px;top:2px}.avatar.mini i:before{left:2px}.avatar.mini i:after{right:2px}.avatar.mini b{display:none}.skin-card{text-align:center;display:grid;justify-items:center;gap:14px;padding-top:32px}.skin-card .avatar{margin:9px}.skin-card p{font-size:12px;color:var(--muted)}.balance{display:inline-flex;align-items:center;gap:9px;color:var(--gold);font-weight:800;background:#43382760;padding:12px 16px;border-radius:13px;border:1px solid #716044}.study-shell{max-width:840px;margin:auto}.practice-header{margin:20px 0;display:flex;justify-content:space-between;gap:12px;align-items:start;flex-wrap:wrap}.practice-header h1{font-size:29px}.study-panel{padding:26px;display:grid;gap:18px}.study-prompt{font-size:clamp(25px,4vw,38px);letter-spacing:-.5px;overflow-wrap:anywhere;line-height:1.25}.question-image{margin:4px 0;max-width:100%}.question-image img{display:block;margin:auto;width:auto;max-width:100%;height:auto;max-height:200px;object-fit:contain;border-radius:12px}.question-image figcaption{font-size:13px;color:var(--danger);padding:12px;border:1px solid #7c5666;border-radius:8px}.entry-shell{position:relative;min-width:0}.typed-answer{font-size:22px!important;padding:16px!important}.accent-zone{min-height:39px;position:relative;display:flex;align-items:center;gap:5px;margin-top:6px}.accent-zone .accent-pop{position:absolute;top:0;display:flex;gap:4px;z-index:1}.accent{min-width:36px;min-height:34px;border-radius:8px;background:#365876;border:1px solid #7396ae;color:white;font-size:18px}.accent-tools{display:flex;gap:6px;flex-wrap:wrap}.practice-feedback{padding:16px;background:#204c4144;border:1px solid #477e68;border-radius:13px}.practice-feedback.incorrect{background:#63423244;border-color:#916745}.practice-feedback p{margin-top:6px}.save-state{font-size:12px;color:var(--muted)}.flashcard{display:flex;flex-direction:column;gap:20px;align-items:center;justify-content:center;text-align:center;min-height:270px;width:100%;padding:28px;background:linear-gradient(150deg,#29425a,#1c2b43);border:1px solid #5a7695;border-radius:20px;font-size:30px;font-weight:750;line-height:1.25;overflow-wrap:anywhere}.flashcard small{font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase}.flashcard.answer-side{background:linear-gradient(145deg,#235b52,#203546);border-color:#66b29e}.flash-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}.raffle-winner{text-align:center;padding:30px;border:1px solid #a69261;background:radial-gradient(ellipse,#69523d55,transparent);border-radius:20px}.raffle-winner h2{font-size:32px;color:var(--gold);margin:12px 0}.small-title{font-size:13px;font-weight:700;color:var(--muted)}
/* Live play: no overflow:hidden on body. Very small / zoomed screens use normal document flow. */
.game-body{margin:0}.game-shell{height:var(--viewport-height,100dvh);min-height:380px;max-width:1600px;margin:auto;display:flex;flex-direction:column;padding:env(safe-area-inset-top,0px) max(12px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(12px,env(safe-area-inset-left,0px))}.game-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:10px 4px;flex:none;min-width:0}.game-top .wordmark{font-size:18px}.game-top .brand-tile{width:28px;height:28px;font-size:19px}.game-top .btn{font-size:12px;min-height:36px;padding:7px 10px}.player-hud{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 4px 12px;flex:none;min-width:0}.player-hud h1{font-size:23px;letter-spacing:-.5px;overflow-wrap:anywhere}.player-hud p{font-size:11px;color:var(--muted);margin-top:3px}.hud-score{font-size:22px;font-weight:850;white-space:nowrap;color:var(--gold)}.hud-time{font-variant-numeric:tabular-nums;font-size:20px;font-weight:750;white-space:nowrap}.live-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px;flex:1;min-height:0;padding-bottom:12px}.game-panel{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:visible;border:1px solid var(--line);border-radius:18px;background:#17243a;padding:14px}.game-scene{flex:none;min-width:0;overflow:visible;border:1px solid #42617b;border-radius:12px;margin-bottom:12px;background:#112138}.scene-top{display:flex;justify-content:space-between;align-items:center;padding:6px 9px;gap:6px}.scene-top>span{font-size:10px;letter-spacing:1px;color:#bad2e4;text-transform:uppercase;font-weight:700}.scene-top button{font-size:10px;padding:5px 7px;border-radius:7px;background:#253d53;min-height:28px}.scene-canvas{display:block;width:100%;height:clamp(98px,17dvh,180px);border-radius:0 0 11px 11px;touch-action:auto}.game-scene.collapsed .scene-canvas{display:none}.game-question{flex:1;min-height:0;min-width:0;overflow-y:auto;overscroll-behavior-y:contain;overflow-wrap:anywhere;padding:3px 3px 10px;scrollbar-gutter:stable}.game-question h2{font-size:clamp(21px,2.8vw,32px);line-height:1.25;margin:8px 0 18px;overflow-wrap:anywhere}.game-question .eyebrow{font-size:10px}.answers{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.answer{display:flex;align-items:center;gap:10px;min-height:62px;width:100%;min-width:0;border:1px solid #627799;border-bottom-width:4px;border-radius:13px;background:#2b3e5d;padding:14px 12px;text-align:left;font-size:17px;font-weight:700;overflow-wrap:anywhere}.answer span{flex:1;min-width:0}.answer b{flex:none;display:grid;place-items:center;background:#ffffff18;width:28px;height:28px;border-radius:8px;font-size:12px}.answer:hover:not(:disabled){background:#374e6e}.answer.correct{border-color:#6cb99a;background:#235347}.answer.wrong{border-color:#bb7f81;background:#623d48}.answer:disabled{opacity:.9}.answer-feedback{padding:13px 15px;margin-top:14px;background:#263c51;border:1px solid #536b83;border-radius:12px;font-size:14px}.answer-feedback b{display:block;margin-bottom:5px}.advance-bar{display:flex;gap:10px;padding-top:12px}.advance-bar .btn{width:100%}.chest-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.chest-choices button{min-height:58px;padding:10px;border:1px solid #bfa16b;border-radius:12px;background:#51422e;color:#ffe4a0;font-weight:750}.game-aside{overflow:auto;min-width:0;min-height:0;display:grid;gap:14px;align-content:start}.game-aside .panel{padding:18px}.game-aside .stat-line{grid-template-columns:1fr 1fr;gap:8px}.game-aside .metric{padding:10px}.game-aside .metric b{font-size:18px}.leader{display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:12px;padding:10px 0;border-bottom:1px solid var(--line)}.leader>span{min-width:0;overflow-wrap:anywhere}.leader b{flex:none}.roles{display:grid;gap:12px;margin:18px 0}.role-card{padding:16px;border:1px solid #5a7291;border-radius:13px;background:#263c55;display:grid;gap:8px;text-align:left}.role-card strong{font-size:18px}.role-card span{font-size:13px;color:#b6e9d8}.role-card small{color:#efc5a6}.round-lobby{padding:20px 10px;text-align:center;display:grid;gap:14px}.round-lobby p{color:var(--muted)}.stats-open{display:none}.host-pin{font-family:ui-monospace,monospace;font-size:38px;letter-spacing:7px;color:var(--gold)}.mode-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.mode-choice{padding:20px 16px;background:#23334c;border:1px solid var(--line);border-radius:14px;display:grid;gap:9px;text-align:left}.mode-choice.active{border-color:var(--mint);box-shadow:inset 0 0 0 1px var(--mint)}.mode-choice .glyph{font-size:24px;color:var(--mint)}.mode-choice small{line-height:1.5}.game-status{font-size:11px;color:var(--mint)}.host-settings{display:grid;grid-template-columns:1fr 1fr;gap:14px}.host-settings .wide{grid-column:1/-1}
@media(max-width:900px){.topbar{padding:14px 18px}.wrap{padding:16px 18px 40px}.grid3{grid-template-columns:repeat(2,minmax(0,1fr))}.login-layout{grid-template-columns:1fr;gap:25px;max-width:620px}.login-art h1{font-size:46px}.hero-island{display:none}.live-layout{grid-template-columns:minmax(0,1fr)}.game-aside{display:none}.stats-open{display:inline-flex}.game-shell{padding-left:8px;padding-right:8px}.game-top .brand-tile{display:none}.game-top .wordmark{font-size:17px}.game-question{scrollbar-gutter:auto}.player-hud h1{font-size:21px}.game-question .question-image img{max-height:140px}.modal-stats .game-aside{display:grid;max-height:none;overflow:visible}}
@media(max-width:600px){.topbar{padding:12px}.topbar nav{gap:2px}.topbar nav a,.subtle{font-size:12px;padding:8px}.topbar .beta,.nav-name{display:none}.wrap{padding:16px 12px 40px}.grid2,.grid3,.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.panel{padding:18px;border-radius:15px}.page-intro{gap:15px}.page-intro h1{font-size:30px}.page-intro p{font-size:13px}.panel-title{margin-bottom:15px}.mode-grid{grid-template-columns:1fr 1fr}.login-art h1{font-size:42px;letter-spacing:-2px}.login-art p{font-size:14px}.login-layout{margin-top:0}.login-art{padding:5px}.stat-line{gap:7px}.metric{padding:10px}.metric b{font-size:20px}.metric small{font-size:10px}.study-panel{padding:18px}.typed-answer{font-size:20px!important}.study-prompt{font-size:28px}.skin-grid{grid-template-columns:1fr 1fr}.skin-card{padding:22px 10px 16px}.skin-card h3{font-size:15px}.skin-card .btn{padding:10px;font-size:12px}.game-top{padding-top:6px;gap:5px}.game-top .row{gap:4px}.game-top .btn{font-size:11px;padding:6px 8px;min-height:34px}.player-hud{padding-top:5px;padding-bottom:8px}.player-hud h1{font-size:18px}.hud-score{font-size:19px}.hud-time{font-size:18px}.game-panel{padding:9px;border-radius:13px}.game-scene{margin-bottom:9px}.scene-canvas{height:100px}.game-question h2{font-size:22px;margin:6px 0 12px}.answers{gap:8px}.answer{font-size:15px;padding:11px 9px;min-height:53px;gap:7px;border-radius:10px}.answer b{width:22px;height:22px;font-size:10px}.answer-feedback{font-size:13px;margin-top:10px;padding:10px}.game-question .question-image img{max-height:115px}.host-settings{grid-template-columns:1fr}.host-settings .wide{grid-column:auto}dialog{padding:20px 16px}.flashcard{min-height:240px;font-size:26px;padding:22px}.practice-header h1{font-size:24px}.host-pin{font-size:28px;letter-spacing:4px}}
@media(max-height:480px){.game-shell{height:auto;min-height:100dvh}.live-layout{display:block}.game-panel{min-height:300px}.game-question{overflow:visible;max-height:none;flex:none}.scene-canvas{height:90px}.topbar{min-height:50px}.game-top{padding:5px}.player-hud{padding:5px}.game-scene{margin-bottom:8px}}
.short-window .game-shell{height:auto;min-height:var(--viewport-height,100dvh)}.short-window .game-question{overflow:visible;max-height:none}.short-window .live-layout{display:block}.short-window .game-panel{min-height:300px}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:0s!important;transition:none!important}}

.game-top { min-height:0;max-width:none;width:100%;margin:0; }

@media (max-width:600px) and (min-height:760px) { .scene-canvas { height:140px; } }

#notice { pointer-events:none; }

/* Preserve 9d9f7ca's natural mobile reflow in the new classroom layout. */
@media (max-width:900px), (max-height:600px) {
 html,body.game-body { height:auto; min-height:100%; overflow-y:auto; }
 .game-shell,.short-window .game-shell { height:auto!important; min-height:100svh; max-width:100%; }
 .game-top,.player-hud { flex-wrap:wrap; min-width:0; height:auto; }
 .game-top .row { flex-wrap:wrap; max-width:100%; }
 .player-hud>div:first-child { min-width:0; flex:1 1 150px; }
 .player-hud h1,.game-question h2 { white-space:normal; overflow-wrap:anywhere; }
 .live-layout,.short-window .live-layout { display:block; min-height:0; height:auto; }
 .game-panel,.short-window .game-panel { min-height:0; height:auto; overflow:visible; margin-bottom:max(20px,env(safe-area-inset-bottom,0px)); }
 .game-question,.short-window .game-question { flex:none; height:auto; max-height:none; overflow:visible; scrollbar-gutter:auto; }
 .game-scene { width:100%; flex:none; }
 .scene-canvas { height:132px; min-height:132px; }
 .answer,.chest-choices button { min-height:48px; white-space:normal; overflow-wrap:anywhere; }
 .hud-score,.hud-time { white-space:normal; }
 .topbar,.topbar nav { flex-wrap:wrap; height:auto; min-width:0; }
 dialog { max-height:calc(100dvh - 24px); overflow:auto; }
 .study-prompt,.typed-answer,.row { min-width:0; }
}
@media(max-width:360px) { .answers{grid-template-columns:1fr}.game-top .btn{padding:7px} }

/* Music and event notices reflow with the existing natural page scrolling. */
.music-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:100%;margin:8px 0;min-width:0}
.music-controls label{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);min-width:0}
.music-controls input[type=range]{width:76px;min-width:0;padding:0;min-height:32px;accent-color:var(--mint)}
.music-controls .btn{min-height:38px;white-space:normal}
.arcade-event-notice{border:1px solid #847446;border-radius:12px;background:linear-gradient(120deg,#4a3b2f88,#253c4c);padding:12px 14px;margin:0 0 14px;overflow-wrap:anywhere}
.arcade-event-notice .eyebrow{display:block;font-size:9px;letter-spacing:1px;margin-bottom:6px}
.arcade-event-notice strong{display:block;color:var(--gold);font-size:17px;margin-bottom:5px}
.arcade-event-notice p{font-size:12px;color:var(--text)}
.google-signin{min-width:0;max-width:100%;display:grid;gap:12px;margin:14px 0}
#host-form{margin-top:16px}
@media(max-width:600px){.game-top .music-controls{margin:0}.game-top .music-controls input[type=range]{width:64px}.game-top>.row{justify-content:flex-end}.scene-top{flex-wrap:wrap}.scene-top>.row{gap:3px!important}.google-signin{overflow-wrap:anywhere}}

/* Focused question → game-result flow. Long content keeps natural page scrolling. */
.phase-shell.game-shell{height:auto;min-height:100svh;max-width:1160px;margin:auto;padding-bottom:32px}
.phase-shell .live-layout{display:block;height:auto;min-height:0}
.phase-shell .game-panel{height:auto;min-height:0;overflow:visible;padding:clamp(16px,3vw,32px);border-radius:24px}
.phase-shell .game-question{height:auto;max-height:none;overflow:visible;padding:0;flex:none;scrollbar-gutter:auto}
.phase-shell .stats-open{display:inline-flex}
.phase-shell .question-screen{max-width:1000px;margin:auto;text-align:center}
.phase-shell .question-screen .phase-heading{font-size:clamp(25px,3.4vw,42px);line-height:1.25;margin:18px auto 26px;max-width:36ch;overflow-wrap:anywhere}
.phase-shell .question-screen .question-image{max-width:440px;margin:0 auto 20px}
.phase-shell .answer-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px}
.phase-shell .answer-tile{min-height:clamp(112px,18vh,170px);padding:22px;border:2px solid #ffffff30;border-bottom:6px solid #091a3455;border-radius:20px;color:#fff;font-size:clamp(19px,2.3vw,29px);line-height:1.3;gap:16px;box-shadow:0 5px 0 #08102035;text-align:left;overflow-wrap:anywhere}
.phase-shell .answer-tile b{width:40px;height:40px;border-radius:12px;font-size:18px;background:#08172a40;color:white}
.phase-shell .tile-0{background:#b54465}.phase-shell .tile-1{background:#296fbe}.phase-shell .tile-2{background:#25776b}.phase-shell .tile-3{background:#946b23}
.phase-shell .answer-tile:hover:not(:disabled){filter:brightness(1.12);transform:translateY(-2px)}
.phase-shell .answer-tile:active:not(:disabled){transform:translateY(2px)}
.question-hint{font-size:13px;color:var(--muted);margin-top:20px;min-height:22px}
.result-screen{max-width:900px;margin:auto}
.result-heading{display:flex;align-items:center;gap:18px;padding:4px 0 22px;flex-wrap:wrap}
.result-heading .phase-heading{font-size:clamp(31px,4vw,48px);margin:0}
.result-symbol{display:grid;place-items:center;width:70px;height:70px;border-radius:22px;font-size:44px;font-weight:900;background:#316f5c;color:#b1ffe2;flex:none}
.result-incorrect .result-symbol{background:#7d3f53;color:#ffe0e6}
.result-score{margin-left:auto;font-size:32px;font-weight:850;color:var(--gold)}.result-score small{display:block;font-size:11px;font-weight:600;color:var(--muted);text-align:right}
.result-scene-slot .scene-canvas{height:clamp(210px,32vh,340px);min-height:210px}
.result-screen .answer-feedback{margin:16px 0;background:#223a4e;padding:18px;border-radius:16px}
.result-reward{font-size:clamp(17px,2vw,23px);font-weight:700}.correct-answer{display:grid;gap:7px;padding:14px 0}.correct-answer strong{font-size:22px;color:var(--mint)}
.result-screen .advance-bar .btn{min-height:58px;font-size:18px;border-radius:16px}
.chest-prompt{text-align:center;margin-top:20px}.chest-prompt p{font-size:13px;color:var(--muted);margin-top:6px}
.result-screen .chest-choices button{display:grid;place-items:center;gap:8px;min-height:106px;font-size:16px}.result-screen .chest-choices button span{font-size:28px}
.plane-choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.plane-choices .role-card{padding:16px;border-radius:20px;background:linear-gradient(150deg,#284461,#202c49);border:2px solid #6e91ae;min-width:0;overflow-wrap:anywhere}
.plane-choices .role-card:hover{border-color:var(--mint);background:#2b4b63}.plane-preview{display:block;width:100%;height:auto;max-height:155px}.plane-role{font-size:11px;letter-spacing:1.5px;text-transform:uppercase;font-weight:800;color:var(--mint)}
.role-choice>.muted{margin:12px 0 24px}.selected-plane{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:750;color:var(--mint);margin-top:4px}.selected-plane svg{width:53px;height:29px;flex:none}
.solo-mode-tabs{margin-bottom:20px}.solo-type-panel{display:grid;gap:20px}.solo-type-panel .study-prompt{margin:0}.solo-session-stats{border-top:1px solid var(--line);padding-top:16px}.solo-type-panel .practice-feedback{margin:0}.solo-type-panel .btn.primary{min-height:48px}
@media(max-width:600px){.phase-shell .game-panel{padding:15px;border-radius:18px}.phase-shell .answer-tiles{gap:10px}.phase-shell .answer-tile{min-height:114px;padding:14px 10px;flex-direction:column;align-items:flex-start;gap:12px;font-size:19px;border-radius:16px}.phase-shell .answer-tile b{width:28px;height:28px;font-size:12px;border-radius:8px}.phase-shell .question-screen .phase-heading{font-size:26px;margin-top:12px}.result-heading{gap:12px;padding-bottom:16px}.result-symbol{width:52px;height:52px;border-radius:17px;font-size:32px}.result-score{font-size:26px}.result-scene-slot .scene-canvas{height:220px;min-height:220px}.result-screen .chest-choices{gap:7px}.result-screen .chest-choices button{font-size:13px;min-height:98px;padding:8px}.plane-choices{grid-template-columns:1fr}.plane-choices .role-card{display:grid;grid-template-columns:120px 1fr;gap:8px 14px}.plane-choices .plane-preview{grid-row:1/6;align-self:center}.phase-shell .game-question h2{overflow-wrap:anywhere}}
@media(max-width:360px){.phase-shell .answer-tile{font-size:17px;min-height:110px}.plane-choices .role-card{grid-template-columns:95px 1fr}.result-score{font-size:22px}.result-heading .phase-heading{font-size:29px}}
@media(prefers-reduced-motion:reduce){.phase-shell .answer-tile:hover:not(:disabled),.phase-shell .answer-tile:active:not(:disabled){transform:none}}

.phase-shell .phase-heading:focus{outline:none}

/* Reward events are a single cinematic announcement, not a static rules card. */
.event-flash{position:fixed;inset:0;z-index:2500;display:grid;place-items:center;padding:24px;pointer-events:none;isolation:isolate}
.event-flash-aura{position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at center,#7ae6bc24 0%,#14253d5c 55%,#07132730 100%);opacity:1}
.event-flash-card{position:relative;pointer-events:auto;text-align:center;width:min(780px,100%);max-height:calc(100dvh - 48px);overflow:auto;padding:48px 36px 42px;border:2px solid #e5ffc275;border-radius:30px;background:radial-gradient(ellipse at 50% 0%,#356e658f,#152943f5 72%);box-shadow:0 0 90px #8bffe351,0 25px 80px #0008;color:#fff}
.event-flash-kicker{display:block;font-size:12px;text-transform:uppercase;font-weight:850;letter-spacing:3px;color:#c8ffe9;margin:0 20px 20px;overflow-wrap:anywhere}
.event-flash-title{display:block;font-size:clamp(44px,8vw,100px);font-weight:950;line-height:1.03;letter-spacing:-.055em;text-shadow:0 4px 0 #09192d,0 0 28px #b5ffe955;overflow-wrap:anywhere}
.event-flash-title em{font-style:italic}
.event-flash-outcome{font-size:clamp(22px,4.2vw,38px);line-height:1.25;font-weight:800;color:#d1ffdb;margin-top:23px;overflow-wrap:anywhere}
.event-flash-dismiss{position:absolute;right:10px;top:8px;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#06172e70;font-size:29px;color:#e8fff4}
.event-flash[data-motion=on] .event-flash-card{animation:event-impact 3.2s cubic-bezier(.2,.8,.2,1) both}
.event-flash[data-motion=on] .event-flash-aura{animation:event-radiance 3.2s ease-out both}
@keyframes event-impact{0%{opacity:0;transform:translateY(25px) scale(.76) rotate(-4deg)}14%{opacity:1;transform:translateY(0) scale(1.04) rotate(-1deg)}24%,82%{opacity:1;transform:scale(1)}100%{opacity:0;transform:translateY(-14px) scale(1.02)}}
@keyframes event-radiance{0%{opacity:0}16%,78%{opacity:1}100%{opacity:0}}
.event-flash[data-kind=coin-comet] .event-flash-card,.event-flash[data-kind=vault-echo] .event-flash-card,.event-flash[data-kind=compass-cache] .event-flash-card{border-color:#ffe39c;background:radial-gradient(ellipse at 50% 0%,#806334dd,#182a42f5 72%)}
.event-flash[data-kind=meteor-volley] .event-flash-card,.event-flash[data-kind=crystal-orbit] .event-flash-card{border-color:#dbc4ff;background:radial-gradient(ellipse at 50% 0%,#66538ddd,#182a42f5 72%)}
.result-scene-slot .scene-canvas{height:clamp(300px,48dvh,520px);min-height:300px}
.result-scene-slot .game-scene{border-radius:20px;overflow:hidden;border-color:#60849f}
.result-scene-slot .scene-canvas{border-radius:0 0 19px 19px}
/* Original characters: complete portraits, shared with the canvas renderer. */
.avatar.character-avatar{background:none;border:0;border-radius:0;box-shadow:none;width:92px;height:104px;overflow:visible}
.avatar.character-avatar::before,.avatar.character-avatar::after{content:none!important}
.character-art{width:100%;height:100%;display:block;overflow:visible;filter:drop-shadow(0 7px 9px #07132655)}
.avatar.character-avatar.mini{width:34px;height:40px}
.hero-island .avatar.character-avatar{width:76px;height:90px;transform:none;margin:12px}
.skin-grid .skin-card{position:relative;overflow:hidden;gap:12px;padding:22px 18px;background:radial-gradient(ellipse at 50% 32%,#394b6659,#18263e 72%)}
.skin-grid .skin-card .character-avatar{width:154px;height:168px;margin:0}
.skin-rarity{font-size:10px;font-weight:850;letter-spacing:2px;text-transform:uppercase;color:var(--muted)}
.skin-card[data-rarity=Epic]{border-color:#7d8ecc;background:radial-gradient(ellipse at 50% 32%,#58548b66,#18263e 72%)}
.skin-card[data-rarity=Epic] .skin-rarity{color:#c5c6ff}
.skin-card[data-rarity=Legendary]{border-color:#b69967;background:radial-gradient(ellipse at 50% 32%,#8a673e55,#18263e 72%)}
.skin-card[data-rarity=Legendary] .skin-rarity{color:#ffe0a4}
.skin-card .btn{width:100%}
.question-space{height:0;flex:none}
@media(max-width:900px),(pointer:coarse){
 .phase-shell[data-player-view=question] .music-controls label{display:none}
 .phase-shell[data-player-view=question] .game-top{gap:4px;padding-top:4px;padding-bottom:4px}
 .phase-shell[data-player-view=question] .game-top .row{gap:3px}
 .phase-shell[data-player-view=question] .game-top .btn{font-size:10px;padding:5px 6px;min-height:40px}
 .phase-shell[data-player-view=question] .player-hud{padding-top:4px;padding-bottom:6px;align-items:center}
 .phase-shell[data-player-view=question] .player-hud h1{font-size:16px}
 .phase-shell[data-player-view=question] .player-hud p{display:none}
 .phase-shell[data-player-view=question] .player-hud>div:has(.selected-plane)>h1{display:none}
 .phase-shell[data-player-view=question] .selected-plane{margin:0;font-size:10px}.phase-shell[data-player-view=question] .selected-plane svg{height:18px;width:34px}
 .phase-shell[data-player-view=question] .game-panel{padding:12px 10px 6px}
 .phase-shell[data-player-view=question] .question-screen{display:flex;flex-direction:column}
 .phase-shell[data-player-view=question] .question-screen .phase-heading{font-size:22px;margin:8px auto 12px}
 .phase-shell[data-player-view=question] .answer-tiles{margin-top:12px;align-content:stretch;gap:10px}
 .phase-shell[data-player-view=question] .answer-tile{height:100%;min-height:0;font-size:clamp(21px,5.4vw,34px);padding:20px 14px;justify-content:center}
 .phase-shell[data-player-view=question] .question-hint{margin-top:10px}
}
@media(max-width:600px){
 .event-flash{padding:16px}.event-flash-card{padding:48px 18px 32px;border-radius:23px}.event-flash-title{font-size:clamp(39px,11vw,64px)}.event-flash-outcome{font-size:clamp(22px,6.4vw,30px)}.event-flash-kicker{font-size:10px;letter-spacing:2px}
 .result-scene-slot .scene-canvas{height:clamp(280px,46svh,390px);min-height:280px}
 .skin-grid .skin-card{padding:18px 10px;gap:10px}.skin-grid .skin-card .character-avatar{width:112px;height:134px}.skin-card h3{min-height:2.4em;display:grid;align-items:center}.skin-rarity{font-size:9px;letter-spacing:1px}
}
@media(max-height:500px) and (max-width:900px),(max-height:500px) and (pointer:coarse){.phase-shell[data-player-view=question] .game-top .btn{min-height:30px}.phase-shell[data-player-view=question] .game-top .keyboard-help-button{min-height:30px;padding:4px 6px}.phase-shell[data-player-view=question] .player-hud{padding-top:0;padding-bottom:3px}.phase-shell[data-player-view=question] .question-screen>.eyebrow{margin-bottom:0;font-size:9px}.phase-shell[data-player-view=question] .question-screen .phase-heading{font-size:19px;margin:4px auto 6px}}
@media(max-height:500px) and (min-width:600px) and (max-width:900px),(max-height:500px) and (min-width:600px) and (pointer:coarse){
 .phase-shell[data-player-view=question]{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr;column-gap:12px;align-content:start}
 .phase-shell[data-player-view=question] .game-top{grid-column:1;align-self:start}
 .phase-shell[data-player-view=question] .player-hud{grid-column:2;align-self:center;flex-wrap:nowrap;gap:12px;padding:4px}
 .phase-shell[data-player-view=question] .player-hud>div:first-child{flex:initial}
 .phase-shell[data-player-view=question] .player-hud h1{font-size:12px;max-width:16ch}
 .phase-shell[data-player-view=question] .live-layout{grid-column:1/-1}
 .phase-shell[data-player-view=question] .answer-tile{flex-direction:row;align-items:center;gap:12px;padding:12px 14px}
 .phase-shell[data-player-view=question] .answer-tiles{margin-top:8px}
}
@media(max-width:360px){
 .phase-shell[data-player-view=question] .game-top .wordmark{display:none}
 .phase-shell[data-player-view=question] .game-top .btn{padding-left:4px;padding-right:4px}
 .phase-shell[data-player-view=question] .game-top>.row{gap:2px}
 .phase-shell[data-player-view=question] .question-screen .phase-heading{font-size:20px;margin:6px auto 8px}
 :fullscreen .phase-shell[data-player-view=question] .game-top>.row{width:100%;justify-content:space-between}
}
@media(prefers-reduced-motion:reduce){.event-flash .event-flash-card,.event-flash .event-flash-aura{animation:none!important;transform:none!important}}

/* Each mode's strategy lives after the answer, alongside its game state. */
.adventure-panel{margin:20px 0;padding:22px;border:1px solid #6589a85c;border-radius:20px;background:linear-gradient(140deg,#28445b99,#172840);text-align:left;min-width:0}
.adventure-heading{margin-bottom:18px}.adventure-heading>.eyebrow{color:var(--mint)}.adventure-heading p{font-size:14px;margin-top:7px;color:#c8dced}
.adventure-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 0;font-size:13px}.adventure-row>span{display:inline-flex;align-items:center;gap:8px;color:#c7d9e8}
.adventure-hint{font-size:12px!important;line-height:1.6;color:#bacdde;margin-top:14px!important}.adventure-meter{height:12px;overflow:hidden;border-radius:8px;background:#0c1a31;border:1px solid #8cc9d13d;margin:8px 0 14px}.adventure-meter i{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#4dbfae,#b0ffb8);transition:width .4s}.enemy-health .adventure-meter i{background:linear-gradient(90deg,#a983ff,#f7a7d1)}
.haul-split{display:grid;grid-template-columns:1fr 1fr;gap:12px}.haul-split>div{padding:17px;border-radius:14px;background:#153d42;border:1px solid #8bdabd66}.haul-split>div+div{background:#453c32;border-color:#ddbd6f66}.haul-split small{display:block;color:#c6dfdb;font-size:11px}.haul-split strong{display:block;font-size:30px;margin-top:8px}.haul-split strong span{font-size:12px;font-weight:600}
.gameplay-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:20px}.adventure-factory .gameplay-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.gameplay-choice{display:flex;flex-direction:column;gap:9px;min-width:0;min-height:122px;padding:17px;border:1px solid #82c0bf99;border-bottom:4px solid #0a1d35;border-radius:15px;background:#315e67;color:#f2ffff;text-align:left;overflow-wrap:anywhere}.gameplay-choice strong{font-size:17px;line-height:1.25}.gameplay-choice span,.gameplay-choice small{font-size:12px;line-height:1.5}.gameplay-choice:hover:not(:disabled){background:#3d7480}.gameplay-choice:disabled{background:#26394d;border-color:#536476;opacity:.7}.gameplay-receipt{margin:18px 0 5px;padding:18px;border-radius:14px;background:#315c5199;border:1px solid #a6ebc3;font-size:19px;line-height:1.4;color:#e9fff0}
.adventure-charges{display:inline-flex;gap:5px}.adventure-charges i{display:block;width:18px;height:18px;border:1px solid #8da0bd;border-radius:5px;background:#10243b}.adventure-charges i.filled{background:#ffe1a0;border-color:#fff1c5;box-shadow:0 0 9px #ffdc9555}.arena-read{background:#12253c;padding:13px;border-radius:12px;font-size:13px;color:#e1e8fa}
.catch-reveal{display:flex;align-items:center;gap:18px;padding:15px;border-radius:16px;background:radial-gradient(ellipse,#4d7c8255,#102a3b);border:1px solid #84c8cd66}.catch-reveal .fish-art{width:140px;flex:none;filter:drop-shadow(0 0 14px #c5ffdf33)}.catch-reveal small{font-size:10px;letter-spacing:2px;color:#c8ffe5;font-weight:850}.catch-reveal h3{font-size:23px;margin:7px 0}.catch-reveal p{font-size:13px;color:#dceef5}.rare-catch{border-color:#e4cd89;background:radial-gradient(ellipse,#91834d44,#152d42)}.fish-collection{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.collection-fish{min-height:45px;display:grid;place-items:center;background:#10273b;border:1px solid #7894a144;border-radius:9px;color:#b7cadc}.collection-fish.discovered{background:#295162;border-color:#91cfb4}.collection-fish .fish-art{width:100%;max-width:70px;height:46px}.fish-art{display:block}
.factory-capital{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px}.factory-capital span{display:grid;gap:5px;color:#bfd0e0}.factory-capital b{font-size:23px;color:#ffe0a3}.production-chain{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:17px}.station-card{display:grid;gap:7px;padding:14px 9px;background:#12263b;border:1px dashed #8da4b066;border-radius:12px;min-width:0}.station-card small{font-size:10px;overflow-wrap:anywhere}.station-card strong{font-size:16px;color:var(--station)}.station-card span{font-size:12px}.station-online{border-style:solid;border-color:var(--station);background:#294359}.factory-order{display:grid;gap:8px;margin-top:17px;background:#473e31;border:1px solid #bd9d60;border-radius:13px;padding:15px}.factory-order small{font-size:9px;letter-spacing:1px;color:#ffdfa4}.factory-order strong{font-size:23px}.factory-order>span{font-size:12px;color:#e5d4b6}
.wind-forecast{display:flex;align-items:center;gap:17px;padding:17px;border-radius:15px;background:#345674;border:1px solid #9ddaea}.wind-forecast>span{font-size:50px;color:#c8ffff}.wind-forecast small{font-size:9px;letter-spacing:1.7px;color:#c4eeff}.wind-forecast h3{font-size:25px;margin:5px 0}.wind-forecast p{font-size:13px;color:#dceafa}.wind-forecast[data-wind=storm]{background:#4e416d;border-color:#d7b6ff}
.keep-wave{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.keep-wave>div{display:grid;gap:8px}.keep-wave small{font-size:9px;letter-spacing:1.5px;color:#b6e3e0}.keep-wave strong{font-size:28px}.keep-wave>span{font-size:12px;color:#d5e7f0}.keep-health>span{display:flex;justify-content:space-between;gap:10px;font-size:13px}.keep-outcome{padding:14px;border-radius:12px;background:#142d42;font-size:14px!important;color:#d1f3e6}.host-adventure{margin-top:22px}
.result-screen .chest-choices .route-chest{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:10px;padding:17px;min-height:185px;text-align:left}.route-chest strong{font-size:19px;line-height:1.2}.route-chest small{font-size:12px;line-height:1.5;font-weight:500}.chest-risk{font-size:9px!important;letter-spacing:1.5px;text-transform:uppercase;background:#1c283c88;padding:5px 8px;border-radius:6px}
@media(max-width:600px){.adventure-panel{padding:16px 12px;border-radius:16px}.gameplay-choices{grid-template-columns:1fr;gap:8px}.gameplay-choice{min-height:90px;padding:15px}.gameplay-choice strong{font-size:18px}.catch-reveal{gap:8px;padding:12px 8px}.catch-reveal .fish-art{width:100px}.catch-reveal h3{font-size:19px}.catch-reveal p{font-size:12px}.fish-collection{grid-template-columns:repeat(4,minmax(0,1fr))}.haul-split>div{padding:14px 10px}.haul-split strong{font-size:25px}.production-chain{gap:5px}.station-card{padding:12px 7px}.station-card strong{font-size:14px}.factory-capital b{font-size:21px}.adventure-factory .gameplay-choices{grid-template-columns:1fr 1fr}.adventure-factory .gameplay-choice{padding:13px 10px;min-height:145px}.adventure-factory .gameplay-choice strong{font-size:16px}.result-screen .chest-choices{grid-template-columns:1fr}.result-screen .chest-choices .route-chest{min-height:120px}.route-chest strong{font-size:21px}.gameplay-receipt{font-size:18px;padding:15px}.wind-forecast{padding:14px 10px;gap:10px}.wind-forecast h3{font-size:22px}}
.arena-forecast{padding:13px 15px;border-radius:12px;background:#3d355b;border:1px solid #b6a2da66;margin-bottom:14px}.arena-forecast strong{font-size:19px;color:#eee2ff}.arena-forecast p{font-size:12px;color:#d2cde7;margin-top:5px}

/* Vocabulary modes use spelling and a shared drawing canvas instead of answer tiles. */
.word-screen{max-width:860px;margin:auto}.word-screen>.eyebrow{text-align:center;color:#d8bdff}.word-screen .phase-heading{text-align:center;font-size:clamp(24px,3.7vw,38px);margin:18px auto;max-width:34ch}.word-screen .question-image{max-width:330px;margin:16px auto}.word-slots{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:22px auto;max-width:850px}.word-slot{display:grid;place-items:center;width:34px;min-height:45px;border-bottom:4px solid #d4b3ff;border-radius:7px 7px 2px 2px;background:#523d732e;font-size:27px;line-height:1.2;font-weight:850;color:#f4e7ff}.word-slot.revealed{background:#674d9466}.word-space{width:15px;display:grid;place-items:center;font-size:26px}.word-ink{display:flex;align-items:center;justify-content:center;gap:12px;font-size:12px;color:#d9c9eb}.word-ink>div{display:flex;gap:5px}.word-ink i{height:13px;width:21px;border-radius:4px;border:1px solid #8b73b0;background:#1a2940}.word-ink i.filled{background:#b4a4ff;box-shadow:0 0 10px #b09bef33}.word-help{font-size:12px!important;line-height:1.6;color:#bacbdf;margin:16px auto}.word-screen form{max-width:580px;margin:22px auto}.word-screen form .btn{min-height:52px}.word-keyboard{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:7px;max-width:650px;margin:24px auto 8px}.word-keyboard button{min-height:46px;border-radius:9px;background:#3f4f77;border:1px solid #b9a5e277;color:#f3e9ff;font-size:20px;font-weight:800}.word-keyboard button:hover:not(:disabled){background:#6a5895}.word-keyboard button:disabled{background:#24354b;border-color:#53647d;opacity:.38}.forge-progress{display:grid;gap:12px;padding:17px;background:radial-gradient(ellipse,#69538b66,#24364a);border:1px solid #e3c4ff88;border-radius:14px}.forge-progress b{font-size:28px;color:#f2d8ff}.forge-progress span{color:#ffe6ad;font-size:16px}.forge-progress p{font-size:13px;color:#d7e0f0}
.sketch-board{max-width:1100px;margin:auto;min-width:0}.sketch-intro{text-align:center}.sketch-intro>.eyebrow{color:#aadff3}.sketch-intro .phase-heading{font-size:clamp(26px,4vw,42px);margin:12px auto}.sketch-intro p{font-size:13px;color:#c6d9ed}.sketch-board .word-slots{margin:18px auto}.artist-word{padding:13px 18px;text-align:center;font-size:25px;font-weight:850;color:#ffefba;background:#514532;border:1px solid #cbaa6a;border-radius:13px;margin:15px 0}.drawing-tools{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:12px;background:#223e54;border:1px solid #6f9db3;border-radius:15px 15px 0 0}.drawing-tools label{display:flex;align-items:center;gap:8px;font-size:12px}.drawing-tools select{min-height:38px;min-width:95px;padding:5px 8px}.ink-palette{display:flex;flex-wrap:wrap;gap:7px}.ink-palette button{width:36px;height:36px;border-radius:50%;border:2px solid #dbe8ee55;background:var(--ink)}.ink-palette button[aria-pressed=true]{border-color:#fff;box-shadow:0 0 0 3px #8bd7e5;transform:scale(.9)}.drawing-canvas{display:block;width:100%;height:auto;aspect-ratio:1000/650;background:#fffdf5;border:2px solid #9bc8d7;border-radius:14px;max-height:none}.drawing-tools:not([hidden])+.drawing-canvas{border-radius:0 0 14px 14px}.sketch-canvas-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0;font-size:12px;color:#b9d3e1}.sketch-canvas-footer>div{display:flex;flex-wrap:wrap;gap:8px}.sketch-guess-form{max-width:630px;margin:24px auto}.sketch-guess-form>.btn{min-height:53px}.sketch-quick-accents{display:flex;flex-wrap:wrap;gap:6px}.sketch-feedback{font-size:19px!important;line-height:1.5;padding:18px;margin-top:18px;border-radius:13px;border:1px solid #8bc2bc66;background:#254f5555;color:#e2fff1}.phase-shell[data-player-view=sketch] .game-panel{background:linear-gradient(145deg,#233b50,#192b43)}
@media(max-width:600px){.word-slot{width:26px;min-height:36px;font-size:23px;border-bottom-width:3px}.word-slots{gap:4px;margin:18px auto}.word-space{width:10px;font-size:22px}.word-keyboard{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.word-keyboard button{min-height:43px;font-size:18px}.word-screen .phase-heading{font-size:25px}.word-screen .typed-answer,.sketch-guess-form .typed-answer{font-size:22px!important}.drawing-tools{padding:10px 8px}.ink-palette{gap:6px}.ink-palette button{width:31px;height:31px}.sketch-intro .phase-heading{font-size:27px}.sketch-feedback{font-size:17px!important;padding:15px}.artist-word{font-size:22px;padding:12px}.sketch-canvas-footer .btn{min-height:40px}.sketch-board .word-slot{width:23px;font-size:20px;min-height:32px}.sketch-board .word-slots{gap:4px}.sketch-guess-form{margin:18px auto}.forge-progress b{font-size:25px}}
.drawing-tools label{white-space:nowrap}.drawing-canvas{max-width:min(100%,110svh);margin-inline:auto}
