/* ════════════════════════════════════════════════════
   BALL EATER · GLOBAL DESIGN SYSTEM  v2.0
   Neon Glass + Pixel Retro — Rediseño 2026
   ════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ───────────────────────────────── */
:root {
  /* Accent — evolved neon green (más eléctrico, menos amarillo) */
  --accent:       #39ff14;
  --accent-dim:   #22b80e;
  --accent-glow:  rgba(57, 255, 20, 0.32);
  --accent-bg:    rgba(57, 255, 20, 0.06);

  /* Orange brand — más cálido y rico */
  --orange:       #ff5c1a;
  --orange-glow:  rgba(255, 92, 26, 0.35);
  --orange-bg:    rgba(255, 92, 26, 0.08);

  /* Backgrounds */
  --bg:    #080808;
  --bg-2:  #0f0f0f;
  --bg-3:  #161616;
  --bg-4:  #1e1e1e;

  /* Borders */
  --border:        rgba(255, 255, 255, 0.07);
  --border-accent: rgba(57, 255, 20, 0.22);
  --border-orange: rgba(255, 92, 26, 0.25);

  /* Text */
  --text:   #f0f0f0;
  --text-2: #aaa;
  --text-3: #666;
  --text-4: #333;

  /* Glass */
  --glass:   rgba(255, 255, 255, 0.03);
  --glass-2: rgba(255, 255, 255, 0.06);

  /* ── Legacy aliases (inline CSS existente sigue funcionando) ── */
  --fluor-green:  var(--accent);
  --orange-brand: var(--orange);
  --card-bg:      var(--bg-3);
  --green:        var(--accent);
  --dark:         var(--bg-2);
  --card:         var(--bg-3);
  --cyan:         #00d4ff;
  --gold:         #ffd700;
}

/* ─── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  font-family: 'Rajdhani', sans-serif;
  color: var(--text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* ─── NAVBAR ──────────────────────────────────────── */
.navbar-custom {
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-accent);
  box-shadow:
    0 1px 0 rgba(57, 255, 20, 0.08),
    0 4px 40px rgba(0, 0, 0, 0.7);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 200;
  flex-wrap: wrap;
  gap: 8px;
  transition: box-shadow 0.3s;
}

.navbar-brand-text {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.6rem, 2vw, 0.9rem);
  color: var(--accent);
  text-shadow: 0 0 18px var(--accent-glow);
  letter-spacing: 2px;
  text-decoration: none;
  transition: text-shadow 0.3s;
}
.navbar-brand-text:hover {
  text-shadow: 0 0 32px var(--accent-glow), 0 0 64px rgba(57, 255, 20, 0.12);
}

.navbar-buttons,
.navbar-left,
.navbar-right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ─── BUTTONS ─────────────────────────────────────── */
.btn-login,
.btn-register,
.btn-nav {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.45rem, 1.2vw, 0.55rem);
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 1px;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 5px;
  position: relative;
}

.btn-login,
.btn-nav.btn-nav-solid {
  background: var(--accent);
  color: #000;
  border: 1px solid transparent;
  font-weight: 700;
}
.btn-login:hover,
.btn-nav.btn-nav-solid:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-register,
.btn-nav.btn-nav-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(57, 255, 20, 0.45);
}
.btn-register:hover,
.btn-nav.btn-nav-outline:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-register.oculto { display: none; }

/* btn-nav sin modificador específico */
.btn-nav:not(.btn-nav-solid):not(.btn-nav-outline) {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(57, 255, 20, 0.45);
}
.btn-nav:not(.btn-nav-solid):not(.btn-nav-outline):hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 24px var(--accent-glow);
}

/* ─── PAGE HEADER (con dot-pattern) ───────────────── */
.page-header {
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-2) 60%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: clamp(40px, 7vw, 80px) clamp(20px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(57, 255, 20, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(57, 255, 20, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.page-header-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1rem, 4vw, 2rem);
  color: var(--accent);
  text-shadow:
    0 0 30px var(--accent-glow),
    0 0 70px rgba(57, 255, 20, 0.1);
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
  line-height: 1.5;
}
.page-header-sub {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-3);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ─── GLASS CARD ──────────────────────────────────── */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.08);
}

