:root{color-scheme:dark;--paper:#dfd1b9;--muted:#8c959a;--amber:#e5b56d;--line:#28313a;--ink:#090e16;font-family:Consolas,"Courier New",monospace;background:var(--ink);color:var(--paper)}
.room::-webkit-scrollbar{width:10px}.room::-webkit-scrollbar-track{background:#101720}.room::-webkit-scrollbar-thumb{background:#71604a;border:2px solid #101720;border-radius:8px}.room::-webkit-scrollbar-thumb:hover{background:#ab8957}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 25%,#162330 0,#090e16 64%)}button,a,input{font:inherit}button{color:var(--paper);background:#121923;border:1px solid #343b42;padding:11px 14px;border-radius:3px;cursor:pointer;white-space:nowrap;font-size:12px;transition:background .15s,border-color .15s}button:hover{background:#25303a;border-color:#6f6a5d}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible,.glass:focus-visible{outline:2px solid var(--amber);outline-offset:4px}a{color:var(--amber)}[hidden]{display:none!important}
.masthead{height:84px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 38px;border-bottom:1px solid #ffffff0a;max-width:1720px;margin:auto}.wordmark{color:var(--paper);text-decoration:none;display:flex;align-items:center;gap:13px;font-size:17px;letter-spacing:3px}.wordmark small{font-size:9px;letter-spacing:2.5px;display:block;margin-top:6px;color:#969c99}.spark{color:var(--amber);font-size:31px}.session-label{display:flex;gap:10px;align-items:center;font-size:10px;color:#939d9e;letter-spacing:.6px}.led{width:6px;height:6px;background:#655a45;border-radius:50%}.led.on{background:#b9d67c;box-shadow:0 0 12px #c2f56a70}.text-button{background:transparent;border:0;padding:9px 0;color:#9cabae;font-size:11px}.text-button span{margin-left:10px;color:var(--amber)}
main{max-width:1440px;margin:auto}.room{position:relative;overflow-x:hidden;overflow-y:scroll;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#71604a #101720;aspect-ratio:1.95;background:#0b111b}.scene{position:absolute;width:133.333%;left:-16.6665%;top:-10%;aspect-ratio:1.5}.room-art{width:100%;display:block;user-select:none}.glass{position:absolute;left:30.45%;top:15.15%;width:39.1%;height:39.3%;border-radius:5% / 6%;overflow:hidden;background:#080e11;box-shadow:0 0 35px #80bdcd0c;isolation:isolate}.glass iframe{position:absolute;width:100%;height:100%;border:0;inset:0;pointer-events:none;background:#03080a}.phosphor{position:absolute;inset:0;pointer-events:none;z-index:2;box-shadow:inset 0 0 22px #000b,inset 0 0 5px #000a;border-radius:inherit}.scanlines .phosphor{background:repeating-linear-gradient(0deg,#00000026 0px,#00000026 1px,transparent 1px,transparent 3px)}.glass.playing{box-shadow:0 0 52px #87c7db20}.room-caption{position:absolute;left:30px;bottom:22px;font-size:9px;letter-spacing:2px;color:#b2b9b06b}
.screen-card{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#12242b 0,#080f13 75%);z-index:3;text-align:center;padding:22px}.screen-kicker{font-size:9px;letter-spacing:3px;color:#88a6a6}.screen-card h1{font-size:clamp(25px,5vw,70px);font-weight:normal;letter-spacing:10px;line-height:1;margin:22px 0 12px;text-shadow:0 0 20px #dfc79330;max-width:100%;overflow-wrap:anywhere}.screen-card p{font-size:12px;color:#9eaaa2;margin:0 0 25px;max-width:90%}.screen-card small{font-size:9px;margin-top:18px;color:#6e8589}.start-button{background:#d4b079;color:#1c2021;border-color:#d4b079;padding:12px 24px;font-size:12px}.start-button:hover{background:#ebc994}.start-button span{padding-left:26px}.pause-card,.drop-card{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;letter-spacing:5px;background:#081219de;color:var(--paper);font-size:22px}.pause-card span,.drop-card span{font-size:10px;letter-spacing:1px;color:#9aaaab}.drop-card{background:#172a2dea;border:2px dashed var(--amber);letter-spacing:2px}
.console-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 30px 18px;background:#101720e8;border-top:1px solid #4d483630;border-bottom:1px solid #ffffff08}.cartridge-info{display:flex;gap:14px;align-items:center;min-width:210px}.cartridge-icon{font-size:30px;color:var(--amber);line-height:1}.cartridge-info strong{font-weight:normal;font-size:13px}.cartridge-info small{display:block;color:var(--muted);font-size:10px;margin-top:6px;letter-spacing:.3px}.buttons{display:flex;gap:8px;flex-wrap:wrap}.power-button{color:var(--amber);border-color:#706044;background:#332b1d50}.power-symbol{font-size:16px;padding-right:5px}.workbench{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:17px 30px 0}.workshop-buttons{display:flex;gap:8px;flex-wrap:wrap}.workshop-buttons button{border-color:#27343f;background:transparent;font-size:10px;padding:10px 12px}.workshop-buttons button span{color:#d2b885;padding-left:9px}.notice{font-size:10px;color:#8d9b9f;text-align:right;line-height:1.7;margin:0;max-width:55%;overflow-wrap:anywhere}.notice.error{color:#f0ab8e}.quick-controls{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;margin:24px 30px;color:#8d9b9e;font-size:10px}.quick-controls span{white-space:nowrap}kbd{font:inherit;color:#c6c9bc;display:inline-block;min-width:19px;text-align:center;border:1px solid #3a454d;border-bottom-width:2px;padding:2px 4px;border-radius:3px;margin-right:3px;background:#16202a}
.touch-pad{display:none;align-items:center;justify-content:space-around;gap:12px;margin:20px 12px;user-select:none;touch-action:none}.touch-pad button{touch-action:none;min-height:45px}.dpad{display:grid;grid-template-columns:repeat(3,42px);grid-template-rows:repeat(3,38px);gap:3px}.dpad .up{grid-area:1/2}.dpad .left{grid-area:2/1}.dpad .right{grid-area:2/3}.dpad .down{grid-area:3/2}.face-buttons{display:flex;gap:7px;align-items:center}.face-buttons button{border-radius:50%;width:44px;padding:0;color:var(--amber)}.face-buttons button:nth-child(1){margin-top:20px}.face-buttons button:nth-child(3){margin-top:-20px}.touch-pad button.held{background:#605234;border-color:var(--amber)}.start-pad{font-size:10px}
.help{display:grid;grid-template-columns:1fr 1fr;gap:38px;border-top:1px solid var(--line);padding:26px 30px;background:#101720}.help h2{font-weight:normal;font-size:14px;color:#d7c7a7}.help p{font-size:12px;line-height:1.9;color:#9dacad}.help code{background:#1a2530;padding:2px 3px;color:#c7cabb;overflow-wrap:anywhere}.help .credits{font-size:10px;color:#7b8d91}footer{max-width:1440px;margin:0 auto;padding:20px 30px 25px;display:flex;justify-content:space-between;font-size:8px;letter-spacing:2px;color:#566570;border-top:1px solid #ffffff08}
.glass:fullscreen{width:100vw;height:100vh;position:fixed;border-radius:0;left:0;top:0;background:#03080a}.glass:fullscreen .screen-card h1{font-size:65px}.glass:fullscreen .phosphor{border-radius:0}.glass.enlarged{position:fixed;inset:0;width:100vw;height:100vh;border-radius:0;z-index:50}.glass.enlarged:after{content:"Esc to leave";position:absolute;bottom:12px;right:18px;z-index:4;font-size:10px;color:#8f9a9d;pointer-events:none}
@media(max-width:980px){.console-bar{align-items:flex-start;flex-direction:column}.buttons{width:100%}.session-label{display:none}.room{aspect-ratio:1.65}.scene{width:150%;left:-25%;top:-8%}.masthead{padding:0 24px;height:75px}.workbench{align-items:flex-start;flex-direction:column}.notice{text-align:left;max-width:100%}.quick-controls{justify-content:flex-start;gap:12px}}@media(max-width:600px){.masthead{padding:0 16px;height:68px}.wordmark{font-size:12px;letter-spacing:2px;gap:8px}.wordmark small{font-size:8px;letter-spacing:1.5px}.spark{font-size:23px}.text-button{font-size:9px;max-width:100px;text-align:right;line-height:1.6}.text-button span{display:none}.room{aspect-ratio:1.22}.scene{width:211%;left:-55.5%;top:-8%}.glass{border-radius:5% / 6%}.screen-card{padding:12px}.screen-card h1{font-size:32px;margin:15px 0 10px;letter-spacing:7px}.screen-kicker{font-size:7px;letter-spacing:2px}.screen-card p{font-size:10px;margin-bottom:16px}.screen-card small{font-size:8px;margin-top:12px}.start-button{font-size:11px;padding:9px 17px}.room-caption{display:none}.console-bar{padding:16px}.buttons{gap:6px}.buttons button{padding:10px;font-size:10px}.workbench{padding:14px 16px 0;gap:10px}.quick-controls{margin:19px 16px;font-size:9px;gap:11px}.help{grid-template-columns:1fr;padding:20px 16px;gap:14px}.touch-pad{display:flex}footer{padding:18px 16px;font-size:7px;letter-spacing:1px}}
@media(pointer:coarse){.touch-pad{display:flex}}@media(prefers-reduced-motion:reduce){button{transition:none}}
.cartridge-tray{display:flex;align-items:center;gap:16px;min-width:0}.cartridge-tray .power-button{flex-shrink:0}
.credits{margin:0 30px 24px;text-align:center;font-size:10px;line-height:1.8;color:#7b8d91}
.cartridge-notice{max-width:none;margin:8px 30px 0;text-align:right}
.cartridge-notice:empty{display:none}
.buttons #choose-rom{margin-left:auto}
@media(max-width:980px){.cartridge-tray{width:100%}.cartridge-tray .cartridge-info{min-width:0}}
.glass.drag-ready{touch-action:none;cursor:crosshair;user-select:none}
.screen-stick{position:absolute;width:64px;height:64px;margin:-32px;border:1px solid #e5b56da0;border-radius:50%;background:#090e1659;z-index:3;pointer-events:none;display:grid;place-items:center}
.screen-stick:before,.screen-stick:after{content:"";position:absolute;background:#e5b56d70}.screen-stick:before{width:1px;height:48px}.screen-stick:after{height:1px;width:48px}
.screen-stick span{width:14px;height:14px;border-radius:50%;background:var(--amber);box-shadow:0 0 10px #000;z-index:1}
.screen-stick{border-color:#8c959a80}.screen-stick span{background:#8c959a}.screen-stick.sending{border-color:var(--amber);box-shadow:0 0 10px #e5b56d55}.screen-stick.sending span{background:var(--amber)}
.level-hover{position:absolute;z-index:3;border:1px solid var(--amber);background:#e5b56d14;pointer-events:none}.glass.over-level{cursor:pointer}
.screen-action{position:absolute;z-index:3;padding:0;min-width:0;min-height:0;border:1px solid transparent;border-radius:0;background:transparent;touch-action:none}
.screen-action:hover,.glass .screen-action.held{border-color:var(--amber);background:#e5b56d14}
.screen-action:focus-visible{outline-offset:-2px}
.pointer-status{min-height:16px;margin:4px 16px 0;text-align:center;font-size:10px;line-height:1.6;color:var(--amber)}
.touch-pad{display:flex;max-width:440px;margin:20px auto;padding:0 12px}.dpad{grid-template-rows:repeat(3,44px)}
[data-pad]{touch-action:none;user-select:none;-webkit-tap-highlight-color:transparent}[data-pad].held{background:#605234;border-color:var(--amber)}.throw-button{min-height:44px;color:var(--amber);border-color:#706044;background:#332b1d50}
.glass>#throw,.leave-enlarged{position:absolute;z-index:5;min-height:44px;background:#121923ed}.glass>#throw{bottom:16px;right:16px}.leave-enlarged{top:16px;right:16px}
@media(max-width:380px){.touch-pad{flex-wrap:wrap;justify-content:center;gap:12px;padding:0 8px}.touch-pad .start-pad{order:3;min-width:80px}.dpad{grid-template-columns:repeat(3,44px)}.face-buttons{gap:4px}}
.screen-stick .aim-gesture,.screen-stick .power-gesture{display:none}
.screen-stick.pyro{width:26px;height:26px;margin:-13px;border-radius:50%;background:#090e16de;color:#8c959a;box-shadow:0 2px 12px #0008}
.screen-stick.pyro:before,.screen-stick.pyro:after,.screen-stick.pyro #stick-tip{display:none}
.screen-stick.pyro[data-axis="aim"]{width:124px;height:58px;margin:-29px -62px;border-radius:29px}
.screen-stick.pyro[data-axis="power"]{width:66px;height:144px;margin:-72px -33px;border-radius:18px}
.screen-stick[data-axis="aim"] .aim-gesture{display:flex;align-items:center;justify-content:center;gap:4px}
.aim-gesture svg{width:18px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.aim-gesture .aim-target{width:24px;height:24px;color:var(--paper)}
.aim-track{width:64px;height:38px;display:grid;place-items:center;border:1px solid #727b7b60;border-radius:20px;background:#050910;box-shadow:inset 0 2px 6px #000a}
.aim-nub{width:34px;height:34px;display:grid;place-items:center;border:1px solid #d4b07999;border-radius:50%;background:linear-gradient(#38414a,#17212a);box-shadow:inset 0 1px 1px #ffffff30,0 2px 5px #000b;transform:translateX(var(--aim-offset,0px));transition:transform .08s ease-out}
.screen-stick.sending.leftward .aim-left{color:var(--amber);animation:aim-left .3s ease-out infinite}.screen-stick.sending.rightward .aim-right{color:var(--amber);animation:aim-right .3s ease-out infinite}
.screen-stick[data-axis="power"] .power-gesture{display:grid;justify-items:center;gap:7px}.power-gesture svg{width:20px;height:20px;fill:none;stroke:var(--amber);stroke-width:1.8;stroke-linejoin:round}
.power-meter{display:flex;flex-direction:column;gap:3px;width:28px}.power-meter i{height:10px;border:1px solid #727b7b;border-radius:2px;background:#18232c}.power-meter i.filled{background:var(--amber);border-color:#f3d19e;box-shadow:0 0 5px #e5b56d33}.power-gesture output{font-size:10px;color:var(--paper)}
.screen-stick.sending .power-meter i.filled{filter:brightness(1.3)}.throw-button{min-width:108px}
@keyframes aim-left{from{transform:translateX(2px);opacity:.6}to{transform:translateX(-3px);opacity:1}}@keyframes aim-right{from{transform:translateX(-2px);opacity:.6}to{transform:translateX(3px);opacity:1}}
@media(prefers-reduced-motion:reduce){.screen-stick .aim-left,.screen-stick .aim-right{animation:none!important}.aim-nub{transition:none}}
.throw-button.idle-throw{animation:throw-reminder 2.4s ease-in-out infinite}
@keyframes throw-reminder{0%,100%{box-shadow:0 0 5px 1px #e5b56d18,0 0 14px 3px #e5b56d0a}50%{box-shadow:0 0 10px 3px #e5b56d55,0 0 24px 8px #e5b56d22}}
@media(prefers-reduced-motion:reduce){.throw-button.idle-throw{animation:none;box-shadow:0 0 12px 3px #e5b56d40}}
.web-guide{position:absolute;z-index:2;pointer-events:none;opacity:0;transition:opacity .22s ease-out;overflow:hidden;color:#b3edf0}
.web-guide.visible{opacity:.85;transition-duration:.06s}.web-guide.catching{opacity:.55;transition-duration:.22s}.web-guide path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.guide-shadow{stroke:#07121b;stroke-width:3.3;opacity:.7}.guide-path{stroke:currentColor;stroke-width:1.25;stroke-dasharray:4 3;filter:drop-shadow(0 0 1.2px #a6eaff80)}.guide-marks{stroke:#e1fbfa;stroke-width:.85}
@media(prefers-reduced-motion:reduce){.web-guide{transition:none}}
