/* ══ NEON RUSH — Design System ═════════════════════════════ */
:root {
  --primary: #FF1744;
  --primary-dark: #D50032;
  --accent: #FFD600;
  --bg: #0A0A0F;
  --surface: #141419;
  --border: #1F1F2A;
  --text: #F0F0F5;
  --muted: #6E6E80;
  --font-display: 'Clash Display', sans-serif;
  --font-body: 'Satoshi', sans-serif;
  --max-width: 1280px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; }

/* ══ COMPLIANCE STRIP ══════════════════════════════════════ */
.nx-compliance-strip {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9997;
  height: 32px; display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; letter-spacing: 1px; color: var(--muted); text-align: center;
  background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 16px;
}
.nx-compliance-strip strong { color: var(--primary); }

/* ══ HEADER ════════════════════════════════════════════════ */
.nx-header {
  position: fixed; top: 32px; left: 0; right: 0; z-index: 1000;
  height: 60px; background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nx-header--scrolled { background: rgba(10,10,15,0.98); }
.nx-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0 28px; height: 100%; gap: 24px;
}
.nx-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--primary); display: flex; align-items: center; gap: 8px;
  letter-spacing: 1px; white-space: nowrap;
}
.nx-logo-icon { font-size: 1.2rem; }
.nx-nav { display: flex; gap: 4px; align-items: center; }
.nx-nav a {
  color: var(--muted); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 8px 12px;
  transition: color 0.2s, background 0.2s;
}
.nx-nav a:hover, .nx-nav a.active { color: var(--text); background: rgba(255,255,255,0.04); }
.nx-auth { display: flex; gap: 8px; align-items: center; }
.nx-chip-counter {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,23,68,0.1); border: 1px solid rgba(255,23,68,0.2);
  padding: 4px 12px; font-size: 0.75rem; font-weight: 700; color: var(--primary);
}
.nx-chip-icon { font-size: 0.9rem; }
.nx-xp-container { display: flex; align-items: center; gap: 8px; }
.nx-xp-bar { width: 80px; height: 5px; background: var(--border); overflow: hidden; }
.nx-xp-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.4s; }
.nx-xp-text { font-size: 0.72rem; color: var(--primary); font-weight: 700; white-space: nowrap; }
.nx-user-name { font-size: 0.78rem; font-weight: 600; }
.nx-user-level { font-size: 0.68rem; color: var(--accent); font-weight: 700; }

/* Mobile nav */
.nx-nav-toggle { display: none; background: transparent; border: none; color: var(--primary); font-size: 1.4rem; }
.nx-nav-mobile {
  display: none; position: fixed; top: 92px; left: 0; right: 0;
  background: rgba(10,10,15,0.98); backdrop-filter: blur(16px);
  flex-direction: column; padding: 16px 0; border-bottom: 1px solid var(--border); z-index: 999;
}
.nx-nav-mobile.open { display: flex; }
.nx-nav-mobile a {
  padding: 12px 28px; color: var(--muted); font-size: 0.82rem; font-weight: 600;
  border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.nx-nav-mobile a:hover { color: var(--primary); }
.nx-nav-mobile-auth { display: none; flex-direction: column; gap: 8px; padding: 16px 28px; border-top: 1px solid var(--border); }
.nx-nav-mobile-user { display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 28px; border-top: 1px solid var(--border); }
.nx-nav-mobile-username { font-weight: 600; font-size: 0.95rem; }

/* ══ BUTTONS ═══════════════════════════════════════════════ */
.nx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; border: none;
  padding: 11px 24px; cursor: pointer; transition: all 0.2s;
}
.nx-btn-red {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 16px rgba(255,23,68,0.3);
}
.nx-btn-red:hover { box-shadow: 0 6px 24px rgba(255,23,68,0.5); transform: translateY(-1px); }
.nx-btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.nx-btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.nx-btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--muted); padding: 7px 14px; font-size: 0.68rem; }
.nx-btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.nx-btn-lg { padding: 14px 32px; font-size: 0.82rem; }

