/* ═══════════════════════════════════════════════════════════════════
   FIGHTSKILL — FX3D · Premium 3D Effects & Enhanced Graphics Layer
   ─────────────────────────────────────────────────────────────────
   Loads after landing.css / design.css. Provides:
     §1  Scroll progress beam
     §2  Cursor aura + dot
     §3  Tilt3D cards + dynamic glare
     §4  Card spotlight borders
     §5  Magnetic button sheen
     §6  Neon flicker
     §7  3D reveal system
     §8  Back-to-top rocket
     §9  Hero 3D canvas layer + aurora + grid floor depth
     §10 Ticker marquee
     §11 Stats band
     §12 Tech stack strip / badges
     §13 Enhanced glass & holographic utilities
     §14 Responsive + reduced-motion guards
   ═══════════════════════════════════════════════════════════════════ */

/* ═════════════ §1 · SCROLL PROGRESS BEAM ═════════════ */
#fxScrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 2000;
  background: linear-gradient(90deg,
      rgba(166, 120, 232, 0.15) 0%,
      var(--neon) 45%,
      #a8ffbc 80%,
      #ffffff 100%);
  box-shadow: 0 0 12px var(--neon-glow), 0 0 30px rgba(166, 120, 232, 0.35);
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* ═════════════ §2 · CURSOR AURA ═════════════
   PERF notes:
   · NO mix-blend-mode (it re-composites the whole page every frame)
   · constant element size — “hot” state uses transform scale, so the
     aura is never re-laid-out / re-rasterized while following cursor */
#fxCursorAura {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(166, 120, 232, 0.12) 0%,
      rgba(166, 120, 232, 0.06) 28%,
      rgba(78, 158, 255, 0.04) 52%,
      transparent 70%);
  pointer-events: none;
  z-index: 1500;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}
#fxCursorAura.fx-aura-hot {
  background: radial-gradient(circle,
      rgba(166, 120, 232, 0.18) 0%,
      rgba(166, 120, 232, 0.08) 30%,
      transparent 68%);
}
#fxCursorDot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon), 0 0 22px var(--neon-glow);
  pointer-events: none;
  z-index: 1501;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}
#fxCursorDot.fx-dot-hot {
  background: #c8ffd2;
}

/* ═════════════ §3 · TILT3D CARDS ═════════════ */
.fx-tilt-ready {
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.35s ease;
}
.fx-tilt-ready:hover {
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.5),
    0 8px 28px rgba(166, 120, 232, 0.13),
    0 0 0 1px rgba(166, 120, 232, 0.14);
}
.fx-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 3;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%),
      rgba(166, 120, 232, 0.16) 0%,
      rgba(255, 255, 255, 0.05) 32%,
      transparent 62%);
  will-change: opacity;
}
.lp-tournament-card,
.lp-game-card,
.lp-featured-card,
.lp-advantage,
.lp-step {
  position: relative;
  overflow: visible;
}
.lp-tournament-card > :not(.fx-glare),
.lp-game-card > :not(.fx-glare),
.lp-featured-card > :not(.fx-glare) {
  position: relative;
  z-index: 2;
}

/* ═════════════ §4 · CARD SPOTLIGHT BORDER ═════════════ */
.fx-spotlight::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(320px circle at var(--spot-x, 50%) var(--spot-y, 50%),
      rgba(166, 120, 232, 0.55),
      rgba(166, 120, 232, 0.12) 40%,
      transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 4;
}
.fx-spotlight:hover::before {
  opacity: 1;
}

/* ═════════════ §5 · MAGNETIC BUTTON SHEEN ═════════════ */
.btn-primary,
.lp-cta-primary,
.btn-auth {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease-out, box-shadow 0.25s ease;
}
.btn-primary::after,
.lp-cta-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 50%),
      rgba(255, 255, 255, 0.35), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.btn-primary:hover::after,
.lp-cta-primary:hover::after {
  opacity: 1;
}

/* ═════════════ §6 · NEON FLICKER ═════════════ */
@keyframes fxFlicker {
  0%, 100% { opacity: 1; }
  3% { opacity: 0.4; }
  5% { opacity: 1; }
  8% { opacity: 0.55; }
  10% { opacity: 1; }
  42% { opacity: 1; }
  44% { opacity: 0.3; }
  46% { opacity: 1; }
  60% { opacity: 0.75; }
  62% { opacity: 1; }
}
.fx-flicker {
  animation: fxFlicker 0.6s linear;
}

