/* ================================================================
   CLICNWIN – style.css
   Neon cyberpunk theme
   ================================================================ */

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  --bg:        #05050f;
  --bg2:       #0b0b22;
  --primary:   #00f0ff;
  --primary-g: rgba(0, 240, 255, 0.25);
  --secondary: #ff00cc;
  --gold:      #ffd700;
  --green:     #00ff88;
  --red:       #ff2244;
  --blue:      #4488ff;
  --purple:    #aa44ff;
  --text:      #dde0ff;
  --dim:       #6677aa;
  --fDisplay:  'Orbitron', monospace;
  --fBody:     'Inter', sans-serif;
}

/* ── Reset / Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fBody);
  min-height: 100vh;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ── Accessibility ──────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Background stars ───────────────────────────────────────────── */
#bg-particles {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}

@keyframes bgStar {
  from { opacity: .08; transform: scale(.7); }
  to   { opacity: .55; transform: scale(1.3); }
}

/* ── Screen switcher ────────────────────────────────────────────── */
.screen {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  z-index: 10;
}
.screen.active { display: flex; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HOME SCREEN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.home-content {
  text-align: center;
  padding: 1.5rem 1.5rem 2rem;
  max-width: 480px; width: 100%;
  position: relative; z-index: 10;
}

/* Logo */
.logo-wrap { margin-bottom: 1.6rem; }

.logo {
  font-family: var(--fDisplay);
  font-size: clamp(3rem, 13vw, 5.2rem);
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--primary);
  text-shadow:
    0 0 18px var(--primary),
    0 0 55px rgba(0,240,255,.3),
    0 0 110px rgba(0,240,255,.12);
  line-height: 1;
}
.logo span {
  color: var(--secondary);
  text-shadow:
    0 0 18px var(--secondary),
    0 0 55px rgba(255,0,204,.3);
}
.logo-sub {
  font-family: var(--fDisplay);
  font-size: clamp(.5rem, 2.3vw, .7rem);
  letter-spacing: .35em;
  color: var(--dim);
  margin-top: .55rem;
}

/* Stat boxes */
.home-stats {
  display: flex; gap: .85rem;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.stat-box {
  background: rgba(0,240,255,.04);
  border: 1px solid rgba(0,240,255,.18);
  border-radius: 12px;
  padding: .65rem 1.3rem;
  min-width: 110px;
}
.stat-label {
  display: block;
  font-size: .6rem; letter-spacing: .22em;
  color: var(--dim); text-transform: uppercase;
  margin-bottom: .2rem;
}
.stat-value {
  display: block;
  font-family: var(--fDisplay);
  font-size: 1.5rem; font-weight: 700;
  color: var(--gold);
}

/* Legend */
.legend-section { margin-bottom: 1.6rem; }
.legend-title {
  font-family: var(--fDisplay);
  font-size: .6rem; letter-spacing: .35em;
  color: var(--dim); margin-bottom: .6rem;
}
.target-legend {
  display: flex; flex-wrap: wrap;
  gap: .5rem .9rem; justify-content: center;
}
.legend-item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: var(--dim);
}
.legend-dot {
  width: 16px; height: 16px;
  border-radius: 50%; display: inline-block;
  border: 2px solid currentColor;
  flex-shrink: 0;
}
.legend-dot.green { background: var(--green); border-color: var(--green); box-shadow: 0 0 7px var(--green); }
.legend-dot.gold  { background: var(--gold);  border-color: var(--gold);  box-shadow: 0 0 7px var(--gold); }
.legend-dot.cyan  { background: var(--primary);border-color:var(--primary);box-shadow:0 0 7px var(--primary); }
.legend-dot.blue  { background: var(--blue);  border-color: var(--blue);  box-shadow: 0 0 7px var(--blue); }
.legend-dot.red   { background: var(--red);   border-color: var(--red);   box-shadow: 0 0 7px var(--red); }

/* Nav buttons */
.home-nav { display: flex; flex-direction: column; gap: .7rem; }

