* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top, #ffe0e0, #ffb7b7 70%);
  color: #f5f6ff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-wrapper {
  width: min(95vw, 960px);
  display: grid;
  gap: 1rem;
  text-align: center;
}

.hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 1rem;
  background: rgba(10, 19, 36, 0.75);
  padding: 1rem 1.5rem;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.scoreboard {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

.scoreboard .label {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a6ff;
}

.scoreboard .score {
  font-size: 2.5rem;
  font-weight: 700;
}

.status {
  font-size: 1rem;
  color: #e5ecff;
}

#rink {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.3), 0 20px 35px rgba(0, 0, 0, 0.45);
}

.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  background: rgba(10, 19, 36, 0.75);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

strong {
  color: #facc67;
}

@media (max-width: 650px) {
  .hud {
    grid-template-columns: 1fr;
  }

  .controls {
    grid-template-columns: 1fr;
  }
}

#clean-hit-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  padding: 1.25rem 2.25rem;
  background: rgba(255, 120, 0, 0.9);
  color: #1f0b00;
  font-size: clamp(1.5rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  z-index: 20;
}

#clean-hit-banner.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