/* ═════════════ §7 · 3D REVEAL SYSTEM ═════════════ */
.fx-reveal-pending {
  opacity: 0;
  transform: perspective(1000px) translateY(36px) rotateX(6deg) scale(0.985);
  transform-origin: center bottom;
  will-change: transform, opacity;
}
.fx-reveal-pending.fx-in {
  opacity: 1;
  transform: perspective(1000px) translateY(0) rotateX(0deg) scale(1);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
/* stagger children inside grids */
.lp-tournament-grid .fx-reveal-pending:nth-child(3n+2).fx-in,
.lp-game-grid .fx-reveal-pending:nth-child(3n+2).fx-in { transition-delay: 0.09s; }
.lp-tournament-grid .fx-reveal-pending:nth-child(3n+3).fx-in,
.lp-game-grid .fx-reveal-pending:nth-child(3n+3).fx-in { transition-delay: 0.18s; }

/* ═════════════ §8 · BACK-TO-TOP ROCKET ═════════════ */
.fx-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(166, 120, 232, 0.35);
  background: linear-gradient(145deg, rgba(26, 21, 36, 0.92), rgba(22, 18, 31, 0.85));
  backdrop-filter: blur(14px);
  color: var(--neon);
  font-size: 1.05rem;
  cursor: pointer;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) rotateX(35deg);
  transform-origin: center bottom;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1), color 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(166, 120, 232, 0.12);
  overflow: hidden;
}
.fx-back-to-top.fx-btt-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) rotateX(0deg);
}
.fx-back-to-top:hover {
  border-color: var(--neon);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 34px rgba(166, 120, 232, 0.3);
  transform: translateY(-3px);
}
.fx-back-to-top .fx-rocket { display: block; transition: transform 0.3s ease; }
.fx-back-to-top:hover .fx-rocket { transform: translateY(-2px); }
.fx-back-to-top.fx-btt-launch .fx-rocket {
  animation: fxLaunch 0.85s cubic-bezier(0.6, -0.28, 0.74, 0.05);
}
@keyframes fxLaunch {
  0% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(-30px); opacity: 0; }
  56% { transform: translateY(24px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ═════════════ §9 · HERO 3D CANVAS + ATMOSPHERE ═════════════ */
#hero3d-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.lp-hero { position: relative; }
.lp-hero .lp-hero-layout { position: relative; z-index: 5; }

/* Aurora ribbons — ultra soft animated color waves above the grid */
.lp-hero-aurora {
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
  background:
    radial-gradient(48% 34% at 22% 30%, rgba(166, 120, 232, 0.09), transparent 70%),
    radial-gradient(40% 30% at 78% 22%, rgba(78, 158, 255, 0.07), transparent 70%),
    radial-gradient(46% 36% at 60% 74%, rgba(168, 85, 247, 0.06), transparent 72%);
  filter: blur(14px);
  animation: fxAuroraDrift 26s ease-in-out infinite alternate;
}
@keyframes fxAuroraDrift {
  0% { transform: translate3d(-2%, -1%, 0) rotate(-1.2deg) scale(1); }
  50% { transform: translate3d(2%, 2%, 0) rotate(0.8deg) scale(1.06); }
  100% { transform: translate3d(-1%, 1.5%, 0) rotate(-0.6deg) scale(1.02); }
}

/* Perspective grid floor — receding neon horizon under the hero */
.lp-hero-grid-floor {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -8%;
  height: 46%;
  z-index: 0;
  pointer-events: none;
  perspective: 420px;
  perspective-origin: 50% 0%;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.9) 8%, transparent 85%);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.9) 8%, transparent 85%);
}
.lp-hero-grid-floor .fx-floor-plane {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(166, 120, 232, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(166, 120, 232, 0.16) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: rotateX(62deg);
  transform-origin: 50% 0%;
  animation: fxGridFlow 7s linear infinite;
}
@keyframes fxGridFlow {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 44px, 0 44px; }
}

