/* =====================================================================
   VibGaming — brick.css  (Upgraded Brick Breaker)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Orbitron', sans-serif;
  background: url('../assets/images/neon wallpaper.jpg') no-repeat center center / cover fixed;
  background-color: #050810;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 20px 30px;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  pointer-events: none;
  z-index: 0;
}

/*  HUD Bar  */
.hud {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 660px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 52px 0 12px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(0,242,255,0.25);
  border-radius: 12px;
  padding: 10px 20px;
  backdrop-filter: blur(8px);
}

.hud-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 80px;
}

.hud-label {
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

.hud-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #00f2ff;
  text-shadow: 0 0 10px #00f2ff;
}

.hud-value.lives { color: #ff4488; text-shadow: 0 0 10px #ff4488; }
.hud-value.level { color: #7fff00; text-shadow: 0 0 10px #7fff00; }

.hud-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
}

/*  Canvas  */
#board {
  position: relative;
  z-index: 2;
  border: 2px solid rgba(0,242,255,0.4);
  border-radius: 12px;
  box-shadow:
    0 0 20px rgba(0,242,255,0.3),
    0 0 60px rgba(0,242,255,0.1),
    inset 0 0 30px rgba(0,0,0,0.6);
  cursor: none;
  display: block;
}

/*  Controls hint  */
.controls-hint {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hint-pill {
  font-size: 0.68rem;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 5px 14px;
}

.hint-pill kbd {
  color: #00f2ff;
  font-family: 'Orbitron', sans-serif;
}

/*  Music button  */
#musicToggle {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  padding: 9px 22px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1px;
  background: rgba(0,0,0,0.5);
  color: #00f2ff;
  border: 1px solid rgba(0,242,255,0.35);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

#musicToggle:hover {
  background: rgba(0,242,255,0.1);
  box-shadow: 0 0 12px rgba(0,242,255,0.3);
}

/*  Power-up legend  */
.powerup-legend {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.legend-item {
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
