/* ============================================================
   H5 BROS — Neon Dark Gaming Theme
   ============================================================ */

:root {
  --bg: #07070f;
  --bg-2: #0c0c1a;
  --surface: rgba(20, 20, 38, 0.6);
  --surface-2: rgba(28, 28, 50, 0.7);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f3f3ff;
  --text-dim: #a8a8c8;
  --text-faint: #6a6a85;

  --purple: #a855f7;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --green: #22c55e;
  --orange: #f97316;
  --yellow: #fde047;

  --grad-1: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  --grad-2: linear-gradient(135deg, #22d3ee 0%, #a855f7 100%);
  --grad-3: linear-gradient(135deg, #22c55e 0%, #22d3ee 100%);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   Animated background
   ============================================================ */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, transparent 70%);
  z-index: -2;
  pointer-events: none;
  animation: grid-drift 30s linear infinite;
}

@keyframes grid-drift {
  from { background-position: 0 0; }
  to { background-position: 50px 50px; }
}

.bg-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
  z-index: -1;
  pointer-events: none;
  animation: glow-float 18s ease-in-out infinite;
}

/* Push glows away from the top filter bar so they don't bleed into the grid */
.bg-glow-1 { background: var(--purple); top: 35%;  left: -15%; }
.bg-glow-2 { background: var(--cyan);   bottom: -15%; right: -15%; animation-delay: -6s; opacity: 0.15; }
.bg-glow-3 { background: var(--pink);   top: 65%;  left: 60%;  animation-delay: -10s; opacity: 0.12; }

@keyframes glow-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.1); }
  66%      { transform: translate(-30px, 40px) scale(0.95); }
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5vw;
  backdrop-filter: blur(18px);
  background: rgba(7, 7, 15, 0.7);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--grad-1);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.5);
}

.brand-text { font-size: 18px; color: var(--text); }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}

.nav-links a {
  position: relative;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--grad-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ============================================================
   Buttons
   ============================================================ */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--grad-1);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(168, 85, 247, 0.55); }
.cta-btn:hover::before { opacity: 1; }
.cta-btn:active { transform: translateY(0); }

.cta-btn-small { padding: 10px 18px; font-size: 14px; }

.cta-btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  box-shadow: none;
  color: var(--text);
}

.cta-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 80px 5vw 100px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
  animation: fade-up 0.8s var(--ease) both;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(36px, 6vw, 78px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-title .line {
  display: block;
  animation: fade-up 0.9s var(--ease) both;
}

.line-1 { animation-delay: 0.05s; }
.line-2 { animation-delay: 0.15s; }
.line-3 { animation-delay: 0.25s; }

.gradient-text {
  background: var(--grad-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accent-text {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 36px;
  animation: fade-up 0.9s var(--ease) 0.35s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fade-up 0.9s var(--ease) 0.45s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  animation: fade-up 0.9s var(--ease) 0.55s both;
}

.stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 800;
  background: var(--grad-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* Hero floating deck */
.hero-deck {
  position: relative;
  height: 460px;
  perspective: 1200px;
}

.deck-card {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-strong);
  background: var(--bg-2);
}

.deck-card img { width: 100%; height: 100%; object-fit: cover; }

.deck-1 { top: 0; right: 40px; transform: rotate(-6deg); animation: float-1 7s ease-in-out infinite; }
.deck-2 { top: 100px; right: 200px; transform: rotate(4deg); animation: float-2 8s ease-in-out infinite; z-index: 2; }
.deck-3 { top: 200px; right: 60px; transform: rotate(-2deg); animation: float-3 9s ease-in-out infinite; }

@keyframes float-1 { 0%,100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-12px); } }
@keyframes float-2 { 0%,100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-16px); } }
@keyframes float-3 { 0%,100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-10px); } }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Section (generic full-width)
   ============================================================ */
