* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #0a1020;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

#game { display: block; width: 100%; height: 100%; }

/* ---------- HUD ---------- */
#hud {
  position: fixed; inset: 0;
  pointer-events: none;
  color: #fff;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 18px 22px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.hud-left, .hud-right { display: flex; flex-direction: column; gap: 6px; min-width: 120px; }
.hud-right { align-items: flex-end; }

.stat { font-variant-numeric: tabular-nums; }
.stat .label { display: block; font-size: 11px; letter-spacing: 0.14em; opacity: 0.6; }
.stat span:last-child { font-size: 30px; font-weight: 700; }

.hud-center { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); text-align: center; }
.trick {
  font-size: 30px; font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffd75e;
  min-height: 38px;
  opacity: 0;
  transition: opacity 0.12s;
}
.trick.show { opacity: 1; }
.speed { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

.air { font-size: 16px; font-weight: 700; opacity: 0.85; }
.combo { font-size: 20px; font-weight: 800; color: #7ef0ff; min-height: 26px; }

/* ---------- wipeout / landed banner ---------- */
#banner {
  position: fixed; top: 44%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: 54px; font-weight: 900; letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 3px 12px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
#banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#banner.wipe { color: #ff6b6b; }
#banner.land { color: #7ef0ff; }

/* ---------- help ---------- */
#help {
  position: fixed; left: 50%; bottom: 22px;
  transform: translateX(-50%);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 13px;
  background: rgba(10, 16, 32, 0.55);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 12px 18px;
  backdrop-filter: blur(6px);
  pointer-events: auto;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
#help b { color: #ffd75e; letter-spacing: 0.06em; }
#help span { opacity: 0.9; white-space: nowrap; }
#help .start { color: #7ef0ff; font-weight: 700; }
#help.hidden { display: none; }

kbd {
  font-family: inherit;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 12px;
}