.tagline {
  margin-top: 1.4rem;
  color: var(--dim); font-size: .82rem;
  letter-spacing: .1em; font-style: italic;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BUTTONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.btn {
  display: block; width: 100%;
  padding: .9rem 2rem;
  border: none; border-radius: 50px;
  font-family: var(--fDisplay);
  font-size: .9rem; font-weight: 700; letter-spacing: .1em;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0070ee);
  color: #000;
  box-shadow: 0 0 28px rgba(0,240,255,.4), 0 4px 18px rgba(0,0,0,.35);
}
.btn-primary:hover  { transform: translateY(-2px); box-shadow: 0 0 48px rgba(0,240,255,.6), 0 8px 26px rgba(0,0,0,.4); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid rgba(0,240,255,.35);
}
.btn-secondary:hover { background: rgba(0,240,255,.08); border-color: var(--primary); }

.btn-ghost {
  background: transparent;
  color: var(--dim);
  border: 1px solid rgba(255,255,255,.1);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.28); }

.btn-share {
  background: linear-gradient(135deg, var(--secondary), var(--purple));
  color: #fff;
  box-shadow: 0 0 20px rgba(255,0,204,.3);
}
.btn-share:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(255,0,204,.5); }

@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 28px rgba(0,240,255,.4), 0 4px 18px rgba(0,0,0,.35); }
  50%      { box-shadow: 0 0 58px rgba(0,240,255,.7), 0 4px 28px rgba(0,0,0,.4); }
}
.pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAME SCREEN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.name-content {
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 380px; width: 100%;
}
.name-content h2 {
  font-family: var(--fDisplay);
  font-size: 1.7rem; color: var(--primary);
  margin-bottom: .4rem;
}
.name-content > p { color: var(--dim); margin-bottom: 1.8rem; }

#player-name {
  width: 100%;
  padding: .95rem 1.4rem;
  background: rgba(0,240,255,.04);
  border: 2px solid rgba(0,240,255,.28);
  border-radius: 50px;
  color: var(--text);
  font-family: var(--fDisplay); font-size: 1.1rem;
  text-align: center; outline: none;
  margin-bottom: 1.4rem;
  transition: border-color .2s, box-shadow .2s;
}
#player-name:focus {
  border-color: var(--primary);
  box-shadow: 0 0 18px var(--primary-g);
}
#player-name::placeholder { color: var(--dim); }
#player-name.error { border-color: var(--red); box-shadow: 0 0 14px rgba(255,34,68,.3); }

.name-buttons { display: flex; flex-direction: column; gap: .7rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   COUNTDOWN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.countdown-wrap { text-align: center; }

#countdown-number {
  font-family: var(--fDisplay);
  font-size: clamp(7rem, 30vw, 11rem);
  font-weight: 900;
  color: var(--primary);
  text-shadow: 0 0 50px var(--primary), 0 0 110px var(--primary-g);
  line-height: 1;
}
.countdown-label {
  font-family: var(--fDisplay);
  font-size: 1.1rem; letter-spacing: .5em;
  color: var(--dim); margin-top: 1rem;
}

@keyframes countPop {
  0%   { transform: scale(1.6); opacity: 0; }
  55%  { transform: scale(.9);  opacity: 1; }
  100% { transform: scale(1);   opacity: 1; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   GAME SCREEN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#screen-game { flex-direction: column; background: var(--bg); }

/* HUD */
#hud {
  display: flex;
  width: 100%; max-width: 600px;
  padding: .8rem 1.2rem .5rem;
  justify-content: space-between; align-items: center;
  position: relative; z-index: 20; flex-shrink: 0;
}
.hud-cell { text-align: center; min-width: 80px; }
.hud-value {
  font-family: var(--fDisplay);
  font-size: 2.2rem; font-weight: 700;
  line-height: 1;
}
.hud-label {
  font-size: .55rem; letter-spacing: .28em;
  color: var(--dim); text-transform: uppercase;
  margin-top: .15rem;
}
.hud-timer { color: var(--primary); transition: color .3s; }
.hud-timer.warning { color: var(--gold); }
.hud-timer.danger  { color: var(--red); animation: timerDanger .5s infinite; }
@keyframes timerDanger {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}
.hud-score { color: var(--gold); }
.hud-combo { color: var(--green); transition: color .2s, text-shadow .2s; font-size: 1.6rem; }
.hud-combo.hot { color: var(--secondary); text-shadow: 0 0 18px var(--secondary); }

.hud-right-cell { position: relative; }

/* Sound toggle */
.sound-btn {
  position: absolute; top: 50%; right: -2.5rem;
  transform: translateY(-50%);
  background: none; border: none;
  font-size: 1.1rem; cursor: pointer; opacity: .45;
  transition: opacity .2s;
  padding: .3rem;
}
.sound-btn:hover { opacity: 1; }

/* Game area */
#game-area {
  flex: 1; width: 100%; max-width: 600px;
  position: relative; overflow: hidden;
  cursor: crosshair; touch-action: none;
}
#targets-container { position: absolute; inset: 0; }