.section {
  padding: 60px 32px;
  max-width: none;
  margin: 0;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

.section-head h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ============================================================
   Categories chips
   ============================================================ */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chip {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s var(--ease);
}

.chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.chip.is-active {
  background: var(--grad-1);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(168, 85, 247, 0.35);
}

/* ============================================================
   Games grid
   ============================================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.game-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  opacity: 0;
  transform: translateY(30px);
}

.game-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.game-card.is-hidden { display: none; }

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--accent-rgb, rgba(168,85,247,0.4)),
    0 0 50px var(--accent-glow, rgba(168,85,247,0.3));
}

.game-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-2);
}

.game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.game-card:hover .game-thumb img { transform: scale(1.08); }

.game-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,7,15,0.85) 0%, transparent 50%);
  pointer-events: none;
}

.game-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  background: rgba(7, 7, 15, 0.6);
  border: 1px solid var(--border-strong);
  z-index: 2;
}

.game-play {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(7, 7, 15, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  z-index: 2;
  transition: all 0.25s var(--ease);
}

.game-card:hover .game-play {
  background: var(--grad-1);
  border-color: transparent;
  transform: rotate(0) scale(1.1);
}

.game-info {
  padding: 18px 20px 22px;
}

.game-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.game-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Per-card accent colors */
.game-card[data-accent="purple"] { --accent-rgb: rgba(168,85,247,0.5); --accent-glow: rgba(168,85,247,0.35); }
.game-card[data-accent="cyan"]   { --accent-rgb: rgba(34,211,238,0.5);  --accent-glow: rgba(34,211,238,0.35); }
.game-card[data-accent="pink"]   { --accent-rgb: rgba(236,72,153,0.5);  --accent-glow: rgba(236,72,153,0.35); }
.game-card[data-accent="green"]  { --accent-rgb: rgba(34,197,94,0.5);   --accent-glow: rgba(34,197,94,0.35); }
.game-card[data-accent="orange"] { --accent-rgb: rgba(249,115,22,0.5);  --accent-glow: rgba(249,115,22,0.35); }
.game-card[data-accent="yellow"] { --accent-rgb: rgba(253,224,71,0.5);  --accent-glow: rgba(253,224,71,0.35); }

.game-card[data-accent="purple"] .game-tag { color: #c4a3ff; }
.game-card[data-accent="cyan"]   .game-tag { color: #7be8f8; }
.game-card[data-accent="pink"]   .game-tag { color: #f9a8d4; }
.game-card[data-accent="green"]  .game-tag { color: #86efac; }
.game-card[data-accent="orange"] .game-tag { color: #fdba74; }
.game-card[data-accent="yellow"] .game-tag { color: #fef08a; }

/* ============================================================
   Features
   ============================================================ */
.section-features {
  margin-top: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.feature {
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(168, 85, 247, 0.12);
  color: var(--purple);
}

.feature-icon[data-color="cyan"]  { background: rgba(34,211,238,0.12); color: var(--cyan); }
.feature-icon[data-color="pink"]  { background: rgba(236,72,153,0.12); color: var(--pink); }
.feature-icon[data-color="green"] { background: rgba(34,197,94,0.12);  color: var(--green); }

.feature h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ============================================================
   CTA Band
   ============================================================ */
.cta-band {
  text-align: center;
}

.cta-band-inner {
  padding: 60px 40px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at top left, rgba(168,85,247,0.2), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(34,211,238,0.2), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
}

.cta-band-inner h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-band-inner p {
  color: var(--text-dim);
  margin-bottom: 28px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  margin-top: 60px;
  padding: 60px 32px 30px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  max-width: none;
  margin: 0 0 40px;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 60px 5vw 80px; }
  .hero-deck { height: 320px; }
  .deck-card { width: 180px; height: 180px; }
  .deck-1 { right: 20px; }
  .deck-2 { top: 60px; right: 130px; }
  .deck-3 { top: 130px; right: 40px; }
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .hero-stats { gap: 22px; }
  .stat-num { font-size: 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-deck { height: 260px; }
  .deck-card { width: 140px; height: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   v2 HOME — centered hero + spotlight
   ============================================================ */
.hero2 {
  text-align: center;
  padding: 70px 5vw 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero2-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 32px;
  animation: fade-up 0.8s var(--ease) both;
}

.hero2-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.hero2-title .line {
  display: block;
  animation: fade-up 0.9s var(--ease) both;
}

.hero2-title .line:nth-child(1) { animation-delay: 0.08s; }
.hero2-title .line:nth-child(2) { animation-delay: 0.18s; }

.hero2-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-dim);
  max-width: 580px;
  line-height: 1.65;
  margin: 0 auto 36px;
  animation: fade-up 0.9s var(--ease) 0.28s both;
}

.hero2-actions {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 60px;
  animation: fade-up 0.9s var(--ease) 0.38s both;
}

.cta-btn-lg {
  padding: 16px 28px;
  font-size: 16px;
}

/* Spotlight */
.spotlight {
  max-width: 720px;
  margin: 0 auto;
  animation: fade-up 1s var(--ease) 0.5s both;
}

.spotlight-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 80px rgba(168, 85, 247, 0.18);
}

.spotlight-card {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.spotlight-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s var(--ease), transform 6s linear;
}

.spotlight-card.is-changing img { opacity: 0; }

.spotlight-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 32px 28px;
  background: linear-gradient(to top, rgba(7,7,15,0.92) 0%, rgba(7,7,15,0.5) 45%, transparent 80%);
  text-align: left;
}

.spotlight-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c4a3ff;
  margin-bottom: 12px;
}

.spotlight-name {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  margin-bottom: 8px;
}

.spotlight-desc {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 18px;
  max-width: 520px;
}

#spotlightLink { align-self: flex-start; }

.spotlight-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.spotlight-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s var(--ease);
  border: none;
  padding: 0;
  cursor: pointer;
}

.spotlight-dots button.is-active {
  width: 28px;
  border-radius: 4px;
  background: var(--purple);
  box-shadow: 0 0 12px var(--purple);
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 7, 15, 0.6);
  padding: 18px 0;
  margin: 20px 0;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  gap: 28px;
  animation: marquee 50s linear infinite;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.marquee-track .sep {
  color: var(--purple);
  opacity: 0.5;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTION HEAD ROW (head + chips on one line)
   ============================================================ */
.section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  flex-wrap: wrap;
}

.section-head-row .chip-row { justify-content: flex-end; }

@media (max-width: 720px) {
  .section-head-row { justify-content: center; text-align: center; }
  .section-head-row .chip-row { justify-content: center; }
}

/* ============================================================
   BENTO GRID
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 16px;
}

.bento .game-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  opacity: 0;
  transform: translateY(30px);
}

.bento .game-card.is-visible { opacity: 1; transform: translateY(0); }
.bento .game-card.is-hidden { display: none; }

.bento .game-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--accent-rgb, rgba(168,85,247,0.4)),
    0 0 50px var(--accent-glow, rgba(168,85,247,0.3));
}

/* Asymmetric tile sizes */
.bento .game-card.size-xl { grid-column: span 2; grid-row: span 2; }
.bento .game-card.size-lg { grid-column: span 2; grid-row: span 1; }
.bento .game-card.size-md { grid-column: span 1; grid-row: span 2; }
.bento .game-card.size-sm { grid-column: span 1; grid-row: span 1; }

/* Card art */
.bento .card-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bento .card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.bento .game-card:hover .card-art img { transform: scale(1.06); }

.bento .card-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,7,15,0.9) 0%, rgba(7,7,15,0.4) 40%, transparent 70%);
}

.bento .card-body {
  position: absolute;
  inset: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}

.bento .card-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(7, 7, 15, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
}

.bento .card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.bento .card-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.bento .game-card.size-xl .card-name { font-size: 22px; }
.bento .game-card.size-lg .card-name { font-size: 18px; }

.bento .card-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-top: 4px;
  display: none;
}

