:root {
  --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: #000000; /*transparent on additive display*/
  color: var(--text-primary);
  width: 600px; height: 600px; overflow: hidden;
}

#app { width: 600px; height: 600px; position: relative; }
#gl { position: absolute; top: 0; left: 0; width: 600px; height: 600px; }

/* --- Fixed center crosshair --- */
#crosshair { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 6; }
#crosshair.hidden { display: none; }
.cross-ring { width: 46px; height: 46px; border: 3px solid var(--accent-secondary); border-radius: 50%; box-shadow: 0 0 12px rgba(0,255,136,0.5); }
.cross-dot { width: 6px; height: 6px; background: var(--accent-secondary); border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }

/* --- HUD --- */
#hud { position: absolute; inset: 0; pointer-events: none; z-index: 5; font-variant-numeric: tabular-nums; }
#hud.hidden { display: none; }
.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; }
#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: 38px; 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 { position: relative; width: 110px; height: 110px; display: flex; align-items: center; justify-content: center; }
.orb-core { width: 74px; height: 74px; 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; }
