/* Shared lesson chrome: copied palette, typography, panels and tiles of the supplied player. */
body.unified-game{--page:#141312;--page-ink:#f2eee4;--page-tone:#3a3733;--paper:#faf6ee;--panel:#fff;--ink:#0f0f0f;--ink-muted:#5a5650;--beni:#c8102e;--page-beni:#ff5a6a;--sakura:#f6cdd2;--peach:#f6dcc4;--sora-tint:#d4e7f5;--matcha-tint:#d6ead3;--font-display:'Inter Tight','Helvetica Neue',Arial,sans-serif;--font-sans:'Inter','Helvetica Neue',Arial,sans-serif;background:radial-gradient(var(--page-tone) .9px,transparent 1.1px) 0 0/7px 7px var(--page)!important;color:var(--page-ink);font:400 15px/24px var(--font-sans);overflow:hidden;--ui-columns:minmax(0,1.45fr) minmax(0,1fr)}
.unified-game .slate-layout{max-width:1440px;height:100dvh;display:block;padding:10px 16px calc(8px + env(safe-area-inset-bottom,0px))!important}
.unified-game .slate-sitebar,.unified-game .slate-edge,.unified-game .slate-caption,.unified-game .slate-meter{display:none!important}
.unified-game .manga-slate{height:100%;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;overflow:visible}
.unified-game .manga-slate:before{display:none}
.unified-game .manga-slate.has-review-controls{grid-template-rows:auto auto minmax(0,1fr)}
.unified-game .slate-hud{display:flex;background:transparent!important;border:0!important;padding:0!important;gap:8px;color:var(--page-ink);min-height:34px;flex-wrap:wrap;position:relative}
.unified-game .slate-hud>div:not(.ui-segs){flex:0 1 240px;max-width:22vw}
.unified-game .slate-hud [data-course]{display:none}.unified-game .slate-hud [data-topic]{font:800 15px/1.1 var(--font-display);color:var(--page-ink)}
.unified-game .slate-hud>button{border:2px solid var(--page-ink)!important;background:transparent!important;color:var(--page-ink)!important;box-shadow:none!important;border-radius:0;min-height:34px;min-width:34px;padding:4px;font-size:18px}
.unified-game .slate-hud .ui-pill{border-radius:999px;min-width:70px;font:700 12px var(--font-sans);padding:6px 11px}
.unified-game .slate-hud .study-clock{font:700 11px var(--font-sans);padding:5px 7px;background:transparent;color:var(--page-ink);border:1px solid var(--page-tone);margin:0}
.unified-game .ui-segs{flex:1!important;display:flex;gap:3px;min-width:40px;max-width:none!important}
.unified-game .seg{flex:1;height:10px;border:2px solid var(--page-ink);position:relative;overflow:hidden}.unified-game .seg i{position:absolute;inset:0;background:var(--page-ink);transform-origin:left;transition:transform .25s}.unified-game .seg.now i{background:var(--page-beni)}
.unified-game [data-count]{font:700 11px var(--font-sans)}
.unified-game .slate-stage{position:relative;display:block;min-height:0;padding:0!important;overflow:hidden!important;border:0;isolation:isolate}
.unified-game .slate-stage:before,.unified-game .slate-stage:after{content:'';position:absolute;top:0;bottom:0;border:2px solid var(--ink);outline:2px solid var(--page-ink);z-index:-1;pointer-events:none}
.unified-game .slate-stage:before{left:0;width:calc(59.184% - 6px);background:var(--paper)}.unified-game .slate-stage:after{right:0;width:calc(40.816% - 6px);background:var(--panel)}
.unified-game .slate-player,.unified-game .slate-lesson{position:relative;display:grid!important;grid-template-columns:var(--ui-columns);grid-template-rows:repeat(19,max-content) minmax(0,1fr);column-gap:10px;row-gap:8px;align-content:start;height:100%;max-width:none;min-height:0;padding:14px 14px 108px 0!important;color:var(--ink)}
.unified-game [hidden]{display:none!important}
.unified-game .slate-player>:not(.ui-scene),.unified-game .slate-player [data-work]>*:not(.ui-scene),.unified-game .mechanics-lab>*:not(.ui-scene),.unified-game .light-lab>*:not(.ui-scene),.unified-game .optics-lab>*:not(.ui-scene),.unified-game .slate-lesson>*:not(.ui-scene),.unified-game .theory-spread>*:not(.ui-scene){grid-column:2;min-width:0;max-height:none}
.unified-game .slate-player [data-work]:not([hidden]):not(.slate-off),.unified-game .mechanics-lab,.unified-game .light-lab,.unified-game .optics-lab,.unified-game .theory-spread{display:contents!important}
.unified-game .ui-scene{grid-column:1!important;grid-row:1/21!important;position:relative!important;align-self:stretch;min-width:0;min-height:0!important;height:auto!important;max-height:none!important;width:100%;margin:0 0 -94px!important;display:flex;align-items:center;justify-content:center;background:var(--paper)!important;border:0!important;overflow:hidden}
.unified-game .ui-scene svg,.unified-game .ui-scene img{height:100%;width:100%;max-height:none!important;min-height:0!important;object-fit:contain;display:block}
.unified-game .ui-scene svg{border:0;background:transparent;align-self:stretch}
.unified-game .ui-scene figcaption{position:absolute;bottom:6px;left:8px;right:8px;font:500 12px/16px var(--font-sans);background:var(--paper);padding:4px;text-align:center}
.unified-game .ui-fallback-scene img{object-fit:contain}.unified-game .ui-concept-stage{height:100%;width:100%;display:flex;align-items:center;justify-content:center;gap:18px;padding:22px;flex-wrap:wrap;background:repeating-conic-gradient(from 0deg at 50% 50%,transparent 0 3deg,#0f0f0f09 3deg 4deg)}
.unified-game .ui-concept-stage img{width:auto;max-width:55%;max-height:65%;object-fit:contain}.unified-game .ui-concept-stage strong{font:800 30px/1.1 var(--font-display);max-width:260px;color:var(--beni);text-align:center}
.unified-game .activity-intro{padding:0!important;border:0!important;display:grid;grid-template-columns:42px minmax(0,1fr);gap:4px 10px;background:transparent!important}
.unified-game .ui-avatar{grid-row:1/3;width:42px;height:42px;border:2px solid var(--ink);background:#f2eee8;object-fit:cover}
.unified-game .activity-intro .eyebrow{font:700 10px/12px var(--font-sans);color:var(--ink-muted);letter-spacing:.12em}
.unified-game .activity-intro h2,.unified-game .slate-lesson h1{font:800 21px/1.18 var(--font-display)!important;letter-spacing:-.02em;margin:0;text-wrap:balance;color:var(--ink)!important}
.unified-game .comic-kicker{font:700 10px/14px var(--font-sans);letter-spacing:.12em}.unified-game .comic-kicker span{font-size:12px}
.unified-game .theory-prose{padding:12px!important;border:2px solid var(--ink);background:var(--paper);margin-top:4px}.unified-game .theory-prose p{font:500 17px/1.5 var(--font-sans)}
.unified-game .beat-dots{justify-content:flex-start}.unified-game .beat-dots i.on{background:var(--beni)}
.unified-game .slate-player .tap-choices,.unified-game .light-choices,.unified-game .optics-quiz,.unified-game .space-picks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px;align-content:start}
.unified-game button,.unified-game .ink-button{font:700 14px/20px var(--font-sans);border:2px solid var(--ink);border-radius:0;box-shadow:none!important;color:var(--ink);background:var(--panel);transition:none;min-height:38px;padding:7px 10px;cursor:pointer}
.unified-game button:hover{transform:none;background:var(--paper)}.unified-game button:active{transform:translate(1px,1px)}
.unified-game .slate-player .ui-tile{display:flex;align-items:center;gap:8px;padding:10px;min-height:54px;text-align:left;font:700 14px/20px var(--font-sans)!important;background:var(--sakura)!important;color:var(--ink)!important;border:2px solid var(--ink)!important;overflow-wrap:anywhere}
.unified-game .ui-tile:before{content:'▲';font-size:17px;flex:none}.unified-game .ui-tile:nth-child(4n+2){background:var(--sora-tint)!important}.unified-game .ui-tile:nth-child(4n+2):before{content:'◆'}.unified-game .ui-tile:nth-child(4n+3){background:var(--peach)!important}.unified-game .ui-tile:nth-child(4n+3):before{content:'●'}.unified-game .ui-tile:nth-child(4n+4){background:var(--matcha-tint)!important}.unified-game .ui-tile:nth-child(4n+4):before{content:'■'}
.unified-game .ui-tile.chosen,.unified-game .ui-tile[aria-pressed=true]{outline:3px solid var(--ink);outline-offset:-5px}.unified-game .ui-tile:disabled{opacity:.6}.unified-game [data-item][data-position]:disabled{opacity:1}
.unified-game .light-step,.unified-game .optics-instruction,.unified-game .observation-note{border:2px dashed var(--ink);background:var(--sora-tint);padding:8px 10px;font:700 14px/20px var(--font-sans);color:var(--ink)}
.unified-game .light-step strong{font:800 16px/20px var(--font-display)}.unified-game .mech-controls,.unified-game .light-controls{gap:8px}.unified-game .mech-controls label,.unified-game .light-controls label,.unified-game .tune-controls label{font:700 13px/19px var(--font-sans)}
.unified-game input[type=range]{accent-color:var(--ink);min-height:28px;height:28px;cursor:pointer}.unified-game .mech-meter,.unified-game .light-readout{font:700 12px/17px var(--font-sans);color:var(--ink-muted);padding:0;margin:0}
.unified-game .mech-caption,.unified-game .quiet{font:500 12px/16px var(--font-sans)!important;color:var(--ink-muted)}
.unified-game .slate-controls{position:absolute;z-index:5;right:0;bottom:0;width:calc(40.816% - 6px);display:flex;flex-wrap:wrap;border:2px solid var(--ink);outline:2px solid var(--page-ink);border-top:0;background:var(--panel)!important;padding:8px 14px 12px;gap:6px}
.unified-game .slate-controls [data-phase]{display:none}.unified-game .slate-controls [data-actions]{display:flex;gap:6px;margin:0;flex:1}.unified-game .slate-controls [data-next]{width:100%;margin:0;min-height:48px;background:var(--ink)!important;color:var(--panel)!important;font:800 18px/1 var(--font-display);letter-spacing:-.02em}
.unified-game .slate-controls [data-back]{width:34px;padding:4px}.unified-game .slate-controls [data-check]{max-width:none;font-size:12px}.unified-game .slate-controls [data-hint],.unified-game .slate-controls [data-simple]{font-size:12px}
.unified-game .admin-review-bar{position:static;grid-row:2;border:1px solid var(--page-tone);background:transparent;color:var(--page-ink);padding:4px 6px;min-height:28px}.unified-game .admin-review-bar button{min-height:26px;font-size:11px;padding:2px 8px;background:transparent;color:var(--page-ink);border:1px solid var(--page-ink)}
.unified-game .slate-sheet{position:absolute;left:auto;right:0;top:auto;bottom:0;width:calc(40.816% - 6px);max-height:calc(100% - 50px);background:none;padding:0;z-index:20;backdrop-filter:none}
.unified-game .speech-sheet{width:100%;max-width:none;max-height:100%;overflow:auto;border:2px solid var(--ink);outline:2px solid var(--page-ink);box-shadow:none;border-radius:0;background:var(--panel);padding:14px;gap:8px;color:var(--ink)}
.unified-game .speech-sheet h2{font:800 22px/1 var(--font-display);letter-spacing:-.02em;margin:0}.unified-game .speech-sheet p{font:500 15px/21px var(--font-sans);margin:0}.unified-game .speech-sheet [data-sheet-tag]{font:700 10px/12px var(--font-sans)}
.unified-game .ui-verdict-avatar{width:52px;height:52px;object-fit:cover;border:2px solid var(--ink);background:#f2eee8}
.unified-game [data-verdict=success] .speech-sheet{background:var(--matcha-tint)}.unified-game [data-verdict=retry] .speech-sheet{background:var(--sakura)}.unified-game [data-verdict=note] .ui-verdict-avatar{display:none}
.unified-game .kiso-dialog-mascot{display:none}.unified-game .kiso-menu{display:grid;gap:10px}.unified-game .curve-inspector{position:absolute!important;left:10px;right:calc(40.816% + 15px);bottom:10px;z-index:25;max-width:none}
.unified-game .slate-player[data-view=prediction] .ui-fallback-scene,.unified-game .slate-player[data-view=followup] .ui-fallback-scene{display:flex}
.unified-game .slate-off{display:none!important}
@media(max-width:800px){body.unified-game{--ui-columns:minmax(0,1fr)}.unified-game .slate-layout{padding:8px 10px!important}.unified-game .slate-stage:before{width:auto;right:0;height:38%;bottom:auto}.unified-game .slate-stage:after{left:0;width:auto;top:calc(38% + 8px)}.unified-game .slate-player,.unified-game .slate-lesson{grid-template-columns:minmax(0,1fr);grid-template-rows:38% repeat(18,max-content) minmax(0,1fr);padding:0 12px 104px!important;gap:6px}.unified-game .slate-player>:not(.ui-scene),.unified-game .slate-player [data-work]>*:not(.ui-scene),.unified-game .mechanics-lab>*:not(.ui-scene),.unified-game .light-lab>*:not(.ui-scene),.unified-game .optics-lab>*:not(.ui-scene),.unified-game .slate-lesson>*:not(.ui-scene),.unified-game .theory-spread>*:not(.ui-scene){grid-column:1}.unified-game .ui-scene{grid-column:1!important;grid-row:1!important;min-height:0;max-height:100%!important;margin:0 -12px 8px!important;width:calc(100% + 24px)}.unified-game .slate-controls,.unified-game .slate-sheet{width:100%}.unified-game .slate-sheet{max-height:62%;}.unified-game .slate-hud>div:not(.ui-segs){display:none}.unified-game .slate-hud [data-count]{display:none}.unified-game .slate-hud .study-clock{font-size:10px;min-width:0}.unified-game .slate-hud>button[data-expand]{display:none}.unified-game .activity-intro h2,.unified-game .slate-lesson h1{font-size:17px!important;line-height:1.18!important}.unified-game .activity-intro{grid-template-columns:34px minmax(0,1fr);gap:2px 7px}.unified-game .ui-avatar{width:34px;height:34px}.unified-game .theory-prose p{font:500 14px/20px var(--font-sans)}.unified-game .comic-kicker{font-size:9px}.unified-game .ui-scene figcaption{font-size:10px;line-height:12px;bottom:0}.unified-game .slate-player .ui-tile{padding:7px;min-height:40px;font-size:12px!important;line-height:16px!important;gap:6px}.unified-game .ui-tile:before{font-size:12px}.unified-game .curve-inspector{right:10px;top:0;bottom:auto;max-height:38%;overflow:auto}.unified-game .slate-controls [data-next]{min-height:44px;font-size:16px}.unified-game .theory-figure img{max-height:none!important}.unified-game .ui-concept-stage img{max-height:80%}.unified-game .ui-concept-stage strong{font-size:22px}.unified-game .light-step strong{font-size:13px;line-height:17px}.unified-game .light-step{padding:5px 7px}.unified-game .ui-segs{gap:2px}.unified-game .seg{border-width:1px;height:8px}}
@media(max-height:700px){.unified-game .slate-player,.unified-game .slate-lesson{row-gap:5px}.unified-game .mech-controls label,.unified-game .light-controls label{font-size:11px;line-height:14px}.unified-game .mech-buttons button,.unified-game .light-tools button,.unified-game .optics-tools button{min-height:28px;font-size:10px;padding:3px 5px}.unified-game .mech-caption{display:none!important}.unified-game .slate-player .ui-tile{min-height:38px;font-size:12px!important;padding:6px}.unified-game .theory-prose{padding:8px!important}.unified-game .theory-prose p{font-size:14px;line-height:19px}.unified-game .light-feedback,.unified-game .optics-feedback{font-size:11px!important;line-height:14px!important}.unified-game .ui-scene{margin-bottom:-94px!important}}
@media(max-width:800px) and (max-height:700px){.unified-game .ui-scene{margin:0 -12px 8px!important}.unified-game .slate-player,.unified-game .slate-lesson{grid-template-rows:32% repeat(18,max-content) minmax(0,1fr)}.unified-game .slate-stage:before{height:32%}.unified-game .slate-stage:after{top:calc(32% + 8px)}.unified-game .slate-sheet{max-height:68%}.unified-game .activity-intro .eyebrow{display:none}.unified-game .activity-intro .ui-avatar{grid-row:1}.unified-game .slate-controls{padding:6px 10px 8px}.unified-game .light-readout,.unified-game .mech-meter{font-size:10px;line-height:13px}.unified-game .light-step>span{display:none}.unified-game .light-tools,.unified-game .optics-tools{gap:4px}.unified-game .slate-player .quiet{font-size:10px!important;line-height:12px!important}}
@media(prefers-reduced-motion:reduce){.unified-game .seg i{transition:none}}
/* Account/review styles load late; the player owns its viewport tracks. */
body.unified-game .manga-slate{grid-template-rows:auto minmax(0,1fr)!important}
body.unified-game .manga-slate.has-review-controls{grid-template-rows:auto auto minmax(0,1fr)!important}
body.unified-game .admin-review-bar{background:transparent!important;color:var(--page-ink)!important}
body.unified-game .has-review-controls>.slate-sheet{top:auto!important}
body.unified-game .slate-player,body.unified-game .slate-lesson{padding-right:0!important}
body.unified-game .slate-player>:not(.ui-scene),body.unified-game .slate-player [data-work]>*:not(.ui-scene),body.unified-game .mechanics-lab>*:not(.ui-scene),body.unified-game .light-lab>*:not(.ui-scene),body.unified-game .optics-lab>*:not(.ui-scene),body.unified-game .slate-lesson>*:not(.ui-scene),body.unified-game .theory-spread>*:not(.ui-scene){margin-left:14px;margin-right:14px}
@media(max-width:800px){body.unified-game .slate-player,body.unified-game .slate-lesson{padding-right:12px!important;grid-template-rows:calc(38% + 40px) repeat(18,max-content) minmax(0,1fr)}body.unified-game .slate-player>:not(.ui-scene),body.unified-game .slate-player [data-work]>*:not(.ui-scene),body.unified-game .mechanics-lab>*:not(.ui-scene),body.unified-game .light-lab>*:not(.ui-scene),body.unified-game .optics-lab>*:not(.ui-scene),body.unified-game .slate-lesson>*:not(.ui-scene),body.unified-game .theory-spread>*:not(.ui-scene){margin-left:0;margin-right:0}}
@media(max-width:800px) and (max-height:700px){body.unified-game .slate-player,body.unified-game .slate-lesson{grid-template-rows:calc(32% + 34px) repeat(18,max-content) minmax(0,1fr)}}
body.unified-game .ui-fallback-scene[data-fallback-for=prediction]{display:none}
body.unified-game .slate-player:is([data-view=prediction],[data-view=followup]) .ui-fallback-scene{display:flex}
/* Diagram nodes remain in their original DOM so every tap/drag handler is preserved. */
body.unified-game [data-graph],body.unified-game [data-solid]{display:contents!important}
body.unified-game [data-graph]>*:not(.ui-scene),body.unified-game [data-solid]>*:not(.ui-scene){grid-column:2;margin:0 14px;min-width:0}
body.unified-game [data-type=bounds] [data-plot],body.unified-game [data-type=projection][data-view=bounds] [data-shadow],body.unified-game [data-type=projection][data-view=projection] [data-shadow],body.unified-game [data-type=projection][data-view=model] [data-canvas]{display:flex!important}
body.unified-game [data-type=projection]:not([data-view=model]) [data-canvas],body.unified-game [data-type=projection][data-view=model] [data-shadow]{display:none!important}
body.unified-game [data-shadow]{flex-direction:column;filter:none!important;padding:10px;background:var(--paper)!important}
body.unified-game [data-shadow] svg{flex:1;min-height:0;height:0}.unified-game [data-shadow] .quiet{padding:0 10px!important;margin:6px!important;flex:none}
body.unified-game [data-solid]>.diagram-toolbar,body.unified-game [data-solid]>.toggles,body.unified-game [data-solid]>.slider-row,body.unified-game [data-solid]>.legend{display:none!important}
body.unified-game [data-type=projection]:not([data-view=model]) [data-solid]>.projection-buttons,body.unified-game [data-type=projection][data-view=model] [data-solid]>.diagram-toolbar,body.unified-game [data-type=projection][data-view=model] [data-solid]>.toggles,body.unified-game [data-type=projection][data-view=model] [data-solid]>.slider-row{display:flex!important;gap:5px;flex-wrap:wrap}
body.unified-game .diagram-toolbar button{font-size:11px;padding:4px 7px;min-height:30px}
body.unified-game [data-plot] svg>rect[fill='#08090b']{fill:var(--paper)}
body.unified-game :is(.activity-svg,.slate-art,[data-plot] svg,[data-shadow] svg) text:is([fill='#ddd'],[fill='#eee'],[fill='#fff'],[fill='#aaa'],[fill='#999']){fill:var(--ink-muted)}
body.unified-game :is(.activity-svg,.slate-art,[data-shadow] svg) path:is([stroke='#ddd'],[stroke='#eee'],[stroke='#fff']){stroke:var(--ink)}
body.unified-game [data-plot] .plot-label{fill:var(--ink-muted)}
body.unified-game [data-plot] path[stroke='#242428']{stroke:#0f0f0f18}
body.unified-game [data-plot] :is([stroke='#c8b9f4'],[stroke='#efb8d3']){stroke:#a74878}
body.unified-game [data-plot] [stroke='#b5d8ff']{stroke:#2375ad}
body.unified-game [data-check]{background:var(--ink)!important;color:var(--panel)!important}
body.unified-game .slate-hud .theme-toggle{display:flex;flex-direction:column;justify-content:center;gap:3px;width:34px}
body.unified-game .slate-hud .theme-toggle span{display:block;width:16px;height:2px;background:var(--page-ink)}
body.unified-game .slate-hud .kiso-sound-toggle svg{width:18px;height:18px}
body.unified-game button:focus-visible{outline:3px solid var(--beni);outline-offset:2px}
body.unified-game .slate-player:is(.diagram-focus,:has(.mech-enlarged),:has(.optics-enlarged),:has(.light-enlarged))>.ui-fallback-scene{display:none!important}
body.unified-game .slate-player:is(.diagram-focus,:has(.mech-enlarged),:has(.optics-enlarged),:has(.light-enlarged)) .ui-scene{grid-column:1/-1!important;z-index:3;border:2px solid var(--ink)!important}
body.unified-game .slate-player:is(.diagram-focus,:has(.mech-enlarged),:has(.optics-enlarged),:has(.light-enlarged)) :is(.mech-buttons,.optics-tools,.light-tools,.magnetic-tools){position:absolute;z-index:4;top:10px;right:10px;grid-column:auto;background:var(--panel)}
@media(max-width:800px){body.unified-game [data-graph]>*:not(.ui-scene),body.unified-game [data-solid]>*:not(.ui-scene){grid-column:1;margin:0}body.unified-game [data-shadow] .quiet{display:none}body.unified-game .slate-player:is(.diagram-focus,:has(.mech-enlarged),:has(.optics-enlarged),:has(.light-enlarged)) .ui-scene{grid-row:1/21!important;max-height:none!important;margin-bottom:0!important}body.unified-game [data-shadow] .panel-head h3{font-size:15px}.unified-game .slate-hud{gap:5px}}
/* Observation messages fly into the shared verdict panel rather than pushing answers down. */
body.unified-game :is(.light-feedback,.optics-feedback){display:none!important}
body.unified-game .slate-player:not(.diagram-focus):not(:has(.mech-enlarged,.light-enlarged,.optics-enlarged)) :is(.light-tools,.optics-tools,.mech-buttons,.magnetic-tools,.lab-actions){position:absolute!important;z-index:4;left:8px;bottom:10px;width:calc(59.184% - 26px);display:flex;justify-content:center;gap:5px;flex-wrap:wrap;grid-column:auto!important;grid-row:auto!important;margin:0!important;background:transparent}
body.unified-game .slate-player :is(.light-tools,.optics-tools,.mech-buttons,.magnetic-tools,.lab-actions) button{background:var(--panel)}
@media(max-width:800px){body.unified-game .slate-player:not(.diagram-focus):not(:has(.mech-enlarged,.light-enlarged,.optics-enlarged)) :is(.light-tools,.optics-tools,.mech-buttons,.magnetic-tools,.lab-actions){left:8px;bottom:auto;top:calc(38% - 40px);width:calc(100% - 16px)}body.unified-game .ui-scene{padding-bottom:38px}}
@media(max-width:800px) and (max-height:700px){body.unified-game .slate-player:not(.diagram-focus):not(:has(.mech-enlarged,.light-enlarged,.optics-enlarged)) :is(.light-tools,.optics-tools,.mech-buttons,.magnetic-tools,.lab-actions){top:calc(32% - 36px)}}
@media(max-width:800px) and (max-height:600px){body.unified-game .slate-player,body.unified-game .slate-lesson{grid-template-rows:calc(24% + 26px) repeat(18,max-content) minmax(0,1fr)}body.unified-game .slate-stage:before{height:24%}body.unified-game .slate-stage:after{top:calc(24% + 8px)}body.unified-game .slate-player:not(.diagram-focus):not(:has(.mech-enlarged,.light-enlarged,.optics-enlarged)) :is(.light-tools,.optics-tools,.mech-buttons,.magnetic-tools,.lab-actions){top:calc(24% - 34px)}body.unified-game .slate-player .ui-tile{min-height:34px;font-size:11px!important;line-height:14px!important;padding:5px}body.unified-game .slate-player .activity-intro h2{font-size:14px!important}body.unified-game .light-step strong{font-size:12px}body.unified-game .slate-sheet{max-height:76%}}
body.unified-game .optics-quiz[data-placement=true]{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body.unified-game .slate-player:not(.diagram-focus) .magnetic-tools{top:8px!important;bottom:auto!important;background:transparent}
body.unified-game .slate-player [data-work]>.button-row:not(.activity-actions){position:absolute;z-index:4;left:8px;bottom:10px;width:calc(59.184% - 26px);display:flex;justify-content:center;gap:6px;grid-column:auto!important;margin:0!important}
@media(max-width:800px){body.unified-game .slate-player [data-work]>.button-row:not(.activity-actions){bottom:auto;top:calc(38% - 40px);width:calc(100% - 16px)}body.unified-game .slate-stage[style*='--ui-scene-px']:before{height:var(--ui-scene-px)}body.unified-game .slate-stage[style*='--ui-scene-px']:after{top:calc(var(--ui-scene-px) + 8px)}body.unified-game .slate-stage[style*='--ui-scene-px'] :is(.slate-player,.slate-lesson){grid-template-rows:calc(var(--ui-scene-px) + 8px) repeat(18,max-content) minmax(0,1fr)}body.unified-game .slate-stage[style*='--ui-scene-px'] .slate-player:not(.diagram-focus):not(:has(.mech-enlarged,.light-enlarged,.optics-enlarged)) :is(.light-tools,.optics-tools,.mech-buttons,.lab-actions,.button-row:not(.activity-actions)){top:calc(var(--ui-scene-px) - 38px)} }
@media(max-width:800px) and (max-height:700px){body.unified-game .slate-player [data-work]>.button-row:not(.activity-actions){top:calc(32% - 36px)}}
@media(max-width:800px) and (max-height:600px){body.unified-game .slate-player [data-work]>.button-row:not(.activity-actions){top:calc(24% - 34px)}}
body.unified-game :is(.tap-choices,.light-choices)>.ui-tile:last-child:nth-child(odd){grid-column:1/-1}
body.unified-game .panel-enter{animation:none!important}
@media(max-width:800px) and (max-height:600px){body.unified-game [data-type=match] [data-work]>.quiet{display:none}body.unified-game .tap-match [data-pair]{min-height:30px!important;padding:4px 7px!important;font-size:12px!important;line-height:15px!important}body.unified-game .tap-match{gap:5px!important}body.unified-game .tap-match .ui-tile{padding:5px!important;line-height:13px!important;min-height:32px}}
body.unified-game .slate-lesson h1{text-transform:none}
body.unified-game .comic-kicker span{font:700 11px var(--font-sans);background:transparent;color:var(--ink-muted);transform:none;padding:0}
body.unified-game :is(.activity-svg,.slate-art,[data-model],[data-experiment-view],[data-canvas]){filter:none!important}
body.unified-game :is(.diagram-toolbar,.slate-view-tabs,.toggles,.slider-row){background:transparent;border:0;padding:0;min-height:0}
body.unified-game .toggles label{font:700 11px/16px var(--font-sans);margin:0;display:flex;gap:4px;align-items:center}
body.unified-game .kiso-flying-verdict{background:var(--matcha-tint);color:var(--ink);border:2px solid var(--ink);clip-path:none;padding:8px 12px;font:800 16px/20px var(--font-display)}
body.unified-game .kiso-flying-verdict[data-kind=retry]{background:var(--sakura)}
body.unified-game:has(.slate-sheet:not([hidden])) .kiso-flying-verdict{display:none}