.bento .game-card.size-xl .card-desc,
.bento .game-card.size-lg .card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bento .card-play {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(7, 7, 15, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  color: #fff;
  transition: all 0.3s var(--ease);
}

.bento .game-card:hover .card-play {
  background: var(--grad-1);
  border-color: transparent;
}

/* Per-card accents */
.bento .game-card[data-accent="purple"] { --accent-rgb: rgba(168,85,247,0.55); --accent-glow: rgba(168,85,247,0.4); }
.bento .game-card[data-accent="cyan"]   { --accent-rgb: rgba(34,211,238,0.55);  --accent-glow: rgba(34,211,238,0.4); }
.bento .game-card[data-accent="pink"]   { --accent-rgb: rgba(236,72,153,0.55);  --accent-glow: rgba(236,72,153,0.4); }
.bento .game-card[data-accent="green"]  { --accent-rgb: rgba(34,197,94,0.55);   --accent-glow: rgba(34,197,94,0.4); }
.bento .game-card[data-accent="orange"] { --accent-rgb: rgba(249,115,22,0.55);  --accent-glow: rgba(249,115,22,0.4); }
.bento .game-card[data-accent="yellow"] { --accent-rgb: rgba(253,224,71,0.55);  --accent-glow: rgba(253,224,71,0.4); }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .bento .game-card.size-xl { grid-column: span 2; grid-row: span 2; }
  .bento .game-card.size-lg { grid-column: span 2; grid-row: span 1; }
  .bento .game-card.size-md { grid-column: span 1; grid-row: span 1; }
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
  padding: 0 32px;
  margin: 48px 0 32px;
  max-width: none;
}

