/* ── BOA Konami Sonic — Overlay & HUD Styles ───────────────────────────────── */

:root {
  --sonic-blue:   #0057e7;
  --sonic-gold:   #ffcc00;
  --sonic-red:    #e7000b;
  --sonic-white:  #ffffff;
  --sonic-dark:   #0a0a1a;
  --sonic-sky-t:  #1a6bba;
  --sonic-sky-b:  #87ceeb;
}

/* ── Mode active: lock scroll ───────────────────────────────────── */
body.boa-surelo-active {
  overflow: hidden !important;
}

/* ── Konami splash screen ───────────────────────────────────────── */
#boa-surelo-splash {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: var(--sonic-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  color: var(--sonic-white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#boa-surelo-splash.visible {
  opacity: 1;
  pointer-events: all;
}
#boa-surelo-splash .splash-title {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--sonic-gold);
  text-shadow: 4px 4px 0 var(--sonic-blue), 8px 8px 0 rgba(0,0,0,0.4);
  animation: boa-pulse 1s ease-in-out infinite alternate;
  margin-bottom: 0.5em;
  text-align: center;
}
#boa-surelo-splash .splash-sub {
  font-size: clamp(0.85rem, 2vw, 1.2rem);
  color: #aac4ff;
  margin-bottom: 2.5em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
#boa-surelo-splash .splash-hint {
  font-size: 1rem;
  color: #aaaaaa;
  animation: boa-blink 1.1s step-start infinite;
}
#boa-surelo-splash .splash-btn {
  margin-top: 1.8em;
  padding: 0.7em 2.2em;
  background: var(--sonic-blue);
  color: var(--sonic-white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 3px solid var(--sonic-white);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
#boa-surelo-splash .splash-btn:hover {
  background: #0040c0;
  transform: scale(1.05);
}

/* ── Game canvas layer ──────────────────────────────────────────── */
#boa-surelo-overlay {
  position: fixed;
  inset: 0;
  z-index: 999997;
  pointer-events: none;   /* game canvas handles its own events */
  display: none;
}
#boa-surelo-overlay.active {
  display: block;
}

#boa-surelo-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: all;
  image-rendering: pixelated;
}

/* ── HUD ─────────────────────────────────────────────────────────── */
#boa-surelo-hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999999;
  display: none;
  padding: 10px 20px;
  pointer-events: none;
}
#boa-surelo-hud.active {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.boa-hud-panel {
  background: rgba(0, 0, 30, 0.75);
  border: 2px solid var(--sonic-gold);
  border-radius: 6px;
  padding: 6px 14px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sonic-white);
  letter-spacing: 0.05em;
}
.boa-hud-rings { color: var(--sonic-gold); }
.boa-hud-score { color: #aac4ff; }
.boa-hud-exit  { 
  pointer-events: all; 
  cursor: pointer; 
  color: var(--sonic-red);
  border-color: var(--sonic-red);
  transition: background 0.1s;
}
.boa-hud-exit:hover { background: rgba(231,0,11,0.2); }

/* ── Ring scatter animation ──────────────────────────────────────── */
.boa-ring-burst {
  position: fixed;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sonic-gold);
  border: 3px solid #ffaa00;
  pointer-events: none;
  z-index: 999996;
  animation: boa-ring-fly var(--dur, 0.9s) ease-out forwards;
  transform-origin: center;
}

/* ── Animations ──────────────────────────────────────────────────── */
@keyframes boa-pulse {
  from { transform: scale(1);    }
  to   { transform: scale(1.04); }
}
@keyframes boa-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes boa-ring-fly {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx,0px), var(--ty,-60px)) scale(0.4); opacity: 0; }
}

/* ── Platform highlight (debug / visual flair) ───────────────────── */
.boa-platform-glow {
  outline: 2px solid rgba(0, 200, 255, 0.25) !important;
  outline-offset: 2px;
}