#game-hint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fDisplay); font-size: 1.1rem;
  letter-spacing: .4em; color: rgba(255,255,255,.06);
  pointer-events: none; user-select: none;
}

/* ── Targets ── */
.target {
  position: absolute;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transform: translate(-50%, -50%) scale(0);
  animation: tSpawn .22s cubic-bezier(.34,1.56,.64,1) forwards;
  border: 3px solid transparent;
  font-size: 1.4rem; line-height: 1;
  will-change: transform;
  transition: filter .06s;
}
.target:hover { filter: brightness(1.25); }

@keyframes tSpawn {
  0%   { transform: translate(-50%,-50%) scale(0) rotate(-180deg); }
  75%  { transform: translate(-50%,-50%) scale(1.12) rotate(8deg); }
  100% { transform: translate(-50%,-50%) scale(1) rotate(0deg); }
}

/* Outer pulse ring */
.target::after {
  content: '';
  position: absolute; inset: -7px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: .25;
  animation: tRing 1.1s ease-in-out infinite alternate;
}
@keyframes tRing {
  from { transform: scale(1); opacity: .25; }
  to   { transform: scale(1.25); opacity: 0; }
}

/* Exit animations */
.target.t-exit-hit  { animation: tHit .18s ease-out forwards; pointer-events: none; }
.target.t-exit-miss { animation: tMiss .2s ease-in forwards; pointer-events: none; }