/* v3 stats — 4 colorful icon cards in a row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--sc-color, var(--purple));
  opacity: 0.6;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--sc-border, rgba(255,255,255,0.16));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 0 40px var(--sc-glow, rgba(168,85,247,0.2));
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--sc-bg, rgba(168, 85, 247, 0.14));
  color: var(--sc-color, var(--purple));
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stat-text { display: flex; flex-direction: column; gap: 2px; }

.stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  background: var(--sc-grad, linear-gradient(135deg, #a855f7 0%, #ec4899 100%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Per-card color tokens */
.stat-card[data-color="purple"] {
  --sc-color: #c4a3ff;
  --sc-bg: rgba(168, 85, 247, 0.14);
  --sc-border: rgba(168, 85, 247, 0.4);
  --sc-glow: rgba(168, 85, 247, 0.28);
  --sc-grad: linear-gradient(135deg, #c4a3ff 0%, #a855f7 100%);
}

.stat-card[data-color="cyan"] {
  --sc-color: #7be8f8;
  --sc-bg: rgba(34, 211, 238, 0.14);
  --sc-border: rgba(34, 211, 238, 0.4);
  --sc-glow: rgba(34, 211, 238, 0.28);
  --sc-grad: linear-gradient(135deg, #7be8f8 0%, #22d3ee 100%);
}

.stat-card[data-color="pink"] {
  --sc-color: #f9a8d4;
  --sc-bg: rgba(236, 72, 153, 0.14);
  --sc-border: rgba(236, 72, 153, 0.4);
  --sc-glow: rgba(236, 72, 153, 0.28);
  --sc-grad: linear-gradient(135deg, #f9a8d4 0%, #ec4899 100%);
}

.stat-card[data-color="green"] {
  --sc-color: #86efac;
  --sc-bg: rgba(34, 197, 94, 0.14);
  --sc-border: rgba(34, 197, 94, 0.4);
  --sc-glow: rgba(34, 197, 94, 0.28);
  --sc-grad: linear-gradient(135deg, #86efac 0%, #22c55e 100%);
}

@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stat-card { padding: 18px 18px; gap: 14px; }
  .stat-icon { width: 40px; height: 40px; }
  .stat-num { font-size: 24px; }
}

/* ============================================================
   FEATURED SECTION
   ============================================================ */
.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  text-decoration: none;
  color: inherit;
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(34, 211, 238, 0.2);
}

.featured-art {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.featured-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.featured-card:hover .featured-art img { transform: scale(1.04); }

.featured-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(7, 7, 15, 0.6) 100%);
}

.featured-body {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.featured-body .game-tag {
  position: static;
  align-self: flex-start;
}

.featured-body h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.featured-body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.featured-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.featured-body .cta-btn { align-self: flex-start; margin-top: 8px; }

@media (max-width: 860px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-art { min-height: 280px; }
  .featured-body { padding: 32px 28px; }
}

/* ============================================================
   HOW IT WORKS (steps)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
}

.step {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.step-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 44px;
  font-weight: 900;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  line-height: 1;
}

.step h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.step-connector {
  align-self: center;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--border-strong), transparent);
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 12px var(--purple);
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .step-connector {
    width: 2px;
    height: 30px;
    margin: 0 auto;
    background: linear-gradient(to bottom, transparent, var(--border-strong), transparent);
  }
  .step-connector::after { right: 50%; top: auto; bottom: -4px; transform: translateX(50%); }
}

/* ============================================================
   Sub-page hero (Privacy / Terms / 404)
   ============================================================ */
.page-hero {
  padding: 80px 5vw 40px;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.page-hero .eyebrow { color: var(--cyan); }

.page-hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 14px 0 14px;
}

.page-hero p.lead {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto;
}

.page-hero .updated {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   Legal content (Privacy / Terms)
   ============================================================ */
.legal {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 5vw 80px;
}

.legal-card {
  padding: 48px 44px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.legal h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--text);
  letter-spacing: -0.005em;
}

.legal h2:first-child { margin-top: 0; }

.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
}

.legal p { margin-bottom: 14px; }

.legal ul {
  padding-left: 22px;
  margin-bottom: 18px;
}

.legal li { margin-bottom: 6px; }

.legal a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.3);
  transition: border-color 0.2s var(--ease);
}

