* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top, #13213c 0%, #04070d 45%, #010204 100%);
  color: #f4f7fb;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  display: grid;
  place-items: center;
  padding: 24px;
}

.game-shell {
  width: min(100%, 1024px);
}

.hud {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
}

.hud div {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.label {
  color: #95a3bf;
}

.stage-wrap {
  position: relative;
  border: 2px solid rgba(171, 207, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 0 40px rgba(115, 162, 255, 0.08);
  background: linear-gradient(180deg, rgba(18, 27, 52, 0.55), rgba(2, 5, 12, 0.9));
  overflow: hidden;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: rgba(3, 6, 14, 0.56);
}

.overlay.hidden {
  display: none;
}

.overlay h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 64px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overlay p {
  margin: 0;
  color: #ccd8ef;
}

@media (max-width: 700px) {
  body {
    padding: 12px;
  }

  .hud {
    font-size: 12px;
    flex-wrap: wrap;
  }
}
