:root{color-scheme:light;--paper:#f3eee3;--ink:#292b26;--muted:#858778;--red:#b9473b;--line:#d6d1c5;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #c79339;outline-offset:3px}button:disabled{opacity:.35;cursor:default}a{color:inherit}header{height:62px;max-width:1440px;margin:auto;padding:0 44px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:16px;font-weight:800;letter-spacing:.05em}.brand-mark{font-size:23px;color:var(--red)}.brand small{font:9px ui-monospace,monospace;color:var(--muted);letter-spacing:.12em}.back{font-size:11px;text-decoration:none;color:#7c8172}main{max-width:1280px;margin:auto;padding:26px 44px 22px}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.eyebrow{font:9px ui-monospace,monospace;letter-spacing:.16em;color:var(--muted);margin:0 0 10px}h1{font-size:36px;margin:0;letter-spacing:.02em}h1>span{color:var(--red)}h1 small{font:13px ui-monospace,monospace;letter-spacing:.1em;vertical-align:middle;margin-left:12px;color:#757e6a}.intro>div>p:last-child{color:#818574;font-size:12px;margin:10px 0 0}.cartridge{width:76px;height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #c6c3b6;border-radius:3px;background:#ece7db;transform:rotate(5deg);box-shadow:4px 4px 0 #e0dbce;gap:3px}.cartridge span{font-size:7px;letter-spacing:.08em}.cartridge b{font:bold 28px ui-monospace,monospace;color:var(--red)}.arcade{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:30px;align-items:start}.cabinet{padding:12px 12px 0;border:1px solid #c8c6ba;background:#e7e4d9;border-radius:5px;box-shadow:0 3px 0 #c6c3b7,0 12px 36px #514a2d0a;min-width:0}.cabinet-top{display:flex;align-items:center;justify-content:space-between;height:27px;margin-bottom:10px;gap:8px}.player-label{font:9px ui-monospace,monospace;color:#6c7562;display:flex;align-items:center;gap:7px}.player-label i{width:5px;height:5px;border-radius:50%;background:#c74a3f;box-shadow:0 0 5px #c74a3f88}.toolbar{display:flex;gap:5px}.toolbar button{background:#efede4;border:1px solid #cac8bd;padding:5px 7px;border-radius:3px;color:#646d5d;font-size:10px;line-height:1.2}.toolbar button:hover:not(:disabled){background:#fff9e9}.screen-frame{position:relative;aspect-ratio:448/264;border:5px solid #363b34;border-top-color:#272f28;border-radius:3px;background:#070e10;overflow:hidden;isolation:isolate}canvas{width:100%;height:100%;display:block;image-rendering:pixelated;touch-action:none}.screen-glass{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 25px #0006;background:repeating-linear-gradient(transparent,transparent 3px,#00000012 3px,#00000012 4px);z-index:1}.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#07100b77;z-index:2;color:#eee9cf;text-align:center}.overlay[hidden]{display:none}.panel{padding:24px 28px 20px;border:1px solid #52634a;background:#0b1513f5;box-shadow:0 10px 40px #0008;max-width:90%}.screen-kicker{font:9px ui-monospace,monospace;letter-spacing:.15em;color:#bece94;margin:0 0 13px}.panel h2{font-size:24px;letter-spacing:.05em;margin:0 0 12px}.panel>p:not(.screen-kicker){font-size:11px;line-height:1.9;color:#a1ad93;margin:0 0 17px}.primary{background:#d4e796;border:0;border-radius:2px;padding:11px 23px;box-shadow:0 3px 0 #7f9257;color:#283d24;font-size:12px;font-weight:750;letter-spacing:.05em}.primary:hover{background:#e0edb1}.start-key{display:block;font:8px ui-monospace,monospace;color:#829374;letter-spacing:.08em;margin-top:13px}.cabinet-bottom{height:31px;display:flex;align-items:center;justify-content:space-between;font:8px ui-monospace,monospace;color:#858d79;gap:12px}.cabinet-bottom span:last-child{font-family:inherit}.toast{position:absolute;top:19%;left:50%;transform:translateX(-50%);white-space:nowrap;background:#243521ee;border:1px solid #839461;color:#e7e6a0;padding:8px 13px;font-size:11px;z-index:3}.guide-label{font:9px ui-monospace,monospace;color:#878a7d;border-bottom:1px solid var(--line);padding:4px 0 12px;display:flex;justify-content:space-between;letter-spacing:.12em}.guide-label span{color:#b5b8a8}aside h2{font-size:24px;line-height:1.5;margin:19px 0 12px}.guide-copy{font-size:11px;line-height:1.8;color:#8a8c7d;margin:0 0 18px;min-height:38px}.control-row{display:flex;justify-content:space-between;align-items:center;margin:9px 0;font-size:10px;color:#737d67}.control-row b{font-weight:400}.control-row>span{display:flex;gap:4px}kbd{min-width:23px;height:23px;padding:0 3px;display:inline-flex;align-items:center;justify-content:center;font:10px ui-monospace,monospace;background:#f8f5eb;border:1px solid #cbcbbd;border-radius:3px;box-shadow:0 2px 0 #d5d4c7}.mouse-note{font-size:9px;color:#8a8c7d;line-height:1.8;margin:10px 0 18px}.rule{display:flex;gap:12px;align-items:center;border-top:1px solid var(--line);padding:12px 0}.rule strong{font:26px ui-monospace,monospace;color:#adb793}.rule p{font-size:10px;color:#8a8d7c;line-height:1.8;margin:0}.rule b{font-weight:500;color:#626e54}.score-note{border-top:1px solid var(--line);padding-top:14px;display:flex;gap:14px;align-items:center;margin-top:2px}.score-note>b{font:13px ui-monospace,monospace;color:#946349;white-space:nowrap}.score-note span{font-size:9px;line-height:1.8;color:#8b907c}.text-button{margin-top:20px;padding:0;background:none;border:0;color:#727d64;font-size:10px;text-align:left;text-decoration:underline;text-underline-offset:4px}footer{margin-top:28px;border-top:1px solid var(--line);padding-top:17px;font-size:9px;color:#969b88;display:flex;justify-content:space-between}.touch-controls{display:none}.live-status{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}dialog{width:min(510px,calc(100% - 28px));max-height:90svh;overflow-y:auto;background:var(--paper);padding:29px;border:1px solid #c9c5b8;border-radius:4px;box-shadow:0 18px 100px #0005;color:var(--ink)}dialog::backdrop{background:#11170fc4;backdrop-filter:blur(3px)}dialog h2{font-size:23px;margin:9px 0 17px}dialog p:not(.eyebrow){font-size:12px;line-height:1.9;color:#777e6d}dialog button{border:1px solid #cbcbbd;padding:9px 12px;background:#f8f5eb;border-radius:2px;color:#5f6857;font-size:11px}dialog .primary{background:#af493e;color:#fff4df;box-shadow:none;padding:10px 17px}dialog .close{position:absolute;right:12px;top:9px;border:0;background:none;font-size:24px;padding:3px 8px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:23px}.reference-links{display:flex;flex-direction:column;gap:11px;margin:20px 0;color:#97513e;font-size:11px}.stage-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:20px 0 10px}.stage-grid button{text-align:left;display:flex;flex-direction:column;gap:6px;padding:12px;background:#f9f5ea}.stage-grid button:hover{border-color:var(--red)}.stage-grid strong{font:11px ui-monospace,monospace;color:var(--red)}.stage-grid span{font-size:11px}
@media(max-width:1000px){header{padding:0 28px}main{padding:25px 28px}.arcade{gap:22px;grid-template-columns:minmax(0,1fr) 175px}aside h2{font-size:21px}.panel{padding:20px}.panel h2{font-size:21px}.rule{padding:10px 0}.score-note{gap:9px}.toolbar button{font-size:9px}.player-label{font-size:8px}}
@media(max-width:760px){header{height:56px;padding:0 18px}.brand{font-size:14px;gap:7px}.brand small{font-size:7px}.back{font-size:10px}main{padding:23px 14px 20px}.intro{margin:0 4px 22px}.eyebrow{font-size:7px}h1{font-size:30px}h1 small{font-size:10px;margin-left:7px}.intro>div>p:last-child{font-size:10px}.cartridge{width:60px;height:65px;margin-left:12px;flex-shrink:0}.cartridge b{font-size:25px}.cartridge span{font-size:6px}.arcade{display:block}.cabinet{padding:8px 8px 0}.cabinet-top{height:25px;margin-bottom:7px}.toolbar{gap:4px}.toolbar button{font-size:9px;padding:5px}.screen-frame{border-width:3px}.cabinet-bottom{font-size:6px;height:27px}.panel{padding:12px 15px 11px;max-width:92%}.panel h2{font-size:17px;margin-bottom:7px}.screen-kicker{font-size:6px;margin-bottom:8px}.panel>p:not(.screen-kicker){font-size:9px;line-height:1.6;margin-bottom:10px}.primary{padding:9px 17px;font-size:10px}.start-key{font-size:6px;margin-top:9px}.toast{font-size:9px;padding:6px 10px}aside{margin:27px 8px 0;display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.guide-label{grid-column:1/-1}aside h2{font-size:21px;margin:17px 0 12px}.guide-copy{margin-top:20px;font-size:10px}.control-row{font-size:10px}.mouse-note{grid-column:1/-1;font-size:10px;margin:13px 0 15px}.rule{padding:11px 0}.rule p{font-size:10px}.rule strong{font-size:23px}.score-note{margin:0;padding:11px 0}.text-button{grid-column:1/-1;margin-top:17px}footer{font-size:8px;gap:14px;margin-top:24px}dialog{padding:25px}.dialog-actions{gap:8px}.dialog-actions button{font-size:10px}}
@media(pointer:coarse),(max-width:760px){.touch-controls{display:flex;justify-content:space-between;align-items:center;padding:13px 10px 19px;border-top:1px solid #cdcec0;touch-action:none;user-select:none;-webkit-user-select:none}.dpad{display:grid;grid-template-columns:42px 42px 42px;grid-template-rows:34px 34px 34px;gap:1px}.dpad button{border:0;background:#444c3e;color:#e6ead9;font-size:15px;border-radius:3px;touch-action:none;box-shadow:0 3px 0 #2c3429}.dpad .up{grid-column:2}.dpad .left{grid-row:2;grid-column:1}.dpad .right{grid-row:2;grid-column:3}.dpad .down{grid-row:3;grid-column:2}.dpad .center{grid-row:2;grid-column:2;background:#444c3e}.touch-actions{display:flex;gap:17px;transform:rotate(-9deg);margin:0 8px}.dig-key{height:59px;width:59px;border:2px solid #a13931;border-radius:50%;box-shadow:0 4px 0 #7e2e29;background:#b9473b;color:#fff1d9;font-size:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;touch-action:none}.dig-key small{font:8px ui-monospace,monospace;opacity:.7}.is-held{filter:brightness(1.3);transform:translateY(2px)!important}}
@media(max-width:360px){.brand small{display:none}.player-label{font-size:7px}.toolbar button{padding:4px;font-size:8px}.touch-actions{gap:12px;margin-right:1px}.dig-key{width:52px;height:52px}.dpad{grid-template-columns:37px 37px 37px}.panel h2{font-size:15px}.panel{padding:9px 12px}.start-key{margin-top:6px}.cartridge{width:52px}}
@media(prefers-reduced-motion:reduce){.screen-glass{background:none}*{scroll-behavior:auto!important}}

.speed-control{margin:0 0 18px;grid-column:1/-1}.speed-control label{display:block;font-size:10px;color:#626e54;margin-bottom:7px}.speed-control select{width:100%;border:1px solid #cbcbbd;background:#f8f5eb;color:#3b4831;padding:7px 9px;border-radius:3px;font-family:inherit;font-size:11px}.speed-control p{font-size:9px;color:#737d67;line-height:1.7;margin:7px 0 0}.speed-control select:focus-visible{outline:3px solid #c79339;outline-offset:3px}
/* v1.9: accommodate translated labels without clipping the game. */
.intro>div:first-child{min-width:0}.cartridge{padding:4px;text-align:center}.cartridge span{overflow-wrap:anywhere}.cabinet-top{height:auto;min-height:28px;flex-wrap:wrap}.toolbar{flex-wrap:wrap}.panel{max-height:96%;overflow:auto}.toast{max-width:94%;white-space:normal;text-align:center}.cabinet-bottom{height:auto;min-height:31px;flex-wrap:wrap;padding:7px 0}.control-row{gap:8px}.control-row>span{flex-shrink:0}.control-row>b{text-align:right}footer{flex-wrap:wrap}.dig-key{padding:2px;font-size:11px}html[lang=en] h1 small{display:none}html[lang=en] .brand small{display:none}
@media(max-width:760px){html[lang=en] .panel h2{font-size:16px;letter-spacing:0}html[lang=en] .panel>p:not(.screen-kicker){font-size:9px;line-height:1.5}header{gap:12px}.back{max-width:44%;text-align:right}html[lang=en] .cartridge{width:66px}}