.legal a:hover { border-bottom-color: var(--cyan); }

.legal strong { color: var(--text); font-weight: 600; }

@media (max-width: 640px) {
  .legal-card { padding: 32px 24px; }
}

/* ============================================================
   404 Error page
   ============================================================ */
.error-page {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding: 60px 5vw;
  text-align: center;
}

.error-inner {
  max-width: 640px;
}

.error-code {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(110px, 22vw, 220px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  animation: glitch 4s infinite;
}

.error-code::before,
.error-code::after {
  content: '404';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  background: var(--bg);
  overflow: hidden;
}

.error-code::before {
  left: 3px;
  text-shadow: -2px 0 var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  animation: glitch-1 3s infinite linear alternate-reverse;
}

.error-code::after {
  left: -3px;
  text-shadow: -2px 0 var(--pink);
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  animation: glitch-2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch {
  0%, 90%, 100% { transform: translate(0); }
  92% { transform: translate(-2px, 1px); }
  94% { transform: translate(2px, -1px); }
  96% { transform: translate(-1px, -1px); }
  98% { transform: translate(1px, 1px); }
}

@keyframes glitch-1 {
  0%, 100% { clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); }
  50% { clip-path: polygon(0 10%, 100% 10%, 100% 55%, 0 55%); }
}

@keyframes glitch-2 {
  0%, 100% { clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%); }
  50% { clip-path: polygon(0 65%, 100% 65%, 100% 90%, 0 90%); }
}

.error-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  margin-top: 16px;
  margin-bottom: 14px;
}

.error-sub {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   v3 HOME — Poki/CrazyGames-style game portal
   ============================================================ */

/* Compact hero banner (split: text left, mini spotlight right) */
.hero-banner {
  padding: 36px 5vw 28px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-banner-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: center;
  min-height: 320px;
}

.hero-banner-text { animation: fade-up 0.7s var(--ease) both; }

.hero-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.hero-banner-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.hero-banner-sub {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.55;
  max-width: 440px;
  margin-bottom: 24px;
}

.hero-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Mini spotlight (right side, hero banner) */
.hero-spotlight {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(168, 85, 247, 0.18);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: fade-up 0.7s var(--ease) 0.15s both;
}

.hero-spotlight:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 80px rgba(168, 85, 247, 0.3);
}

.hero-spotlight img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s var(--ease), transform 8s linear;
}

.hero-spotlight.is-changing img { opacity: 0; }

.hero-spotlight-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,7,15,0.92) 0%, rgba(7,7,15,0.45) 45%, transparent 75%);
}

.hero-spotlight-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 26px 22px;
  z-index: 2;
}

.featured-pill {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(168, 85, 247, 0.22);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #c4a3ff;
  margin-bottom: 10px;
}

.hero-spotlight-content h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  margin-bottom: 4px;
}

.hero-spotlight-content p {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 14px;
}

.hero-spotlight-content .cta-btn { align-self: flex-start; }

.hero-spotlight-dots {
  position: absolute;
  bottom: 14px;
  right: 18px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.hero-spotlight-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s var(--ease);
  border: none;
  padding: 0;
  cursor: pointer;
}

.hero-spotlight-dots button.is-active {
  width: 22px;
  border-radius: 4px;
  background: var(--purple);
}

@media (max-width: 900px) {
  .hero-banner-inner { grid-template-columns: 1fr; }
  .hero-spotlight { aspect-ratio: 16 / 9; }
}

/* ============================================================
   Sticky filter bar v2 (clean SVG icons + count badges)
   ============================================================ */
.filter-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0;
  margin: 0 auto;
  max-width: none;
  backdrop-filter: blur(24px) saturate(150%);
  background: rgba(8, 8, 18, 0.94);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

/* Fade strip under filter bar to softly mask any background bleed below it */
.filter-bar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 40px;
  background: linear-gradient(to bottom, rgba(7, 7, 15, 0.6), transparent);
  pointer-events: none;
}

/* Brand sits inside the bar instead of a separate header */
.brand-in-bar {
  flex-shrink: 0;
  text-decoration: none;
  padding: 4px 2px;
  transition: transform 0.25s var(--ease);
}

.brand-in-bar:hover { transform: translateY(-1px); }

