@font-face{font-family:Obel Mono;src:url(/fonts/obel-mono.woff2) format("woff2");font-style:normal;font-weight:100 900;font-display:swap}@font-face{font-family:Inter;src:url(/fonts/inter.ttf) format("truetype");font-style:normal;font-weight:100 700;font-display:swap}:root{--font-display: "Obel Mono", monospace;--font-body: "Inter", sans-serif;--color-paper: oklch(26% .012 70);--color-paper-2: oklch(30% .012 70);--color-ink: oklch(91% .02 85);--color-muted: oklch(74% .018 80);--color-rule: oklch(44% .012 75);--color-accent: oklch(66% .18 42);--color-accent-ink: oklch(19% .015 50);--color-focus: oklch(85% .14 80);--color-cream: oklch(84% .03 85);--color-cream-high: oklch(91% .025 85);--color-cream-low: oklch(64% .025 85);--color-label: oklch(25% .012 70);--color-label-muted: oklch(39% .015 70);--color-plastic: oklch(33% .008 80);--color-plastic-high: oklch(42% .008 80);--color-plastic-low: oklch(22% .008 80);--color-well: oklch(17% .008 70);--color-black: oklch(13% .007 80);--color-metal: oklch(66% .012 80);--color-metal-high: oklch(80% .012 80);--color-metal-low: oklch(47% .012 80);--color-key-high: oklch(74% .17 45);--color-key-low: oklch(48% .14 38);--color-screen: oklch(15% .018 145);--color-phosphor: oklch(90% .025 110);--color-red: oklch(62% .19 30);--color-shadow: oklch(8% .01 70 / .55);--color-clear: oklch(20% .01 70 / 0);--color-glass: oklch(92% .02 100 / .025);--color-overlay: oklch(10% .01 70 / .8);--color-scan: oklch(7% .01 120 / .16);--color-cart-orange: oklch(74% .12 55);--color-cart-yellow: oklch(83% .1 85);--color-cart-red: oklch(71% .1 35);--color-cart-blue: oklch(77% .055 230);--color-cart-teal: oklch(77% .07 165);--color-cart-purple: oklch(78% .04 310);--color-cart-green: oklch(78% .06 125);--color-cart-cream: oklch(84% .035 90);--space-2xs: .25rem;--space-xs: .5rem;--space-sm: .75rem;--space-md: 1rem;--space-lg: 1.5rem;--space-xl: 2rem;--space-2xl: 3rem;--space-3xl: 4rem;--text-small: .6875rem;--text-label: .75rem;--text-body: .875rem;--text-large: 1.125rem;--text-display: 1.75rem;--ease-out: cubic-bezier(.16, 1, .3, 1);--ease-in: cubic-bezier(.7, 0, .84, 0);--ease-in-out: cubic-bezier(.65, 0, .35, 1);--dur-micro: .12s;--dur-short: .24s;--dur-long: .42s;--radius-sm: 3px;--radius-md: 8px;--radius-lg: 14px;--rule-width: 1px;--z-base: 1;--z-raised: 10;--z-drag: 100;--z-modal: 200}*{box-sizing:border-box}html,body{margin:0;overflow-x:clip}body{background:var(--color-paper);color:var(--color-ink);font-family:var(--font-body);font-size:var(--text-body)}button,input{font:inherit}button{color:inherit;cursor:pointer;white-space:nowrap}button:disabled{opacity:.38;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--color-focus);outline-offset:4px}button:active{transform:translateY(1px)}::selection{background:var(--color-accent);color:var(--color-accent-ink)}*{scrollbar-color:var(--color-rule) var(--color-paper);scrollbar-width:thin}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--font-display);font-style:normal;overflow-wrap:anywhere}a{color:var(--color-ink);text-underline-offset:4px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip-link{position:fixed;top:8px;left:8px;transform:translateY(-200%);z-index:var(--z-modal);background:var(--color-cream);color:var(--color-label);padding:12px}.skip-link:focus{transform:none}.app{min-height:100svh;padding:0 clamp(16px,3vw,56px);display:flex;flex-direction:column}.masthead{min-height:92px;display:flex;align-items:center;justify-content:space-between;gap:var(--space-lg);border-bottom:1px solid var(--color-rule)}.wordmark{display:flex;align-items:center;gap:var(--space-md)}.brand-symbol{width:36px;height:36px;background:var(--color-accent);color:var(--color-accent-ink);display:grid;place-items:center;font-family:var(--font-display);font-weight:800;font-size:27px;line-height:1}.wordmark h1{font-size:24px;font-weight:650;letter-spacing:.04em;line-height:1}.wordmark p{color:var(--color-muted);font-size:11px;margin-top:7px;letter-spacing:.065em}.top-actions{display:flex;gap:var(--space-sm)}.quiet-button{display:inline-flex;gap:var(--space-xs);align-items:center;justify-content:center;background:none;border:1px solid var(--color-rule);border-radius:var(--radius-sm);height:38px;padding:0 var(--space-sm);font-size:12px}.quiet-button svg{width:16px;height:16px}.quiet-button[aria-pressed=true]{border-color:var(--color-cream);color:var(--color-cream-high)}.quiet-button:disabled{opacity:.5}.workbench{display:grid;grid-template-columns:minmax(0,1.48fr) minmax(0,1fr);gap:clamp(28px,4vw,80px);align-items:center;flex:1;min-height:0;padding:var(--space-xl) 0 var(--space-lg)}.tv-area{min-width:0;display:flex;flex-direction:column;gap:var(--space-md)}.television{width:100%;max-width:870px;position:relative;display:grid;grid-template-columns:minmax(0,1fr) 61px;background:linear-gradient(130deg,var(--color-plastic-high),var(--color-plastic));padding:15px;border-radius:24px 24px 27px 27px;box-shadow:0 14px 28px var(--color-shadow);border-bottom:6px solid var(--color-plastic-low)}.screen-surround{padding:8px;background:var(--color-plastic-low);border-radius:21px}.screen{position:relative;aspect-ratio:4/3;border-radius:16%/6%;background:var(--color-screen);overflow:hidden;box-shadow:inset 0 0 20px var(--color-black);isolation:isolate}.screen canvas{display:block;position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated;touch-action:none;cursor:crosshair}.screen:after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(var(--color-clear) 0px,var(--color-clear) 2px,var(--color-scan) 3px,var(--color-scan) 4px);pointer-events:none;opacity:.65}.screen:before{content:"";position:absolute;inset:0;background:linear-gradient(145deg,var(--color-glass),var(--color-clear));pointer-events:none;z-index:var(--z-base)}.tv-panel{display:flex;flex-direction:column;align-items:center;padding:20px 0 10px 13px;gap:16px}.tv-channel{font-family:var(--font-display);color:var(--color-metal-high);font-size:9px;letter-spacing:.1em}.tv-knob{width:37px;height:37px;border-radius:50%;background:var(--color-plastic-low);border:4px solid var(--color-metal-low);position:relative;box-shadow:0 3px 5px var(--color-shadow)}.tv-knob:after{content:"";position:absolute;inset:2px 10px;background:var(--color-metal);transform:rotate(-30deg)}.speaker{flex:1;min-height:50px;width:31px;background:repeating-linear-gradient(0deg,var(--color-well) 0px,var(--color-well) 2px,var(--color-clear) 2px,var(--color-clear) 6px);margin:8px 0}.tv-lamp{width:5px;height:5px;border-radius:50%;background:var(--color-accent)}.tv-foot{position:absolute;bottom:-15px;width:13%;height:11px;background:var(--color-plastic-low)}.tv-foot.left{left:13%}.tv-foot.right{right:13%}.tv-under{display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);padding:8px 4px 0}.channel-label{font-family:var(--font-display);font-size:10px;color:var(--color-muted);letter-spacing:.08em}.tv-actions{display:flex;gap:var(--space-sm)}.text-button{border:0;background:none;padding:8px 0;color:var(--color-muted);font-size:12px;display:inline-flex;gap:6px;align-items:center}.text-button svg{width:13px;height:13px}.text-button[aria-pressed=true]{color:var(--color-ink)}.console-area{min-width:0;display:flex;flex-direction:column;align-items:center;gap:var(--space-lg);align-self:center}.console-intro{width:100%;display:flex;justify-content:space-between;gap:var(--space-md);align-items:flex-end}.console-intro h2{font-size:17px;font-weight:500;line-height:1.4}.console-intro p{font-size:12px;color:var(--color-muted);margin-top:4px}.status-led{display:flex;align-items:center;gap:7px;font-family:var(--font-display);font-size:10px;color:var(--color-muted);white-space:nowrap}.status-led:before{content:"";width:5px;height:5px;background:var(--color-rule);border-radius:50%}.status-led.on:before{background:var(--color-accent)}.console{position:relative;width:100%;aspect-ratio:1.72;background:linear-gradient(120deg,var(--color-cream-high),var(--color-cream));border-radius:13px 13px 17px 17px;box-shadow:0 16px 24px var(--color-shadow);border-bottom:7px solid var(--color-cream-low);display:grid;grid-template-columns:24% 52% 24%;padding:0 1.5% 2%;container-type:inline-size;isolation:isolate}.console:after{content:"";position:absolute;inset:auto 3% -12px;height:7px;background:var(--color-well);z-index:-1;border-radius:3px}.console-middle{background:linear-gradient(100deg,var(--color-plastic-high),var(--color-plastic));height:105%;padding:6% 6% 3%;display:flex;flex-direction:column;gap:5%;border-inline:1px solid var(--color-metal-low);border-radius:0 0 5px 5px;position:relative}.wing{display:flex;flex-direction:column;justify-content:flex-end;position:relative;padding:0 4%}.vent{position:absolute;top:12%;height:12%;left:8%;right:8%;background:repeating-linear-gradient(0deg,var(--color-cream-low) 0,var(--color-cream-low) 2px,var(--color-clear) 2px,var(--color-clear) 8px);border-radius:3px}.controller{height:62%;background:linear-gradient(115deg,var(--color-plastic-high),var(--color-plastic));border:2px solid var(--color-metal-low);border-radius:5px;display:flex;align-items:center;flex-direction:column;padding-top:10%;gap:10%;position:relative;touch-action:none}.joystick-base{position:relative;aspect-ratio:1;width:83%;border-radius:50%;background:repeating-conic-gradient(var(--color-metal-high) 0deg 8deg,var(--color-clear) 8deg 13deg);display:grid;place-items:center;touch-action:none;cursor:grab;outline-offset:2px}.joystick-base:before{content:"";position:absolute;inset:10%;border-radius:50%;background:repeating-linear-gradient(0deg,var(--color-cream) 0px,var(--color-cream) 3px,var(--color-cream-low) 3px,var(--color-cream-low) 4px);border:1px solid var(--color-cream-high)}.joystick-base:after{content:"";position:absolute;inset:35%;background:var(--color-well);border-radius:50%}.stick{position:absolute;z-index:var(--z-raised);width:23%;height:59%;bottom:48%;background:linear-gradient(90deg,var(--color-plastic-low),var(--color-plastic-high));border-radius:5px 5px 45% 45%;transform:rotate(-21deg);transform-origin:50% 100%;pointer-events:none;box-shadow:4px 5px 4px var(--color-shadow)}.stick:after{content:"";position:absolute;top:-9%;left:-12%;width:124%;height:30%;background:var(--color-plastic-high);border-radius:50%;border-bottom:2px solid var(--color-plastic-low)}.fire-button{height:13%;aspect-ratio:1;min-height:16px;border:0;border-radius:50%;background:linear-gradient(120deg,var(--color-red),var(--color-key-low));box-shadow:0 2px 3px var(--color-shadow);padding:0;position:relative}.fire-button:before{content:"";position:absolute;inset:-10px}.controller-label{font-family:var(--font-display);font-size:1.6cqw;color:var(--color-metal-high);position:absolute;bottom:5%;white-space:nowrap;pointer-events:none}.cartridge-slot{height:24%;min-height:40px;position:relative;border:5px solid var(--color-plastic-low);border-radius:8px;background:var(--color-well);box-shadow:inset 0 5px 8px var(--color-shadow);padding:0;display:grid;place-items:center;outline:1px solid var(--color-metal-low);overflow:visible;z-index:var(--z-raised)}.cartridge-slot:after{content:"";height:8px;width:82%;background:repeating-linear-gradient(90deg,var(--color-metal-low) 0,var(--color-metal-low) 2px,var(--color-well) 2px,var(--color-well) 7px);border:2px solid var(--color-plastic-low)}.slot-caption{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--font-display);font-size:1.7cqw;color:var(--color-metal-high);padding-bottom:13px}.cartridge-slot.drop-ready{outline:3px solid var(--color-accent);outline-offset:5px}.cartridge-slot.drop-ready .slot-caption{color:var(--color-key-high)}.inserted-cart{position:absolute;width:83%;height:160%;bottom:12%;background:var(--color-plastic-low);border:5px solid var(--color-well);border-radius:5px;box-shadow:0 6px 6px var(--color-shadow);transform:perspective(500px) rotateX(-12deg);display:flex;align-items:center;justify-content:center;z-index:var(--z-raised);pointer-events:none}.inserted-cart .inserted-label{background:var(--cart-color);color:var(--color-label);font-family:var(--font-display);font-size:1.7cqw;line-height:1.7;width:90%;height:76%;display:flex;flex-direction:column;align-items:center;justify-content:center;letter-spacing:.02em}.inserted-cart .inserted-label strong{font-size:2.3cqw}.inserted-cart.seating{animation:seat var(--dur-long) var(--ease-out)}@keyframes seat{0%{transform:translateY(-22px) rotate(-3deg);opacity:.5}to{transform:translateY(0) rotate(0);opacity:1}}.key-bank{padding:4%;background:linear-gradient(115deg,var(--color-metal-high),var(--color-metal-low));display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9% 5%;border:2px solid var(--color-plastic-low);border-radius:6px;height:31%}.game-key{padding:0;background:linear-gradient(135deg,var(--color-key-high),var(--color-accent));color:var(--color-accent-ink);border:1px solid var(--color-key-low);border-bottom:3px solid var(--color-key-low);border-radius:4px;box-shadow:1px 2px 2px var(--color-shadow);font-family:var(--font-display);font-size:2.1cqw;line-height:1}.game-key[aria-pressed=true]{background:var(--color-key-low);color:var(--color-cream-high);transform:translateY(2px);border-bottom-width:1px}.game-key:disabled{opacity:.45;box-shadow:none}.console-controls{display:flex;align-items:flex-end;justify-content:space-between;height:23%;gap:3%}.toggle-cell{height:100%;display:flex;flex-direction:column;align-items:center;gap:9%;flex:1;min-width:0}.toggle-cell>span{font-family:var(--font-display);font-size:1.4cqw;white-space:nowrap;color:var(--color-cream)}.hardware-switch{flex:1;width:100%;background:var(--color-plastic-low);padding:0;border:1px solid var(--color-metal-low);border-radius:3px;position:relative}.hardware-switch:after{content:"";position:absolute;inset:25% 26% 15%;background:linear-gradient(90deg,var(--color-metal-low),var(--color-metal-high));border-radius:2px;box-shadow:1px 2px 2px var(--color-shadow);transform:rotate(-12deg)}.hardware-switch[aria-pressed=true]:after{transform:rotate(12deg)}.hardware-switch.power:after{inset:20% 40%;background:var(--color-metal-high);transform:translateY(6px)}.hardware-switch.power[aria-pressed=true]:after{transform:translateY(-6px)}.reset-cell{flex:2.4}.reset-key{flex:1;width:100%;padding:0;background:linear-gradient(130deg,var(--color-key-high),var(--color-accent));border:1px solid var(--color-key-low);border-bottom:4px solid var(--color-key-low);border-radius:4px;color:var(--color-accent-ink);font-size:1.6cqw}.console-badge{font-family:var(--font-display);font-size:2.6cqw;letter-spacing:.2em;color:var(--color-label);background:linear-gradient(90deg,var(--color-metal-low),var(--color-metal-high));padding:1% 0;text-align:center;margin-top:auto}.console-bottom{display:flex;justify-content:space-between;width:100%;align-items:center;gap:var(--space-sm)}.mode-title{min-width:0}.mode-title p{font-family:var(--font-display);font-size:13px}.mode-title span{display:block;margin-top:4px;color:var(--color-muted);font-size:11px}.console-bottom .text-button{white-space:nowrap}.insert-hint{line-height:1.55;font-family:var(--font-display);font-size:11px;color:var(--color-muted);display:flex;align-items:center;gap:var(--space-xs);width:100%;min-height:25px}.insert-hint svg{width:17px;height:17px;flex:none;color:var(--color-accent)}.library{border-top:1px solid var(--color-rule);padding:var(--space-md) 0 0}.library-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);margin-bottom:var(--space-lg)}.library-heading h2{font-size:14px;font-weight:500}.library-heading p{color:var(--color-muted);font-size:12px}.library-heading span{font-family:var(--font-display);font-size:11px;color:var(--color-muted);margin-left:var(--space-sm)}.cartridge-shelf{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:clamp(12px,2vw,32px);padding:0 9px 3px;align-items:end}.cartridge-wrap{min-width:0;display:flex;flex-direction:column;align-items:center;gap:10px}.cartridge{--tilt: 0deg;position:relative;width:100%;aspect-ratio:.85;max-width:148px;padding:12% 8% 9%;background:linear-gradient(115deg,var(--color-plastic),var(--color-plastic-low));border:2px solid var(--color-well);border-bottom:7px solid var(--color-well);border-radius:7px 7px 5px 5px;box-shadow:0 6px 8px var(--color-shadow);transform:rotate(var(--tilt));color:var(--color-label);transition:transform var(--dur-short) var(--ease-out),opacity var(--dur-short) var(--ease-out);touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}.cartridge:before{content:"";position:absolute;inset:5% 5% auto;height:7%;background:repeating-linear-gradient(0deg,var(--color-well) 0px,var(--color-well) 1px,var(--color-clear) 1px,var(--color-clear) 3px)}.cartridge:after{content:"";position:absolute;inset:auto 15% -10px;height:4px;background:var(--color-plastic-low);border-radius:0 0 3px 3px}.cartridge:nth-child(odd){--tilt: -1deg}.cartridge-label{height:100%;background:var(--cart-color);padding:8% 7% 4%;border-radius:1px;display:flex;flex-direction:column;align-items:stretch;text-align:left;overflow:hidden;pointer-events:none}.cart-code{font-family:var(--font-display);font-size:clamp(7px,.7vw,10px);display:flex;justify-content:space-between;border-bottom:1px solid currentColor;padding-bottom:5%}.cart-name{font-family:var(--font-display);font-size:clamp(9px,.82vw,13px);font-weight:750;line-height:1.25;padding-top:6%;min-height:2.7em;white-space:normal}.cart-art{flex:1;min-height:0;width:100%;color:var(--color-label)}.cart-art svg{display:block;width:100%;height:100%;max-height:55px}.cart-footer{font-size:clamp(5px,.46vw,8px);line-height:1.3;font-family:var(--font-display);border-top:1px solid currentColor;padding-top:5%;white-space:nowrap}.cartridge-wrap:nth-child(2n) .cartridge{--tilt: 1.2deg}.cartridge-wrap:nth-child(3n) .cartridge{--tilt: -1.7deg}.cartridge-wrap.is-inserted .cartridge{opacity:.35;transform:translateY(5px);cursor:pointer}.cartridge-caption{font-family:var(--font-display);font-size:10px;color:var(--color-muted);height:14px;white-space:nowrap}.cartridge-wrap.is-inserted .cartridge-caption{color:var(--color-accent)}.cartridge.dragging{opacity:.15;transform:none}.drag-ghost{position:fixed;pointer-events:none;z-index:var(--z-drag);margin:0;max-width:none;transform:rotate(-6deg);opacity:.97;box-shadow:8px 20px 24px var(--color-shadow);will-change:transform}.app-footer{display:flex;align-items:center;justify-content:space-between;gap:var(--space-md);padding:var(--space-lg) 0 18px;font-size:10px;color:var(--color-muted)}.app-footer p{display:flex;align-items:center;gap:7px}.app-footer .recreation-note{font-size:10px;color:var(--color-muted);background:none;border:none;padding:4px}.keycap{font-family:var(--font-display);font-size:9px;border:1px solid var(--color-rule);border-radius:2px;padding:2px 4px;min-width:17px;text-align:center}.footer-controls{display:flex;align-items:center;gap:var(--space-md)}.dialog{position:fixed;inset:0;margin:auto;border:0;border-radius:var(--radius-md);padding:var(--space-xl);max-width:min(510px,calc(100% - 32px));max-height:85svh;overflow:auto;background:var(--color-cream-high);color:var(--color-label);box-shadow:0 20px 60px var(--color-shadow)}.dialog::backdrop{background:var(--color-overlay)}.dialog h2{font-size:22px;margin:8px 0 14px}.dialog h3{font-size:13px;margin:22px 0 8px}.dialog p,.dialog li{font-size:14px;line-height:1.6;color:var(--color-label-muted)}.dialog a{color:var(--color-label)}.dialog .dialog-close{float:right;border:1px solid var(--color-cream-low);background:none;padding:8px;color:var(--color-label);border-radius:3px}.dialog .quiet-button{color:var(--color-label);border-color:var(--color-cream-low);height:44px}.dialog .primary-button{background:var(--color-label);color:var(--color-cream-high);border:0;padding:12px 18px;border-radius:3px;min-height:44px;white-space:nowrap}.dialog-controls{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-md);margin:18px 0}.dialog-controls div{border-top:1px solid var(--color-cream-low);padding-top:12px}.dialog-controls strong{font-family:var(--font-display);font-size:12px}.dialog-controls p{font-size:12px;margin-top:5px}.dialog label{display:flex;gap:12px;align-items:center;padding:16px 0;font-size:14px}.dialog input{width:18px;height:18px;accent-color:var(--color-accent)}.blow-cartridge{width:115px;height:100px;background:var(--color-plastic-low);margin:25px auto 10px;display:grid;place-items:center;border:5px solid var(--color-well);border-radius:7px;position:relative}.blow-cartridge span{background:var(--cart-color, var(--color-cart-teal));padding:15px 8px;font-family:var(--font-display);font-size:11px;color:var(--color-label)}.blow-cartridge:after{content:"";position:absolute;bottom:-8px;left:20%;right:20%;height:6px;background:repeating-linear-gradient(90deg,var(--color-metal) 0,var(--color-metal) 3px,var(--color-well) 3px,var(--color-well) 6px)}.blow-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.blow-progress{height:5px;background:var(--color-cream-low);margin:18px 0;overflow:hidden}.blow-progress span{display:block;width:100%;height:100%;background:var(--color-key-low);transform:scaleX(0);transform-origin:0 50%}.blow-status{min-height:3em}.dialog .tiny-note{font-size:11px;margin-top:12px}.hold-blow{touch-action:none;user-select:none;-webkit-user-select:none}.mobile-controls{display:none}.state-toast{font-family:var(--font-display);color:var(--color-cream);font-size:11px;min-height:16px}@media(hover:hover){.quiet-button:hover{background:var(--color-paper-2)}.dialog .quiet-button:hover{background:var(--color-cream)}.text-button:hover{color:var(--color-ink)}.cartridge:hover{transform:translateY(-10px) rotate(0)}.cartridge-wrap.is-inserted .cartridge:hover{opacity:.65}.game-key:not(:disabled):hover{filter:brightness(1.1)}}@media(min-width:1500px){.app{padding-inline:4vw}.masthead{min-height:105px}.cartridge{max-width:160px}.workbench{gap:6vw}.console-area{gap:var(--space-xl)}}@media(min-width:960px)and (min-height:820px){.app{height:100svh;max-height:1200px}.workbench{padding-block:var(--space-lg)}.tv-area{max-width:calc((100svh - 445px)*1.333 + 95px)}.television{max-height:none}.screen-surround{min-height:0}.screen{height:auto;max-height:none;aspect-ratio:4/3}.cartridge{max-height:190px}.library{flex:none}}@media(max-width:1100px){.workbench{gap:24px;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}.tv-panel{padding-left:9px}.television{grid-template-columns:minmax(0,1fr) 48px;padding:12px}.tv-knob{width:30px;height:30px}.console-intro h2{font-size:14px}.console-intro p{font-size:11px}.cartridge-shelf{gap:12px}.cart-name{font-size:9px}.cart-footer{font-size:5px}.channel-label{font-size:8px}.app-footer{font-size:9px}.footer-controls{gap:10px}}@media(max-width:800px){.app{padding-inline:20px;min-height:100svh}.masthead{min-height:78px}.wordmark h1{font-size:20px}.wordmark p{font-size:9px}.top-actions{gap:8px}.top-actions .button-label{display:none}.quiet-button{min-width:38px}.workbench{display:flex;flex-direction:column;padding:24px 0;gap:32px}.tv-area{width:100%;max-width:650px}.console-area{width:100%;max-width:480px;gap:20px}.console-intro{gap:16px}.console-intro h2{font-size:16px}.console-intro p{font-size:12px}.console{width:100%;max-width:480px}.television{grid-template-columns:minmax(0,1fr) 43px;padding:10px;border-radius:17px}.tv-panel{padding-left:8px;gap:10px}.tv-knob{width:29px;height:29px}.screen-surround{padding:5px}.speaker{width:22px}.tv-channel{font-size:7px}.channel-label{font-size:9px}.tv-under{padding-top:7px}.library-heading{align-items:flex-start;margin-bottom:22px}.library-heading p{font-size:11px;max-width:135px;text-align:right}.library-heading span{display:none}.cartridge-shelf{display:flex;overflow-x:auto;gap:23px;padding:10px 9px 14px;scroll-snap-type:x proximity}.cartridge-wrap{width:120px;flex:none;scroll-snap-align:start}.cartridge{width:120px;max-width:120px}.cart-code{font-size:8px}.cart-name{font-size:11px}.cart-footer{font-size:6px}.cart-art svg{max-height:45px}.cartridge-caption{font-size:9px}.app-footer{padding-top:18px;align-items:flex-start;flex-wrap:wrap;gap:12px}.footer-controls{flex-wrap:wrap;gap:12px}.footer-controls .secondary-control{display:none}.mobile-controls{display:flex;gap:10px;justify-content:space-between;align-items:center;width:100%;padding-top:4px}.mobile-control-group{display:flex;gap:8px}.mobile-controls button{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--color-rule);background:var(--color-paper-2);border-radius:4px}.mobile-controls button svg{width:18px;height:18px}.mobile-controls .mobile-fire{width:auto;padding:0 18px;color:var(--color-accent);font-family:var(--font-display);font-size:12px;touch-action:none}.mobile-controls .mobile-fire:active{background:var(--color-plastic-low)}}@media(max-width:380px){.app{padding-inline:14px}.brand-symbol{width:30px;height:30px;font-size:23px}.wordmark{gap:9px}.wordmark h1{font-size:18px}.wordmark p{font-size:8px}.top-actions{gap:6px}.quiet-button{padding-inline:9px}.tv-panel{gap:7px;padding-top:8px}.tv-knob{width:24px;height:24px}.television{grid-template-columns:minmax(0,1fr) 35px}.tv-actions{gap:9px}.text-button{font-size:11px}.console-intro h2{font-size:14px}.console-intro p{font-size:11px}.console-area{gap:18px}.console{border-bottom-width:5px}.cartridge-slot{min-height:32px;border-width:3px}.key-bank{border-width:1px}.game-key{border-bottom-width:2px}.insert-hint{font-size:10px}.mode-title p{font-size:12px}.mobile-controls button{width:40px}.dialog{padding:20px}.dialog h2{font-size:20px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.cartridge:hover{transform:rotate(var(--tilt))}.screen:after{opacity:.35}}.television:fullscreen{width:100%;height:100%;max-width:none;max-height:none;grid-template-columns:minmax(0,1fr) 60px;padding:24px;border-radius:0;background:var(--color-well)}.television:fullscreen .screen{max-height:none;max-width:calc((100dvh - 64px) * 4 / 3);height:100%;margin:auto}.television:fullscreen .screen-surround{min-height:0;background:var(--color-well)}[hidden]{display:none!important}.state-toast{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.console-area{max-width:480px;justify-self:end;gap:18px}.cartridge{max-width:128px}@media(min-width:960px)and (min-height:700px){.app{height:100svh}.workbench{padding-block:20px}.tv-area{height:100%;min-height:0;container-type:size;justify-content:center;max-width:none}.television{width:min(100%,calc((100cqh - 96px)*1.33333 + 107px));max-height:none}.screen{height:auto;max-height:none;aspect-ratio:4/3}.cartridge{max-width:124px}.console-area{gap:16px}}@media(min-width:960px)and (max-height:780px){.masthead{min-height:72px}.cartridge{max-width:102px}.library-heading{margin-bottom:12px}.library{padding-top:12px}.app-footer{padding-block:12px}.console-area{max-width:390px;gap:12px}.console-intro p{font-size:11px}.console-intro h2{font-size:14px}.mode-title p{font-size:12px}.insert-hint{font-size:10px}.workbench{padding-block:12px}.cartridge-caption{font-size:9px}}@media(max-width:800px){.console-area{gap:20px;max-width:480px}.cartridge{max-width:120px}.tv-area{container-type:normal;height:auto}}.console-area{width:100%}@media(min-width:960px)and (min-height:700px){.television{width:min(100%,calc((100cqh - 108px)*1.33333 + 107px))}}.console-intro{justify-content:flex-end}.mode-title p:empty,.mode-title span:empty,.insert-hint:empty{display:none}.console-bottom:has(.mode-title p:empty){display:none}
