@font-face{font-family:Pixel;src:url(/fonts/pixel.ttf) format("truetype");font-display:swap}@font-face{font-family:FusionPixel-Base;src:url(/fonts/fusion-pixel-latin.woff2) format("woff2");font-display:swap;unicode-range:U+0020-007E,U+00A0-00FF,U+0100-017F}@font-face{font-family:FusionPixel-Base;src:url(/fonts/fusion-pixel-ja.woff2) format("woff2");font-display:swap;unicode-range:U+3040-309F,U+30A0-30FF,U+31F0-31FF,U+3000-303F}@font-face{font-family:FusionPixel-Base;src:url(/fonts/fusion-pixel-ko.woff2) format("woff2");font-display:swap;unicode-range:U+AC00-D7AF,U+1100-11FF,U+3130-318F}@font-face{font-family:FusionPixel-Hans;src:url(/fonts/fusion-pixel-zh_hans.woff2) format("woff2");font-display:swap}@font-face{font-family:FusionPixel-HK;src:url(/fonts/fusion-pixel-zh_hk.woff2) format("woff2");font-display:swap}@font-face{font-family:FusionPixel-TW;src:url(/fonts/fusion-pixel-zh_tw.woff2) format("woff2");font-display:swap}*{box-sizing:border-box}body{margin:0;background:#171615;color:#35230b;font-family:FusionPixel-Base,FusionPixel-Hans,monospace}button{font:inherit;cursor:pointer;color:inherit;border:2px solid currentColor;background:#fff2b0;padding:.55em .8em}button:hover{background:#fffad6}button:focus-visible{outline:3px solid #be2523;outline-offset:3px}button:disabled{opacity:.5;cursor:wait}.console-shell{min-height:100dvh;display:grid;place-items:center;padding:8px;background:radial-gradient(ellipse at center,#37352e,#161616 65%,#080909)}.crt-display{width:min(calc(100vw - 16px),calc((100dvh - 16px) * var(--frame-ratio)));aspect-ratio:var(--frame-ratio);position:relative;filter:drop-shadow(0 14px 26px #000a)}.console-shell:fullscreen{width:100%;height:100%;min-height:0;padding:0;background:#000}.console-shell:fullscreen .crt-display{width:min(100vw,calc(100dvh * var(--frame-ratio)));aspect-ratio:var(--frame-ratio)}.crt-display:before{content:"";position:absolute;inset:5%;border-radius:8%;background:#080909}.console-screen{position:absolute;inset:7.458563536% 5.870165746% 9.116022099% 5.939226519%;overflow:hidden;background-size:cover;background-position:center;background-color:#f8d827;container-type:inline-size;isolation:isolate;filter:saturate(1.06) contrast(1.03)}.console-screen:before,.console-screen:after{content:"";position:absolute;inset:0;z-index:10;pointer-events:none;border-radius:inherit}.console-screen:before{background:repeating-linear-gradient(0deg,#0000 0px 2px,#0002 3px,#0000 4px),repeating-linear-gradient(90deg,#ff000008 0px,#00ff0005 1px,#0000ff08 2px,transparent 3px);opacity:.72}.console-screen:after{background:radial-gradient(ellipse at center,transparent 45%,#100c0733 83%,#020505b3 100%),linear-gradient(128deg,#ffffff1a 0%,#ffffff04 28%,transparent 42%);box-shadow:inset 0 0 1.5cqw .15cqw #0006}.crt-bezel{position:absolute;inset:0;width:100%;height:100%;z-index:20;pointer-events:none;user-select:none}.system-heading{position:absolute;top:13%;left:6%;display:flex;align-items:center;gap:1.5cqw}.system-mark{font:700 4.5cqw Pixel,monospace;color:#ad241b;text-shadow:2px 2px #fff4a2}h1{font-size:3.5cqw;line-height:1;margin:0;letter-spacing:.12em;color:#a81c18;text-shadow:1px 2px #fff9af}h1 span{letter-spacing:0}.system-heading p{font-size:1.5cqw;margin:1cqw 0 0;letter-spacing:.28em}.screen-tools{align-items:center;position:absolute;top:4.2%;right:4%;display:flex;gap:.7cqw}.screen-tools button{font-size:1.3cqw;padding:.3em .7em;background:#ffefa8dd}.game-menu{position:absolute;left:5%;top:27%;width:46%}.game-menu ol{padding:0;margin:0;list-style:none}.game-menu li{display:flex;align-items:center;gap:.7cqw;height:3.65cqw;padding:0 .6cqw;font-size:2.35cqw;font-weight:700;text-shadow:1px 1px #fff9bb;animation:row-enter .18s ease-out both;transition:color .1s,background .1s,text-shadow .1s}.selection-arrow{visibility:hidden;font-size:1.7cqw;flex:0 0 1.7cqw}.selected .selection-arrow{visibility:visible;animation:blink 1s steps(2,start) infinite}.game-menu li.selected{color:#a91a0e;background:linear-gradient(90deg,#fffeddbb,#fffbd677 85%,transparent);box-shadow:inset 3px 0 #bd3619;text-shadow:0 0 .65cqw #ffffbf,1px 1px #fff6a7;animation:selection-in .16s ease-out}.game-number{font-variant-numeric:tabular-nums;flex-shrink:0}.game-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-count{text-align:center;font-size:1.8cqw;margin:1.5cqw 0 0}.game-metadata{text-align:center;font-size:1.35cqw;line-height:1.5;min-height:2em;margin:1cqw 0 0}.system-footer{position:absolute;bottom:7.5%;left:7%;right:7%;display:flex;justify-content:space-between;gap:2cqw;font-size:1.4cqw;text-shadow:1px 1px #fffaac}.cartridge-name{max-width:27%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.system-panel{position:absolute;z-index:3;left:6%;top:30%;width:44%;padding:2.5cqw 2cqw;background:#fff1b4f5;border:.3cqw solid #8a3f1e;box-shadow:.7cqw .7cqw #7c3d1e44;text-align:center;font-size:1.8cqw}.system-panel h2{font-size:3.3cqw;margin:1cqw 0 2cqw;color:#a82119}.system-panel p{line-height:1.6;font-size:1.8cqw}.system-panel small{display:block;font-size:1.4cqw;line-height:1.6;margin-top:1.6cqw}.system-panel button{font-size:1.6cqw}.pixel-symbol,.loading-cartridge{display:block;font-size:6cqw;color:#a82119}.hardware-actions{display:flex;flex-direction:column;align-items:center;gap:1cqw}.subtle{margin-left:1cqw}.system-panel.settings-panel,.game-frame~.system-panel.settings-panel{top:50%;left:50%;width:48%;transform:translate(-50%,-50%);padding:1.8cqw 2.4cqw}.settings-panel ul{list-style:none;padding:0;margin:0;text-align:left}.settings-panel li{display:flex;align-items:center;min-height:2.9cqw;padding:.4cqw .5cqw;font-size:1.8cqw;line-height:1.25}.settings-panel li.selected{color:#ad2014;background:linear-gradient(90deg,#efce6e,#f9df8699);box-shadow:inset 3px 0 #bd3619;text-shadow:0 0 .6cqw #fff8ac;animation:selection-in .16s ease-out}.settings-panel h2{margin:0 0 1.4cqw;font-size:2.6cqw}.settings-panel .menu-arrow{flex:0 0 2.2cqw}.settings-panel .menu-label{flex:1}.settings-panel .menu-value{font-size:1.5cqw;white-space:nowrap}.settings-panel li.menu-divider{border-top:1px solid #a76a3055;margin-top:.6cqw;padding-top:.8cqw}.settings-panel li.menu-power{color:#913425}.settings-panel>small{border-top:1px solid #a76a3055;padding-top:1cqw;margin-top:1cqw;font-size:1.2cqw}.console-screen.menu-visible>.system-heading,.console-screen.menu-visible>.system-footer,.console-screen.menu-visible>.screen-tools{visibility:hidden}.console-screen.menu-visible{isolation:isolate}.console-screen.menu-visible:after{content:"";position:absolute;inset:0;background:#16100855;z-index:2;pointer-events:none}.system-message{position:absolute;z-index:5;bottom:9%;left:5%;right:5%;background:#38220fed;color:#fff2b0;padding:1cqw 1.5cqw;font-size:1.6cqw;display:flex;align-items:center;justify-content:space-between;gap:1cqw}.system-message button{background:transparent;color:inherit;border:0;padding:0 .4em}.game-frame{position:absolute;inset:0;width:100%;height:100%;border:0;background:#080b09}.game-frame~.system-panel{left:28%}.boot-screen{position:absolute;z-index:8;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#101119;color:#eee4c9;font-size:1.7cqw}.boot-logo{font:12cqw Pixel,monospace;color:#ed5146;text-align:center;animation:boot-in .7s steps(8) both}.boot-logo span{display:block;font:2.6cqw FusionPixel-Hans,monospace;color:#eee4c9;margin:3cqw 0;letter-spacing:.25em}.boot-progress{width:26%;height:.8cqw;background:#333;margin:2cqw 0;overflow:hidden}.boot-progress i{display:block;width:40%;height:100%;background:#ed5146;animation:loading 1.1s ease-in-out infinite}.boot-screen small{margin-top:5cqw;font-size:1cqw;letter-spacing:.3em;color:#9b968c}.loading-cartridge{animation:blink 1s steps(2,start) infinite}@keyframes blink{50%{opacity:.35}}@keyframes loading{0%{transform:translate(-100%)}to{transform:translate(350%)}}@keyframes boot-in{0%{opacity:0;transform:scaleY(.05)}to{opacity:1;transform:scaleY(1)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important}}@media(max-width:600px){.console-shell{padding:0}.crt-display{width:min(100vw,calc(100dvh * var(--frame-ratio)))}}button{box-shadow:0 .22cqw #60331399,inset 0 1px #fffbdc;transition:transform .09s,box-shadow .09s,background .12s,color .12s}button:hover{color:#ac2518;box-shadow:0 .22cqw #60331399,0 0 .8cqw #fff7b177}button:active{transform:translateY(.2cqw);box-shadow:inset 0 1px 3px #60331366;background:#efd67a}.controller-indicator{display:flex;align-items:center;gap:.45cqw;padding:.25cqw .65cqw;background:#251c15dd;border:1px solid #ead58088;border-radius:.4cqw;color:#8d8776;box-shadow:inset 0 1px 3px #0009;transition:color .2s,box-shadow .2s}.controller-indicator svg{display:block;width:3.5cqw;height:2.25cqw;overflow:visible}.controller-led{width:.55cqw;height:.55cqw;border-radius:50%;background:#986343;box-shadow:inset 0 0 .2cqw #000;transition:background .2s,box-shadow .2s}.controller-indicator.connected{color:#fff0b0}.controller-indicator.connected .controller-led{background:#a8f074;box-shadow:0 0 .6cqw #9eff65}.controller-indicator.active{box-shadow:0 0 .8cqw #fff292aa,inset 0 1px 3px #0009}.controller-body{fill:#302c25;stroke:currentColor;stroke-width:2}.controller-dpad,.controller-key{fill:#bcac7d;transition:fill .08s,filter .08s}.controller-dpad.pressed,.controller-key.pressed{fill:#ff674c;filter:drop-shadow(0 0 2px #ffb03a)}@keyframes selection-in{0%{transform:translate(-.35cqw);filter:brightness(1.25)}to{transform:translate(0);filter:brightness(1)}}@keyframes row-enter{0%{opacity:.5;transform:translateY(.25cqw)}to{opacity:1;transform:translateY(0)}}.system-clock{position:absolute;z-index:4;top:4.2%;left:7%;padding:.3em .5em;color:#4b301a;background:#fff1b4bb;font-size:1.6cqw;font-variant-numeric:tabular-nums;text-shadow:1px 1px #fff8b5;border:1px solid #79532b66}.system-clock.in-game{background:#151515a8;color:#fff0ba;border-color:#fff2;text-shadow:1px 1px #000;opacity:.8;pointer-events:none}.version-count{margin-left:auto;flex-shrink:0;font-size:1.2cqw;color:#7c3415;background:#fff3aeaa;padding:.25cqw .4cqw;border:1px solid #9e5a1e66}.version-heading h1{font-size:2.8cqw;max-width:35cqw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-metadata{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cartridge-picker>.subtle{margin:1.5cqw 0 0}.controls-panel{top:12%;left:18%;width:64%;padding:1.6cqw 2.2cqw}.game-frame~.controls-panel{left:18%}.controls-panel h2{font-size:2.6cqw;margin-bottom:1cqw}.controls-panel ul{list-style:none;padding:0;margin:0}.controls-panel li{display:flex;justify-content:space-between;align-items:center;min-height:2.25cqw;padding:.25cqw .6cqw;font-size:1.6cqw}.controls-panel li.selected{background:#ebcb6e;color:#a71d14;box-shadow:inset 3px 0 #b62816}.controls-panel li.capturing{background:#a72618;color:#fff2bb;animation:blink 1.2s steps(2,start) infinite}.controls-panel small,.controls-panel .binding-prompt{font-size:1.25cqw;margin:1.2cqw 0 0}.search-panel{top:21%;left:6%;width:88%;padding:1.8cqw 2cqw}.search-panel h2{font-size:2.6cqw;margin:0 0 1.2cqw}.search-query{padding:1cqw;margin-bottom:1.5cqw;border:2px solid #a76a30;background:#fff9d9;text-align:left;font-size:2cqw;display:flex;justify-content:space-between}.search-query span{font-size:1.5cqw}.search-columns{display:grid;grid-template-columns:32cqw minmax(0,1fr);gap:2cqw}.search-keys{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:.45cqw;align-content:start}.search-keys>span{display:grid;place-items:center;height:3.9cqw;white-space:nowrap;min-width:0;border:1px solid #aa793b;background:#ffedac;box-shadow:0 .2cqw #8a542e88;font-size:2cqw}.search-keys>span:nth-last-child(-n+4){font-size:1.05cqw}.search-keys>span.selected{color:#fff2ba;background:#a92517;border-color:#6e1b11;transform:translateY(.1cqw);box-shadow:0 0 .7cqw #db7125}.search-matches{min-width:0;overflow:hidden}.search-matches ol{list-style:none;padding:0;margin:0;min-height:21cqw}.search-matches li{display:flex;align-items:center;text-align:left;gap:.3cqw;height:2.1cqw;font-size:1.6cqw;white-space:nowrap;overflow:hidden}.search-matches li.selected{color:#a71d14;background:#edce77}.search-matches li small{margin:0 0 0 auto;font-size:1.1cqw;flex-shrink:0}.search-matches .search-page{margin:.5cqw 0 0;font-size:1.3cqw}.search-panel>small{font-size:1.3cqw;margin-top:1cqw}.empty-search{font-size:1.8cqw;line-height:2;text-align:center}.search-matches li>span:first-child{flex:0 0 1.6cqw}.search-title{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis}.search-title>span{display:inline-block;width:max-content;vertical-align:top}.search-matches li.selected .search-title.overflowing{text-overflow:clip}.search-matches li.selected .search-title.overflowing>span{animation:search-title-scroll var(--scroll-duration) linear infinite}@keyframes search-title-scroll{0%,15%{transform:translate(0)}75%,90%{transform:translate(var(--scroll-distance))}to{transform:translate(0)}}.about-panel{top:15%;left:18%;width:64%;padding:1.5cqw 2cqw}.about-panel .about-name{font-size:3.5cqw;color:#a82119}.about-content{min-height:23cqw}.about-content p{margin:1cqw 0}.about-licenses{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1cqw;text-align:left;margin:1.5cqw 0;font-size:1.5cqw;line-height:1.5}.about-licenses dd{margin:0;color:#a82119}.about-pages{display:flex;justify-content:center;align-items:center;gap:2cqw;margin:1cqw 0}.about-pages button{padding:.3cqw 1cqw}.console-screen.unpowered{background:#000!important}.console-screen.unpowered:before,.console-screen.unpowered:after{opacity:0}.shutdown-screen,.power-off-screen{position:absolute;inset:0;background:#000;z-index:10}.shutdown-screen canvas{width:100%;height:100%;image-rendering:pixelated;animation:tv-power-off 1.1s linear forwards}@keyframes tv-power-off{0%{transform:scale(1);opacity:.8}15%{opacity:.35}30%{opacity:.9}45%{opacity:.55;transform:scale(1);filter:brightness(1)}65%{transform:scaleY(.008);filter:brightness(5);opacity:1}82%{transform:scale(.01,.008);filter:brightness(8);opacity:1}to{transform:scale(0);opacity:0}}.power-off-screen{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1.5cqw;color:#807a6c}.power-off-screen button{color:#a69d89;background:#111;font-size:1.8cqw}.power-off-screen small{font-size:1.3cqw}@media(prefers-reduced-motion:reduce){.shutdown-screen canvas{animation:tv-power-fade 1.1s linear forwards}}@keyframes tv-power-fade{to{opacity:0}}
