@charset "UTF-8";
:root{color-scheme:dark;--bg:#101711;--panel:#19231b;--line:#3d4b3a;--ink:#f0eddb;--muted:#adb6a4;--green:#c7df82;--orange:#e9a36b;--dark:#0a100b}
*{box-sizing:border-box}html{font-size:106.25%;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;overscroll-behavior:none}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;line-height:1.6}button,input,a{font:inherit}button{color:inherit;cursor:pointer;border:1px solid var(--line);background:transparent;min-height:44px;padding:8px 14px;font-size:15px;font-weight:700;touch-action:manipulation;-webkit-user-select:none;user-select:none}button:active{transform:translateY(2px);background:#344331}button:disabled{opacity:.4;cursor:not-allowed}button:disabled:active{transform:none}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--green);outline-offset:4px}input[type=checkbox]{accent-color:var(--green);width:18px;height:18px;vertical-align:middle}input[type=range]{accent-color:var(--green);width:100%;min-height:44px}a{color:var(--green)}kbd{font:600 12px ui-monospace,monospace;opacity:.7}p{margin:0 0 20px}[hidden]{display:none!important}.shell{max-width:1190px;margin:auto;padding:26px 36px 0}.header{display:flex;align-items:center;justify-content:space-between;padding-bottom:28px;border-bottom:1px solid var(--line)}.brand{color:var(--ink);text-decoration:none;font-family:Impact,"Arial Black",sans-serif;font-size:32px;letter-spacing:.045em;line-height:1}.brand span{display:block;font:700 11px "Hiragino Kaku Gothic ProN",sans-serif;letter-spacing:.12em;margin-top:9px;color:var(--muted)}.small-button{border-radius:3px}.layout{display:grid;grid-template-columns:minmax(0,540px) minmax(280px,350px);gap:72px;justify-content:center;padding-top:38px}.cabinet{background:#202a1f;padding:15px;border:1px solid #4a5840;border-radius:8px;box-shadow:0 6px 0 #080d08,0 24px 60px #0004;align-self:start;min-width:0}.screen-bar{font:600 11px ui-monospace,monospace;display:flex;justify-content:space-between;padding:0 4px 12px;letter-spacing:.03em;color:var(--muted)}.screen-bar>span:first-child{display:flex;gap:8px;align-items:center}.led{height:6px;width:6px;background:#78846b;border-radius:50%;display:inline-block}.led.active{background:var(--green);box-shadow:0 0 8px #c7df8260}.screen{position:relative;aspect-ratio:224/288;background:#050a05;overflow:hidden;border:8px solid #090e09;outline:1px solid #4b5842;border-radius:4px;margin:auto;width:100%}.standby{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:25px 16px;background:radial-gradient(ellipse at center,#233b1d 0,#0e1b0e 65%,#080e08 100%)}.screen-top{font:600 10px ui-monospace,monospace;color:#96b977;letter-spacing:.2em;margin-top:auto}.standby h1{font:italic 900 clamp(44px,5.5vw,67px)/1 Impact,"Arial Black",sans-serif;letter-spacing:-.04em;color:#e1e99e;text-shadow:2px 3px 0 #64773b;margin:27px 0 13px}.title-rule{height:3px;background:#e1e99e;width:80%;box-shadow:0 5px 0 #65743a}.screen-jp{font-weight:800;font-size:clamp(18px,2vw,23px);margin:32px 0 12px;letter-spacing:.04em}.screen-copy{font-size:12px;line-height:1.9;color:#a9c18d}.standby-mark{font:400 46px/1 ui-monospace,monospace;color:#bbd26e;margin:10px 0 25px}.screen-bottom{font-size:12px;color:#a9c18d;margin:auto 0 0}iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.screen.scanlines:after{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,#0003 0,#0003 1px,transparent 1px,transparent 3px)}.machine-tools{display:flex;gap:6px;margin-top:13px}.machine-tools button{flex:1;padding:5px 4px;min-height:40px;font-size:12px;background:#182117;border-color:#43503a;white-space:nowrap}.machine-tools kbd{margin-left:3px;font-size:10px}.control-deck{display:flex;justify-content:space-between;gap:12px;padding:23px 15px 8px;touch-action:none}.move-control{text-align:center}.joystick{position:relative;width:142px;height:142px;border:1px solid #526148;border-radius:50%;background:radial-gradient(circle,#35462c,#1a2418 67%);touch-action:none}.axis{position:absolute;background:#67745944}.axis.horizontal{left:10px;right:10px;top:70px;height:1px}.axis.vertical{top:10px;bottom:10px;left:70px;width:1px}.stick{position:absolute;width:54px;height:54px;left:43px;top:43px;border-radius:50%;background:radial-gradient(circle at 38% 30%,#8d9d70,#4f603c 60%,#303f28);box-shadow:0 4px 0 #0e150e,0 8px 10px #0008;border:1px solid #a8b18b80;pointer-events:none}.direction{position:absolute;border:0;color:#afb697;width:44px;height:44px;min-height:44px;padding:0;background:transparent;font:600 18px ui-monospace,monospace;touch-action:none}.direction.up{top:0;left:49px}.direction.down{bottom:0;left:49px}.direction.left{left:0;top:49px}.direction.right{right:0;top:49px}.control-caption{font-size:12px;color:#d3d9bf;display:block;margin-top:10px}.control-caption span{font-size:10px;color:#98a58c;margin-left:7px}.weapons{display:flex;gap:15px;align-items:center;padding-bottom:23px}.weapon{border-radius:50%;height:90px;width:90px;min-height:90px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:0;border:4px solid #11190f;outline:1px solid #566449;box-shadow:0 5px 0 #0b100a,0 8px 12px #0005;color:#151d10;touch-action:none}.weapon:active,.weapon.pressed{transform:translateY(4px);box-shadow:0 1px 0 #0b100a;filter:brightness(1.1)}.weapon b{font-size:24px;line-height:1.2;font-weight:900}.weapon span{font-size:9px;margin:3px 0 0}.weapon kbd{font-size:11px;opacity:.7}.bomb{background:var(--orange)}.zapper{background:var(--green)}.deck-options{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px 5px 0;border-top:1px solid #3d4a34;font-size:12px;color:var(--muted)}.deck-options label{display:flex;gap:6px;align-items:center;min-height:44px}.deck-options button{border:none;min-height:44px;padding:5px;font-size:12px}.side-panel{padding-top:16px;min-width:0}.eyebrow{font-size:12px;font-weight:800;color:var(--green);letter-spacing:.08em;margin-bottom:23px}h2{font-size:37px;line-height:1.45;letter-spacing:.015em;margin:0 0 20px;font-weight:900}.intro{font-size:16px;line-height:1.9;color:#c7cdbd;margin-bottom:31px}.load-card{border:1px solid #536046;background:#202b1d;padding:22px}.step-label{font:700 12px ui-monospace,monospace;color:var(--green);display:flex;gap:10px;margin-bottom:18px}.step-label span{font-family:"Hiragino Kaku Gothic ProN",sans-serif;letter-spacing:.04em}#romStatus{font-size:14px;font-weight:700;overflow-wrap:anywhere;margin-bottom:14px}.file-button{width:100%;display:flex;justify-content:space-between;text-align:left;border-color:#748063;background:#2d3b26;font-size:14px}.remember{font-size:12px;display:flex;align-items:center;gap:6px;margin:12px 0;min-height:32px}.privacy{font-size:12px;color:#b5c0a8;line-height:1.8;margin-bottom:18px}.primary{background:var(--green);border:0;color:#17200f;min-height:53px;font-weight:900;font-size:16px}.primary:active{background:#d6eba0}.launch{width:100%;display:flex;align-items:center;justify-content:space-between}.launch:disabled{opacity:.45}.error{border-left:3px solid #efb28b;margin-top:18px;padding:8px 10px;font-size:13px;color:#ffd1b4;white-space:pre-wrap;max-height:200px;overflow:auto}.save-row{display:flex;gap:8px;margin-top:20px}.save-row button{flex:1;font-size:13px}.save-note{font-size:11px;color:#a8b39b;margin:9px 0 20px}.settings{border-block:1px solid #3a4733;margin:20px 0;padding:10px 0;font-size:13px}.settings summary{padding:6px 0;cursor:pointer;min-height:38px;font-weight:700}.settings label{display:flex;align-items:center;gap:10px;margin:13px 0}.settings input[type=range]{width:70%}.settings button{font-size:12px;margin:4px 3px 8px 0}.settings p{font-size:12px;margin:10px 0}.game-note{font-size:12px;color:#94a388;line-height:1.9;margin-bottom:0}footer{margin:38px 0 0;padding:20px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px;font:600 11px ui-monospace,monospace;color:var(--muted)}footer b{font-weight:400;margin-left:10px}footer button{font-size:11px;border:0;padding:0;min-height:44px;color:var(--muted)}dialog{background:#1a251a;border:1px solid #5a6a4e;border-radius:7px;color:var(--ink);padding:25px;max-width:560px;width:calc(100% - 32px);max-height:85dvh;font-size:16px;line-height:1.9;overscroll-behavior:contain}dialog::backdrop{background:#050905c9;backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:20px}.dialog-heading h2{font-size:23px;margin:0}.dialog-heading button{padding:0;width:44px;font-size:25px;flex-shrink:0}dialog ol{padding-left:23px}dialog li{margin:0 0 17px}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:15px;border:1px solid var(--line);margin:20px 0;font-size:13px}.toast{position:fixed;z-index:20;bottom:calc(22px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#d6e9b3;color:#172212;padding:12px 18px;border:1px solid #fff6;border-radius:4px;box-shadow:0 8px 32px #0008;font-size:14px;font-weight:700;max-width:90%;width:max-content}.pause-overlay{position:absolute;inset:0;z-index:3;background:#061005bb;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:23px;font-size:23px;font-weight:900}.pause-overlay button{min-width:150px}.shell:fullscreen{max-width:none;overflow:auto;background:var(--bg);padding-top:env(safe-area-inset-top)}.shell:fullscreen .header,.shell:fullscreen footer,.shell:fullscreen .side-panel{display:none}.shell:fullscreen .layout{padding:10px 0;display:flex}.shell:fullscreen .cabinet{width:min(540px,calc((100dvh - 265px)*.778 + 46px))}
@media(hover:hover) and (pointer:fine){button:not(:disabled):hover{filter:brightness(1.15)}a:hover{color:#e3f1ba}}
@media(max-width:1000px){.layout{gap:35px;grid-template-columns:minmax(0,480px) minmax(270px,310px)}.shell{padding-inline:22px}.control-deck{padding-inline:5px}.weapon{width:77px;height:77px;min-height:77px}.weapons{gap:10px}h2{font-size:32px}.load-card{padding:18px}}
@media(max-width:760px){.shell{max-width:530px;padding:calc(14px + env(safe-area-inset-top)) max(13px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(13px,env(safe-area-inset-left))}.header{padding-bottom:16px}.brand{font-size:28px}.brand span{font-size:9px;margin-top:7px}.small-button{font-size:12px;padding:5px 12px}.layout{display:flex;flex-direction:column;gap:27px;padding-top:20px}.cabinet{width:100%;padding:10px}.screen{border-width:6px;max-height:calc(100svh - 282px);min-height:225px;width:auto;margin:auto;aspect-ratio:224/288}.screen-bar{padding-bottom:9px;font-size:10px}.standby{padding:16px 8px}.standby h1{font-size:42px;margin:18px 0 11px}.screen-jp{font-size:17px;margin:24px 0 9px}.screen-copy{font-size:10px;margin-bottom:10px}.screen-top{font-size:9px}.standby-mark{font-size:35px;margin:0 0 14px}.screen-bottom{font-size:9px}.control-deck{padding:15px 8px 7px;gap:6px}.joystick{width:116px;height:116px}.axis.horizontal{top:57px}.axis.vertical{left:57px}.stick{left:34px;top:34px;width:46px;height:46px}.direction.up,.direction.down{left:35px}.direction.left,.direction.right{top:35px}.weapon{width:76px;height:76px;min-height:76px;border-width:3px}.weapon b{font-size:21px}.weapons{gap:12px;padding-bottom:16px}.control-caption{margin-top:7px}.control-caption span{display:none}.machine-tools{margin-top:10px;gap:4px}.machine-tools button{min-height:36px;font-size:11px}.machine-tools kbd{display:none}.deck-options{padding-top:3px;font-size:11px}.deck-options label,.deck-options button{min-height:37px;font-size:11px}.side-panel{padding:0 3px}.eyebrow{margin-bottom:13px}h2{font-size:30px}.side-panel h2 br{display:none}.intro{font-size:16px;margin-bottom:20px}.load-card{padding:20px}.file-button{font-size:15px}.privacy,.remember{font-size:13px}.save-note,.game-note{font-size:12px}footer{margin-top:24px;font-size:9px}footer b{margin-left:5px}footer button{font-size:10px}}
@media(max-width:350px){.control-deck{padding-inline:1px}.weapons{gap:7px}.weapon{width:66px;height:66px;min-height:66px}.weapon b{font-size:19px}.joystick{width:106px;height:106px}.direction.up,.direction.down{left:30px}.direction.left,.direction.right{top:30px}.stick{left:29px;top:29px}.axis.horizontal{top:52px}.axis.vertical{left:52px}.screen{min-height:215px}.standby h1{font-size:35px}.screen-jp{font-size:14px}.screen-copy{font-size:9px}.screen-top,.screen-bottom{font-size:8px}.standby-mark{display:none}}
@media(max-height:500px) and (orientation:landscape){.shell{max-width:1000px;padding-top:9px}.header{padding-bottom:8px}.brand{font-size:21px}.brand span{display:none}.layout{padding-top:12px;display:block}.cabinet{position:relative;min-height:275px;padding:10px 150px 10px 140px}.screen{height:calc(100dvh - 100px);max-height:350px;min-height:200px;width:auto}.screen-bar{display:none}.control-deck{position:absolute;inset:40px 10px 45px;pointer-events:none;align-items:center;justify-content:space-between;padding:0}.control-deck>*{pointer-events:auto}.weapons{flex-direction:column;gap:12px;padding:0}.machine-tools{position:absolute;left:10px;right:10px;bottom:10px;width:120px;flex-wrap:wrap}.machine-tools button{flex:1 1 45%;min-height:32px;font-size:10px}.deck-options{position:absolute;bottom:8px;right:10px;width:125px;flex-wrap:wrap;gap:0;border:0}.deck-options #fpsLabel{display:none}.side-panel{margin-top:24px}.standby h1{font-size:35px}.screen-jp{font-size:14px;margin:18px 0 10px}.screen-copy{font-size:9px}.standby-mark{display:none}.screen-bottom,.screen-top{font-size:8px}.shell:fullscreen .cabinet{width:100%;padding-inline:150px}.shell:fullscreen .screen{height:calc(100dvh - 40px)}}

.slot-label{display:flex;align-items:center;gap:14px;margin:18px 0 -8px;font-size:13px;color:var(--muted)}.slot-label select{font:inherit;font-size:16px;min-height:44px;background:#202b1d;border:1px solid var(--line);color:var(--ink);padding:5px 15px}
.screen-action{font-size:13px;color:var(--green);border:1px solid #9ab466;padding:8px 15px;min-height:44px;margin-bottom:16px;background:#16240f}
.standby-mark{display:none}
@media(max-width:350px),(max-height:650px) and (orientation:portrait){.standby .screen-copy,.standby .screen-bottom{display:none}.standby .screen-top{margin-top:0}.standby{justify-content:center}.standby .screen-jp{margin:16px 0 12px}.standby .screen-action{margin-bottom:0}}

@media(max-width:760px) and (orientation:portrait){.screen{width:min(100%,max(167px,calc((100svh - 328px)*.77777778)));max-height:none;min-height:0}}
