@font-face{font-family:Arcade;src:url("arcade.woff") format("woff");font-style:normal;font-weight:100 900;font-display:swap}
:root{color-scheme:dark;--background:#0b0b14;--panel:#141420;--border:#353246;--text:#f5f3ff;--muted:#aaa6be;--violet:#ac81ff;--lime:#c3fb68;--type:Arcade,"Courier New",monospace;--body:"PingFang SC","Microsoft YaHei",system-ui,sans-serif}
*{box-sizing:border-box}
html{min-height:100%;background:var(--background)}
body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 13% 34%,#19132b70,transparent 52%),radial-gradient(ellipse at 83% 20%,#17132661,transparent 40%),var(--background);color:var(--text);font:1rem/1.45 var(--body);-webkit-font-smoothing:antialiased}
body::before{content:"";position:fixed;inset:0;pointer-events:none;background-image:radial-gradient(#9891c11b .65px,transparent .9px);background-size:5px 5px;mask-image:linear-gradient(160deg,#0008,transparent 65%);z-index:0}
button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button:focus-visible,.screen:focus-visible{outline:2px solid var(--lime);outline-offset:4px}
button[hidden],[hidden]{display:none!important}
button:disabled{cursor:default}
i[data-icon]{width:1.15rem;height:1.15rem;display:inline-flex;flex:none;align-items:center;justify-content:center;line-height:1;font-style:normal}
i[data-icon] img{width:100%;height:100%;image-rendering:pixelated}
.top-bar{height:4rem;border-bottom:1px solid #343041;background:#101019e8;position:relative}
.bar-inner,.shell{width:min(1184px,calc(100% - clamp(2rem,9vw,9.25rem)));margin:0 auto}
.bar-inner{height:100%;display:flex;align-items:center;justify-content:space-between}
.brand,.tools,.tool,.board-bar,.board-bar h2,.board-status,.card-heading,.core-legend,.level-indicator,.stat-list dt,.swipe-tip{display:flex;align-items:center}
.brand{gap:.75rem;font:1.05rem/1 var(--type);letter-spacing:.07em;color:#f1ecff}
.brand-icon{width:2rem;height:2rem;background:#ab7eff;display:grid;place-items:center;color:#171022;clip-path:polygon(4px 0,calc(100% - 4px) 0,calc(100% - 4px) 3px,100% 3px,100% calc(100% - 4px),calc(100% - 4px) calc(100% - 4px),calc(100% - 4px) 100%,3px 100%,3px calc(100% - 3px),0 calc(100% - 3px),0 3px,4px 3px)}
.brand-icon i{width:1.48rem;height:1.48rem}
.tools{gap:.625rem}
.tool{gap:.53rem;min-height:2.18rem;justify-content:center;padding:0 .8rem;border:1px solid #3b374b;border-radius:4px;background:#1b1926;font-size:.84rem;color:#dcd7ea}
.tool:hover,.tool:focus-visible{background:#2a233b;border-color:#76648b}
.icon-tool{width:2.25rem;padding:0}
.shell{position:relative;padding-bottom:2.25rem}
.masthead{display:flex;align-items:center;justify-content:space-between;padding:2.3rem 0 1.7rem;gap:1rem}
h1,h2,p,dl,dd{margin:0}
h1{display:inline-block;font:clamp(2.15rem,4.5vw,4rem)/1.05 var(--type);letter-spacing:-.055em;white-space:nowrap;color:#f7f4ff;text-shadow:0 4px 0 #595668;word-spacing:-.12em}
h1 em{font-style:normal;color:#af7aff;text-shadow:0 4px 0 #5f3a8d,0 0 26px #9f66ff30}
.title-block p{display:flex;align-items:center;gap:.7rem;margin-top:.73rem;color:#b4b0c2;font-size:.9rem;letter-spacing:.025em}
.title-block p b{color:#dfd9ea;letter-spacing:.11em;font-weight:650}
.slash{font:bold .95rem/1 monospace;color:#77618e;letter-spacing:-.08em}
.race-stripe{display:flex;gap:5px;transform:skew(-28deg);padding:0 6px;align-self:flex-end;margin-bottom:.35rem}
.race-stripe b{width:10px;height:19px;background:#272033}.race-stripe b:nth-child(2){background:#33263f}.race-stripe b:nth-child(3){background:#443155}.race-stripe b:nth-child(4){background:#5a3d76}.race-stripe b:nth-child(5){background:#714c9c}.race-stripe b:nth-child(6){background:#9164c4}.race-stripe b:nth-child(7){background:#b382ef}
.layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(240px,23.5vw,284px);gap:1.25rem;align-items:start}
.cabinet{position:relative;padding:1px;background:linear-gradient(135deg,#766294,#43354f 42%,#49395d 74%,#725b89);clip-path:polygon(11px 0,calc(100% - 11px) 0,100% 11px,100% calc(100% - 11px),calc(100% - 11px) 100%,11px 100%,0 calc(100% - 11px),0 11px)}
.cabinet-inner{background:#181522;padding:0 .85rem;clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px)}
.board-bar{justify-content:space-between;min-height:2.8rem;padding:0 .45rem}
.board-bar h2,.card-heading{font-size:.94rem;font-weight:650;letter-spacing:.055em;gap:.6rem}
.board-bar h2 i,.card-heading i{color:#bc95ff;width:1.15rem;height:1.15rem}
.board-status{gap:.48rem;color:#c7bfd2;font-size:.795rem}
.status-light{width:6px;height:6px;background:var(--lime);box-shadow:0 0 7px #b7ef6680}
body[data-phase=over] .status-light,body[data-phase=paused] .status-light{background:#f2bf76;box-shadow:none}
#pause-control{display:grid;place-items:center;border:1px solid #4a405b;background:#292235;border-radius:3px;width:2.2rem;height:1.7rem;margin-right:.35rem}#pause-control i{width:.8rem;height:.8rem}
#mini-score{display:none;font:.83rem var(--type);color:var(--lime);margin-right:.5rem}
.screen{position:relative;isolation:isolate;aspect-ratio:32/20;width:100%;background:#0c0e1b;border:1px solid #393044;touch-action:none;overflow:hidden}
#arena,.overlay,.scanlines,.reticles{position:absolute;inset:0;width:100%;height:100%}
#arena{display:block}
.scanlines{pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0px,transparent 3px,#09031c18 3px,#09031c18 4px);opacity:.43}
.reticles{pointer-events:none;z-index:2}
.reticles i{width:12px;height:12px;position:absolute;border:solid #a379cb;border-width:0;opacity:.8}
.reticles i:first-child{top:0;left:0;border-width:2px 0 0 2px}.reticles i:nth-child(2){top:0;right:0;border-width:2px 2px 0 0}.reticles i:nth-child(3){bottom:0;left:0;border-width:0 0 2px 2px}.reticles i:last-child{bottom:0;right:0;border-width:0 2px 2px 0}
.overlay{display:grid;place-items:center;background:radial-gradient(ellipse 31% 44% at 50% 50%,#171127db 5%,#16102789 57%,transparent 100%);pointer-events:none}
.overlay-content{display:flex;align-items:center;flex-direction:column;position:relative;pointer-events:auto}
.cobra{width:clamp(114px,12.4vw,172px);height:auto;image-rendering:pixelated;filter:drop-shadow(0 0 11px #8255ff42);margin-bottom:.75rem;animation:float 3.3s ease-in-out infinite}
@keyframes float{50%{transform:translateY(-3px)}}
.overlay h2{font:clamp(1.75rem,3.25vw,3.15rem)/1.05 var(--type);letter-spacing:-.035em;color:#f5efff;text-shadow:0 4px #665481,0 0 22px #bf8bff30}
.overlay p{margin-top:.72rem;color:#d8cde3;font-size:.9rem}
.play-button{display:flex;align-items:center;justify-content:center;gap:.7rem;margin-top:1.45rem;min-width:184px;min-height:45px;padding:.6rem 1.2rem;background:#b08aff;color:#1c102f;border:0;border-top:2px solid #dbc2ff;box-shadow:inset 0 -3px #8354c8,0 3px 0 #4b3269,0 0 18px #a46aff32;font-size:1rem;letter-spacing:.085em;font-weight:800;clip-path:polygon(4px 0,calc(100% - 4px) 0,100% 4px,100% calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,0 calc(100% - 4px),0 4px)}
.play-button:hover{background:#c09aff;filter:drop-shadow(0 0 6px #a16bf099)}.play-button:active{transform:translateY(2px)}.play-button:focus-visible{background:#d4baff}
.play-button i{width:.82rem;height:.82rem}
.key-hint{font-size:.77rem;color:#aea3bf;margin-top:.85rem;letter-spacing:.04em}
.key-hint kbd{font:750 .7rem/1 monospace;background:#211c2d;border:1px solid #51445f;border-radius:2px;color:#cfc5df;padding:.12rem .32rem;letter-spacing:.03em}
.board-foot{min-height:2.7rem;padding:0 .48rem;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:.8rem}
.core-legend,.level-indicator{gap:.5rem}.core-legend i{width:1rem;height:1rem;color:var(--lime)}.core-legend b{font:.73rem/1 var(--type);color:#c8ee8d}
.level-indicator b{font:.74rem/1 var(--type);color:#d8cbea}.level-bars{display:flex;gap:3px;margin-left:.15rem}.level-bars i{width:5px;height:9px;background:#44364e}.level-bars i.on,.level-bars i:first-child{background:#a374e0}
.side{display:grid;gap:.9rem}
.card{background:linear-gradient(118deg,#181724,#13131e 77%);border:1px solid var(--border);border-radius:6px;padding:1.15rem 1.18rem}
.card-heading{margin-bottom:1rem}
.score-well{padding:.88rem .92rem 1rem;position:relative;isolation:isolate;background:#10170f;border:1px solid #34402c;overflow:hidden;border-radius:3px}
.score-well::before{position:absolute;content:"";inset:0;background:repeating-linear-gradient(0deg,transparent 0px,transparent 3px,#c4fe6207 4px),linear-gradient(100deg,#26382040,transparent);pointer-events:none;z-index:-1}
.score-caption{font-size:.79rem;color:#b9c8ad;line-height:1.2}
.score-digits{display:block;font:clamp(1.75rem,2.3vw,2.1rem)/1.15 var(--type);color:var(--lime);text-shadow:0 0 12px #a9ff5829;margin-top:.5rem;letter-spacing:.02em}
.score-scan{position:absolute;width:20px;height:10px;right:12px;top:12px;background:repeating-linear-gradient(90deg,#65794a 0 3px,transparent 3px 5px)}
.stat-list{margin-top:.35rem}.stat-list>div{display:flex;align-items:center;justify-content:space-between;padding-top:.78rem}.stat-list>div+div{margin-top:.67rem;border-top:1px dashed #343140}
.stat-list dt{gap:.5rem;color:#c0bccc;font-size:.86rem}.stat-list dt i{width:.95rem;height:.95rem;color:#a59ab9}.stat-list dt i[data-icon=trophy]{color:#dec181}
.stat-list dd{font:.89rem/1 var(--type);letter-spacing:.03em;color:#eee8f8}
.choices{display:grid;grid-template-columns:repeat(3,1fr);padding:3px;gap:3px;border:1px solid #34303f;background:#0f0f18;border-radius:4px}
.choices button{min-height:2.03rem;border:1px solid transparent;border-radius:2px;background:transparent;color:#aca5bb;font-size:.86rem;font-weight:550}
.choices button:hover:enabled{background:#292335;color:#e8ddfa}
.choices button[aria-pressed=true]{border-color:#745498;background:#38294a;color:#e5c9ff}
.controls-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;color:#bab4c8;font-size:.85rem;min-height:1.85rem}
.controls-row+.controls-row{margin-top:.23rem}
.guide-card .card-heading{margin-bottom:.7rem}
.keys{display:flex;gap:4px}
.keys kbd{display:grid;place-items:center;border:1px solid #464151;border-bottom:2px solid #494253;background:#24212f;border-radius:3px;min-width:1.48rem;min-height:1.4rem;color:#d5cbdf;font:700 .84rem/1 "Courier New",monospace}
.keys.arrows kbd{font-family:system-ui,sans-serif}.keys .space-key{font-size:.73rem;letter-spacing:.08em;padding:0 .67rem}
.touch-pad,.sr-only{display:none}
.sr-only{display:block;position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
body[data-phase=paused] .overlay,body[data-phase=over] .overlay,body[data-phase=won] .overlay{background:#0b091bd6;backdrop-filter:blur(2px)}
@media(min-width:1600px){.masthead{padding-top:3rem;padding-bottom:2rem}}
@media(max-width:950px) and (min-width:761px){.bar-inner,.shell{width:calc(100% - 2.8rem)}.layout{grid-template-columns:minmax(0,1fr) 215px;gap:.8rem}.card{padding:.9rem}.side{gap:.6rem}.key-hint{margin-top:.55rem}.cobra{width:112px;margin-bottom:.5rem}.guide-card .controls-row{min-height:1.4rem}.play-button{margin-top:.9rem}}
@media(max-width:760px){.bar-inner,.shell{width:calc(100% - 1.75rem);max-width:620px}.top-bar{height:3.3rem}.brand{font-size:.9rem;gap:.55rem}.brand-icon{width:1.68rem;height:1.68rem}.brand-icon i{width:1.29rem;height:1.29rem}.tool{min-height:2rem}.masthead{padding:1.45rem .1rem 1.18rem}.title-block p{font-size:.78rem;gap:.45rem;margin-top:.55rem}.race-stripe{gap:3px}.race-stripe b{width:5px;height:13px}.race-stripe b:nth-child(-n+3){display:none}.layout{grid-template-columns:minmax(0,1fr);gap:.65rem}.cabinet-inner{padding:0 .5rem}.board-bar{min-height:2.25rem;padding:0 .3rem}.board-bar h2{font-size:.83rem}.board-status{font-size:.75rem}.screen{aspect-ratio:32/20}.board-foot{min-height:2.15rem;padding:0 .2rem;font-size:.75rem}.overlay h2{font-size:clamp(1.42rem,6vw,2.25rem)}.cobra{width:clamp(76px,23vw,122px);margin-bottom:.4rem}.play-button{margin-top:.83rem;min-height:37px;min-width:145px;font-size:.87rem;padding:.3rem .75rem}.key-hint{display:none}.touch-pad{display:flex;align-items:center;justify-content:space-between;gap:.7rem;background:#14131e;border:1px solid var(--border);border-radius:5px;padding:.65rem .85rem}.swipe-tip{font-size:.8rem;color:#bfb5cc;line-height:1.5;gap:.55rem}.swipe-tip i{color:var(--violet)}.direction-grid{display:grid;grid-template-columns:repeat(3,2.8rem);grid-template-rows:repeat(2,2.35rem);gap:4px}.direction-grid button{display:grid;place-items:center;border-radius:3px;background:#282234;border:1px solid #4d415e;color:#d9c6f4}.direction-grid button:active{background:#704f94}.direction-grid button[data-dir=up]{grid-column:2}.direction-grid button[data-dir=left]{grid-column:1}.direction-grid i{width:13px;height:13px}.side{grid-template-columns:1fr 1fr;gap:.65rem;align-items:start}.card{padding:.83rem .8rem}.card-heading{font-size:.85rem;margin-bottom:.65rem}.score-card{grid-row:span 2}.guide-card{display:none}.score-well{padding:.65rem}.score-digits{font-size:1.45rem}.stat-list>div{padding-top:.55rem}.stat-list>div+div{margin-top:.4rem}.stat-list dt{font-size:.76rem}.stat-list dd{font-size:.75rem}.choices{gap:1px;padding:2px}.choices button{padding:0 .15rem;font-size:.79rem;min-height:2.1rem}.score-scan{width:12px;height:6px}.shell{padding-bottom:1.3rem}#mini-score{display:inline}}
@media(max-width:365px){.title-block p{letter-spacing:0}.race-stripe{display:none}.screen{min-height:185px}.tools{gap:.35rem}.stat-list dt i{display:none}.touch-pad{padding:.55rem}}
@media(pointer:coarse) and (min-width:761px){.touch-pad{display:flex;grid-column:1;grid-row:2;align-items:center;justify-content:space-between;gap:1rem;color:var(--muted)}.direction-grid{display:flex;gap:.4rem}.direction-grid button{width:44px;height:44px;background:#282234;color:var(--violet);border:1px solid var(--border);border-radius:4px}.side{grid-column:2;grid-row:1 / span 2}}
@media(max-height:550px) and (orientation:landscape){.top-bar{height:2.5rem}.masthead{padding:.65rem 0}.title-block p,.race-stripe{display:none}h1{font-size:1.7rem}.layout{grid-template-columns:minmax(0,1fr) minmax(160px,24%)}.screen{max-height:calc(100dvh - 10rem);min-height:0}.side{display:grid;grid-template-columns:1fr;gap:.4rem;grid-column:2;grid-row:1}.touch-pad{display:none}.guide-card,.key-hint{display:none}.cobra{width:75px}.overlay h2{font-size:1.45rem}.play-button{min-height:32px;margin-top:.5rem}.score-card{grid-row:auto}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}
body.expanded{overflow-y:auto;position:fixed;inset:0;z-index:20}
@media(max-width:760px) and (pointer:fine) and (min-height:551px){
  .touch-pad{display:none}
  .guide-card{display:block}
  .key-hint{display:block;margin-top:.52rem}
  .score-card{grid-row:1 / span 2}
}
body.expanded .masthead,:fullscreen .masthead{display:none}
body.expanded .shell,:fullscreen .shell{padding-top:1rem}
@media(min-width:761px){
  body.expanded .shell,:fullscreen .shell{width:min(calc((100dvh - 13rem) * 1.6 + 316px),calc(100% - 2.5rem));max-width:1640px}
}