/* Vertical divider between brand and chip-row */
.filter-divider {
  flex-shrink: 0;
  width: 1px;
  align-self: stretch;
  margin: 6px 4px;
  background: linear-gradient(to bottom, transparent, var(--border-strong), transparent);
}

@media (max-width: 720px) {
  .filter-divider { display: none; }
  .brand-in-bar .brand-text { display: none; }
}

/* ============================================================
   Page nav links (for Privacy / Terms / 404 pages)
   Lives inside .filter-bar where the chip-row would be on home
   ============================================================ */
.page-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-nav-links::-webkit-scrollbar { display: none; }

.page-nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}

.page-nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.page-nav-links a.is-active {
  color: var(--text);
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 7px 13px;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.25);
}

.page-nav-links a.is-active::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
  display: none;
}

.page-nav-cta { flex-shrink: 0; margin-left: 8px; }

@media (max-width: 720px) {
  .page-nav-links { gap: 2px; }
  .page-nav-links a { padding: 7px 10px; font-size: 12px; }
  .page-nav-cta span { display: none; }
  .page-nav-cta { padding: 8px 10px; }
}

.filter-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 32px;
  max-width: none;
  margin: 0;
}

/* Utility links on the right (Privacy / Terms) */
.utility-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.utility-links a {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
  text-decoration: none;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.utility-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 900px) {
  .utility-links { display: none; }
}

.filter-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-shrink: 0;
}

.filter-label svg { color: var(--purple); }

.filter-bar .chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: flex-start;
  padding: 4px 0;
  flex: 1;
}

.filter-bar .chip-row::-webkit-scrollbar { display: none; }

@media (max-width: 720px) {
  .filter-label { display: none; }
  .filter-inner { padding: 12px 16px; gap: 10px; }
  .section-row { padding: 28px 16px 20px; }
  .activity-ticker { padding: 0 16px; }
  .stats-band { padding: 0 16px; }
  .footer { padding: 50px 16px 28px; }
}

/* Chip itself */
.filter-bar .chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
}

.filter-bar .chip:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.filter-bar .chip .chip-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--chip-color, var(--text-dim));
  transition: all 0.25s var(--ease);
}

.filter-bar .chip:hover .chip-icon {
  background: rgba(255, 255, 255, 0.08);
}

.filter-bar .chip-label {
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.filter-bar .chip-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-faint);
  min-width: 22px;
  text-align: center;
  transition: all 0.25s var(--ease);
}

/* Per-category color tokens */
.filter-bar .chip[data-color="purple"] { --chip-color: #c4a3ff; --chip-bg: rgba(168, 85, 247, 0.18); --chip-border: rgba(168, 85, 247, 0.5); --chip-glow: rgba(168, 85, 247, 0.4); }
.filter-bar .chip[data-color="pink"]   { --chip-color: #f9a8d4; --chip-bg: rgba(236, 72, 153, 0.18); --chip-border: rgba(236, 72, 153, 0.5); --chip-glow: rgba(236, 72, 153, 0.4); }
.filter-bar .chip[data-color="orange"] { --chip-color: #fdba74; --chip-bg: rgba(249, 115, 22, 0.18); --chip-border: rgba(249, 115, 22, 0.5); --chip-glow: rgba(249, 115, 22, 0.4); }
.filter-bar .chip[data-color="cyan"]   { --chip-color: #7be8f8; --chip-bg: rgba(34, 211, 238, 0.18); --chip-border: rgba(34, 211, 238, 0.5); --chip-glow: rgba(34, 211, 238, 0.4); }

/* Active state — per-category color theme (subtle, not bleeding) */
.filter-bar .chip.is-active {
  background: var(--chip-bg);
  border-color: var(--chip-border);
  color: var(--text);
  box-shadow: 0 2px 10px var(--chip-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.filter-bar .chip.is-active .chip-icon {
  background: var(--chip-border);
  color: #fff;
  box-shadow: 0 0 8px var(--chip-glow);
}

.filter-bar .chip.is-active .chip-count {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.filter-bar .chip:focus-visible {
  outline: 2px solid var(--chip-border, var(--purple));
  outline-offset: 2px;
}

/* ============================================================
   Section row layout (full-width)
   ============================================================ */
.section-row {
  padding: 32px 32px 24px;
  max-width: none;
  margin: 0;
}

.section-row.is-hidden { display: none; }

.row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.row-head h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.row-sub {
  color: var(--text-faint);
  font-size: 13px;
}

.badge-new {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--grad-1);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #fff;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.4);
}

/* ============================================================
   Games grid (Poki-style square tiles)
   ============================================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.games-grid.grid-large {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.games-grid.grid-trending {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.games-grid .game-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s var(--ease),
    box-shadow 0.45s var(--ease);
  text-decoration: none;
  color: inherit;
  aspect-ratio: 1;
  opacity: 0;
  transform: translateY(20px);
  isolation: isolate;
}

.games-grid .game-card.is-visible { opacity: 1; transform: translateY(0); }

/* Shine sweep — diagonal light passing across card on hover */
.games-grid .game-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: overlay;
}

.games-grid .game-card:hover::after {
  transform: translateX(110%);
}

.games-grid .game-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--border-strong);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1.5px var(--accent-rgb, rgba(168,85,247,0.5)),
    0 0 55px var(--accent-glow, rgba(168,85,247,0.35));
}

.games-grid .card-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.games-grid .card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.4s var(--ease);
}

.games-grid .game-card:hover .card-art img {
  transform: scale(1.1);
  filter: brightness(1.1) saturate(1.08);
}

.games-grid .card-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,7,15,0.95) 0%, rgba(7,7,15,0.4) 35%, transparent 60%);
}

