:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #10120f;
  color: #f5f0df;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 25% 20%, rgba(245, 175, 65, 0.18), transparent 28rem),
    radial-gradient(circle at 78% 75%, rgba(65, 190, 160, 0.16), transparent 26rem),
    #10120f;
}

.game-shell {
  width: min(1120px, calc(100vw - 32px));
  display: grid;
  gap: 14px;
}

.hud,
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow,
.controls p {
  margin: 0;
  color: #b9bea9;
  font-size: 0.92rem;
}

h1 {
  margin: 2px 0 0;
  font-size: clamp(1.8rem, 5vw, 4.25rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stats span {
  min-width: 94px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 240, 223, 0.18);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: #cdd2bf;
  text-align: center;
}

.stats strong {
  display: block;
  color: #fff7dc;
  font-size: 1.45rem;
}

canvas {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 1px solid rgba(245, 240, 223, 0.2);
  border-radius: 8px;
  background: #161913;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  touch-action: none;
}

button {
  border: 0;
  border-radius: 8px;
  background: #f0a23a;
  color: #17110a;
  font-weight: 800;
  padding: 12px 18px;
  min-height: 44px;
  cursor: pointer;
}

button:hover {
  background: #d98416;
}

@media (max-width: 720px) {
  body {
    place-items: start center;
    padding: 18px 0;
  }

  .hud,
  .controls {
    align-items: stretch;
    flex-direction: column;
  }

  .stats {
    justify-content: stretch;
  }

  .stats span {
    flex: 1;
    min-width: 84px;
  }
}
