:root {
  --bg: #070714;
  --bg-alt: #0f0f29;
  --neon-cyan: #28f7ff;
  --neon-pink: #ff3bbf;
  --neon-green: #79ff70;
  --text: #e8f4ff;
  --panel: rgba(8, 12, 26, 0.75);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, #10163d 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, #2f0f3d 0%, transparent 45%),
    linear-gradient(180deg, #060611 0%, #020208 100%);
}

.game-shell {
  position: relative;
  width: 1000px;
  max-width: calc(100vw - 1rem);
}

canvas {
  width: 100%;
  height: auto;
  border: 2px solid rgba(40, 247, 255, 0.6);
  box-shadow:
    0 0 16px rgba(40, 247, 255, 0.4),
    0 0 40px rgba(255, 59, 191, 0.2),
    inset 0 0 30px rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(10, 12, 30, 0.95), rgba(4, 5, 15, 0.95));
}

.overlay {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  background: rgba(2, 4, 12, 0.84);
  backdrop-filter: blur(2px);
  z-index: 4;
}

.overlay.visible {
  display: flex;
}

h1,
h2,
h3 {
  margin: 0.2rem 0;
  letter-spacing: 0.06em;
}

button {
  margin-top: 0.5rem;
  border: 1px solid rgba(121, 255, 112, 0.7);
  background: rgba(121, 255, 112, 0.12);
  color: var(--text);
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: 120ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(121, 255, 112, 0.45);
}

.hud {
  position: absolute;
  top: 0.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  pointer-events: none;
  z-index: 2;
}

.score {
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(40, 247, 255, 0.8);
}

.divider {
  margin: 0 0.35rem;
  color: var(--neon-pink);
}

.hints {
  font-size: 0.95rem;
  color: #d6e7ff;
  background: var(--panel);
  border: 1px solid rgba(40, 247, 255, 0.3);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
}

.powerup-bars {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem;
  z-index: 3;
}

.powerup-panel {
  flex: 1;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  min-height: 76px;
}

.powerup-panel.p1 {
  border-color: rgba(40, 247, 255, 0.45);
}

.powerup-panel.p2 {
  border-color: rgba(255, 59, 191, 0.45);
}

.powerup-panel h3 {
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
  opacity: 0.9;
}

.powerup-panel ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.8rem;
}

.powerup-panel li {
  margin: 0.1rem 0;
}
