.account-controls { display:grid; grid-template-columns:repeat(4,44px) minmax(0,1fr); align-items:start; gap:2px 5px; flex:1 1 0; min-width:0; }
.account-controls > button:not(#account-logout) { display:grid; place-items:center; width:44px; height:44px; padding:0; }
.account-controls img { display:block; object-fit:contain; pointer-events:none; }
.account-status { grid-row:2; grid-column:1/-1; max-width:none; white-space:normal; overflow-wrap:anywhere; color:#a3afa8; font-size:10px; line-height:1.3; }
#account-logout { display:grid; place-items:center; grid-row:1; grid-column:4; width:44px; height:44px; padding:0; }
@media (max-width: 700px) {
  .arcade-header { padding:max(6px,env(safe-area-inset-top)) 12px 5px; }
  .arcade-header .account-controls { order:1; }
  .arcade-header #pause { order:2; margin-left:auto; }
  .account-status { grid-row:2; grid-column:1/-1; }
  #account-logout { grid-row:1; grid-column:4; justify-self:start; }
}
:root { color-scheme: dark; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #050607; color: #edf0ee; }
* { box-sizing: border-box; }
body { margin: 0; height: 100vh; height: 100dvh; min-height: 360px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: transparent; border: 1px solid #414847; border-radius: 2px; min-height: 44px; padding: 0 16px; touch-action: manipulation; }
button:hover { background: #151a19; border-color: #cdd7d2; }
button:disabled { opacity: .35; cursor: default; }
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.arcade-header { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; padding:max(6px,env(safe-area-inset-top)) 12px 5px; border-bottom:1px solid #202625; font-size:12px; }
#pause { flex:none; min-width:68px; padding:0 8px; font-size:10px; }
.home-link { color:#c1cac6; }
.home-link:hover { color:#edf0ee; }
.build-version { flex:none; font-size:10px; color:#a9b8af; letter-spacing:.04em; }
#arcade { position: relative; min-height: 0; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #101614 0%, #050706 65%, #030404 100%); }
#space { display: block; width: 100%; height: 100%; outline-offset: -3px; touch-action: none; }
.hud { pointer-events: none; position: absolute; z-index: 2; inset: 25px 32px auto; display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 12px 40px; }
.hud-label { display: block; color: #8b9690; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 6px; }
#storage-note { font-size: 8px; letter-spacing: .04em; }
output { display: block; font-size: clamp(18px, 2.8vw, 29px); letter-spacing: .12em; font-variant-numeric: tabular-nums; text-shadow: 0 0 13px #c9e4d344; }
.lives { min-width: 102px; }
.weapon { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px 18px; font-size: 9px; line-height: 1.5; color: #a4b6aa; letter-spacing: .04em; }
#weapon-unlocks { color: #83978a; }
.overlay { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 85px 20px 25px; text-align: center; background: #05070680; }
[hidden] { display: none !important; }
.eyebrow { color: #89968f; font-size: 10px; letter-spacing: .23em; }
h1 { font-weight: 400; font-size: clamp(34px, 8vw, 94px); line-height: 1.1; letter-spacing: .14em; margin: 14px 0 5px; text-indent: .14em; text-shadow: 0 0 30px #b7d9c44d; }
#subtitle { font-size: 12px; color: #a3afa8; letter-spacing: .06em; margin: 10px 0 27px; }
#start { min-width: 185px; border-color: #c0cfc6; background: #e6eee9; color: #111814; letter-spacing: .04em; }
#start:hover { background: #fff; }
#start span { margin-left: 20px; }
.enter-hint { color: #7a8980; font-size: 10px; margin: 11px 0 30px; }
.instructions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 22px; color: #b8c2bc; font-size: 11px; }
kbd { font: inherit; border: 1px solid #4a554e; padding: 3px 5px; margin-right: 3px; color: #e0e8e3; }
.small-note { color: #69786e; font-size: 10px; line-height: 1.9; margin-top: 22px; }
.leaderboard { width:min(340px,100%); flex:none; margin:0 0 14px; padding:10px 12px; border:1px solid #41594a; background:#0a110ddb; text-align:left; }
.leaderboard h2 { margin:0 0 8px; font-size:11px; font-weight:500; letter-spacing:.15em; }
.leaderboard p { display:block; margin:4px 0; color:#9caca2; font-size:10px; line-height:1.4; }
.leaderboard ol { margin:5px 0 2px; padding-left:20px; }
.leaderboard li { padding:3px 0; font-size:11px; line-height:1.5; }
.board-entry { display:grid; grid-template-columns:14px minmax(0,1fr) auto auto; align-items:center; gap:6px; }
.board-provider { display:block; width:14px; height:14px; object-fit:contain; }
.board-name { min-width:0; overflow-wrap:anywhere; }
.board-level { color:#96aa9b; font-size:9px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.board-score { color:#d8eee0; white-space:nowrap; font-variant-numeric:tabular-nums; }
#score-retry { min-height:36px; padding:0 8px; font-size:10px; }
.arcade-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:44px; padding:2px 12px max(2px,env(safe-area-inset-bottom)); border-top:1px solid #202625; color:#87958b; font-size:9px; letter-spacing:.04em; }
.arcade-footer .home-link { display:flex; align-items:center; min-height:44px; white-space:nowrap; }
.arcade-footer #flight-status { min-width:0; text-align:center; }
.arcade-footer .build-version { white-space:nowrap; }
.touch-controls { display: none; position: absolute; z-index: 2; bottom: 18px; left: 14px; right: 14px; justify-content: space-between; gap: 10px; pointer-events: none; }
.touch-group { display: flex; gap: 7px; align-items: end; }
.flight-stick { position: relative; pointer-events: auto; width: 140px; height: 140px; flex: none; border: 1px solid #788d7f; border-radius: 50%; background: #101713bd; box-shadow: inset 0 0 0 14px #17251b8a; touch-action: none; user-select: none; -webkit-user-select: none; }
.flight-stick::before { content: '↑'; position: absolute; inset: 7px 0 auto; text-align: center; color: #9dad9e; font-size: 10px; pointer-events: none; }
.flight-stick::after { content: '↓'; position: absolute; inset: auto 0 7px; text-align: center; color: #9dad9e; font-size: 10px; pointer-events: none; }
.stick-knob { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px; border: 1px solid #a8bea9; border-radius: 50%; background: #304537; color: #e5f3e7; font-size: 22px; pointer-events: none; }
.touch-controls button { pointer-events: auto; width: 52px; height: 54px; padding: 0; background: #101713ad; border-color: #62736a; font-size: 22px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.touch-controls .fire { width: 58px; height: 58px; border-radius: 50%; font-size: 12px; text-transform: uppercase; }
.touch-controls .hyper { width: 48px; height: 48px; border-radius: 50%; font-size: 14px; }
.touch-controls button.active { background: #d9e7dd; color: #0a110d; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.no-script { position: absolute; z-index: 5; inset: 35% 10% auto; padding: 30px; text-align: center; background: #101713; }
@media (pointer: coarse), (max-width: 700px) { .touch-controls { display: flex; } .hud { inset: 20px 18px auto; grid-template-columns: 1fr 1fr auto; gap: 12px; } .best { grid-row: 2; } .weapon { grid-row: 3; font-size: 8px; gap: 3px 12px; } .lives { grid-column: 2; grid-row: 1; min-width: 0; } .wave { grid-column: 3; grid-row: 1; } .hud-label { font-size: 9px; } .arcade-footer { font-size: 8px; letter-spacing: .04em; } .overlay { justify-content:flex-start; overflow-y:auto; padding-top:32px; padding-bottom:24px; } .instructions { gap: 13px; max-width: 300px; line-height: 1.7; } .enter-hint { margin-bottom: 16px; } .small-note { display:none; } }
@media (max-height: 540px) { .overlay { padding-top: 54px; padding-bottom: 10px; } h1 { font-size: 35px; margin: 4px 0; } .eyebrow, .small-note, .enter-hint { display: none; } #subtitle { margin: 5px 0 12px; } .instructions { margin-top: 16px; } .hud { inset: 12px 18px auto; } output { font-size: 19px; } .touch-controls { bottom: 10px; } }

/* Embedded game keeps the version between touch pads but not duplicate site navigation. */
.arcade-embedded body { position:relative; min-height:0; grid-template-rows:minmax(0,1fr); overflow:hidden; }
.arcade-embedded .home-link { display:none; }
.arcade-embedded .arcade-footer { position:absolute; z-index:4; inset:auto 0 4px; justify-content:center; min-height:0; padding:0; border:0; pointer-events:none; }
.arcade-embedded .arcade-footer #flight-status { display:none; }
.arcade-embedded .arcade-header { position:absolute; z-index:4; top:8px; right:8px; left:8px; gap:8px; padding:0; border:0; }
.arcade-embedded .account-controls { background:#101713ed; }
.arcade-embedded .account-status { max-width:none; }
.arcade-embedded .hud { inset:100px 16px auto; gap:8px 12px; }
.arcade-embedded #pause { background:#101713ad; }
.arcade-embedded .overlay { padding:130px 12px 16px; }
@media (max-width: 700px) {
  .arcade-embedded output { font-size: 16px; letter-spacing: .04em; }
  .arcade-embedded .hud-label { font-size: 8px; letter-spacing: .05em; }
  .arcade-embedded .touch-controls { left: 8px; right: 8px; gap: 8px; }
  .arcade-embedded .touch-group { gap: 4px; }
  .arcade-embedded .flight-stick { width: 112px; height: 112px; border-radius: 50%; }
  .arcade-embedded .touch-controls button { width: 44px; height: 48px; }
  .arcade-embedded .touch-controls .fire { width: 56px; height: 56px; }
  .arcade-embedded .touch-controls .hyper { width: 46px; height: 46px; }
}
@media (max-height: 400px) {
  .arcade-embedded .overlay { padding: 100px 12px 8px; }
  .arcade-embedded .overlay .instructions, .arcade-embedded #subtitle { display: none; }
  .arcade-embedded h1 { font-size: 28px; }
}
