:root{color-scheme:light;--paper:#f3eee3;--ink:#292b26;--muted:#858677;--red:#b9483d;--line:#d7d2c6;--green:#d4e697;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}button{font:inherit;cursor:pointer}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #c88d31;outline-offset:4px}button:disabled{opacity:.4;cursor:default}a{color:inherit}.site-header{height:56px;border-bottom:1px solid var(--line);max-width:1440px;margin:auto;padding:0 44px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:750;text-decoration:none}.brand-mark{font-size:23px;color:var(--red)}.brand small{font:9px ui-monospace,monospace;color:var(--muted);letter-spacing:.12em;margin-left:8px}.header-note{font-size:10px;color:#7f8476}main{max-width:1160px;margin:auto;padding:24px 34px}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.eyebrow{font:9px ui-monospace,monospace;letter-spacing:.15em;color:#8b8b7f;margin:0 0 10px}h1{font-size:34px;line-height:1.2;margin:0 0 9px;letter-spacing:.02em}h1>span{color:var(--red)}h1 small{font-size:16px;font-weight:500;margin-left:16px;vertical-align:middle}.intro-copy{font-size:11px;line-height:1.8;color:#7e8275;margin:0}.badge{width:75px;height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#ece7db;border:1px solid #c6c3b6;box-shadow:4px 4px #e0dbce;transform:rotate(5deg);margin-right:8px}.badge span{font-size:7px;color:#838575}.badge strong{font:bold 28px ui-monospace,monospace;color:var(--red);line-height:1.4}.arcade{display:flex;justify-content:center;gap:34px;align-items:flex-start}.cabinet{background:#e5e6d9;border:1px solid #c5c8b7;border-radius:6px;padding:11px 13px 10px;box-shadow:0 4px 0 #cbcdbd,0 9px 24px #383c2a0b;width:clamp(350px,calc((100svh - 255px)*416/448 + 28px),660px);flex:0 1 auto}.cabinet-top{height:26px;margin-bottom:8px;display:flex;align-items:center;justify-content:space-between;gap:12px;font:8px ui-monospace,monospace;letter-spacing:.08em;color:#6d765f}.player-label{display:flex;gap:6px;align-items:center;white-space:nowrap}.player-label i{width:5px;height:5px;border-radius:50%;background:#91a762;box-shadow:0 0 6px #849c63}.toolbar{display:flex;gap:5px}.toolbar button{font-size:8px;background:#eceee1;border:1px solid #c5cbb7;padding:5px 8px;border-radius:3px;color:#68735b}.toolbar button:hover:not(:disabled){background:#f8f6e8}.screen-frame{position:relative;background:#141b16;border:5px solid #343c30;border-radius:3px;overflow:hidden}#game{display:block;width:100%;height:auto;image-rendering:pixelated;touch-action:none;background:#141b16}.screen-glass{position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,#0000,#0000 3px,#00000009 4px);box-shadow:inset 0 0 32px #0003}.screen-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#08120c80;padding:15px;z-index:2}.screen-overlay.hidden,.hidden{display:none!important}.panel{text-align:center;background:#101c15f7;border:1px solid #536046;box-shadow:0 14px 48px #0008;color:#dce5bd;padding:28px 25px;min-width:min(260px,100%)}.start-panel{padding-top:26px}.screen-kicker{font:8px ui-monospace,monospace;letter-spacing:.18em;color:#94a47d;margin:0 0 15px}.panel h2{font-size:23px;letter-spacing:.01em;margin:0 0 13px;font-weight:750}.panel>p:not(.screen-kicker){font-size:10px;line-height:1.9;color:#a7b291;margin:0 0 18px}.panel button{display:block;min-width:170px;margin:11px auto;border-radius:3px;font-size:12px;line-height:1.2;padding:12px 20px}.primary{background:#d4e697;color:#263020;border:1px solid #d4e697;box-shadow:0 3px #80935b;font-weight:700}.primary:hover{background:#e3f1b4}.primary:active{transform:translateY(2px);box-shadow:0 1px #80935b}.secondary{background:transparent;color:#afbc99;border:1px solid #536046}.panel>small{display:block;font-size:7px;letter-spacing:.08em;color:#859472;margin-top:15px}.result-score{font:bold 34px ui-monospace,monospace;letter-spacing:.06em;display:block;color:var(--green);margin:7px 0 10px}.kill-summary{font:9px ui-monospace,monospace;color:#a8b78a;line-height:1.9;margin-bottom:16px}.toast{position:absolute;z-index:3;top:17%;left:50%;transform:translateX(-50%);padding:8px 12px;white-space:nowrap;color:#edf3cd;background:#223720ed;border:1px solid #7a905e;font-size:10px;pointer-events:none}.cabinet-bottom{display:flex;justify-content:space-between;padding-top:11px;font-size:8px;color:#7e8671}.wave-track{display:flex;gap:4px;margin-top:9px}.wave-track span{height:3px;flex:1;background:#aeb89a}.wave-track span.active{background:#9b6c4e}.wave-track span.done{background:#d7dccc}.game-guide{width:210px;flex:0 0 210px;padding-top:5px}.guide-label{display:flex;justify-content:space-between;font:9px ui-monospace,monospace;letter-spacing:.12em;color:#858978;border-bottom:1px solid var(--line);padding-bottom:12px}.guide-label>span{color:#aeb1a0}.game-guide h2{font-size:21px;line-height:1.55;margin:18px 0 12px}.guide-intro{font-size:10px;line-height:1.9;color:#8a8c7d;margin:0 0 19px}.control-row{display:flex;justify-content:space-between;align-items:center;margin:10px 0;font-size:10px;color:#747e67}kbd{height:25px;padding:0 7px;min-width:62px;display:flex;align-items:center;justify-content:center;border:1px solid #ceccbd;background:#f8f5eb;border-radius:3px;box-shadow:0 2px #d6d4c6;font:9px ui-monospace,monospace}.mouse-note{font-size:9px;line-height:1.8;color:#8a8c7c;margin:12px 0 0}.rule-note{display:flex;gap:12px;align-items:center;margin:20px 0;padding:13px 0;border-block:1px solid var(--line)}.rule-note strong{font:33px ui-monospace,monospace;color:#b4bc99}.rule-note p{font-size:9px;line-height:1.9;color:#8b8e7e;margin:0}.rule-note b{font-weight:500;color:#5f6c50}.terrain-guide>div{display:flex;align-items:center;gap:10px;font-size:10px;color:#747d68;margin:9px 0}.terrain-guide small{margin-left:auto;font-size:9px;color:#939984}.terrain{width:19px;height:19px;display:block;border:2px solid #313e30;image-rendering:pixelated}.brick{background:repeating-linear-gradient(0deg,#ba7655 0px,#ba7655 4px,#67472f 4px,#67472f 5px)}.steel{background:#b4bdaa;box-shadow:inset 2px 2px #e7edda,inset -2px -2px #7f8d78}.water{background:repeating-linear-gradient(0deg,#4b8d9a 0px,#4b8d9a 4px,#76b9b8 4px,#76b9b8 5px)}.forest{background:#618950;box-shadow:inset 3px 3px #3a5b33,inset -3px -3px #8aa366}.bonus-note{border-top:1px solid var(--line);padding-top:17px;margin:20px 0 0;font-size:9px;line-height:1.9;color:#8a917c}.bonus-note b{display:block;font-size:10px;color:#99624a;margin-bottom:6px;font-weight:600}.reference-button{width:100%;margin-top:19px;border:0;background:none;padding:0;font-size:10px;color:#747f64;display:flex;justify-content:space-between;text-decoration:underline;text-underline-offset:4px}footer{display:flex;justify-content:space-between;margin-top:27px;padding-top:16px;border-top:1px solid var(--line);font-size:8px;color:#a1a392}.touch-controls{display:none}dialog{width:min(500px,calc(100% - 28px));max-height:calc(100svh - 36px);overflow:auto;background:var(--paper);border:1px solid #c9c5b8;border-radius:5px;color:var(--ink);padding:30px;box-shadow:0 18px 100px #0005}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.8;color:#737b67}dialog button{border:1px solid #c9c9ba;background:#faf7ec;border-radius:3px;color:#646e58;padding:10px 14px;font-size:12px}.dialog-close{position:absolute;top:11px;right:12px;border:0;background:transparent;font-size:23px;padding:3px 7px}.dialog-primary{background:#b34b3f;border-color:#b34b3f;color:#fff4df}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.reference-links{display:flex;flex-direction:column;gap:12px;font-size:12px;color:#8e634a;margin:23px 0}.pickup-guide{background:#ebe9dc;padding:8px 15px;border-left:2px solid #b7bf97}.pickup-guide p{margin:6px 0!important;font-size:11px!important}.stage-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:22px}.stage-options button{text-align:left;line-height:1.9}.stage-options button:hover{border-color:#ad6b50;background:#efe4d5}.stage-options strong{font:16px ui-monospace,monospace;color:#b05242;margin-right:8px}.stage-options small{display:block;color:#949781;font-size:9px}@media(max-height:820px) and (min-width:731px){.game-guide h2{font-size:18px;margin:14px 0 9px}.guide-intro{margin-bottom:13px}.control-row{margin:8px 0}.rule-note{margin:15px 0;padding:10px 0}.bonus-note{margin-top:15px;padding-top:12px}.terrain-guide>div{margin:7px 0}.reference-button{margin-top:14px}}
@media(max-width:730px){.site-header{height:54px;padding:0 20px}.brand{font-size:13px}.brand small{font-size:7px;margin-left:3px}.header-note{display:none}main{padding:23px 17px}.intro{margin-bottom:22px}.eyebrow{font-size:8px}h1{font-size:30px}h1 small{display:block;margin:7px 0 0;font-size:13px;letter-spacing:.08em}.intro-copy{font-size:10px;max-width:250px}.badge{width:65px;height:70px;margin:0 3px 0 10px;flex-shrink:0}.badge span{font-size:6px}.badge strong{font-size:26px}.arcade{display:block}.cabinet{width:100%;padding:9px 9px 11px;max-width:520px;margin:auto}.cabinet-top{font-size:7px;gap:5px;height:24px}.toolbar{gap:4px}.toolbar button{font-size:8px;padding:5px 6px}.screen-frame{border-width:4px}.panel{padding:20px 16px;min-width:min(240px,100%)}.panel h2{font-size:21px}.panel button{font-size:11px;min-width:160px}.screen-kicker{font-size:7px;margin-bottom:12px}.panel>p:not(.screen-kicker){font-size:10px;margin-bottom:14px}.cabinet-bottom{font-size:7px}.game-guide{width:100%;padding:0 8px;margin-top:30px;display:grid;grid-template-columns:1fr 1fr;column-gap:25px}.guide-label{grid-column:1/-1}.game-guide h2{font-size:18px;margin-top:17px}.guide-intro{margin-top:20px;font-size:10px}.control-row{grid-column:1;font-size:9px}.mouse-note{grid-column:1;font-size:9px}.terrain-guide{grid-column:2;grid-row:3/7;padding-top:1px}.rule-note{grid-column:1/-1;margin:14px 0 0;justify-content:center;gap:20px}.rule-note strong{font-size:28px}.rule-note p{font-size:10px}.bonus-note{grid-column:1/-1;margin-top:15px;border:0;padding-top:0}.reference-button{grid-column:1/-1;margin-top:15px}footer{gap:16px;line-height:1.8}.result-score{font-size:28px}.kill-summary{font-size:8px}dialog{padding:27px 23px}dialog h2{font-size:21px}}
@media(pointer:coarse),(max-width:730px){.touch-controls{display:flex;align-items:center;justify-content:space-between;margin-top:14px;padding:13px 8px 4px;border-top:1px solid #cfd2c2;touch-action:none;user-select:none;-webkit-user-select:none}.dpad{display:grid;grid-template-columns:43px 43px 43px;grid-template-rows:38px 38px 38px;gap:1px;align-items:center;justify-items:center}.dpad button{width:43px;height:38px;border:0;border-radius:3px;background:#47503e;color:#e4e8d4;font-size:15px;box-shadow:0 3px #2b3324;touch-action:none}.dpad .up{grid-area:1/2}.dpad .left{grid-area:2/1}.dpad .right{grid-area:2/3}.dpad .down{grid-area:3/2}.dpad span{grid-area:2/2;color:#9ba68c;font-size:24px}.dpad button.held{background:#6a7957;transform:translateY(2px);box-shadow:0 1px #2b3324}.touch-note{font-size:8px;text-align:center;color:#969d87;line-height:1.9;margin:0 10px}.fire-key{width:72px;height:72px;flex:0 0 72px;border-radius:50%;background:#b9493f;color:#fff1d7;border:2px solid #a13931;box-shadow:0 4px #7c2e28;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;touch-action:none}.fire-key strong{font-size:15px}.fire-key small{font:8px ui-monospace,monospace;letter-spacing:.1em;opacity:.65}.fire-key.held{background:#d05d4d;transform:translateY(3px);box-shadow:0 1px #7c2e28}}
@media(prefers-reduced-motion:reduce){.screen-glass{background:none}.primary:active{transform:none}}

.pickup-icon{display:inline-block;width:24px;height:24px;margin-right:5px;vertical-align:middle;image-rendering:pixelated;pointer-events:none}

.tier-guide{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:18px 0 10px}.tier-guide span{display:flex;flex-direction:column;align-items:center;gap:5px;border:1px solid #c9cdb6;background:#e7eadb;padding:9px 4px;font-size:10px;color:#677457}.tier-guide b{font:bold 19px ui-monospace,monospace;color:#a1543e}

/* v1.9: localized copy wraps within the original cabinet, including narrow screens. */
html[lang="en"] .intro h1{letter-spacing:-.025em}html[lang="en"] .game-guide h2{font-size:19px}html[lang="en"] .panel,html[lang="en"] .start-panel{max-width:calc(100% - 20px)}html[lang="en"] .toast{max-width:90%;white-space:normal;text-align:center}html[lang="en"] .cabinet-bottom{gap:10px;flex-wrap:wrap}html[lang="en"] .toolbar button{white-space:nowrap}
@media(max-width:730px){html[lang="en"] .game-guide h2{font-size:17px}html[lang="en"] .stage-options{grid-template-columns:1fr}html[lang="en"] .toolbar{flex-wrap:wrap}html[lang="en"] .cabinet-top{height:auto;min-height:27px}html[lang="en"] .intro h1{font-size:29px}html[lang="en"] .game-label{font-size:7px}}
