:root { color-scheme: dark; --bg: #090d13; --panel: #101720; --line: #26313e; --muted: #8b99aa; --text: #edf0df; --lime: #d4f47c; --blue: #48adff; --red: #ff5b70; --green: #91ed70; --yellow: #ffd567; font-family: 'Cascadia Code', 'Consolas', 'Courier New', monospace; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); background-image: radial-gradient(ellipse at 75% 40%, #15212b55, transparent 58%); }
button, input { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible, canvas:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
button { touch-action: manipulation; }
[hidden] { display: none !important; }
.shell { max-width: 1200px; margin: auto; padding: 0 46px; }
.topbar { height: 102px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; flex-shrink: 0; height: 100%; color: var(--text); text-decoration: none; }
.brand img { display: block; width: 60px; height: calc(100% - 8px); max-height: 60px; object-fit: contain; object-position: left center; }
.edition { font-size: 10px; letter-spacing: 1.5px; color: #c2cbb6; }
.edition span { color: var(--muted); margin-left: 15px; }
i { display: inline-block; width: 5px; height: 5px; background: var(--lime); vertical-align: middle; margin-right: 8px; }
.utility { min-height: 40px; border: 1px solid var(--line); padding: 0 13px; background: transparent; font-size: 10px; letter-spacing: 1px; }
.utility span { margin-left: 12px; font-size: 16px; }
.utility[aria-pressed='true'] { color: var(--lime); border-color: #668044; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 88px; align-items: start; padding: 45px 0 40px; }
.briefing { padding-top: 9px; }
.eyebrow { font-size: 10px; letter-spacing: 1.6px; color: var(--lime); }
.mini-cross { font-size: 19px; vertical-align: -1px; margin-right: 9px; }
h1 { margin: 23px 0 17px; line-height: 0; }
h1 img { width: 100%; max-width: 420px; height: auto; image-rendering: pixelated; }
.tagline { color: var(--muted); font: 15px/1.65 Arial, sans-serif; margin: 0 0 31px; }
.tagline strong { color: #c5cccf; font-weight: 400; }
.team-choice { margin: 0; padding: 0; border: 0; min-width: 0; }
legend, .enemy-guide h2 { font-size: 10px; font-weight: 400; letter-spacing: 1.4px; margin-bottom: 14px; padding: 0; }
legend > span, .enemy-guide h2 > span { color: #74808e; margin-right: 12px; }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team { --team-color: var(--blue); cursor: pointer; position: relative; }
.team.red { --team-color: var(--red); }
.team input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.team-inner { display: flex; flex-direction: column; align-items: center; border: 1px solid var(--line); background: #111820; min-height: 160px; padding: 12px; transition: border-color .15s, background .15s; }
.team-id { width: 100%; display: flex; justify-content: space-between; align-items: center; font-size: 8px; letter-spacing: 1px; color: var(--muted); }
.selection-dot { border: 1px solid #53606c; width: 7px; height: 7px; }
.team canvas { width: 52px; height: 58px; image-rendering: pixelated; margin: 13px 0 10px; }
.team strong { font-size: 11px; letter-spacing: .2px; color: var(--team-color); }
.team-sub { font: 11px/1.4 Arial, sans-serif; color: var(--muted); margin-top: 5px; }
.team input:checked + .team-inner { border-color: var(--team-color); background: color-mix(in srgb, var(--team-color) 9%, #10161e); box-shadow: inset 0 -3px var(--team-color); }
.team input:checked + .team-inner .selection-dot { background: var(--team-color); border-color: var(--team-color); }
.team input:focus-visible + .team-inner { outline: 2px solid var(--text); outline-offset: 3px; }
.team input:disabled + .team-inner { cursor: default; }
.primary { width: 100%; min-height: 51px; border: 0; background: var(--lime); color: #17201c; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; font-size: 12px; font-weight: 800; letter-spacing: 1px; box-shadow: 0 3px 0 #6e8444; }
.primary:hover:not(:disabled) { background: #e4ffa2; }
.primary:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #6e8444; }
.primary:disabled { color: #91a091; background: #242f2b; box-shadow: 0 3px 0 #17221b; }
#start { margin-top: 17px; }
.primary > span:last-child { font-size: 23px; }
.primary > span:first-child { font-size: inherit; }
.start-note { font: 10px/1.6 Arial, sans-serif; text-align: center; color: var(--muted); margin: 13px 0 27px; }
.start-note span { margin: 0 8px; color: #5c6956; }
.enemy-guide { border-top: 1px solid var(--line); padding-top: 22px; }
.enemy-guide h2 { margin-top: 0; margin-bottom: 10px; }
.enemy-row { display: flex; align-items: center; gap: 14px; padding: 11px 0; }
.enemy-row canvas { width: 26px; height: 29px; image-rendering: pixelated; }
.enemy-row strong { font-size: 10px; letter-spacing: .5px; }
.enemy-row p { margin: 5px 0 0; color: var(--muted); font: 12px/1.3 Arial, sans-serif; }
.enemy-points { margin-left: auto; font-size: 20px; }
.enemy-points small { font-size: 9px; }
.green-text { color: var(--green); }
.yellow-text { color: var(--yellow); }
.howto { margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font: 12px/1.7 Arial, sans-serif; }
.howto summary { color: #b4bfc7; cursor: pointer; list-style: none; padding: 5px 0; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary span { float: right; font-size: 16px; }
.arcade { border: 1px solid #35404a; background: #111820; padding: 12px; box-shadow: 8px 8px 0 #060a0f, 0 0 50px #476d7420; }
.cabinet-top { display: flex; justify-content: space-between; font-size: 8px; color: #91a0a8; letter-spacing: 1.1px; padding: 2px 3px 13px; }
.cabinet-top i { width: 4px; height: 4px; }
.hud { display: grid; grid-template-columns: 1.2fr 1fr 1fr 36px; gap: 10px; background: #0a1019; padding: 13px 16px; border: 1px solid #293540; border-bottom: 0; }
.hud div { display: flex; flex-direction: column; gap: 5px; }
.hud div > span { font-size: 8px; color: var(--muted); letter-spacing: 1.5px; }
.hud strong { font-size: 23px; font-weight: 600; font-variant-numeric: tabular-nums; }
#score { color: var(--lime); }
.pause { display: grid; place-items: center; background: transparent; border: 1px solid #2e3a45; min-height: 44px; padding: 0; }
.pause-icon { width: 20px; height: 20px; fill: currentColor; }
.pause .play-symbol, .pause.is-paused .pause-bars { display: none; }
.pause.is-paused .play-symbol { display: initial; }
.pause:disabled { opacity: .4; }
.viewport { position: relative; background: #080d18; border-left: 1px solid #293540; border-right: 1px solid #293540; overflow: hidden; }
#arena { display: block; width: 100%; aspect-ratio: 3 / 4; height: auto; image-rendering: pixelated; touch-action: none; }
.scanlines { position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 3px, #00000012 3px 4px); pointer-events: none; }
.ready-overlay { position: absolute; inset: 37% 0 11%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: linear-gradient(transparent, #080d18ea 18%, #080d18f0 80%, transparent); pointer-events: none; }
.ready-pill { padding: 6px 9px; border: 1px solid #677c44; color: var(--lime); font-size: 8px; letter-spacing: 2px; }
.ready-overlay strong { font-size: 30px; letter-spacing: -1px; line-height: 1.1; margin: 18px 0 12px; }
.ready-overlay > span:not(.ready-pill, .ready-arrow) { max-width: 230px; font: 12px/1.6 Arial, sans-serif; color: var(--muted); }
.ready-arrow { color: var(--lime); margin-top: 12px; font-size: 22px; }
.overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; background: #080d18ed; }
.overlay h2 { font-size: 29px; line-height: 1.15; margin: 20px 0 8px; }
.overlay p { font: 13px/1.6 Arial, sans-serif; color: #acb8c5; max-width: 275px; }
.overlay .primary { margin-top: 22px; max-width: 270px; }
.result-label { color: var(--muted); font-size: 9px; letter-spacing: 2px; margin-top: 18px; }
#final-score { color: var(--lime); font-size: 58px; margin-top: 5px; }
.text-button { margin-top: 13px; min-height: 42px; background: none; border: none; text-decoration: underline; color: #b2c2cf; font-size: 11px; }
.statusbar { display: flex; align-items: center; justify-content: space-between; border: 1px solid #293540; background: #0b121b; padding: 11px 14px; }
#lives { font-size: 17px; color: var(--red); letter-spacing: 3px; }
#pilot { font-size: 9px; letter-spacing: 1px; color: var(--blue); }
.status-signal { color: #687b6e; font-size: 17px; }
.controls { display: flex; gap: 13px; padding: 15px 0 0; }
.arrows { display: flex; gap: 7px; }
.arrows button { width: 49px; height: 50px; background: #1b2530; border: 1px solid #3b4756; box-shadow: 0 3px #070c13; font-size: 25px; touch-action: none; user-select: none; }
.arrows button:active:not(:disabled) { background: #314256; }
.pulse { display: flex; flex: 1; align-items: center; gap: 10px; border: 1px solid #596547; background: #222b21; color: var(--lime); padding: 8px 11px; text-align: left; min-height: 50px; }
.pulse > span:first-child { font-size: 29px; }
.pulse > span:nth-child(2) { font-size: 10px; font-weight: 700; }
.pulse small { display: block; font-size: 8px; color: #a4ae91; font-weight: 400; margin-top: 5px; letter-spacing: .8px; }
.pulse kbd { margin-left: auto; font-size: 8px; }
.pulse:disabled { opacity: .5; }
.pulse.used { border-color: #35404b; background: #18202a; color: #96a2b2; }
kbd { font: inherit; border: 1px solid #42505b; border-bottom-width: 2px; padding: 2px 4px; border-radius: 2px; }
.control-hint { text-align: center; color: #9aa8b6; font: 9px/1.7 Arial, sans-serif; margin: 13px 0 1px; }
.control-hint span { margin: 0 5px; color: #546577; }
footer { display: flex; justify-content: space-between; gap: 18px; padding: 23px 0; border-top: 1px solid var(--line); color: #7f8d9e; font-size: 8px; line-height: 1.6; letter-spacing: 1px; }
.footer-slash { margin: 0 10px; color: #56653e; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.noscript { padding: 20px; color: var(--lime); text-align: center; }
@media (max-width: 1050px) { .shell { padding: 0 30px; } .layout { grid-template-columns: minmax(0, 1fr) 410px; gap: 40px; } }
@media (max-width: 800px) { .shell { padding: 0 20px; } .layout { grid-template-columns: minmax(0, 1fr) 365px; gap: 25px; } .edition { display: none; } .tagline { font-size: 13px; } .team-inner { padding: 9px 6px; } .team strong { font-size: 9px; } .pulse kbd { display: none; } .hud strong { font-size: 21px; } }
@media (max-width: 680px) {
  .shell { max-width: 480px; padding: 0 16px; }
  .topbar { height: 74px; }
  .layout { display: flex; flex-direction: column; padding: 27px 0; gap: 28px; }
  .briefing, .arcade { width: 100%; }
  .briefing { padding-top: 0; }
  h1 { max-width: 340px; margin: 17px 0; }
  .tagline { margin-bottom: 22px; font-size: 14px; }
  .team-inner { min-height: 143px; padding: 10px 12px; }
  .team canvas { width: 44px; height: 49px; margin: 11px 0; }
  .team strong { font-size: 11px; }
  .start-note { margin-bottom: 0; }
  .enemy-guide { display: none; }
  .arcade { padding: 9px; scroll-margin-top: 8px; }
  .hud { padding: 10px 12px; }
  .hud strong { font-size: 22px; }
  .arrows button { width: 48px; height: 52px; }
  .controls { gap: 10px; }
  .pulse { padding: 8px 10px; }
  .control-hint { font-size: 9px; }
  footer { font-size: 7px; }
  footer > span:last-child { display: none; }
  body.in-game .briefing { display: none; }
  body.in-game .topbar { height: 58px; }
  body.in-game .layout { padding-top: 13px; }
  body.in-game .arcade { max-width: min(100%, calc((100svh - 245px) * .75 + 20px)); align-self: center; }
  .overlay { padding: 18px; }
  .overlay h2 { font-size: 23px; }
  .overlay p { font-size: 12px; }
  #final-score { font-size: 45px; }
}
@media (max-width: 370px) { .shell { padding: 0 9px; } .pulse > span:nth-child(2) { font-size: 9px; } .arrows button { width: 44px; } .statusbar { padding: 9px; } #pilot { font-size: 8px; } .ready-overlay strong { font-size: 26px; } }
@media (max-height: 700px) and (max-width: 680px) { body.in-game .arcade { max-width: 100%; } body.in-game .topbar { display: none; } .overlay h2 { margin-top: 10px; } .overlay .primary { margin-top: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } .scanlines { display: none; } }

/* Three successive screens, designed for a phone in portrait orientation. */
.shell { width: 100%; max-width: 500px; padding: 0 max(16px, env(safe-area-inset-left)); }
.topbar { height: 65px; }
.edition { display: none; }
.utility { min-height: 44px; }
.layout { display: block; padding: 24px 0; }
.briefing { padding: 0; width: 100%; }
h1 { margin: 17px auto 12px; max-width: 275px; }
.briefing > .eyebrow, .tagline { text-align: center; }
.tagline { font-size: 14px; margin-bottom: 22px; }
.prizes { padding: 15px; border: 1px solid #415036; background: #172018; margin-bottom: 23px; }
.prizes h2 { margin: 0 0 13px; text-align: center; color: var(--lime); font-size: 11px; letter-spacing: 2px; }
.prize-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prize { display: flex; flex-direction: column; align-items: center; padding: 8px; }
.prize + .prize { border-left: 1px solid #415036; }
.prize > span { font-size: 9px; color: var(--lime); letter-spacing: 1px; }
.prize strong { margin-top: 7px; font-size: 23px; font-weight: 700; }
.prize small { font: 13px/1.5 Arial, sans-serif; color: #d7dfcb; }
.prizes > p { font: 10px/1.5 Arial, sans-serif; text-align: center; color: #a6b19b; margin: 10px 0 0; }
.name-label { display: block; font-size: 10px; letter-spacing: 1px; margin: 0 0 9px; }
#player-name { display: block; width: 100%; height: 49px; border: 1px solid #3a4a5b; border-radius: 0; background: #101a26; color: var(--text); padding: 11px 13px; font: 16px Arial, sans-serif; margin-bottom: 22px; }
#player-name:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.teams { gap: 12px; }
.team-inner { min-height: 112px; padding: 10px; position: relative; }
.team canvas { width: 44px; height: 49px; margin: 2px 0 9px; }
.team strong { font-size: 11px; }
.team .selection-dot { position: absolute; top: 10px; right: 10px; }
#start { margin-top: 17px; }
.primary { min-height: 54px; }
.start-note { margin: 15px 0 17px; }
.error { font: 13px/1.6 Arial, sans-serif; color: #ff9aab; margin: 12px 0 0; }
.error:empty, .connection:empty { display: none; }
.howto { display: block; margin-top: 0; padding-top: 7px; }
.howto summary { min-height: 44px; padding-top: 11px; }
.welcome-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; align-items: center; margin-top: 13px; }
.welcome-links a, .ranking-link { color: var(--lime); font-size: 12px; padding: 14px 0; display: inline-block; }
.welcome-links .text-button { margin: 0; font-size: 12px; }
.connection { font: 12px/1.6 Arial, sans-serif; color: #a6b9ca; }
#sync-status { text-align: center; }
body.in-game .topbar { display: flex; height: 52px; }
body.in-game .layout { padding: 8px 0; }
body.in-game footer { display: none; }
body.in-game .arcade { width: min(100%, calc((100svh - 238px) * .75 + 20px)); max-width: 100%; min-width: 265px; margin: auto; padding: 9px; }
.cabinet-top { gap: 10px; padding-bottom: 10px; }
#playing-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; color: #d2dacb; }
.hud { padding: 10px 12px; gap: 9px; }
.hud strong { font-size: 22px; }
.statusbar { padding: 8px 10px; }
.controls { padding-top: 12px; gap: 10px; }
.arrows button { width: 48px; height: 52px; }
.pulse { padding: 7px 10px; }
.pulse kbd { display: none; }
.control-hint { margin: 11px 0 2px; }
.finish-panel { text-align: center; padding: 8px 0; }
#result-avatar { display: block; width: 52px; height: 58px; image-rendering: pixelated; margin: 22px auto 10px; }
.finish-player { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
#finish-title { font-size: 29px; line-height: 1.2; margin: 18px 0 12px; }
#finish-reason { color: var(--muted); font: 13px/1.6 Arial, sans-serif; }
.result-score { background: #0c1420; border: 1px solid var(--line); padding: 20px 12px 13px; margin: 20px 0; }
.result-score > span { display: block; font-size: 9px; color: var(--muted); letter-spacing: 2px; }
#final-score { display: block; font-size: 49px; margin-top: 7px; }
#finish-stats { font: 11px/1.7 Arial, sans-serif; color: var(--muted); }
.reward-result { border: 1px solid #769846; background: #1e2b19; padding: 20px 16px; margin-bottom: 20px; }
.reward-result strong { color: var(--lime); font-size: 20px; line-height: 1.4; }
.reward-result p { font: 13px/1.6 Arial, sans-serif; color: #c3d6af; margin: 9px 0 0; }
.reward-result.no-prize { background: #131b24; border-color: var(--line); }
.reward-result.no-prize strong { color: var(--text); font-size: 17px; }
.reward-result.no-prize p { color: var(--muted); }
.google-review, .secondary { display: block; width: 100%; min-height: 50px; border: 1px solid #495564; padding: 16px 10px; font: 13px Arial, sans-serif; color: var(--text); background: #141e2a; text-align: center; text-decoration: none; margin: 15px 0; }
.google-review { display: flex; align-items: center; justify-content: center; gap: 10px; }
.google-review svg { width: 22px; height: 22px; flex-shrink: 0; }
#again { margin: 17px 0 5px; }
footer { font-size: 7px; justify-content: center; padding: 18px 0 max(18px, env(safe-area-inset-bottom)); }
footer > span:last-child { display: none; }
@media (max-width: 370px) { .shell { padding: 0 10px; } .pulse > span:nth-child(2) { font-size: 9px; } .arrows button { width: 44px; } .hud { gap: 5px; padding: 10px; } .hud strong { font-size: 20px; } }
@media (max-height: 600px) and (orientation: landscape) { body.in-game .arcade { width: 310px; } }

h1.game-logo { width: 100%; max-width: 340px; height: 220px; line-height: 0; }
h1.game-logo img { width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: center; image-rendering: auto; }
@media(max-width:380px) { h1.game-logo { height: 195px; } }