/* Floating glass shards near hero content (decorative 3D chips) */
.fx-shard {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(166, 120, 232, 0.22);
  background: linear-gradient(135deg, rgba(166, 120, 232, 0.055), rgba(22, 18, 31, 0.2));
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), inset 0 0 22px rgba(166, 120, 232, 0.06);
  animation: fxShardFloat 9s ease-in-out infinite alternate;
}
.fx-shard-1 { top: 17%; left: 4%; width: 74px; height: 74px; border-radius: 18px; transform: rotate(14deg); animation-delay: 0s; }
.fx-shard-2 { top: 58%; left: 9%; width: 46px; height: 46px; border-radius: 12px; transform: rotate(-22deg); animation-delay: -3s; }
.fx-shard-3 { top: 24%; right: 6%; width: 58px; height: 58px; border-radius: 14px; transform: rotate(26deg); animation-delay: -5s; }
.fx-shard-4 { top: 66%; right: 11%; width: 38px; height: 38px; border-radius: 10px; transform: rotate(-12deg); animation-delay: -7s; }
@keyframes fxShardFloat {
  from { margin-top: 0; rotate: 0deg; }
  to { margin-top: -26px; rotate: 8deg; }
}

/* particle-net host */
#particle-net {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.85;
}

/* ═════════════ §10 · TICKER MARQUEE ═════════════ */
.ticker-wrap {
  position: relative;
  overflow: hidden;
  padding: 1.05rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg,
      rgba(166, 120, 232, 0.035),
      rgba(22, 18, 31, 0.55) 30%,
      rgba(22, 18, 31, 0.55) 70%,
      rgba(166, 120, 232, 0.035));
  backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker {
  display: flex;
  width: max-content;
  animation: fxTicker 46s linear infinite;
}
.ticker-wrap:hover .ticker { animation-play-state: paused; }
@keyframes fxTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
[dir="rtl"] .ticker { animation-name: fxTickerRtl; }
@keyframes fxTickerRtl {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 1.6rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.ticker-item .ticker-icon { color: var(--neon); font-size: 0.95rem; }
.ticker-item strong { color: var(--text); font-weight: 700; }
.ticker-item .ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  opacity: 0.7;
}

/* ═════════════ §11 · STATS BAND ═════════════ */
.stat-band {
  position: relative;
  padding: 3.4rem 0 3rem;
}
.stat-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.stat-cell {
  position: relative;
  padding: 1.7rem 1.4rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(26, 21, 36, 0.72), rgba(22, 18, 31, 0.5));
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
}
.stat-cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0.55;
  transform: scaleX(0.25);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.stat-cell:hover {
  transform: translateY(-6px);
  border-color: rgba(166, 120, 232, 0.3);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), 0 0 26px rgba(166, 120, 232, 0.1);
}
.stat-cell:hover::before { transform: scaleX(1); }
.stat-cell-icon {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
  display: inline-block;
  filter: drop-shadow(0 0 12px var(--neon-glow));
}
.stat-cell-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--neon);
  text-shadow: 0 0 24px var(--neon-glow);
  line-height: 1.1;
  display: block;
}
.stat-cell-label {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.stat-cell-spark {
  position: absolute;
  right: -14px;
  bottom: -14px;
  font-size: 4.6rem;
  opacity: 0.05;
  pointer-events: none;
  transform: rotate(-12deg);
}

/* ═════════════ §12 · TECH / FEATURE STRIP ═════════════ */
.fx-feature-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.2rem;
}
.fx-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  border-radius: 50px;
  border: 1px solid var(--border-bright);
  background: var(--surface2);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background-color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.fx-chip .fx-chip-icon { color: var(--neon); }
.fx-chip:hover {
  color: var(--text);
  border-color: rgba(166, 120, 232, 0.4);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), 0 0 18px rgba(166, 120, 232, 0.12);
}

/* ═════════════ §13 · HOLO / GLASS UTILITIES ═════════════ */
.fx-holo-border {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg2), var(--bg2)) padding-box,
    linear-gradient(120deg, rgba(166,120,232,0.55), rgba(78,158,255,0.4), rgba(168,85,247,0.45), rgba(166,120,232,0.55)) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: fxHolo 8s ease infinite;
}
@keyframes fxHolo {
  0%, 100% { background-position: 0 0, 0% 50%; }
  50% { background-position: 0 0, 100% 50%; }
}

.fx-glass {
  background: rgba(26, 21, 36, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border-bright);
}

/* enhanced section divider with energy beam */
.fx-divider {
  height: 1px;
  border: none;
  margin: 0 auto;
  max-width: 1280px;
  background: linear-gradient(90deg, transparent, rgba(166, 120, 232, 0.35) 18%, rgba(166, 120, 232, 0.55) 50%, rgba(166, 120, 232, 0.35) 82%, transparent);
  position: relative;
  overflow: visible;
}
.fx-divider::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  width: 90px;
  height: 5px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(166, 120, 232, 0.8), transparent 70%);
  filter: blur(2px);
  animation: fxBeamSlide 5.5s ease-in-out infinite;
}
@keyframes fxBeamSlide {
  0%, 100% { left: 18%; }
  50% { left: 82%; }
}

