.breakout-screen {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  background: #05070a;
}

.breakout-screen:focus {
  transform: scale(0.995);
}

#warp-background {
  position: absolute;
  inset: 0;
  width: 584px;
  height: 584px;
  display: block;
  border-radius: 28px;
}

#game-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 584px;
  height: 584px;
  display: block;
  background:
    radial-gradient(circle at 50% 84%, rgba(112, 231, 255, 0.12), transparent 35%),
    rgba(5, 7, 10, 0.62);
}

.hud {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  right: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  pointer-events: none;
}

.hud > div {
  min-width: 0;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(16, 18, 23, 0.78);
  border: 1px solid rgba(112, 231, 255, 0.14);
  backdrop-filter: blur(2px);
}

.hud span {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  text-transform: uppercase;
}

.hud strong {
  display: block;
  margin-top: 4px;
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

#score {
  color: var(--warm);
}

#balls {
  color: #d8b4fe;
}

#stage {
  color: #4ade80;
}

#best-score {
  color: var(--accent-strong);
}

.overlay {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.5);
  text-align: center;
}

.overlay.hidden {
  display: none;
}

.overlay h1 {
  color: #ffffff;
  font-size: 44px;
  line-height: 1;
  font-weight: 950;
}

.overlay p {
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 900;
}
