/* Illustrated environments are separate from printable book styles. */
.world-backdrop{position:absolute;inset:0;z-index:-1;overflow:hidden;border-radius:inherit;pointer-events:none;background:var(--book-paper,#fbf4e4)}
.world-backdrop img{width:100%;height:100%;object-fit:cover;object-position:center bottom;opacity:var(--world-art-strength,1);display:block}
.world-fireflies{position:absolute;inset:0;overflow:hidden}.world-fireflies i{position:absolute;left:calc(5% + var(--spark)*18%);bottom:calc(9% + var(--spark)*6%);width:5px;height:5px;border-radius:50%;background:#f5d47e;box-shadow:0 0 12px 4px #f5d47e66;animation:world-spark 5s ease-in-out infinite;animation-delay:calc(var(--spark)*-.8s)}
@keyframes world-spark{0%,100%{opacity:.2;transform:translateY(8px)}50%{opacity:.8;transform:translateY(-12px)}}
.world-topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;min-height:50px;padding:4px 10px;border-bottom:1px solid #608b7b25;background:#fffdf2e8;border-radius:17px 17px 7px 7px;z-index:2}
.world-title{display:flex;align-items:center;gap:10px;min-width:0}.world-title>div{min-width:0}.world-title>div>span{display:block;color:var(--game-accent,#147e80);font:650 11px/1.3 'Noto Sans',sans-serif;letter-spacing:.3px}.world-title h2{margin:3px 0 0;color:var(--game-ink,#173f48);font:550 16px/1.3 'Fredoka','Noto Sans',sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.world-title-icon{display:grid;place-items:center;color:var(--game-secondary,#bc7953);width:32px}.world-title-icon .reader-icon{width:24px;height:24px}
.world-tools{display:flex;align-items:center;gap:6px;flex:none}
#reader .world-tools>button{min-height:40px;min-width:40px;padding:8px;border-radius:12px;background:#eef3e7;color:#275e58;border:1px solid #b9d0bd;box-shadow:0 2px 0 #a9c2b144;font:700 14px 'Noto Sans',sans-serif}.world-tools .reader-icon{width:19px;height:19px}
.world-companion{position:absolute;left:12px;bottom:95px;width:148px;display:grid;justify-items:center;z-index:2;gap:0;pointer-events:none}
.world-speech{background:#fffef3f5;border:1px solid #e4d9bd;border-radius:18px 18px 18px 4px;padding:13px 12px;box-shadow:0 7px 16px #6a745721;font:11px/1.6 'Noto Sans',sans-serif;color:#375952;position:relative}.world-speech>span{display:block;color:#ba784b;margin-bottom:4px}.world-speech .reader-icon{width:20px;height:20px}.world-speech p{margin:0}.world-speech:after{content:'';position:absolute;width:12px;height:12px;bottom:-7px;left:26px;transform:rotate(45deg);background:#fffef3;border-right:1px solid #e4d9bd;border-bottom:1px solid #e4d9bd}
#reader .world-figure{display:block;background:none;border:0;padding:0;box-shadow:none;min-width:0;pointer-events:auto;filter:drop-shadow(0 9px 6px #384f3c24);touch-action:manipulation;border-radius:20px}
#reader .world-figure:focus-visible{outline:3px solid var(--game-accent);outline-offset:-2px}
.world-figure-stage{width:148px;height:148px}
.world-sprite{display:block;width:100%;height:100%;background-image:var(--world-character);background-repeat:no-repeat;background-size:contain;background-position:center;pointer-events:none}
.world-sprite[data-animated="true"]{background-size:400% 300%;background-position:0 0;animation:world-frames 1s steps(4,end) infinite}
.world-figure-stage .world-sprite[data-animated="true"]{animation:world-frames 1s steps(4,end) infinite,world-float 5s ease-in-out infinite}
.world-sprite[data-mood="wave"]{background-position-y:50%}.world-sprite[data-mood="aha"]{background-position-y:100%}
.world-companion-name{font:600 10px 'Noto Sans',sans-serif;color:#486b5a;background:#fffdf2d9;padding:4px 10px;border-radius:20px;max-width:140px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#reader .world-figure-mini{display:none;width:44px;height:44px;flex:none}
@keyframes world-frames{to{background-position-x:133.333333%}}@keyframes world-float{50%{transform:translateY(-5px)}}
#reader .reader-main:has([data-scene-world])>.reader-heading{display:none}
#reader .reader-main:has([data-scene-world]){grid-template-rows:minmax(0,1fr);padding-top:8px}
#reader .game-session[data-scene-world]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;isolation:isolate;background:var(--book-paper)!important;border:1px solid #d8d2b6;border-radius:22px;padding:8px;gap:8px;box-shadow:0 9px 30px #61715c15;color:var(--game-ink)}
#reader .game-session[data-scene-world] .play-stage{margin-left:155px;margin-right:14px;gap:14px;min-height:0;z-index:1}
#reader .game-session[data-scene-world] #puzzle-widget{background:#fffdf5f2!important;border:1px solid #c9d5bd!important;border-radius:22px;box-shadow:0 10px 24px #53674819;padding:18px;scrollbar-width:thin;scrollbar-color:#b5c7b1 transparent;min-height:0}
#reader .game-session[data-scene-world] .game-console{background:#fffef5ee;border-color:#d4dbbf;border-radius:18px;box-shadow:0 6px 20px #61715c14}
#reader .game-session[data-scene-world] .game-console-heading{padding:12px;background:#e9efdd66}.game-session[data-scene-world] .game-world-brand>img{display:none}
#reader .game-session[data-scene-world] .play-toolbar{z-index:3;background:#fffdf3ed;border:1px solid #d5d8bd;border-radius:14px;padding:9px 12px;gap:8px}
#reader .game-session[data-scene-world] .play-toolbar .play-status{color:#4c6c5e;font-size:11px}
#reader .game-session[data-scene-world] .play-toolbar button[data-game-button="primary"]{background:linear-gradient(#ec9975,#d87554);border-color:#bc6749;color:#3b2118;box-shadow:0 3px 0 #a75f4233}
#reader .game-session[data-scene-world] .play-toolbar button[data-game-button="gold"]{background:#fff1d8;border-color:#d9bc88;color:#865a32}
#reader .game-session[data-scene-world] .play-toolbar [data-action="next"]{background:#edf4e7;color:#3b6c5b;border-color:#b7cdb2}
#reader .game-session[data-scene-world] :is(.solve-more>summary,.reading-options>summary){background:#fffdf4;color:#3d665b;border-color:#c3d4bb}
#reader .game-session[data-scene-world] .binary-lab{width:100%;padding:0;--lab-panel:var(--game-panel);--lab-ink:var(--game-ink);--lab-accent:var(--game-accent)}
#reader .game-session[data-scene-world] .binary-lab-heading,#reader .game-session[data-scene-world] .binary-motion{display:none}
#reader .game-session[data-scene-world] .binary-lab-top{margin:0 0 12px}.game-session[data-scene-world] .binary-modes{margin-bottom:10px;background:#e9f0df80;border-color:#b9cec0}
#reader .game-session[data-scene-world] .binary-modes [aria-pressed="true"]{background:var(--game-accent);color:#fffdf4;border-radius:11px;box-shadow:0 3px 6px #48766a22}
#reader .game-session[data-scene-world] .binary-scoreboard{margin:10px 0 14px;gap:10px}.game-session[data-scene-world] .binary-scoreboard>div{padding:10px 14px;border:1px solid #ccd9c3;background:linear-gradient(#f8faf0,#eaf2e4);border-radius:12px}.game-session[data-scene-world] .binary-scoreboard>div:last-child{background:linear-gradient(#fff5df,#f7ead3);border-color:#e1c8a3}.game-session[data-scene-world] .binary-scoreboard dd{font-size:23px}
#reader .game-session[data-scene-world] .binary-lab-workspace{grid-template-columns:minmax(0,1fr) 210px;gap:14px}
#reader .game-session[data-scene-world] .binary-mission{padding:18px;background:linear-gradient(#fffef8,#f7f8ed);border:1px solid #ccdbc8;border-radius:19px;box-shadow:0 5px 14px #556d4f0d}
#reader .game-session[data-scene-world] .binary-target{margin:12px 0 16px}.game-session[data-scene-world] .binary-target-tag{border-color:#d2dfcd;background:#e8f0df;color:#496c60}
#reader .game-session[data-scene-world] .learning-bit{background:linear-gradient(#f6fcf1,#e4f0df);color:var(--game-ink);border:1px solid #90beb3;box-shadow:0 4px 0 #a6c3af88;border-radius:14px;min-height:100px;gap:4px;transition:background .18s,transform .18s}
#reader .game-session[data-scene-world] .learning-bit[aria-pressed="true"]{background:linear-gradient(#bfe9d8,#91d0bd);color:#174b49;box-shadow:0 4px 0 #6da99566;transform:translateY(-1px)}
.bit-switch{display:block!important;position:relative;width:40px;height:21px;background:#c2d6c5;border:1px solid #98b6a3;border-radius:20px;box-shadow:inset 0 1px 3px #38665525}.bit-switch i{position:absolute;left:2px;top:2px;width:15px;height:15px;background:#fffef3;border-radius:50%;box-shadow:0 1px 3px #315c4b44;transition:transform .2s}.learning-bit[aria-pressed="true"] .bit-switch{background:#338b7d;border-color:#2b786d}.learning-bit[aria-pressed="true"] .bit-switch i{transform:translateX(19px)}
#reader .game-session[data-scene-world] .learning-bit strong{font-size:25px}.game-session[data-scene-world] .learning-bit>span:not(.bit-switch){font-size:9px;color:#547567;letter-spacing:1px}.game-session[data-scene-world] .learning-bit small{font-size:12px;font-weight:650}
#reader .game-session[data-scene-world] .binary-signal-readout{padding:12px 14px;margin-top:16px;border:1px solid #d4e1cd;background:#e9f1e1;border-radius:12px}.game-session[data-scene-world] .binary-signal-readout code{color:#266966}
#reader .game-session[data-scene-world] :is(.binary-level,.binary-help){background:#f6f7eae6;border-color:#cbd7bb;color:#3d6252}.game-session[data-scene-world] .binary-level>span{color:#aa6d3b}.game-session[data-scene-world] .binary-level h3{font-family:'Fredoka',sans-serif;font-size:19px}.game-session[data-scene-world] .binary-level progress{height:7px}
#reader .game-session[data-scene-world] :is(.binary-extra-actions,.binary-mission-actions) button{background:#fcfcf1;color:#356455;border-color:#bfd3bd}
#reader .game-session[data-scene-world] .binary-toolbar-actions button{background:#f0f4e6;color:#3d665b;border-color:#bdcfb8}
#reader .game-session[data-scene-world] .binary-toolbar-actions .binary-toolbar-primary{background:linear-gradient(#ec9975,#d87554);color:#3b2118;border-color:#bd7554;box-shadow:0 2px 0 #af715533}
#reader .game-session[data-scene-world] .learning-game{width:min(840px,100%);color:var(--game-ink)}
#reader .game-session[data-scene-world] .learning-rounds{justify-content:center;margin-bottom:6px}
#reader .game-session[data-scene-world] .learning-rounds button{background:#fbfcf2;border-color:#b9cec0;color:#456a5b;position:relative}.game-session[data-scene-world] .learning-rounds [aria-current="step"]{background:var(--game-accent)!important;color:#fffdf4!important;box-shadow:0 3px 7px #386c5e33;outline-color:#d2e5d4!important}
#reader .game-session[data-scene-world] .learning-game header h2{font:550 clamp(20px,2vw,28px)/1.3 'Fredoka','Noto Sans',sans-serif;color:var(--game-ink)}
#reader .game-session[data-scene-world] .learning-buddy{display:none}
#reader .game-session[data-scene-world] .learning-circuit{background:linear-gradient(145deg,#f7faeb,#e1efdc);border:1px solid #bcd5b6;border-radius:20px;box-shadow:inset 0 1px 8px #fff}
#reader .game-session[data-scene-world] .learning-wire{background:linear-gradient(#ba9956,#d6b273);box-shadow:0 1px 3px #7e6f3e33}
#reader .game-session[data-scene-world] .learning-gate{background:#fffdf2;border-color:#8bb7a3;box-shadow:0 6px 0 #9bbba166;color:#2d6455}
#reader .game-session[data-scene-world] .learning-signal b{background:#e1f0dd;border-color:#94bfa4;color:#2c695a;box-shadow:0 3px 0 #a6c3af55}
#reader .game-session[data-scene-world] .learning-choices button{background:linear-gradient(#fffef7,#f0f5e8);border-color:#c0d5bd;border-radius:15px;box-shadow:0 3px 0 #c5d5bb66;transition:transform .15s,background .15s;color:#35594f}
#reader .game-session[data-scene-world] .learning-choices [aria-pressed="true"]{background:linear-gradient(#d5eee0,#bce0ca);border-color:#6f9e88;color:#245947}
#reader .game-session[data-scene-world] .learning-choices button>b{background:#e4edd8;border-radius:50%;width:32px;height:32px;color:#47715b}
#reader .game-session[data-scene-world] .learning-order-token{background:linear-gradient(#fffef6,#f0f5e5);border-color:#aecaac;border-radius:14px;box-shadow:0 4px 0 #c1d2b666;color:#355b48}
#reader .game-session[data-scene-world] .learning-order-token>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e2edd6;color:#4d7954;font-weight:700}
#reader .game-session[data-scene-world] .learning-order-arrows button{background:#eff4e2;color:#4b7657;border-color:#bfcead}
#reader .game-session[data-scene-world] .learning-feedback{border-radius:14px;border-color:#dbc99e;background:#fff3d9;color:#785b30;box-shadow:0 4px 12px #9779550b}
#reader .game-session[data-scene-world] .learning-feedback[data-correct="true"]{background:#e6f3df;border-color:#a8c59d;color:#3b694d}
#reader .game-session[data-scene-world] .learning-game>footer button{background:#f6f8e9;border:1px solid #c0d1b9;border-radius:12px;color:#45694f}
#reader .game-session[data-scene-world][data-game-motion="false"] :is(.world-sprite,.world-figure-stage,.world-fireflies i){animation:none!important}
#reader .game-session[data-scene-world].abc-play,#reader .game-session[data-scene-world].story-play{grid-template-rows:auto minmax(0,1fr)}
#reader .game-session[data-scene-world]:has(>.puzzle-keyboard-slot:not(:empty)){grid-template-rows:auto minmax(0,1fr) auto auto}
#reader .game-session[data-scene-world]:is(.abc-play,.story-play) .play-stage{grid-template-columns:minmax(0,1fr)}
#reader .game-session[data-scene-world]:is(.abc-play,.story-play) #puzzle-widget{overflow:auto;padding:14px}
#reader .game-session[data-scene-world] .story-book{background:#fffdf4e8}.game-session[data-scene-world] .abc-book{background:#fffdf4e8}
@media(min-width:1200px){#reader .game-session[data-scene-world]:has(.binary-lab) .play-stage{margin-right:80px}}
@media(max-width:1199px){.world-companion{display:none}#reader .world-figure-mini{display:block}#reader .game-session[data-scene-world] .play-stage{margin-left:16px;margin-right:16px}.world-topbar{min-height:46px}.world-title h2{font-size:15px}#reader .game-session[data-scene-world] .binary-lab-workspace{grid-template-columns:minmax(0,1fr) 200px}}
@media(max-width:760px){#reader .game-session[data-scene-world]{padding:5px;gap:6px;border-radius:16px}#reader .game-session[data-scene-world] .play-stage{margin:0 3px;gap:7px}#reader .game-session[data-scene-world] #puzzle-widget{padding:12px;border-radius:16px;background:#fffdf5ec!important}.world-topbar{padding:2px 5px;min-height:48px;gap:7px}.world-title{gap:5px}.world-title>div>span{font-size:9px}.world-title h2{font-size:13px;margin-top:2px}#reader .world-figure-mini{width:40px;height:44px}.world-tools{gap:4px}#reader .world-tools>button{min-width:36px;min-height:40px;width:36px;padding:7px;font-size:13px}.world-tools .reader-icon{width:17px;height:17px}.world-backdrop img{position:absolute;bottom:0;height:auto;width:100%;object-fit:contain}.world-backdrop{background:linear-gradient(#fbf4e4,#f7efdb)}#reader .game-session[data-scene-world] .play-toolbar{padding:7px;border-radius:12px}#reader .game-session[data-scene-world] .binary-lab-workspace{grid-template-columns:minmax(0,1fr)}#reader .game-session[data-scene-world] .binary-scoreboard{gap:6px;margin:9px 0 11px}.game-session[data-scene-world] .binary-scoreboard>div{padding:9px 10px}.game-session[data-scene-world] .binary-scoreboard dd{font-size:20px}#reader .game-session[data-scene-world] .binary-mission{padding:12px}.game-session[data-scene-world] .binary-target{margin:8px 0 12px}#reader .game-session[data-scene-world] .learning-bit{min-height:92px;padding:8px 4px}#reader .game-session[data-scene-world] .binary-signal-readout{margin-top:14px;padding:10px}.world-fireflies{display:none}#reader .game-session[data-scene-world] .game-console{background:#fffdf4f2;max-height:160px}#reader .game-session[data-scene-world] .learning-game header h2{font-size:20px}#reader .game-session[data-scene-world] .binary-lab-top{margin-bottom:4px}#reader .game-session[data-scene-world] .binary-modes button{font-size:11px;padding:8px 10px}.game-session[data-scene-world] .binary-lab-guide{gap:9px}}
@media(max-width:360px){.world-title h2{max-width:150px}#reader .world-figure-mini{width:32px}.world-title>div>span{font-size:8px}#reader .game-session[data-scene-world] #puzzle-widget{padding:9px}#reader .game-session[data-scene-world] .learning-bit{min-height:86px}.world-tools>button{min-width:32px!important;width:32px!important}.world-topbar{gap:4px}.world-title{gap:3px}}
@media(max-height:560px) and (min-width:761px){.world-topbar{min-height:38px;padding-top:0;padding-bottom:0}#reader .world-tools>button{min-height:32px;min-width:34px;padding:5px}#reader .world-figure-mini{height:36px}.world-title>div>span{display:none}#reader .game-session[data-scene-world] .play-stage{margin-left:4px;margin-right:4px}.world-companion{display:none}#reader .game-session[data-scene-world] #puzzle-widget{padding:9px}.game-session[data-scene-world] .binary-scoreboard{margin:5px 0}.game-session[data-scene-world] .binary-scoreboard>div{padding:6px 10px}}
@media(prefers-reduced-motion:reduce){.world-sprite,.world-figure-stage,.world-fireflies i{animation:none!important}.bit-switch i{transition:none!important}}
/* A chosen custom palette also colours the illustrated world's UI surfaces. */
#reader [data-scene-palette="custom"] :is(.world-topbar,.play-toolbar){background:color-mix(in srgb,var(--game-panel) 95%,transparent)}
#reader .game-session[data-scene-palette="custom"] #puzzle-widget{background:color-mix(in srgb,var(--game-panel) 94%,transparent)!important}
#reader [data-scene-palette="custom"] :is(.binary-mission,.binary-level,.binary-help,.learning-circuit,.game-console,.learning-order-token,.learning-choices button,.learning-game>footer button){background:var(--game-panel);color:var(--game-ink);border-color:color-mix(in srgb,var(--game-accent) 40%,var(--game-panel))}
#reader [data-scene-palette="custom"] :is(.binary-scoreboard>div,.binary-signal-readout,.learning-bit){background:color-mix(in srgb,var(--game-panel) 87%,var(--game-accent));color:var(--game-ink);border-color:color-mix(in srgb,var(--game-accent) 40%,var(--game-panel))}
#reader [data-scene-palette="custom"] :is(.binary-signal-readout code,.binary-level h3,.learning-bit>span,.play-status){color:var(--game-ink)}
#reader [data-scene-palette="custom"] .world-title>div>span{color:var(--game-ink);opacity:.8}
#reader [data-scene-palette="custom"] .learning-bit[aria-pressed="true"]{background:color-mix(in srgb,var(--game-panel) 65%,var(--game-accent));color:var(--game-ink)}
#reader [data-scene-palette="custom"] .learning-gate{background:var(--game-panel);color:var(--game-ink)}

/* Content-sized islands leave the illustrated world visible on every side. */
#reader .game-session[data-scene-world] .world-topbar{background:transparent;border:0;padding:0 4px;border-radius:0}
#reader .game-session[data-scene-world] .world-title{padding:6px 11px;background:#fffdf3ed;border:1px solid #d8d6bc;border-radius:12px;max-width:calc(100% - 100px)}
#reader .game-session[data-scene-world] .play-stage{margin-left:164px;margin-right:92px;gap:16px}
#reader .game-session[data-scene-world] #puzzle-widget{background:transparent!important;border:0!important;box-shadow:none;border-radius:0;padding:6px;scrollbar-color:#9bb79a70 transparent}
#reader .game-session[data-scene-world] .game-console{align-self:start;height:auto;max-height:100%;background:#fffef5f2}
#reader .game-session[data-scene-world] .solve-surface{background:var(--game-panel);border-radius:14px;box-shadow:0 8px 20px #38513b1a;overflow:hidden}
#reader .game-session[data-scene-world]:is([data-kind="binary"],[data-kind="logic"],[data-kind="sequence"],[data-kind="itquiz"]) .play-stage{overflow:hidden;display:block}
#reader .game-session[data-scene-world]:is([data-kind="binary"],[data-kind="logic"],[data-kind="sequence"],[data-kind="itquiz"]) #puzzle-widget{display:flex;align-items:center;justify-content:flex-start;height:100%;overflow:auto}
#reader .game-session[data-scene-world] .solve-flow{width:100%;height:auto;flex:0 0 auto;margin-block:auto}
#reader .game-session[data-scene-world] .learning-game{width:min(780px,100%);box-sizing:border-box;padding:18px 22px;margin:auto;background:var(--game-panel);border:1px solid #cbd7bd;border-radius:20px;box-shadow:0 9px 24px #45613c1c}
#reader .game-session[data-scene-world] .learning-rounds{margin:0;padding:0 1px 8px}
#reader .game-session[data-scene-world] .learning-game header h2{font-size:clamp(20px,1.8vw,25px);margin:7px 0}
#reader .game-session[data-scene-world] .learning-game header p{margin:0 0 10px}
#reader .game-session[data-scene-world] .learning-binary-target{margin:8px 0 12px}
#reader .game-session[data-scene-world] .learning-binary-target strong{font-size:34px}
#reader .game-session[data-scene-world] .learning-bit{min-height:82px;padding:7px 4px;gap:3px}
#reader .game-session[data-scene-world] .learning-live-sum{margin:12px 0;padding:12px 14px}
#reader .game-session[data-scene-world] .learning-game>footer{margin-top:12px}
#reader .game-session[data-scene-world] .learning-circuit{margin:12px 0;padding:18px 8px}
#reader .game-session[data-scene-world] .learning-order-list{margin:12px 0}
#reader .game-session[data-scene-world] .learning-choices{margin:12px 0}
#reader .game-session[data-scene-world] .binary-modes{margin-bottom:10px}
#reader .game-session[data-scene-world] .learning-game.binary-lab{width:min(940px,100%);padding:0;background:none;border:0;border-radius:0;box-shadow:none}
#reader .game-session[data-scene-world] .binary-mission{padding:14px 16px}
#reader .game-session[data-scene-world] .binary-scoreboard{margin:8px 0 12px}
#reader .game-session[data-scene-world] .binary-scoreboard>div{padding:9px 12px;background:var(--game-panel)}
#reader .game-session[data-scene-world] .play-toolbar{background:transparent;border:0;box-shadow:none;padding:3px 7px;gap:8px}
#reader .game-session[data-scene-world] .puzzle-progress{background:#fffdf3ed;border:1px solid #d0d8bf;border-radius:12px;padding:7px 10px;max-width:280px}
#reader .game-session[data-scene-world][data-scene-palette="custom"] :is(.world-title,.puzzle-progress){background:var(--game-panel)}
@media(min-width:1200px){#reader .game-session[data-scene-world]:has(.binary-lab) .play-stage{margin-left:164px;margin-right:100px}}
@media(max-width:1199px){#reader .game-session[data-scene-world] .play-stage{margin-left:56px;margin-right:56px}}
@media(max-width:900px){#reader .game-session[data-scene-world] .play-stage{margin-left:22px;margin-right:22px}}
@media(max-width:760px){
 #reader .game-session[data-scene-world] .play-stage{margin:0 8px}
 #reader .game-session[data-scene-world] #puzzle-widget{padding:3px}
 #reader .game-session[data-scene-world] .world-title{padding:2px 6px;max-width:calc(100% - 80px)}
 #reader .game-session[data-scene-world] .learning-game{padding:13px 12px;border-radius:16px}
 #reader .game-session[data-scene-world] .learning-game.binary-lab{padding:0}
 #reader .game-session[data-scene-world] .learning-game header h2{font-size:20px}
 #reader .game-session[data-scene-world] .learning-bit{min-height:80px}
 #reader .game-session[data-scene-world] .binary-scoreboard{gap:5px;margin:7px 0 10px}
 #reader .game-session[data-scene-world] .binary-mission{padding:12px}
 #reader .game-session[data-scene-world] .play-toolbar{padding:3px 4px!important}
 #reader .game-session[data-scene-world] .game-console{background:#fffef5f2}
}
@media(max-height:560px) and (min-width:761px){
 #reader .game-session[data-scene-world] .play-stage{margin-left:30px;margin-right:30px}
 #reader .game-session[data-scene-world] .learning-game{padding:12px 16px}
 #reader .game-session[data-scene-world] .learning-game.binary-lab{padding:0}
}
.learning-route{min-width:0}
#reader .game-session[data-scene-world] .learning-route{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;min-width:0}
#reader .game-session[data-scene-world] .learning-route>.binary-modes{flex:none;margin:0}
#reader .game-session[data-scene-world] .learning-route>.learning-rounds{flex:1;min-width:0;margin:0;padding:3px 1px;justify-content:flex-end}
#reader .game-session[data-scene-world] .learning-game:not(.binary-lab) .learning-bit{min-height:74px;padding:6px 4px}
#reader .game-session[data-scene-world] .learning-game:not(.binary-lab) .learning-bit>strong{display:none}
#reader .game-session[data-scene-world] .learning-game>header .learning-feedback{margin:8px 0 10px;padding:9px 12px;font-size:12px}
#reader .game-session[data-scene-world] .learning-game>header .learning-feedback p{margin:4px 0 0;font-size:12px}
@media(max-width:760px){
 #reader .game-session[data-scene-world] .learning-route{flex-wrap:wrap;gap:7px}
 #reader .game-session[data-scene-world] .learning-route>.learning-rounds{flex:1 1 100%;justify-content:center}
}

/* Author-controlled composition and decorated, tactile play surfaces. */
.game-session[data-background-fit="contain"] .world-backdrop img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center}
.game-session[data-background-fit="cover"] .world-backdrop img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"]) .learning-game.binary-lab{width:min(var(--scene-stage-width,840px),100%)}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"]) .learning-game:not(.binary-lab){width:min(var(--scene-stage-width,840px),780px,100%)}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"]) :is(.binary-mission,.learning-game:not(.binary-lab),.solve-surface,.game-console){background:color-mix(in srgb,var(--game-panel) var(--scene-surface-opacity,88%),transparent)}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"]) .binary-scoreboard{gap:8px;margin:5px 0 10px}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"]) .binary-scoreboard>div{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:7px 12px;border-radius:30px;background:color-mix(in srgb,var(--game-panel) 80%,transparent);box-shadow:0 2px 0 #ffffff66}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"]) .binary-scoreboard dd{font-size:20px}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"]) .binary-scoreboard small{font-size:10px}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"]) .binary-lab-workspace{grid-template-columns:minmax(0,1fr) 185px;gap:12px}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"]) .world-title{max-width:calc(100% - 145px)}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-surface-style="console"] :is(.binary-mission,.learning-game:not(.binary-lab),.solve-surface){position:relative;border:2px solid color-mix(in srgb,var(--game-accent) 55%,#d6c8a0);border-radius:22px;box-shadow:inset 0 0 0 5px #fffdf370,0 6px 0 #9b8c6c55,0 16px 26px #324e3822;background-image:radial-gradient(circle at 10px 10px,#857f6477 2px,#fff8df 3px,transparent 4px),radial-gradient(circle at calc(100% - 10px) 10px,#857f6477 2px,#fff8df 3px,transparent 4px),radial-gradient(circle at 10px calc(100% - 10px),#857f6477 2px,#fff8df 3px,transparent 4px),radial-gradient(circle at calc(100% - 10px) calc(100% - 10px),#857f6477 2px,#fff8df 3px,transparent 4px)}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-surface-style="console"] .learning-bits{position:relative;padding:8px 0 14px;border-bottom:4px double color-mix(in srgb,var(--game-accent) 45%,transparent);gap:8px}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-surface-style="console"] .learning-bit{border-radius:12px 12px 20px 20px;box-shadow:inset 0 0 0 3px #fffdf37a,0 4px 0 #9baf9866;background:linear-gradient(140deg,#fffdf3cc,#dce8d480);min-height:82px}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-surface-style="console"] .learning-bit[aria-pressed="true"]{box-shadow:inset 0 0 0 3px #d1f5db,0 4px 0 #709c8866,0 0 18px #7cdda666}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-surface-style="console"] .learning-bit strong{display:none}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-surface-style="console"] .bit-switch{width:46px;height:26px;background:#435a4e;box-shadow:inset 0 2px 4px #18372680;border:2px solid #b6c7a5}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-surface-style="console"] .bit-switch i{width:18px;height:18px;background:linear-gradient(#fffef2,#c6d3b3)}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-surface-style="console"] .learning-bit[aria-pressed="true"] .bit-switch{background:#68b589}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-surface-style="console"] .learning-bit[aria-pressed="true"] .bit-switch i{transform:translateX(20px)}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-surface-style="console"] :is(.learning-live-sum,.binary-signal-readout){background:#254d43e8;border:3px solid #c5bd9c;box-shadow:inset 0 3px 12px #142b2480;color:#e1f2cb;border-radius:12px}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-surface-style="console"] :is(.learning-live-sum,.binary-signal-readout) :is(code,span,small,b){color:#e1f2cb;text-shadow:0 0 8px #a1e4a355}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-surface-style="paper"] :is(.binary-mission,.learning-game:not(.binary-lab),.solve-surface){border-radius:4px 16px 4px 16px;outline:1px dashed #baa16d;outline-offset:-8px;box-shadow:3px 6px 0 #b6ac8980,0 14px 25px #5e54392b}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-surface-style="glass"] :is(.binary-mission,.learning-game:not(.binary-lab),.solve-surface){backdrop-filter:blur(4px);border:1px solid #ffffffc0;box-shadow:inset 0 1px 0 #fff,0 10px 28px #244d4326}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-surface-style="plain"] :is(.binary-mission,.learning-game:not(.binary-lab),.solve-surface){border:0;box-shadow:none;border-radius:12px}
#reader .game-session:has([data-action="worldOverview"][aria-pressed="true"]) :is(.play-stage,.play-toolbar,.puzzle-keyboard-slot){visibility:hidden;pointer-events:none}
.scene-decoration{position:absolute;display:block;aspect-ratio:1;transform:translate(-50%,-50%) rotate(var(--decor-rotation,0deg));opacity:var(--decor-opacity,1);pointer-events:none!important;z-index:0;filter:drop-shadow(0 6px 5px #284c4124)}
.scene-decoration[hidden]{display:none!important}.scene-decoration[data-plane="front"]{z-index:2}.scene-decoration>span{display:grid;place-items:center;width:100%;height:100%}.scene-decoration :is(svg,img){width:100%;height:100%;object-fit:contain;display:block}.scene-label{padding:8px 14px;font:600 clamp(10px,1.5vw,22px)/1.3 'Fredoka',sans-serif;text-align:center;background:#fffdf2e6;border:1px solid currentColor;border-radius:14px}
.scene-decoration[data-motion="float"]>span{animation:scene-drift 5s ease-in-out infinite}.scene-decoration[data-motion="spin"]>span{animation:scene-turn 24s linear infinite}.scene-decoration[data-motion="pulse"]>span{animation:scene-pulse 3s ease-in-out infinite}.scene-decoration[data-motion="sway"]>span{animation:scene-sway 4s ease-in-out infinite}
.scene-decoration[data-reaction="glow"]{filter:drop-shadow(0 0 16px currentColor)}.scene-decoration[data-reaction="pulse"]>span{animation:scene-pulse .7s ease-in-out 3}.scene-decoration[data-reaction="bounce"]>span{animation:scene-drift .5s ease-in-out 3}
@keyframes scene-drift{50%{transform:translateY(-12px)}}@keyframes scene-turn{to{transform:rotate(360deg)}}@keyframes scene-pulse{50%{transform:scale(1.12);filter:brightness(1.2)}}@keyframes scene-sway{50%{transform:rotate(9deg)}}
.game-session[data-game-motion="false"] .scene-decoration>span{animation:none!important}
@media(prefers-reduced-motion:reduce){.scene-decoration>span{animation:none!important}}
@media(max-width:760px){#reader .game-session:is([data-scene-world],[data-scene-composed="true"]) .binary-lab-workspace{grid-template-columns:minmax(0,1fr)}#reader .game-session:is([data-scene-world],[data-scene-composed="true"]) .binary-scoreboard>div{display:block;padding:6px 9px;border-radius:12px}#reader .game-session:is([data-scene-world],[data-scene-composed="true"]) .binary-scoreboard small{display:none}#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-surface-style="console"] .learning-bit{min-height:76px}#reader .game-session:is([data-scene-world],[data-scene-composed="true"]) .world-title{max-width:calc(100% - 118px)}}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-surface-style="console"] :is(.learning-live-sum,.binary-signal-readout){background:#254d43f5;color:#e1f2cb}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-surface-style="console"] :is(.learning-live-sum,.binary-signal-readout) :is(code,span,small,b,strong){color:#e1f2cb}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-surface-style="console"] .learning-game:not(.binary-lab){padding-top:16px;padding-bottom:16px}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-surface-style="console"] .learning-game:not(.binary-lab) .learning-bits{padding:0 0 7px}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-surface-style="console"] .learning-game:not(.binary-lab) .learning-bit{min-height:68px}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-surface-style="console"] .learning-live-sum{margin:8px 0;padding:10px 12px}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-stage-anchor="left"] .learning-game{margin-left:0;margin-right:auto}
#reader .game-session:is([data-scene-world],[data-scene-composed="true"])[data-stage-anchor="right"] .learning-game{margin-left:auto;margin-right:0}

.game-session[data-background-fit="contain"] .game-scene-art>img{object-fit:contain}
#reader .game-session[data-scene-world][data-scene-palette="custom"][data-surface-style="console"] .learning-bit{background:var(--game-panel);color:var(--game-ink)}
#reader .game-session[data-scene-world][data-scene-palette="custom"][data-surface-style="console"] .learning-bit[aria-pressed="true"]{background:color-mix(in srgb,var(--game-panel) 92%,var(--game-accent))}

/* Learning surfaces respond to their actual available space, including focus
   mode and short landscape screens. Authored pictures stay in the opened book. */
#reader .learning-session .play-stage{container-name:learning-stage;container-type:size}
#reader .learning-session #puzzle-widget{min-height:0;min-width:0;overscroll-behavior:contain;scrollbar-gutter:stable}
#reader .learning-session .learning-game{box-sizing:border-box;max-width:100%}
#reader .learning-session .learning-bits{min-width:0}
#reader .learning-session .learning-bit{min-width:0}
#reader .learning-session[data-surface-style="paper"] .binary-lab-top{background:color-mix(in srgb,var(--game-panel) 96%,transparent);border:1px solid #cbd8c8;border-radius:12px;padding:6px 8px}
#reader .learning-session[data-surface-style="paper"] .binary-challenge-controls{background:color-mix(in srgb,var(--game-panel) 96%,transparent);border-radius:9px;padding:5px 10px;color:var(--game-ink)}
#reader .learning-session[data-surface-style="paper"] .binary-countdown{color:var(--game-ink);padding:4px 6px;flex:none}
@container learning-stage (max-height:720px){
 #reader .learning-session .binary-lab-top{margin:0 0 6px}
 #reader .learning-session .binary-lab-top .binary-modes{margin:0}
 #reader .learning-session .binary-challenge-controls{display:flex;flex-wrap:wrap;gap:3px 12px;align-items:center;margin:0 0 6px;font-size:12px}
 #reader .learning-session .binary-challenge-controls p{margin:0;font-size:11px}
 #reader .learning-session .binary-scoreboard{margin:5px 0 8px;gap:6px}
 #reader .learning-session .binary-scoreboard>div{padding:6px 10px}
 #reader .learning-session .binary-scoreboard dd{font-size:20px}
 #reader .learning-session .binary-mission{padding:10px 12px}
 #reader .learning-session .binary-target{margin:6px 0 10px;gap:8px}
 #reader .learning-session .binary-target strong{font-size:44px}
 #reader .learning-session .binary-lab .learning-bit{min-height:64px;padding:6px 3px;gap:3px}
 #reader .learning-session .binary-signal-readout{padding:8px 0;margin-top:7px;gap:4px}
 #reader .learning-session .binary-mission-actions{margin-top:8px;gap:6px}
 #reader .learning-session .binary-lab-guide{gap:8px}
 #reader .learning-session .binary-level{padding:10px 12px}
 #reader .learning-session .binary-level h3{margin:6px 0;font-size:16px}
 #reader .learning-session .binary-level progress{margin:8px 0}
 #reader .learning-session .binary-help{padding:9px 12px}
 #reader .learning-session .quiz-mode-row{margin-bottom:8px}
 #reader .learning-session .quiz-topline{gap:8px;margin-bottom:6px}
 #reader .learning-session .quiz-scoreboard{margin:6px 0 10px}
 #reader .learning-session .quiz-question h2{margin:6px 0;font-size:clamp(18px,2.5cqw,24px);line-height:1.35}
 #reader .learning-session .quiz-question p{margin:5px 0 8px}
 #reader .learning-session .quiz-choices{gap:7px;margin:8px 0}
 #reader .learning-session .quiz-secondary-actions{margin-top:8px}
 #reader .learning-session .learning-game>header h2{margin:6px 0 8px;line-height:1.35}
 #reader .learning-session .learning-game>header p{margin:5px 0 10px}
}
@container learning-stage (max-width:500px){
 #reader .learning-session .learning-bit{min-height:64px;padding:6px 3px}
 #reader .learning-session .learning-rounds{max-width:100%;overflow-x:auto}
 #reader .learning-session .learning-game>footer{flex-wrap:wrap;gap:6px}
 #reader .learning-session .learning-game>footer>div{margin-left:auto}
 #reader .learning-session .learning-order-token{min-height:44px;line-height:1.4}
 #reader .learning-session .learning-order-list{gap:7px;margin:10px 0}
 #reader .learning-session .binary-fixed-code{flex-wrap:wrap;justify-content:center}
}
@container learning-stage (min-width:560px) and (max-height:340px){
 #reader .learning-session .learning-game[data-learning-kind=logic]{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(240px,.9fr);gap:5px 14px;padding:8px 12px}
 #reader .learning-session .learning-game[data-learning-kind=logic]>.learning-route{grid-column:2;grid-row:1;margin:0}
 #reader .learning-session .learning-game[data-learning-kind=logic]>header{grid-column:1;grid-row:1/3}
 #reader .learning-session .learning-game[data-learning-kind=logic]>header h2{font-size:18px}
 #reader .learning-session .learning-game[data-learning-kind=logic]>.learning-circuit{grid-column:2;grid-row:2/4;margin:0;padding:10px 5px;align-self:start}
 #reader .learning-session .learning-game[data-learning-kind=logic]>.learning-choices{grid-column:1;grid-row:3;margin:2px 0}
 #reader .learning-session .learning-game[data-learning-kind=logic] .learning-signals button{min-height:44px;padding:5px;font-size:22px}
 #reader .learning-session .learning-game[data-learning-kind=logic]>footer{grid-column:1/-1;margin:2px 0 0}
 #reader .learning-session .learning-game[data-learning-kind=sequence]{display:grid;grid-template-columns:minmax(0,.9fr) minmax(260px,1.1fr);gap:6px 14px;padding:8px 12px}
 #reader .learning-session .learning-game[data-learning-kind=sequence]>.learning-route{grid-column:1;grid-row:1;margin:0}
 #reader .learning-session .learning-game[data-learning-kind=sequence]>header{grid-column:1;grid-row:2}
 #reader .learning-session .learning-game[data-learning-kind=sequence]>header h2{font-size:18px}
 #reader .learning-session .learning-game[data-learning-kind=sequence]>.learning-order-list{grid-column:2;grid-row:1/4;margin:0;gap:5px}
 #reader .learning-session .learning-game[data-learning-kind=sequence]>footer{grid-column:1;grid-row:3;margin:0}
 #reader .learning-session .learning-order-token{min-height:44px;padding:7px;font-size:12px}
 #reader .learning-session .learning-order-arrows button{min-height:28px}
}

/* The task is a fitted game surface. Only optional help panels scroll. */
#reader .learning-session #puzzle-widget[data-learning-fit]{position:relative;overflow:hidden!important;scrollbar-gutter:auto;display:block}
#reader .learning-session:has([data-learning-fit]) .play-stage{overflow:hidden}
#reader .learning-session [data-learning-fit] .solve-flow{position:static;width:auto;max-width:none}
#reader .learning-session [data-learning-fit] .learning-game{position:absolute;margin:0;max-width:none!important;transform-origin:top left}
#reader .learning-session .binary-lab-workspace{grid-template-columns:minmax(0,1fr)!important;position:relative}
#reader .learning-session .binary-guide-panel{margin-top:8px;color:var(--game-ink)}
#reader .learning-session .binary-guide-panel>summary{cursor:pointer;border:1px solid #b9cbb5;border-radius:10px;background:var(--game-panel);padding:8px 12px;font-size:12px;min-height:40px;box-sizing:border-box}
#reader .learning-session .binary-guide-panel[open]{position:absolute;inset:0;z-index:5;border:1px solid #b9cbb5;border-radius:12px;background:var(--game-panel);display:flex;flex-direction:column;margin:0;box-shadow:0 8px 25px #142d4940}
#reader .learning-session .binary-guide-panel[open]>.binary-lab-guide{overflow:auto;min-height:0;padding:12px;overscroll-behavior:contain}
#reader .learning-session .binary-fixed-code{display:flex;flex-wrap:wrap;gap:5px;justify-content:center;margin:8px 0}
#reader .learning-session .binary-fixed-code>span{display:grid;place-items:center;min-width:24px;min-height:36px;border:1px solid #b9cbb5;border-radius:6px;background:var(--game-panel);font:700 20px monospace}
#reader .learning-session .binary-decimal-answer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 0;font-size:12px}
#reader .learning-session .binary-decimal-answer input{min-width:0;width:45%;box-sizing:border-box;min-height:44px;padding:5px 10px;font-size:22px;color:var(--game-ink);background:var(--game-panel);border:1px solid #b9cbb5;border-radius:8px}
#reader .learning-session .binary-number-pad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#reader .learning-session .binary-number-pad button{min-width:0;min-height:44px;padding:6px;font-size:18px;background:var(--game-panel);color:var(--game-ink);border:1px solid #b9cbb5;border-radius:8px;box-shadow:0 2px 0 #b9cbb555}
#reader .learning-session [data-learning-compact=true] .learning-game{padding:10px 12px}
#reader .learning-session [data-learning-compact=true] .binary-lab{padding:0}
#reader .learning-session [data-learning-compact=true] :is(.binary-lab-heading,.quiz-topline,.quiz-rules-strip,.binary-challenge-controls){display:none}
#reader .learning-session [data-learning-compact=true] :is(.quiz-question>p,.learning-game>header>p){display:none}
#reader .learning-session [data-learning-compact=true] :is(.binary-scoreboard,.quiz-scoreboard){margin:5px 0;gap:5px}
#reader .learning-session [data-learning-compact=true] .binary-scoreboard>div{display:flex;align-items:center;justify-content:center;gap:6px;padding:5px}
#reader .learning-session [data-learning-compact=true] .binary-scoreboard dd{margin:0;font-size:18px}
#reader .learning-session [data-learning-compact=true] .binary-score-icon{display:none}
#reader .learning-session [data-learning-compact=true] .binary-mission{padding:8px 10px}
#reader .learning-session [data-learning-compact=true] .binary-target{margin:4px 0}
#reader .learning-session [data-learning-compact=true] .binary-target strong{font-size:36px}
#reader .learning-session [data-learning-compact=true] .binary-signal-readout{margin-top:4px;padding:4px 0;gap:2px}
#reader .learning-session [data-learning-compact=true] :is(.learning-rounds,.quiz-rounds){margin:0 0 5px;padding:2px;flex-wrap:wrap;overflow:visible}
#reader .learning-session [data-learning-compact=true] :is(.quiz-choices,.learning-choices){gap:5px;margin:5px 0}
#reader .learning-session [data-learning-compact=true] .quiz-choice{min-height:44px;padding:6px 9px}
#reader .learning-session [data-learning-compact=true] :is(.quiz-secondary-actions,.quiz-footer,.learning-game>footer){margin-top:6px;padding-top:5px}
#reader .learning-session [data-learning-wide=true] .quiz-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
#reader .learning-session [data-learning-wide=true] .binary-lab[data-direction=reverse] .binary-mission{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,.8fr);gap:4px 12px}
#reader .learning-session [data-learning-wide=true] .binary-lab[data-direction=reverse] .binary-mission-label{grid-column:1}
#reader .learning-session [data-learning-wide=true] .binary-lab[data-direction=reverse] .binary-target{grid-column:1;grid-row:2}
#reader .learning-session [data-learning-wide=true] .binary-fixed-code{grid-column:1;grid-row:3;margin:0;gap:4px}
#reader .learning-session [data-learning-wide=true] .binary-decimal-answer{grid-column:1;grid-row:4;margin:0}
#reader .learning-session [data-learning-wide=true] .binary-number-pad{grid-column:2;grid-row:1/5;margin:0;gap:4px;grid-template-columns:repeat(6,minmax(0,1fr));align-content:center}
#reader .learning-session [data-learning-wide=true] .binary-number-pad button{min-height:40px;padding:4px}
#reader .learning-session [data-learning-wide=true] .learning-feedback{grid-column:1/-1}
#reader .learning-session [data-learning-wide=true] .binary-lab{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px}
#reader .learning-session [data-learning-wide=true] .binary-lab-top{grid-column:1;margin:0;padding:2px 4px}
#reader .learning-session [data-learning-wide=true] .binary-scoreboard{grid-column:2;margin:0;align-self:center}
#reader .learning-session [data-learning-wide=true] .binary-lab-workspace{grid-column:1/-1;gap:4px}
#reader .learning-session [data-learning-wide=true] .binary-lab[data-direction=forward] .binary-mission{display:grid;grid-template-columns:minmax(120px,.3fr) minmax(0,1fr);gap:4px 12px}
#reader .learning-session [data-learning-wide=true] .binary-lab[data-direction=forward] .binary-mission-label{grid-column:1;grid-row:1;flex-wrap:wrap}
#reader .learning-session [data-learning-wide=true] .binary-lab[data-direction=forward] .binary-target{grid-column:1;grid-row:2}
#reader .learning-session [data-learning-wide=true] .binary-lab[data-direction=forward] .learning-bits{grid-column:2;grid-row:1/4;grid-template-columns:repeat(var(--bits),minmax(0,1fr));gap:5px;margin:0;align-self:center}
#reader .learning-session [data-learning-wide=true] .binary-lab[data-direction=forward] .learning-bits:has(>button:nth-child(9)){grid-template-columns:repeat(6,minmax(0,1fr))}
#reader .learning-session [data-learning-wide=true] .binary-signal-readout{grid-column:2;grid-row:4;display:flex;flex-wrap:wrap;justify-content:space-between}
#reader .learning-session [data-learning-wide=true] .binary-mission-actions{grid-column:1;grid-row:3/5;margin:0;align-self:end}
#reader .learning-session [data-learning-wide=true] .binary-lab .learning-feedback{grid-column:1/-1;grid-row:5}
#reader .learning-session [data-learning-wide=true] .binary-guide-panel{margin:0}
#reader .learning-session [data-learning-wide=true] .binary-guide-panel>summary{padding:4px 10px;min-height:30px}
@media(min-width:560px) and (max-height:500px){
 #reader .learning-session .world-topbar{min-height:40px;padding:0 5px}
 #reader .learning-session .world-title>div>span{display:none}
 #reader .learning-session .world-figure-mini{display:none}
 #reader .learning-session .world-tools>button{min-height:36px;height:36px}
 #reader .game-session.learning-session{gap:4px;padding:4px}
}
