:root {
  --bg-primary: #000000; /*transparent on additive display*/
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --accent-primary: #00d4ff;
  --accent-secondary: #00ff88;
  --danger: #ff4466;
  --focus-glow: rgba(0, 212, 255, 0.4);
  --radius-lg: 16px;
}

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  width: 600px;
  height: 600px;
  overflow: hidden;
}

#app { width: 600px; height: 600px; position: relative; }

#pf { position: absolute; top: 0; left: 0; width: 600px; height: 600px; }

/* --- HUD --- */
#hud { position: absolute; inset: 0; pointer-events: none; padding: 18px 24px; font-variant-numeric: tabular-nums; }
.hud-top, .hud-bottom { position: absolute; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: center; }
.hud-top { top: 18px; }
.hud-bottom { bottom: 18px; }
#score { font-size: 34px; font-weight: 800; color: var(--text-primary); }
#best { font-size: 15px; font-weight: 600; color: var(--text-secondary); }
#lives { font-size: 24px; color: var(--danger); letter-spacing: 3px; }
#bombs { font-size: 22px; color: var(--accent-secondary); letter-spacing: 3px; }

/* --- Overlay screens --- */
.screen {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; text-align: center; padding: 32px;
}
.screen.hidden { display: none; }
.title { font-size: 40px; font-weight: 800; }
.subtitle { font-size: 18px; color: var(--text-secondary); line-height: 1.5; }
.subtitle b { color: var(--accent-primary); font-weight: 700; }

.cta {
  min-height: 88px; padding: 0 40px; margin-top: 8px;
  background: var(--accent-primary); color: #04222b;
  border: 3px solid transparent; border-radius: var(--radius-lg);
  font-size: 22px; font-weight: 700; cursor: pointer;
  transition: transform 300ms cubic-bezier(0.6,0,0.4,1), box-shadow 300ms ease;
}
.cta:focus { outline: none; box-shadow: 0 0 30px var(--focus-glow); transform: scale(1.05); }

/* --- Orb (start screen flourish) --- */
.orb { position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
.orb-core {
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7ff0ff, var(--accent-primary) 60%, #0077aa 100%);
  box-shadow: 0 0 40px var(--focus-glow);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.hidden { display: none !important; }