/* ─── MODALS ──────────────────────────────────────── */
.modal-overlay,
.modal-overlay-shop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 20px;
}
.modal-overlay.abierto,
.modal-overlay-shop.abierto {
  opacity: 1;
  pointer-events: all;
}

.modal-caja,
.modal-caja-shop {
  background: var(--bg-3);
  border: 1px solid var(--border-accent);
  border-radius: 18px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
  transform: translateY(-28px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 0 80px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(57, 255, 20, 0.12);
}
.modal-overlay.abierto .modal-caja,
.modal-overlay-shop.abierto .modal-caja-shop {
  transform: translateY(0) scale(1);
}

.modal-titulo,
.modal-titulo-shop {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.8;
  text-shadow: 0 0 20px var(--accent-glow);
}

.modal-cerrar {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: 1px solid var(--text-4);
  color: var(--text-3);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-cerrar:hover {
  border-color: var(--text);
  color: var(--text);
  background: var(--glass-2);
}

.modal-grupo { margin-bottom: 18px; }

.modal-etiqueta {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.38rem;
  color: var(--text-3);
  display: block;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.modal-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--bg-4);
  border-radius: 8px;
  padding: 13px 16px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.1);
}

.modal-error {
  background: var(--orange-bg);
  border: 1px solid var(--border-orange);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  color: var(--orange);
  margin-bottom: 16px;
  display: none;
}
.modal-error.visible { display: block; }

.modal-btn-principal,
.btn-checkout {
  width: 100%;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  background: var(--accent);
  color: #000;
  border: none;
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 1px;
  font-weight: 700;
}
.modal-btn-principal:hover:not(:disabled),
.btn-checkout:hover:not(:disabled) {
  background: #5fff35;
  box-shadow: 0 0 32px var(--accent-glow);
  transform: translateY(-1px);
}
.modal-btn-principal:disabled,
.btn-checkout:disabled {
  background: var(--bg-4);
  color: var(--text-4);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.modal-separador {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: var(--text-4);
}
.modal-separador::before,
.modal-separador::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bg-4);
}

.modal-btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #222;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-btn-google:hover {
  background: #f5f5f5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.modal-pie {
  text-align: center;
  margin-top: 22px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  color: var(--text-3);
}
.modal-pie a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.modal-pie a:hover { text-decoration: underline; }

.modal-olvide {
  text-align: right;
  margin-top: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
}
.modal-olvide a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}
.modal-olvide a:hover { color: var(--accent); }

/* PIN modal */
.pin-instrucciones {
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-2);
  margin-bottom: 24px;
  line-height: 1.6;
}
.pin-instrucciones strong { color: var(--accent); }

.input-pin-retro {
  width: 100%;
  background: var(--bg-2);
  border: 1px dashed rgba(57, 255, 20, 0.35);
  border-radius: 10px;
  padding: 18px 12px;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1rem, 4vw, 1.4rem);
  color: var(--accent);
  text-align: center;
  letter-spacing: 8px;
  text-transform: uppercase;
  outline: none;
  transition: all 0.3s;
  margin-bottom: 20px;
}
.input-pin-retro:focus {
  border-style: solid;
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.12);
}
.input-pin-retro::placeholder {
  color: var(--bg-4);
  letter-spacing: 2px;
  font-size: clamp(0.8rem, 3vw, 1rem);
}