/* ══ MODALS ════════════════════════════════════════════════ */
.nx-login-overlay, .nx-register-overlay {
  position: fixed; inset: 0; z-index: 9000; background: rgba(5,5,8,0.92);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(8px);
}
.nx-login-content, .nx-register-content {
  max-width: 420px; width: 100%; background: var(--surface);
  border: 1px solid var(--border); padding: 40px 36px; text-align: center;
  box-shadow: 0 0 50px rgba(255,23,68,0.08); position: relative;
}
.nx-modal-close { position: absolute; top: 12px; right: 14px; background: transparent; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.nx-form-group { margin-bottom: 12px; }
.nx-form-input {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text); padding: 11px 14px; font-size: 0.88rem; outline: none; transition: border-color 0.2s;
}
.nx-form-input:focus { border-color: var(--primary); }
.nx-form-input::placeholder { color: var(--muted); }

/* Game modal */
.nx-modal-overlay {
  position: fixed; inset: 0; z-index: 8000; background: rgba(5,5,8,0.97);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.nx-modal-content {
  width: 100%; max-width: 1100px; background: var(--surface);
  border: 1px solid var(--border); display: flex; flex-direction: column;
}
.nx-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; border-bottom: 1px solid var(--border); }
.nx-modal-title { font-family: var(--font-display); font-size: 0.95rem; color: var(--primary); }

/* Bonus popup */
.nx-bonus-popup { position: fixed; inset: 0; z-index: 9500; background: rgba(5,5,8,0.9); display: flex; align-items: center; justify-content: center; }
.nx-bonus-popup > div { background: var(--surface); border: 1px solid var(--primary); padding: 36px; max-width: 340px; width: 90%; }
.nx-bonus-xp { font-family: var(--font-display); font-size: 1.4rem; color: var(--accent); font-weight: 700; margin: 10px 0; }
.nx-bonus-streak { font-size: 0.82rem; color: var(--muted); margin-bottom: 18px; }

/* ══ TICKER ════════════════════════════════════════════════ */
.nx-ticker {
  overflow: hidden; padding: 8px 0;
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.nx-ticker-track { display: flex; animation: nx-tick 22s linear infinite; white-space: nowrap; }
.nx-ticker-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 28px; font-size: 0.74rem; font-weight: 700; color: var(--accent); }
.nx-ticker-item strong { color: var(--primary); }
@keyframes nx-tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══ LAYOUT ════════════════════════════════════════════════ */
main { padding-top: 98px; }
.nx-section { padding: 72px 0; position: relative; }
.nx-wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }
.nx-section-tag {
  font-size: 0.6rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 8px;
}
.nx-section-title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: var(--text); margin-bottom: 12px; line-height: 1.1;
}
.nx-text-accent { color: var(--primary); }
.nx-text-yellow { color: var(--accent); }
.nx-section-sub { font-size: 0.9rem; line-height: 1.7; color: var(--muted); max-width: 540px; }
.nx-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--primary), transparent); }