.games-grid .card-body {
  position: absolute;
  inset: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}

.games-grid .card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.games-grid .card-tag {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(7, 7, 15, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
}

.games-grid .card-new {
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: var(--grad-1);
  color: #fff;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.5);
}

.games-grid .card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.games-grid .card-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  flex: 1;
}

.games-grid .grid-large .card-name { font-size: 16px; }

.games-grid .card-play {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(7, 7, 15, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  color: #fff;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.games-grid .game-card:hover .card-play {
  background: var(--grad-1);
  border-color: transparent;
  transform: scale(1.15);
  box-shadow: 0 0 24px var(--accent-glow, rgba(168,85,247,0.5));
}

.games-grid .card-name {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.games-grid .game-card:hover .card-name {
  transform: translateY(-2px);
}

.games-grid .card-tag,
.games-grid .card-new {
  transition: transform 0.35s var(--ease);
}

.games-grid .game-card:hover .card-tag,
.games-grid .game-card:hover .card-new {
  transform: translateY(-2px);
}

/* Per-card accents */
.games-grid .game-card[data-accent="purple"] { --accent-rgb: rgba(168,85,247,0.55); --accent-glow: rgba(168,85,247,0.35); }
.games-grid .game-card[data-accent="cyan"]   { --accent-rgb: rgba(34,211,238,0.55);  --accent-glow: rgba(34,211,238,0.35); }
.games-grid .game-card[data-accent="pink"]   { --accent-rgb: rgba(236,72,153,0.55);  --accent-glow: rgba(236,72,153,0.35); }
.games-grid .game-card[data-accent="green"]  { --accent-rgb: rgba(34,197,94,0.55);   --accent-glow: rgba(34,197,94,0.35); }
.games-grid .game-card[data-accent="orange"] { --accent-rgb: rgba(249,115,22,0.55);  --accent-glow: rgba(249,115,22,0.35); }
.games-grid .game-card[data-accent="yellow"] { --accent-rgb: rgba(253,224,71,0.55);  --accent-glow: rgba(253,224,71,0.35); }

@media (max-width: 600px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .games-grid.grid-large { grid-template-columns: repeat(2, 1fr); }
  .games-grid.grid-trending { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Top spacing now that hero is removed
   ============================================================ */
.section-row:first-of-type { padding-top: 24px; }

/* ============================================================
   Live Activity Ticker (marquee with social proof)
   ============================================================ */
.activity-ticker {
  display: flex;
  align-items: stretch;
  max-width: none;
  margin: 14px 0 6px;
  padding: 0 32px;
  gap: 0;
  overflow: hidden;
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-right: none;
  border-radius: 999px 0 0 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #6ee7b7;
  flex-shrink: 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
  animation: live-pulse 1.4s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

.ticker-mask {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 999px 999px 0;
  mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  gap: 28px;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  animation: ticker-scroll 38s linear infinite;
  font-size: 13px;
  color: var(--text-dim);
}

.activity-ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.ticker-item .ti-num { color: var(--text); font-weight: 700; }
.ticker-item .ti-name { color: var(--purple); font-weight: 700; }
.ticker-item .ti-icon { font-size: 14px; }

.ticker-sep {
  color: var(--border-strong);
  font-size: 8px;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .ticker-label { padding: 6px 10px; font-size: 10px; letter-spacing: 0.1em; }
  .ticker-track { font-size: 12px; gap: 18px; padding: 0 14px; }
}

/* ============================================================
   Shimmer / Skeleton loading
   ============================================================ */
@keyframes shimmer {
  0%   { background-position: -150% 0; }
  100% { background-position: 250% 0; }
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

/* Skeleton card placeholder (shown during initial render before images load) */
.skeleton-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(110deg,
    rgba(255, 255, 255, 0.028) 0%,
    rgba(255, 255, 255, 0.075) 35%,
    rgba(168, 85, 247, 0.08) 50%,
    rgba(255, 255, 255, 0.075) 65%,
    rgba(255, 255, 255, 0.028) 100%);
  background-size: 220% 100%;
  animation: shimmer 1.25s linear infinite, skeleton-pulse 1.8s ease-in-out infinite;
  border: 1px solid var(--border);
}

.skeleton-card::before,
.skeleton-card::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

/* Small "tag" rectangle top-left */
.skeleton-card::before {
  top: 14px;
  left: 14px;
  width: 50px;
  height: 16px;
  border-radius: 999px;
}

/* "Title" bar bottom */
.skeleton-card::after {
  bottom: 14px;
  left: 14px;
  width: 60%;
  height: 14px;
}

/* Loading state on real card art (img not yet loaded) */
.games-grid .card-art {
  background: linear-gradient(110deg,
    rgba(255, 255, 255, 0.025) 0%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0.025) 100%);
  background-size: 220% 100%;
  animation: shimmer 1.25s linear infinite;
}

.games-grid .card-art img {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}

.games-grid .card-art.is-loaded {
  background: var(--bg-2);
  animation: none;
}

.games-grid .card-art.is-loaded img {
  opacity: 1;
  transform: scale(1);
}

/* Reveal animation when card is fully ready */
.games-grid .game-card.is-ready {
  animation: card-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes card-rise {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   Boot loader — full-screen splash on first paint
   ============================================================ */
.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at center, rgba(168, 85, 247, 0.08), transparent 60%),
    var(--bg);
  transition: opacity 0.55s var(--ease), visibility 0.55s var(--ease);
}

.boot-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-inner {
  text-align: center;
  animation: boot-rise 0.6s var(--ease) both;
}

@keyframes boot-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.boot-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}

.boot-mark {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--grad-1);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.55);
  animation: boot-glow 1.6s ease-in-out infinite;
}

@keyframes boot-glow {
  0%, 100% { box-shadow: 0 0 35px rgba(168, 85, 247, 0.5); transform: scale(1); }
  50%      { box-shadow: 0 0 60px rgba(168, 85, 247, 0.85); transform: scale(1.04); }
}

.boot-text { color: var(--text); }

.boot-spinner {
  display: inline-flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.boot-spinner span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: boot-dot 1.2s ease-in-out infinite;
}

.boot-spinner span:nth-child(1) { background: var(--purple); box-shadow: 0 0 12px var(--purple); animation-delay: 0s; }
.boot-spinner span:nth-child(2) { background: var(--cyan);   box-shadow: 0 0 12px var(--cyan);   animation-delay: 0.15s; }
.boot-spinner span:nth-child(3) { background: var(--pink);   box-shadow: 0 0 12px var(--pink);   animation-delay: 0.3s; }

@keyframes boot-dot {
  0%, 100% { transform: translateY(0)   scale(0.7); opacity: 0.5; }
  50%      { transform: translateY(-8px) scale(1.15); opacity: 1; }
}

.boot-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.boot-status::after {
  content: '...';
  display: inline-block;
  width: 18px;
  text-align: left;
  animation: boot-dots-text 1.5s steps(4) infinite;
}

@keyframes boot-dots-text {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

/* Page-level loading bar across top while site bootstraps */
.page-loader {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  pointer-events: none;
}

.page-loader::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), transparent);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  animation: page-progress 1.2s linear infinite;
}

@keyframes page-progress {
  0%   { background-position: -50% 0; }
  100% { background-position: 150% 0; }
}

.page-loader.is-done {
  opacity: 0;
  transition: opacity 0.4s 0.2s var(--ease);
}