.link-cancelar {
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.link-cancelar:hover {
  color: #ff8050;
  text-decoration: underline;
}

/* ─── FOOTER ──────────────────────────────────────── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border-accent);
  padding: clamp(44px, 6vw, 64px) clamp(24px, 6vw, 80px) clamp(24px, 3vw, 32px);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(57, 255, 20, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand-name {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.6rem, 1.5vw, 0.8rem);
  color: var(--accent);
  margin-bottom: 14px;
  text-shadow: 0 0 16px var(--accent-glow);
}

.footer-brand-desc {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: 18px;
}

.footer-version {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.4rem;
  color: var(--text-4);
  background: var(--bg-3);
  border: 1px solid var(--bg-4);
  border-radius: 4px;
  padding: 5px 10px;
  display: inline-block;
  letter-spacing: 1px;
}

.footer-col-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.45rem, 1.1vw, 0.55rem);
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--text-3);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(0.75rem, 1.3vw, 0.85rem);
  color: var(--text-4);
}

.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(0.75rem, 1.3vw, 0.85rem);
  color: var(--text-4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--text-3); }

/* ─── LOADING / ESTADOS ───────────────────────────── */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-4);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
  box-shadow: 0 0 16px var(--accent-glow);
}

.estado-carga {
  text-align: center;
  padding: 60px 20px;
}

.estado-texto {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: var(--text-3);
  line-height: 2;
}

/* ─── ANIMACIONES ─────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes float1 {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(-8px); }
  50%       { transform: translateY(4px); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0); }
  33%       { transform: translateY(-12px); }
  66%       { transform: translateY(4px); }
}
@keyframes float4 {
  0%, 100% { transform: translateY(-5px); }
  50%       { transform: translateY(8px); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 12px var(--accent-glow); }
  50%       { box-shadow: 0 0 36px var(--accent-glow), 0 0 70px rgba(57, 255, 20, 0.1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes silhouettePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

/* ─── SCROLL REVEAL ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }

/* ─── UTILIDADES ──────────────────────────────────── */
.neon-text {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.neon-border {
  border-color: var(--accent) !important;
  box-shadow: 0 0 18px var(--accent-glow);
}

.pill-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.38rem;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  letter-spacing: 1px;
}

/* Badge news types */
.badge-news {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.5rem, 1vw, 0.6rem);
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.3);
  font-weight: 700;
  text-transform: uppercase;
  width: fit-content;
  letter-spacing: 1px;
}
.badge-nuevo        { background-color: var(--cyan); color: #000; }
.badge-evento       { background-color: #ff6b9d; color: #fff; }
.badge-actualización { background-color: var(--accent); color: #000; }

/* ─── TOAST ───────────────────────────────────────── */
.toast-notif {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--accent);
  color: #000;
  padding: 14px 24px;
  border-radius: 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  z-index: 600;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 0 30px var(--accent-glow);
  letter-spacing: 1px;
}
.toast-notif.show {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE COMPARTIDO ───────────────────────── */
@media (max-width: 768px) {
  .navbar-custom     { padding: 10px 16px; }
  .navbar-buttons    { width: 100%; justify-content: flex-end; }
}

@media (max-width: 640px) {
  .footer-grid   { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .navbar-brand-text { font-size: 0.65rem; }
}

/* ══════════════════════════════════════════════════════
   PRODUCTION UPGRADE v3.0 — Global Polish
   ══════════════════════════════════════════════════════ */

/* ─── CUSTOM SCROLLBAR ─────────────────────────────── */
::-webkit-scrollbar            { width: 5px; }
::-webkit-scrollbar-track      { background: var(--bg); }
::-webkit-scrollbar-thumb      { background: var(--accent-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

/* ─── CURSOR GLOW DOT (injected by JS) ────────────── */
#cursor-dot {
  position: fixed;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--accent), 0 0 22px rgba(57, 255, 20, 0.55);
  opacity: 0;
  transition: opacity 0.3s, background 0.15s, box-shadow 0.15s, width 0.15s, height 0.15s;
  mix-blend-mode: screen;
  will-change: transform;
}
#cursor-dot.active        { opacity: 0.88; }
#cursor-dot.on-interactive {
  width: 11px;
  height: 11px;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange), 0 0 26px rgba(255, 92, 26, 0.55);
}

/* ─── HAMBURGER BUTTON ─────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 310;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--accent);
  border-radius: 1px;
  box-shadow: 0 0 7px var(--accent-glow);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.2s ease,
              width 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ─── MOBILE NAV DROPDOWN ──────────────────────────── */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .navbar-buttons {
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-bottom: 1px solid var(--border-accent);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px 22px;
    gap: 10px;
    transform: translateY(-105%);
    transition: transform 0.4s cubic-bezier(0.34, 1.15, 0.64, 1);
    z-index: 290;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  }
  .navbar-buttons.nav-open { transform: translateY(0); }

  .navbar-buttons .btn-nav,
  .navbar-buttons .btn-register,
  .navbar-buttons .btn-login {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.52rem;
  }
  .navbar-buttons .btn-register.oculto { display: none; }

  /* dot-grid subtle background on mobile nav */
  .navbar-buttons::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(57,255,20,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
  }
}

/* ─── NAVBAR SCROLLED ──────────────────────────────── */
.navbar-custom {
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.navbar-custom.scrolled {
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom-color: rgba(57, 255, 20, 0.18);
  box-shadow:
    0 1px 0 rgba(57, 255, 20, 0.14),
    0 6px 48px rgba(0, 0, 0, 0.96);
}

/* ─── GRAIN OVERLAY ──────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 192px 192px;
}

/* ─── PAGE FADE-IN ───────────────────────────────────── */
body { animation: pageFadeIn 0.35s ease both; }
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── FOCUS VISIBLE ─────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.14);
}
:focus:not(:focus-visible) { outline: none; }