@keyframes tHit {
  0%   { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  50%  { transform: translate(-50%,-50%) scale(1.45); opacity: .9; }
  100% { transform: translate(-50%,-50%) scale(0); opacity: 0; }
}
@keyframes tMiss {
  from { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  to   { transform: translate(-50%,-50%) scale(0); opacity: 0; }
}

/* Target type styles */
.t-normal {
  background: radial-gradient(circle at 35% 35%, #55ffaa, #00aa55);
  border-color: var(--green);
  color: #003322;
  box-shadow: 0 0 18px rgba(0,255,136,.4), inset 0 2px 5px rgba(255,255,255,.3);
}
.t-gold {
  background: radial-gradient(circle at 35% 35%, #ffe07a, #ffaa00);
  border-color: var(--gold);
  color: #443300;
  box-shadow: 0 0 22px rgba(255,215,0,.5), inset 0 2px 5px rgba(255,255,255,.3);
}
.t-mega {
  background: radial-gradient(circle at 35% 35%, #99ffff, #0099dd);
  border-color: var(--primary);
  color: #002233;
  box-shadow: 0 0 28px rgba(0,240,255,.6), inset 0 2px 5px rgba(255,255,255,.3);
}
.t-bomb {
  background: radial-gradient(circle at 35% 35%, #ff7799, #cc0022);
  border-color: var(--red);
  color: #330011;
  box-shadow: 0 0 22px rgba(255,34,68,.5), inset 0 2px 5px rgba(255,255,255,.2);
  animation: tSpawn .22s cubic-bezier(.34,1.56,.64,1) forwards,
             bombPulse .45s ease-in-out .22s infinite alternate;
}
@keyframes bombPulse {
  from { box-shadow: 0 0 14px rgba(255,34,68,.4); }
  to   { box-shadow: 0 0 36px rgba(255,34,68,.9), 0 0 70px rgba(255,34,68,.3); }
}
.t-boost {
  background: radial-gradient(circle at 35% 35%, #99aaff, #3355dd);
  border-color: var(--blue);
  color: #001133;
  box-shadow: 0 0 22px rgba(68,136,255,.5), inset 0 2px 5px rgba(255,255,255,.3);
}

/* ── Score pop-up ── */
.score-popup {
  position: absolute;
  font-family: var(--fDisplay); font-size: 1.1rem; font-weight: 700;
  pointer-events: none;
  animation: scoreFloat 1s ease-out forwards;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  z-index: 100; white-space: nowrap;
  transform-origin: center bottom;
}
@keyframes scoreFloat {
  0%   { transform: translate(-50%,-50%) scale(.5); opacity: 0; }
  18%  { transform: translate(-50%,-80%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%,-200%) scale(1); opacity: 0; }
}

/* ── Particles ── */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: pFly var(--dur, .6s) ease-out forwards;
}
@keyframes pFly {
  0%   { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx,0px)), calc(-50% + var(--dy,0px))) scale(0); opacity: 0; }
}

/* ── Combo burst text ── */
@keyframes comboBurst {
  0%   { transform: translate(-50%,-50%) scale(0); opacity: 0; }
  30%  { transform: translate(-50%,-50%) scale(1.2); opacity: 1; }
  70%  { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%,-90%) scale(.85); opacity: 0; }
}

/* ── Screen shake ── */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%  { transform: translateX(-7px) rotate(-.8deg); }
  40%  { transform: translateX(7px)  rotate(.8deg); }
  60%  { transform: translateX(-4px); }
  80%  { transform: translateX(4px); }
}

/* ── Rage mode vignette ── */
#rage-overlay {
  position: absolute; inset: 0;
  pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at center, transparent 48%, rgba(200,0,0,.18) 100%);
  transition: opacity .5s; z-index: 5;
}
#rage-overlay.on { opacity: 1; animation: ragePulse .6s ease-in-out infinite alternate; }
@keyframes ragePulse { from { opacity: .5; } to { opacity: 1; } }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESULTS SCREEN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.results-content {
  text-align: center; padding: 1.5rem;
  max-width: 460px; width: 100%;
}
.results-title {
  font-family: var(--fDisplay);
  font-size: 2.2rem; letter-spacing: .1em;
  color: var(--primary); margin-bottom: 1.3rem;
}
.results-score-wrap { margin-bottom: 1.5rem; }
.results-score-label {
  font-size: .68rem; letter-spacing: .3em;
  color: var(--dim); text-transform: uppercase; margin-bottom: .4rem;
}
.results-score {
  font-family: var(--fDisplay);
  font-size: clamp(3.5rem, 15vw, 5rem); font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255,215,0,.55);
  line-height: 1;
}
.results-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .65rem; margin-bottom: 1.2rem;
}
.results-stat {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: .7rem .5rem;
}
.rs-label {
  display: block; font-size: .62rem;
  letter-spacing: .2em; color: var(--dim);
  text-transform: uppercase; margin-bottom: .2rem;
}
.rs-value {
  display: block; font-family: var(--fDisplay);
  font-size: 1.3rem; font-weight: 700;
  color: var(--primary);
}
.results-new-best {
  font-family: var(--fDisplay);
  color: var(--gold); font-size: 1rem;
  letter-spacing: .1em; margin-bottom: .9rem;
  animation: bestGlow 1s ease-in-out infinite alternate;
}
@keyframes bestGlow {
  from { text-shadow: 0 0 10px rgba(255,215,0,.5); }
  to   { text-shadow: 0 0 30px rgba(255,215,0,.9), 0 0 60px rgba(255,215,0,.35); }
}
.results-buttons { display: flex; flex-direction: column; gap: .65rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LEADERBOARD SCREEN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.lb-content {
  text-align: center;
  padding: 1.5rem 1.2rem 2rem;
  max-width: 480px; width: 100%;
  max-height: 100dvh; overflow-y: auto;
}
.lb-content h2 {
  font-family: var(--fDisplay);
  font-size: 1.7rem; color: var(--gold);
  margin-bottom: 1.2rem;
}
.lb-tabs {
  display: flex; gap: .5rem;
  justify-content: center; margin-bottom: 1.2rem;
}
.lb-tab {
  padding: .45rem .95rem;
  border: 1px solid rgba(0,240,255,.28);
  background: transparent; color: var(--dim);
  border-radius: 50px; font-family: var(--fDisplay);
  font-size: .6rem; letter-spacing: .1em;
  cursor: pointer; transition: all .2s;
}
.lb-tab.active { background: var(--primary); color: #000; border-color: var(--primary); }

#lb-list { margin-bottom: 1.2rem; }

.lb-row {
  display: flex; align-items: center;
  padding: .65rem .9rem;
  border-radius: 10px; margin-bottom: .4rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  transition: background .2s;
  text-align: left;
}
.lb-row:hover { background: rgba(0,240,255,.05); }
.lb-row.top-1 { border-color: rgba(255,215,0,.35);   background: rgba(255,215,0,.05); }
.lb-row.top-2 { border-color: rgba(192,192,192,.28); background: rgba(192,192,192,.04); }
.lb-row.top-3 { border-color: rgba(205,127,50,.28);  background: rgba(205,127,50,.04); }

.lb-medal { font-size: 1.1rem; width: 32px; flex-shrink: 0; }
.lb-rank  {
  font-family: var(--fDisplay); font-size: .85rem; font-weight: 700;
  width: 32px; flex-shrink: 0; color: var(--dim);
}
.lb-name  { flex: 1; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score { font-family: var(--fDisplay); font-size: 1rem; color: var(--primary); flex-shrink: 0; }
.lb-date  { font-size: .65rem; color: var(--dim); margin-left: .5rem; flex-shrink: 0; }

.lb-loading {
  color: var(--dim); padding: 2rem;
  font-family: var(--fDisplay); font-size: .85rem;
  letter-spacing: .2em;
}
.lb-back { margin-top: .5rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SHARE MODAL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; backdrop-filter: blur(8px);
}
.modal-content {
  background: var(--bg2);
  border: 1px solid rgba(0,240,255,.28);
  border-radius: 20px; padding: 2rem 1.5rem;
  max-width: 380px; width: 90%;
  text-align: center; position: relative;
  box-shadow: 0 0 55px rgba(0,240,255,.14);
}
.modal-content h3 {
  font-family: var(--fDisplay); font-size: 1.1rem;
  color: var(--primary); letter-spacing: .1em; margin-bottom: .9rem;
}
.share-text-box {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: .9rem;
  font-size: .88rem; color: var(--text);
  margin-bottom: 1rem; line-height: 1.65;
  white-space: pre-line; text-align: left;
}
.share-buttons { display: flex; gap: .55rem; justify-content: center; margin-bottom: .4rem; }
.share-btn {
  padding: .65rem 1.3rem; border: none;
  border-radius: 50px; font-family: var(--fDisplay);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.share-btn.twitter { background: #1a8cd8; color: #fff; }
.share-btn.copy    { background: rgba(255,255,255,.1); color: var(--text); border: 1px solid rgba(255,255,255,.2); }
.share-btn:hover   { transform: translateY(-2px); }
.modal-close {
  position: absolute; top: .9rem; right: .9rem;
  background: none; border: none; color: var(--dim);
  cursor: pointer; font-size: 1.1rem; padding: .25rem;
  transition: color .15s;
}
.modal-close:hover { color: var(--text); }

/* ── Firework celebration ── */
@keyframes firework {
  0%   { transform: translate(-50%,-50%) scale(0); opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 0; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SCROLLBAR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,240,255,.25); border-radius: 2px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 420px) {
  .target { font-size: 1.1rem; }
  .hud-value { font-size: 1.7rem; }
  .results-stats { gap: .5rem; }
  .sound-btn { right: -1.8rem; }
}
@media (max-height: 620px) {
  .home-content { padding: .7rem 1.2rem 1rem; }
  .home-stats { margin-bottom: .8rem; }
  .legend-section { margin-bottom: .8rem; }
  .tagline { margin-top: .8rem; }
}
