* { box-sizing: border-box; margin: 0; }
:root { color: #eaf8ff; background: #07111f; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
body { min-height: 100dvh; overflow: hidden; background: radial-gradient(circle at 50% 42%, #173150 0, #091728 45%, #050b14 100%); }
#content { min-height: 100dvh; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(320px, 72vh) minmax(150px, 1fr); grid-template-rows: auto 1fr auto; align-items: center; gap: 16px; padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
.hero { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; gap: 16px; transition: opacity .2s; }
.eyebrow, .player-label { color: #78a7c4; font-size: 11px; letter-spacing: .16em; }
h1 { margin-top: 4px; font-size: clamp(24px, 4vw, 48px); line-height: .9; letter-spacing: -.06em; }
h1 b { color: #75f0ae; font-weight: 600; }
.hero-actions { display: flex; align-items: end; gap: 8px; }
label { display: grid; gap: 4px; color: #78a7c4; font-size: 10px; letter-spacing: .12em; }
button, select, input { color: #eaf8ff; border: 1px solid #294a63; border-radius: 10px; background: #0e2135dd; font: inherit; }
button, select { min-height: 42px; padding: 8px 12px; }
button { cursor: pointer; touch-action: manipulation; }
button:hover, button:focus-visible, select:focus-visible, input:focus-visible { border-color: #75f0ae; outline: none; }
button:active, button.active { background: #75f0ae; color: #07111f; transform: translateY(1px); }
.side { display: grid; justify-items: center; gap: 8px; z-index: 2; }
.player-one { color: #3bd9ff; }
.player-two { color: #75f0ae; }
.player_name { width: min(100%, 170px); padding: 8px 10px; text-align: center; color: currentColor; }
.score { font-size: clamp(48px, 7vw, 96px); font-weight: 700; line-height: 1; }
.thrusters { display: flex; gap: 8px; }
.thrusters button { min-width: 58px; min-height: 58px; border-color: currentColor; color: currentColor; font-size: 20px; font-weight: 700; }
.thrusters button[data-boost] { font-size: 10px; letter-spacing: .08em; }
.thrusters button:active, .thrusters button.active { color: #07111f; background: currentColor; }
#canvas { grid-column: 2; position: static; display: block; width: min(100%, 72vh); height: auto; aspect-ratio: 1; border: 1px solid #31506a; border-radius: 28px; background: #0b1830; box-shadow: 0 28px 90px #0009, inset 0 0 80px #1b446533; }
.help { grid-column: 1 / -1; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; color: #7894aa; font-size: 11px; transition: opacity .2s; }
.telemetry { color: #506c80; }
.disappear { opacity: .18; }
#winner { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: #030912cc; backdrop-filter: blur(12px); }
.winner-card { width: min(430px, 100%); padding: 34px; border: 1px solid #75f0ae; border-radius: 22px; background: #0b1a2a; text-align: center; }
.winner-card p { margin: 14px 0 24px; font-size: 32px; }
.winner-card button { border-color: #75f0ae; }
.winner-card small { color: #78a7c4; margin-left: 8px; }
.hide { display: none !important; }
@media (max-width: 760px) {
  body { overflow: auto; }
  #content { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto auto; gap: 10px; }
  .hero { display: block; }
  .hero-actions label { display: none; }
  .hero-actions { margin-top: 10px; }
  #restart_button { min-height: 36px; padding: 6px 9px; font-size: 11px; }
  #canvas { grid-column: 1 / -1; grid-row: 2; width: min(100%, 62vh); justify-self: center; border-radius: 20px; }
  .side { grid-row: 3; gap: 4px; min-width: 0; }
  .player-label { font-size: 9px; }
  .player_name { width: calc(100% - 8px); }
  .thrusters { gap: 4px; }
  .thrusters button { min-width: 44px; min-height: 52px; padding: 6px; }
  .thrusters button[data-boost] { min-width: 52px; font-size: 8px; }
  .help { grid-row: 4; }
  .score { font-size: 44px; }
}