/* ─── SKELETON LOADER ────────────────────────────────── */
.skeleton-block {
  background: var(--bg-3);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.skeleton-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.042) 50%, transparent 100%);
  animation: shimmer 1.8s ease-in-out infinite;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(200%); }
}

/* ─── HERO CANVAS ────────────────────────────────────── */
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* ─── IMPROVED CARD GLOW ─────────────────────────────── */
.game-desc-card {
  position: relative;
}
.game-desc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(57, 255, 20, 0.06) 0%, transparent 70%);
  transition: opacity 0.3s;
  pointer-events: none;
}
.game-desc-card:hover::after { opacity: 1; }

/* ─── STATS COUNTER UTILITY ──────────────────────────── */
.count-up { display: inline-block; }

/* ─── IMPROVED FOOTER LINKS ──────────────────────────── */
.footer-links a,
.footer-legal a {
  position: relative;
}
.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.footer-links a:hover::after { width: 100%; }

/* ─── IMPROVED BUTTON PRESS ──────────────────────────── */
.btn-login:active,
.btn-register:active,
.btn-nav:active,
.hero-cta-primary:active,
.hero-cta-secondary:active {
  transform: translateY(1px) scale(0.98);
}

/* ─── TOAST IMPROVED ─────────────────────────────────── */
.toast-notif {
  max-width: 340px;
  line-height: 1.6;
}

/* ─── COOKIE CONSENT ────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9995;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-accent);
  padding: clamp(16px, 3vw, 24px) clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  transform: translateY(110%);
  transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.8), 0 -1px 0 rgba(57,255,20,0.08);
}
#cookie-banner.visible { transform: translateY(0); }

.cookie-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--text-2);
  line-height: 1.5;
  flex: 1;
  min-width: 240px;
}
.cookie-text strong { color: var(--text); }
.cookie-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.cookie-text a:hover { text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn-accept {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.48rem;
  background: var(--accent);
  color: #000;
  border: none;
  padding: 11px 20px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
  white-space: nowrap;
}
.cookie-btn-accept:hover {
  background: #5fff35;
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}

.cookie-btn-essential {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.48rem;
  background: transparent;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 11px 20px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
  white-space: nowrap;
}
.cookie-btn-essential:hover {
  color: var(--text);
  border-color: var(--border-accent);
  background: rgba(57,255,20,0.04);
}

@media (max-width: 480px) {
  #cookie-banner  { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-btn-accept,
  .cookie-btn-essential { flex: 1; text-align: center; }
}

/* ─── PREFERS-REDUCED-MOTION ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  body      { animation: none !important; }
  .reveal   { opacity: 1 !important; transform: none !important; }
  #hero-canvas { display: none !important; }
}