/* glow pulse for live indicators */
@keyframes fxLivePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(166, 120, 232, 0.5); }
  55% { box-shadow: 0 0 0 9px rgba(166, 120, 232, 0); }
}
.live-indicator {
  animation: fxLivePulse 2.1s ease-out infinite;
}

/* hero badge shine sweep */
.lp-hero-badge {
  position: relative;
  overflow: hidden;
}
.lp-hero-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: skewX(-22deg);
  animation: fxShine 3.8s ease-in-out infinite;
}
@keyframes fxShine {
  0% { left: -80%; }
  55%, 100% { left: 130%; }
}

/* featured card float + tilt-in shadow */
.lp-featured-card {
  animation: fxCinemaFloat 7s ease-in-out infinite alternate;
}
@keyframes fxCinemaFloat {
  from { transform: translateY(0) rotate(0.0001deg); }
  to { transform: translateY(-14px) rotate(0.0001deg); }
}

/* game card art zoom */
.lp-game-card .lp-game-art img {
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}
.lp-game-card:hover .lp-game-art img {
  transform: scale(1.09);
  filter: saturate(1.25) brightness(1.06);
}

/* tournament art subtle ken burns */
.lp-tournament-card .lp-tournament-art img {
  transition: transform 6s ease-out, filter 0.5s ease;
}
.lp-tournament-card:hover .lp-tournament-art img {
  transform: scale(1.07);
  filter: saturate(1.2);
}

/* CTA banner holographic upgrade */
.lp-cta-banner {
  position: relative;
  overflow: hidden;
}
.lp-cta-banner::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg,
      rgba(166, 120, 232, 0.07),
      transparent 25%,
      rgba(78, 158, 255, 0.06) 42%,
      transparent 60%,
      rgba(168, 85, 247, 0.06) 78%,
      transparent 95%);
  animation: fxConicSpin 16s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes fxConicSpin {
  to { transform: rotate(360deg); }
}
.lp-cta-content { position: relative; z-index: 2; }

/* step numbers — 3D coin look */
.lp-step-num {
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.4),
    0 2px 0 rgba(0, 0, 0, 0.35),
    0 3px 0 rgba(0, 0, 0, 0.3),
    0 4px 6px rgba(0, 0, 0, 0.5),
    0 0 24px var(--neon-glow);
}

/* footer upgrade — top energy line */
.lp-footer {
  position: relative;
}
.lp-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166, 120, 232, 0.4), transparent);
  box-shadow: 0 0 18px rgba(166, 120, 232, 0.25);
}

/* scroll indicator bounce polish */
.lp-scroll-arrow {
  animation: fxScrollBob 1.8s ease-in-out infinite;
}
@keyframes fxScrollBob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(7px); opacity: 0.55; }
}

/* ═════════════ §14 · RESPONSIVE + MOTION GUARDS ═════════════ */
@media (max-width: 991px) {
  #fxCursorAura, #fxCursorDot { display: none; }
  .fx-shard { display: none; }
  .stat-band-grid { grid-template-columns: repeat(2, 1fr); }
  #hero3d-canvas { opacity: 0.62; }
}
@media (max-width: 640px) {
  .stat-band-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .stat-cell { padding: 1.15rem 1rem; }
  .stat-cell-num { font-size: 1.45rem; }
  .fx-back-to-top { bottom: 1.1rem; right: 1.1rem; width: 46px; height: 46px; }
  #hero3d-canvas { opacity: 0.45; }
  .lp-hero-grid-floor { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-shard,
  #fxCursorAura,
  #fxCursorDot,
  .lp-hero-aurora,
  .lp-hero-grid-floor .fx-floor-plane,
  .lp-featured-card { animation: none !important; }
  .ticker { animation-duration: 120s; }
  .fx-reveal-pending { opacity: 1; transform: none; }
  #fxScrollProgress { display: none; }
}

/* Print: always reveal all content, drop decorative layers */
@media print {
  .fx-reveal-pending { opacity: 1 !important; transform: none !important; }
  #hero3d-canvas, #particle-net, #fxCursorAura, #fxCursorDot,
  .fx-shard, .lp-hero-aurora, .fx-back-to-top, #fxScrollProgress { display: none !important; }
}

/* ═════════════ §15 · SIGNATURE POLISH ═════════════ */

/* Custom neon scrollbar */
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: rgba(22, 18, 31, 0.6);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(166, 120, 232, 0.45), rgba(166, 120, 232, 0.2));
  border-radius: 8px;
  border: 2px solid rgba(8, 10, 13, 0.9);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(166, 120, 232, 0.75), rgba(166, 120, 232, 0.4));
  box-shadow: 0 0 10px rgba(166, 120, 232, 0.3);
}
html {
  scrollbar-color: rgba(166, 120, 232, 0.4) rgba(22, 18, 31, 0.6);
  scrollbar-width: thin;
}

