:root{color-scheme:light;--paper:#f3eee3;--ink:#292b26;--muted:#7e8177;--red:#bf453b;--line:#d6d1c5;--green:#d3e98a;--screen:#050909;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 #d8962e;outline-offset:4px}button:disabled{opacity:.35;cursor:default}a{color:inherit}.site-header{height:77px;border-bottom:1px solid var(--line);max-width:1440px;margin:auto;padding:0 56px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-weight:800;font-size:17px;letter-spacing:.06em}.brand-en{font:10px ui-monospace,monospace;letter-spacing:.13em;color:var(--muted);margin-left:4px}.brand-symbol{display:grid;grid-template-columns:5px 5px;gap:3px;transform:rotate(0)}.brand-symbol i{width:5px;height:5px;background:var(--red)}.brand-symbol i:nth-child(2){background:#a1aa75}.header-note{font-size:11px;color:#757a6b;display:flex;align-items:center;gap:8px}.live-dot{width:5px;height:5px;border-radius:50%;background:#79945c}main{max-width:1260px;margin:auto;padding:42px 56px 24px}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:31px}.eyebrow{font:10px ui-monospace,monospace;letter-spacing:.17em;color:#8b8b7f;margin:0 0 12px}h1{font-size:40px;letter-spacing:.01em;margin:0 0 12px;line-height:1.2;font-weight:850}.title-dot{color:var(--red);margin-left:2px}.subtitle{font-size:18px;font-weight:500;margin-left:18px;letter-spacing:.04em;vertical-align:middle}.intro-copy{font-size:12px;margin:0;color:#7a7e72;line-height:1.8}.cartridge-badge{display:flex;flex-direction:column;align-items:center;justify-content:center;width:87px;height:86px;border:1px solid #c6c3b6;border-radius:2px;transform:rotate(5deg);position:relative;background:#ece7db;box-shadow:4px 4px 0 #e0dbce}.cartridge-badge:after{content:"";position:absolute;bottom:0;left:12px;right:12px;height:5px;border-left:1px solid #c6c3b6;border-right:1px solid #c6c3b6}.cartridge-badge strong{font:bold 30px ui-monospace,monospace;color:var(--red);line-height:1.2}.cartridge-badge span{font-size:8px;letter-spacing:.08em;line-height:1.8}.arcade{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:33px;align-items:start}.cabinet{border:1px solid #c8c6ba;background:#e7e4d9;padding:13px 13px 0;border-radius:5px;box-shadow:0 3px 0 #c6c3b7,0 12px 36px #514a2d0a;min-width:0}.cabinet-top{height:25px;margin-bottom:10px;display:flex;align-items:center;justify-content:space-between;font:8px ui-monospace,monospace;letter-spacing:.08em;color:#696f60;gap:12px}.cabinet-top>div:first-child{display:flex;align-items:center;gap:6px}.power-dot{width:5px;height:5px;background:#c94b40;border-radius:50%;box-shadow:0 0 4px #d47965}.game-label{font:9px "PingFang SC",sans-serif;color:#8a8d80}.toolbar{display:flex;gap:4px;letter-spacing:0}.toolbar button{font-size:9px;padding:5px 6px;border:1px solid #c9c8bd;background:#efede4;border-radius:3px;color:#646d5d;line-height:1}.toolbar button:hover:not(:disabled){background:#fff9e9}.screen-frame{position:relative;background:var(--screen);border:5px solid #363b34;border-top-color:#2b302a;border-radius:3px;overflow:hidden;isolation:isolate;aspect-ratio:256/240}#game{display:block;width:100%;height:100%;image-rendering:pixelated;outline-offset:-3px;touch-action:none}.screen-glass{pointer-events:none;position:absolute;inset:0;z-index:1;background:repeating-linear-gradient(0deg,transparent,transparent 2px,#0000000e 2px,#0000000e 3px);box-shadow:inset 0 0 35px #0006}.screen-overlay{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;text-align:center;color:#eef0d7}.hidden{display:none!important}#title-overlay{align-items:flex-end;padding-bottom:10.5%;background:linear-gradient(transparent 42%,#05090900 45%,#050909e6 65%,#05090900 100%)}.start-panel{width:80%;max-width:360px}.screen-kicker{font:9px ui-monospace,monospace;letter-spacing:.16em;color:#a1b78f;margin:0 0 11px}.screen-overlay h2{font-size:25px;font-weight:700;letter-spacing:.08em;margin:0 0 9px}.screen-overlay p:not(.screen-kicker){font-size:11px;color:#8b9c82;margin:0 0 19px}.start-button{border:0;background:var(--green);color:#243820;padding:12px 22px;min-width:173px;box-shadow:0 3px 0 #809651;font-size:12px;font-weight:750;letter-spacing:.1em;border-radius:1px;display:block;margin:0 auto 13px}.start-button span{font-size:10px;margin-left:13px}.start-button:hover{background:#e4f3ac;transform:translateY(-1px)}.start-button:active{transform:translateY(2px);box-shadow:0 1px 0 #809651}.start-key{font:8px ui-monospace,monospace;letter-spacing:.12em;color:#6c7d64}.pause-panel{min-width:240px;padding:28px 24px;background:#0a110ef2;border:1px solid #354233;box-shadow:0 12px 50px #0008}#pause-overlay,#gameover-overlay{background:#01050199;backdrop-filter:blur(2px)}.result-score{font:bold 36px ui-monospace,monospace;color:var(--green);letter-spacing:.09em;margin:16px 0 6px}.toast{position:absolute;z-index:4;top:28%;left:50%;transform:translateX(-50%);padding:9px 15px;font-size:11px;white-space:nowrap;color:#dff2aa;background:#142016e8;border:1px solid #637850}.cabinet-bottom{height:34px;display:flex;justify-content:space-between;align-items:center;font:7px ui-monospace,monospace;color:#888e7d;letter-spacing:.08em}.cabinet-bottom>span:first-child{font-family:inherit;font-size:8px;display:flex;align-items:center;gap:5px}.tiny-square{width:4px;height:4px;background:#b2b5a4}.touch-controls{display:none}.game-guide{padding:4px 0 0}.guide-label{font:9px ui-monospace,monospace;color:#878a7d;letter-spacing:.12em;display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:12px}.guide-label span{color:#b4b5a8}.game-guide h2{font-size:21px;line-height:1.5;letter-spacing:.015em;margin:21px 0 12px;font-weight:750}.guide-intro{font-size:11px;line-height:1.9;color:#8a8c7d;margin:0 0 20px}.control-row{display:flex;justify-content:space-between;align-items:center;margin:10px 0;color:#737869;font-size:10px}.key-group{display:flex;gap:5px}kbd{height:24px;min-width:25px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #cbcbbd;background:#f8f5eb;box-shadow:0 2px 0 #d5d4c7;border-radius:3px;font:10px ui-monospace,monospace;color:#646f5b}.wide-key{width:55px;font-size:8px}.rule-note{margin:24px 0;display:flex;gap:11px;align-items:center;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.rule-number{font:40px ui-monospace,monospace;color:#b4bc99;line-height:1}.rule-note p{font-size:10px;line-height:1.9;color:#8a8d7d;margin:0}.rule-note strong{font-weight:500;color:#4f5a44}.enemy-scores{margin:0 0 20px}.small-label{font-size:9px;color:#96998a;margin:0 0 10px}.enemy-row{display:flex;align-items:center;gap:10px;margin:7px 0;font-size:10px}.enemy-preview{width:26px;height:24px;image-rendering:pixelated;background:#26322a;border-radius:2px}.enemy-row>span{color:#7c8271}.enemy-row>b{margin-left:auto;font:9px ui-monospace,monospace;color:#505a46}.enemy-row i{font-style:normal;color:#b7b8aa;padding:0 3px}.score-caption{display:block;text-align:right;font-size:8px;color:#a4a696}.bonus-note{display:flex;flex-direction:column;gap:6px;padding-top:16px;border-top:1px solid var(--line)}.bonus-note strong{font:13px ui-monospace,monospace;color:#8c563f}.bonus-note span{font-size:9px;color:#949885}.reference-button{margin-top:23px;width:100%;border:0;background:transparent;padding:0;display:flex;justify-content:space-between;text-align:left;font-size:10px;color:#727c62;text-decoration:underline;text-underline-offset:4px}.reference-button:hover{color:var(--red)}.page-footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:31px;padding-top:18px;color:#9c9d90;font-size:9px;letter-spacing:.04em}.footer-divider{padding:0 10px;color:#c4c4b7}dialog{width:min(480px,calc(100% - 36px));padding:32px;border:1px solid #c9c5b8;border-radius:4px;background:var(--paper);box-shadow:0 18px 100px #0005;color:var(--ink)}dialog::backdrop{background:#11170fc4;backdrop-filter:blur(3px)}dialog h2{font-size:24px;margin:10px 0 18px}dialog p:not(.eyebrow){font-size:12px;line-height:1.9;color:#777e6d}dialog button{border:1px solid #cbcbbd;padding:10px 14px;background:#f8f5eb;border-radius:2px;color:#5f6857;font-size:12px}.dialog-close{position:absolute;right:15px;top:12px;border:0;font-size:23px;background:transparent;padding:3px 9px}.reference-links{display:flex;flex-direction:column;gap:10px;font-size:12px;margin:20px 0 26px;color:#8c563f}.dialog-primary{background:#a9483e;color:#fff4df;border-color:#a9483e}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}#reference-done{width:100%}@media(min-width:1450px){main{max-width:1360px}.arcade{grid-template-columns:minmax(0,1fr) 230px;gap:42px}.site-header{max-width:1540px}.game-guide h2{font-size:24px}.guide-intro{font-size:12px}.cabinet-top{margin-bottom:12px;height:28px}.screen-overlay h2{font-size:29px}.start-button{padding:14px 26px}.screen-kicker{font-size:10px}}@media(max-width:980px){main{padding:30px 28px 22px}.site-header{padding:0 28px;height:65px}.arcade{grid-template-columns:minmax(0,1fr) 183px;gap:24px}.game-label{display:none}.subtitle{font-size:16px}h1{font-size:35px}.game-guide h2{font-size:19px;margin-top:16px}.guide-intro{font-size:10px;margin-bottom:15px}.rule-note{margin:19px 0}.guide-label{font-size:8px}.control-row{font-size:9px}.screen-overlay h2{font-size:22px}.start-button{min-width:156px;padding:10px 19px}.screen-kicker{font-size:8px}.screen-overlay p:not(.screen-kicker){font-size:10px}.cartridge-badge{width:72px;height:73px}}@media(max-width:730px){.site-header{padding:0 20px;height:59px}.brand{font-size:15px;gap:9px}.brand-en{font-size:8px;margin-left:0}.header-note{display:none}main{padding:26px 18px 22px}.intro{margin-bottom:23px}.eyebrow{font-size:8px;letter-spacing:.12em;margin-bottom:10px}h1{font-size:31px;margin-bottom:10px}.subtitle{display:block;margin:8px 0 0;font-size:13px;letter-spacing:.12em}.intro-copy{font-size:10px;max-width:260px}.cartridge-badge{width:64px;height:70px;flex-shrink:0;margin:0 8px 0 15px}.cartridge-badge strong{font-size:26px}.cartridge-badge span{font-size:7px}.arcade{display:block}.cabinet{padding:9px 9px 0}.cabinet-top{height:24px;margin-bottom:8px;font-size:7px;gap:7px}.toolbar button{font-size:8px;padding:5px}.toolbar{gap:4px}.screen-frame{border-width:4px}.cabinet-bottom{height:27px;font-size:5px}.cabinet-bottom>span:first-child{font-size:6px}.screen-overlay h2{font-size:21px}.screen-kicker{font-size:7px;margin-bottom:9px}.screen-overlay p:not(.screen-kicker){font-size:9px;margin-bottom:14px}.start-button{padding:11px 18px;min-width:149px;font-size:11px;margin-bottom:11px}.start-key{font-size:6px}.pause-panel{min-width:210px;padding:23px 20px}.result-score{font-size:30px}.game-guide{display:grid;grid-template-columns:1fr 1fr;column-gap:28px;margin:29px 8px 0;position:relative}.guide-label{grid-column:1/-1}.game-guide h2{font-size:19px;margin:18px 0 10px}.guide-intro{margin-top:20px;margin-bottom:10px;line-height:1.8}.control-row{margin:8px 0}.rule-note{grid-column:1;margin:17px 0 0}.enemy-scores{grid-column:2;grid-row:3/8;margin:3px 0 0;padding-top:7px}.small-label{font-size:8px}.enemy-row{gap:7px;font-size:9px;margin:7px 0}.enemy-row>b{font-size:8px}.bonus-note{grid-column:1/-1;flex-direction:row;align-items:center;gap:12px;margin-top:20px;padding-top:16px}.bonus-note strong{font-size:12px}.reference-button{grid-column:1/-1;margin-top:21px}.page-footer{font-size:8px;line-height:1.8;gap:20px;margin-top:24px}.page-footer>span:last-child{text-align:right;max-width:130px}}@media(pointer:coarse),(max-width:730px){.touch-controls{display:flex;align-items:center;padding:11px 5px 18px;border-top:1px solid #cdcec0;gap:10px;touch-action:none;user-select:none;-webkit-user-select:none}.direction-controls{display:flex;gap:12px}.touch-key{width:64px;height:49px;background:#444b3e;color:#e4e8d9;border:0;border-radius:4px;box-shadow:0 4px 0 #282e25;font-size:17px;touch-action:none}.touch-key.is-held{transform:translateY(3px);box-shadow:0 1px 0 #282e25;background:#647056}.touch-hint{font-size:8px;color:#939981;margin-left:4px}.fire-key{margin-left:auto;width:64px;height:59px;border-radius:50%;background:#ba493f;border:2px solid #a13931;box-shadow:0 4px 0 #7e2e29;color:#fff2dd;display:flex;flex-direction:column;align-items:center;justify-content:center;touch-action:none;gap:2px}.fire-key>span{font-size:13px;font-weight:700}.fire-key small{font:7px ui-monospace,monospace;letter-spacing:.1em;opacity:.7}.fire-key.is-held{transform:translateY(3px);box-shadow:0 1px 0 #7e2e29;background:#d45c4d}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important}.screen-glass{background:none}.start-button:hover{transform:none}}
/* Keep the complete game board on a laptop screen, not below the fold. */
@media(min-width:731px){
 .site-header{height:54px}
 main{padding-top:22px}
 .intro{margin-bottom:18px}
 .intro .eyebrow{font-size:9px;margin-bottom:8px}
 h1{font-size:32px;margin-bottom:6px}
 .intro-copy{font-size:11px;line-height:1.7}
 .cartridge-badge{width:70px;height:72px}
 .cartridge-badge strong{font-size:26px}
 .arcade{display:flex;justify-content:center;gap:30px}
 .cabinet{width:calc((100svh - 270px)*256/240 + 28px);max-width:760px;flex:0 1 auto}
 .game-guide{width:210px;flex:0 0 210px}
}
@media(min-width:731px) and (max-height:800px){
 .game-guide h2{font-size:18px;margin:15px 0 9px}
 .guide-intro{font-size:10px;margin-bottom:13px}
 .guide-label{padding-bottom:9px}
 .control-row{margin:8px 0}
 .rule-note{margin:17px 0;padding:9px 0}
 .enemy-scores{margin-bottom:14px}
 .bonus-note{padding-top:12px}
 .reference-button{margin-top:17px}
 .enemy-row{margin:5px 0}
}
@media(min-width:731px) and (max-width:980px){.game-guide{width:183px;flex-basis:183px}.arcade{gap:24px}}
.start-panel{padding:19px 20px 17px;background:#07100ded;border:1px solid #344232;box-shadow:0 8px 28px #0007;max-width:310px}
@media(max-width:730px){.start-panel{padding:15px 12px 13px;max-width:267px}#title-overlay{padding-bottom:7%}}

/* Mouse control hint stays with the keyboard guide without shifting the mobile score column. */
.mouse-hint{font-size:9px;line-height:1.6;color:#737869;margin:2px 0 10px}
@media(max-width:730px){.mouse-hint{grid-column:1;font-size:9px;margin:0 0 5px}.enemy-scores{grid-row:3/9}}

/* 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}}