/* ══ HERO ══════════════════════════════════════════════════ */
.nx-hero {
  padding: 48px 28px 40px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,23,68,0.03) 0%, transparent 60%);
}
.nx-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,23,68,0.015) 2px, rgba(255,23,68,0.015) 4px);
}
.nx-hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.nx-hero-title {
  font-family: var(--font-display); font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.95; letter-spacing: -1px; margin-bottom: 16px;
}
.nx-hero-chips {
  font-size: clamp(0.9rem, 1.8vw, 1.2rem); font-weight: 700;
  color: var(--accent); margin-bottom: 6px;
}
.nx-hero-sub {
  font-size: clamp(0.82rem, 1.2vw, 0.95rem); color: var(--muted);
  max-width: 500px; margin: 0 auto 28px; line-height: 1.7;
}
.nx-hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Glitch effect */
.nx-glitch { position: relative; }
.nx-glitch::before, .nx-glitch::after {
  content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.nx-glitch::before { color: var(--primary); clip-path: polygon(0 0,100% 0,100% 33%,0 33%); animation: nx-glitch-top 3s infinite linear; }
.nx-glitch::after { color: var(--accent); clip-path: polygon(0 67%,100% 67%,100% 100%,0 100%); animation: nx-glitch-bot 2.5s infinite linear; }
@keyframes nx-glitch-top { 0%,92%,100%{transform:translate(0)} 93%{transform:translate(-3px,-1px)} 95%{transform:translate(2px,1px)} 97%{transform:translate(-1px,0)} }
@keyframes nx-glitch-bot { 0%,94%,100%{transform:translate(0)} 95%{transform:translate(3px,1px)} 97%{transform:translate(-2px,-1px)} }

/* ══ STATS BAR ═════════════════════════════════════════════ */
.nx-stats-bar {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.nx-stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }
.nx-stat-item { text-align: center; padding: 0 16px; border-right: 1px solid var(--border); }
.nx-stat-item:last-child { border-right: none; }
.nx-stat-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.nx-stat-label { font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

/* ══ GAME CARDS ════════════════════════════════════════════ */
.nx-game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px; }
.nx-game-card {
  background: var(--surface); position: relative; overflow: hidden; cursor: pointer;
  aspect-ratio: 1; transition: transform 0.25s, box-shadow 0.25s;
}
.nx-game-card:hover { transform: translateY(-4px); box-shadow: 0 0 20px rgba(255,23,68,0.15); z-index: 2; }
.nx-game-img { width: 100%; height: 100%; position: relative; }
.nx-game-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); transition: filter 0.3s; }
.nx-game-card:hover .nx-game-img img { filter: brightness(1); }
.nx-game-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,15,0.95) 0%, transparent 50%);
}
.nx-game-badge {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: rgba(10,10,15,0.7); padding: 3px 8px; font-size: 0.65rem; color: var(--primary);
}
.nx-badge-hot { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--primary); font-size: 0.55rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; color: #fff; }
.nx-badge-new { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--accent); color: var(--bg); font-size: 0.55rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; }
.nx-badge-fav { position: absolute; top: 8px; right: 8px; z-index: 2; background: #7B2FF7; color: #fff; font-size: 0.55rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; }
.nx-game-body { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 10px; }
.nx-game-name { font-family: var(--font-display); font-size: 0.78rem; color: var(--text); margin-bottom: 2px; }
.nx-game-meta { font-size: 0.6rem; letter-spacing: 1px; color: var(--muted); }
.nx-game-play {
  background: var(--primary); color: #fff; border: none;
  font-family: var(--font-display); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 14px;
  cursor: pointer; transition: all 0.2s; margin-top: 6px;
}
.nx-game-play:hover { box-shadow: 0 4px 12px rgba(255,23,68,0.4); }
.nx-faq-question { color: var(--text); }

/* Filter bar */
.nx-filter-bar, .nx-filters { margin-bottom: 20px; }
.nx-filter-btn {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  padding: 6px 14px; font-size: 0.68rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; cursor: pointer; transition: all 0.2s; margin: 0 3px 6px 0;
}
.nx-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.nx-filter-btn--active, .nx-filter-btn--active:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ══ FAQ ═══════════════════════════════════════════════════ */
.nx-faq-item { border-bottom: 1px solid var(--border); }
.nx-faq-question {
  width: 100%; background: transparent; border: none; color: var(--text);
  padding: 18px 0; font-size: 0.95rem; font-weight: 600; text-align: left;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.nx-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.nx-faq-item--open .nx-faq-answer { padding-top: 12px; border-top: 1px solid var(--border); }

/* ══ BONUS CTA ═════════════════════════════════════════════ */
.nx-bonus-cta-inner { text-align: center; }
.nx-bonus-cta-inner p { margin-bottom: 24px; }

/* ══ DISCLAIMER ════════════════════════════════════════════ */
.nx-disclaimer-block {
  border: 1px solid rgba(255,23,68,0.15); padding: 44px;
  background: rgba(20,20,25,0.5);
}
.nx-disclaimer-block h2 {
  text-align: center; text-transform: uppercase; font-size: 1.2rem;
  color: var(--primary); margin-bottom: 14px; font-family: var(--font-display);
}
.nx-disclaimer-block p { margin-bottom: 10px; font-size: 0.9rem; line-height: 1.6; }

/* ══ FOOTER ════════════════════════════════════════════════ */
.nx-footer { background: #06060A; border-top: 1px solid var(--border); padding: 56px 0 22px; }
.nx-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 36px; }
.nx-footer-brand a { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--primary); letter-spacing: 1px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.nx-footer-brand p { font-size: 0.74rem; line-height: 1.7; color: var(--muted); margin-bottom: 10px; }
.nx-footer-age {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 100px; white-space: nowrap;
  border: 1px solid var(--primary); font-weight: 700; font-size: 0.7rem; color: var(--muted);
}
.nx-footer-links h4 { font-family: var(--font-display); font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.nx-footer-links a { display: block; color: var(--muted); font-size: 0.74rem; margin-bottom: 8px; transition: color 0.2s; }
.nx-footer-links a:hover { color: var(--primary); }
.nx-footer-compliance { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 18px; font-size: 0.72rem; color: var(--muted); }
.nx-footer-compliance a { color: var(--muted); transition: color 0.2s; }
.nx-footer-compliance a:hover { color: var(--primary); }
.nx-footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 0.62rem; color: rgba(240,240,245,0.15); flex-wrap: wrap; gap: 8px; }
.nx-footer-disclaimer { font-size: 0.68rem; color: rgba(240,240,245,0.2); }

/* ══ SCROLL REVEAL ═════════════════════════════════════════ */
.nx-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s, transform 0.5s; }
.nx-revealed { opacity: 1; transform: none; }
.nx-reveal { animation: nx-fallback 0s 1.5s forwards; }
.nx-revealed { animation: none; }
@keyframes nx-fallback { to { opacity: 1; transform: translateY(0); } }

/* Guest/User visibility */
.nx-guest-only { }
.nx-user-only { display: none; }

/* ══ LEGAL PAGES ═══════════════════════════════════════════ */
.nx-heading { margin-bottom: 32px; }
.nx-label { font-size: 0.6rem; letter-spacing: 4px; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; display: block; }
.nx-legal { font-size: 0.88rem; line-height: 1.8; color: var(--muted); }
.nx-legal-section { margin-bottom: 24px; }
.nx-legal-section h2 { font-size: 1.05rem; color: var(--text); margin-bottom: 10px; }
.nx-contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; }
.nx-contact-form { background: var(--surface); border: 1px solid var(--border); padding: 32px; }
.nx-field { margin-bottom: 14px; }
.nx-field label { display: block; font-size: 0.78rem; font-weight: 600; margin-bottom: 5px; }
.nx-field input, .nx-field textarea { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text); padding: 10px 14px; font-size: 0.88rem; font-family: var(--font-body); }
.nx-field input:focus, .nx-field textarea:focus { border-color: var(--primary); outline: none; }
.nx-field textarea { min-height: 100px; resize: vertical; }
.nx-success { display: none; color: var(--accent); font-size: 0.88rem; margin-top: 10px; }

/* ══ RESPONSIVE ════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nx-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nx-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .nx-stat-item { border-right: none; padding: 12px; }
}
@media (max-width: 768px) {
  .nx-nav { display: none; }
  .nx-nav-toggle { display: block; }
  .nx-header-inner .nx-auth { display: none; }
  .nx-xp-container, .nx-user-name, .nx-user-level { display: none; }
  .nx-nav-mobile-auth { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--border); }
  .nx-nav-mobile-user { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--border); }
  .nx-nav-mobile-username { font-weight: 600; font-size: 0.95rem; }
  .nx-wrap { padding: 0 18px; }
  .nx-section { padding: 56px 0; }
  .nx-game-grid { grid-template-columns: repeat(2, 1fr); }
  .nx-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .nx-footer-bottom { flex-direction: column; text-align: center; }
  .nx-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .nx-game-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .nx-hero-title { font-size: 2.4rem; }
}