/* Neon text selection */
::selection {
  background: rgba(166, 120, 232, 0.32);
  color: #ffffff;
  text-shadow: 0 0 8px rgba(166, 120, 232, 0.6);
}
[data-theme="light"] ::selection {
  background: rgba(123, 82, 214, 0.25);
  color: #0a0a0a;
  text-shadow: none;
}

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(166, 120, 232, 0.3);
}

/* Smooth image rendering + lazy fade-in (JS adds .fx-img-loaded on load) */
img[loading="lazy"] {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
img[loading="lazy"]:not(.fx-img-loaded) {
  opacity: 0.001;
}
img[loading="lazy"].fx-img-loaded {
  opacity: 1;
}
/* Safety: never leave images invisible if JS fails */
.no-js img[loading="lazy"],
html.no-js img[loading="lazy"] {
  opacity: 1 !important;
}

/* How-it-works: animated step connectors */
.lp-steps {
  position: relative;
}
.lp-step-arrow {
  position: relative;
}
.lp-step-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px var(--neon);
  transform: translate(-50%, -50%);
  animation: fxArrowPulse 2s ease-in-out infinite;
}
@keyframes fxArrowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
}
[dir="rtl"] .lp-step-arrow { transform: scaleX(-1); }

/* Step cards: hover lift + icon spin */
.lp-step {
  transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.4s ease;
}
.lp-step:hover {
  transform: translateY(-8px);
  border-color: rgba(166, 120, 232, 0.35);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(166, 120, 232, 0.12);
}
.lp-step:hover .lp-step-icon {
  transform: scale(1.18) rotate(-6deg);
}
.lp-step-icon {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}

/* Advantage icons: glow ring on hover */
.lp-advantage-icon {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
  display: inline-block;
}
.lp-advantage:hover .lp-advantage-icon {
  transform: scale(1.22) rotate(8deg);
  filter: drop-shadow(0 0 18px var(--neon-glow));
}

/* Footer links: neon slide */
.lp-footer-links a {
  position: relative;
  transition: color 0.25s ease, padding 0.25s ease;
}
.lp-footer-links a::before {
  content: '›';
  position: absolute;
  right: auto;
  left: -0.9em;
  opacity: 0;
  color: var(--neon);
  transition: opacity 0.25s ease, left 0.25s ease;
}
[dir="rtl"] .lp-footer-links a::before {
  left: auto;
  right: -0.9em;
}
.lp-footer-links a:hover {
  color: var(--neon);
}
.lp-footer-links a:hover::before {
  opacity: 1;
  left: -0.65em;
}
[dir="rtl"] .lp-footer-links a:hover::before {
  left: auto;
  right: -0.65em;
}

/* Footer game strip: floating */
.lp-footer-game {
  transition: transform 0.3s ease, filter 0.3s ease;
  display: inline-block;
}
.lp-footer-game:hover {
  transform: translateY(-5px) scale(1.25);
  filter: drop-shadow(0 0 12px var(--neon-glow));
}

/* Empty state: gentle bob */
.lp-empty-icon {
  animation: fxEmptyBob 3s ease-in-out infinite;
  display: inline-block;
}
@keyframes fxEmptyBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Page enter cinematic fade */
body {
  animation: fxPageEnter 0.7s ease both;
}
@keyframes fxPageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* light theme harmonization */
[data-theme="light"] #fxCursorAura {
  background: radial-gradient(circle,
      rgba(123, 82, 214, 0.12) 0%,
      rgba(123, 82, 214, 0.05) 30%,
      transparent 70%);
}
[data-theme="light"] .fx-back-to-top {
  background: rgba(255, 255, 255, 0.9);
  color: var(--neon);
}
[data-theme="light"] .stat-cell {
  background: rgba(255, 255, 255, 0.8);
}
[data-theme="light"] .ticker-wrap {
  background: rgba(255, 255, 255, 0.65);
}
[data-theme="light"] #particle-net { opacity: 0.5; }
