:root {
  --bg1: #0d1b2a;
  --bg2: #1b263b;
  --panel: rgba(10, 18, 30, 0.5);
  --text: #eaf6ff;
  --accent: #7ae582;
  --accent-2: #80ed99;
  --warning: #ffb703;
  --danger: #ff4d6d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, #23395d 0%, var(--bg1) 30%, #0b1220 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
}

.game-shell {
  position: relative;
  width: min(92vw, 960px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  background: rgba(8, 11, 19, 0.55);
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  background: linear-gradient(#7ec8ff 0%, #d4f0ff 42%, #d9f6de 100%);
}

.hud {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
  z-index: 2;
}

.score-box {
  min-width: 120px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(10, 18, 30, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.78;
}

#score,
#best {
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 800;
}

.status {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(8, 18, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 700px) {
  .hud {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .score-box {
    min-width: 90px;
    padding: 8px 10px;
  }
}
