/* ============================================================
   FREAKS — Brawler + Sunset + Cyan (cyberpunk injects)
   Single consolidated stylesheet for the production site.
   ============================================================ */

:root {
  --font-body:    'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Montserrat', 'Arial Black', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  --ink:        #11062f;
  --shadow-ink: #0c0322;

  --hex-attack:  #ff4d6d;
  --hex-speed:   #29c7ff;
  --hex-defense: #ffd429;
  --hex-control: #6be24a;
  --hex-support: #b070ff;

  --gold-1: #ffe156;
  --gold-2: #ffaf1d;
  --mint-1: #2ee5b0;
  --mint-2: #00ffc6;
  --magenta: #ff2bb6;
  --violet: #7c3aed;

  --bg:        #0c0420;
  --bg-2:      #190a3e;
  --surface:   rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.08);
  --line:      rgba(0,255,234,0.22);
  --line-soft: rgba(255,255,255,0.05);

  --fg:     #ffffff;
  --fg-dim: rgba(255,255,255,0.78);

  --accent:     #00ffea;
  --accent-soft:rgba(0,255,234,0.4);
  --accent-ink: #052a2e;
  --accent-hot: #ff4ec9;
  --accent-pur: #7c3aed;

  --cta-bg:     linear-gradient(180deg, #2dffe6 0%, #00c8b3 100%);
  --cta-fg:     #052a2e;
  --cta-border: 4px solid var(--shadow-ink);
  --cta-shadow: 0 6px 0 var(--shadow-ink), 0 12px 22px rgba(0,255,234,0.35);
  --cta-radius: 18px;

  --card-bg:     linear-gradient(180deg, rgba(74,30,150,0.7) 0%, rgba(40,15,90,0.85) 100%);
  --card-border: 3px solid var(--shadow-ink);
  --card-radius: 22px;
  --card-shadow: 0 6px 0 var(--shadow-ink), 0 14px 28px rgba(0,0,0,0.45);

  --pill-radius: 14px;
  --title-glow: drop-shadow(0 6px 0 var(--shadow-ink)) drop-shadow(0 0 40px rgba(255,80,200,0.35));

  --hud-bg: linear-gradient(135deg, rgba(40,15,90,0.92) 0%, rgba(74,30,150,0.92) 100%);
  --hud-border: 3px solid var(--shadow-ink);

  --section-bg-alt: radial-gradient(ellipse 80% 50% at 50% 50%,
                       rgba(255,120,40,0.12) 0%,
                       rgba(255,40,180,0.06) 40%,
                       transparent 70%);
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); }
body {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.modal-open, body.modal-open { overflow: hidden; }

/* Sunset glow */
body::before {
  content: "";
  position: fixed;
  inset: -10% -10% 30% -10%;
  background:
    radial-gradient(ellipse 60% 40% at 78% 28%, rgba(255,120,40,0.55) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 30% 18%, rgba(255,40,180,0.38) 0%, transparent 65%),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.35) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

main, header, footer { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* Subtle CRT scanlines */
.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.25;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.04) 0px,
    rgba(255,255,255,0.04) 1px,
    transparent 1px,
    transparent 3px
  );
}
.crt-overlay::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(255,40,180,0.06) 30%,
    rgba(0,255,200,0.08) 50%,
    rgba(255,40,180,0.06) 70%,
    transparent 100%);
  animation: scan-sweep 7s linear infinite;
  mix-blend-mode: screen;
}
@keyframes scan-sweep { 0% { top: -15%; } 100% { top: 115%; } }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  transition: opacity 0.6s ease;
}
.preloader.fade-out { opacity: 0; pointer-events: none; }
.preloader-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(48px, 9vw, 96px);
  letter-spacing: 4px;
  color: #fff;
  text-shadow:
    -3px -3px 0 var(--shadow-ink), 3px -3px 0 var(--shadow-ink),
    -3px  3px 0 var(--shadow-ink), 3px  3px 0 var(--shadow-ink),
    0 -3px 0 var(--shadow-ink), 0 3px 0 var(--shadow-ink),
    -3px 0 0 var(--shadow-ink), 3px 0 0 var(--shadow-ink),
    0 9px 0 var(--shadow-ink),
    -4px 0 24px rgba(255,40,180,0.6),
    4px 0 24px rgba(0,255,234,0.5);
  animation: logo-flicker 6s infinite steps(1);
}
.preloader-bar {
  width: 240px;
  height: 14px;
  background: rgba(0,0,0,0.5);
  border: 3px solid var(--shadow-ink);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 3px 0 var(--shadow-ink);
}
.preloader-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
  border-radius: 999px;
  box-shadow: 0 0 14px var(--accent-soft);
  animation: preload-fill 1.6s ease-out forwards;
}
@keyframes preload-fill { to { width: 100%; } }

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 32px;
  background: rgba(12,4,32,0.7);
  border-bottom: 3px solid var(--shadow-ink);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  white-space: nowrap;
  transition: padding 0.25s ease;
}
header.scrolled { padding: 10px 32px; }

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-wrap.vertical { gap: 10px; }
.logo-main {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 26px;
  letter-spacing: 2px;
  color: #fff;
  text-shadow:
    -1.5px -1.5px 0 var(--shadow-ink), 1.5px -1.5px 0 var(--shadow-ink),
    -1.5px  1.5px 0 var(--shadow-ink), 1.5px  1.5px 0 var(--shadow-ink),
    0 3px 0 var(--shadow-ink),
    0 0 18px rgba(255,180,30,0.35);
  animation: logo-flicker 6s infinite steps(1);
}
@keyframes logo-flicker {
  0%, 96%, 100% { filter: none; }
  96.3% { filter: drop-shadow(2px 0 0 #ff2bb6) drop-shadow(-2px 0 0 #29c7ff); }
  96.6% { filter: none; }
  97%   { filter: drop-shadow(-1px 0 0 #ff2bb6) drop-shadow(1px 0 0 #29c7ff); }
  97.2% { filter: none; }
}

.logo-status {
  all: unset; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body);
  font-size: 10px; font-weight: 800;
  padding: 5px 11px;
  border-radius: 8px;
  border: 2px solid var(--shadow-ink);
  background: linear-gradient(180deg, #ff4ec9 0%, #d63dff 100%);
  box-shadow: 0 2px 0 var(--shadow-ink);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
  animation: status-flicker 4.5s infinite steps(1);
}
@keyframes status-flicker {
  0%, 95%, 100% { transform: none; opacity: 1; }
  95.3% { transform: translateX(-2px); opacity: 0.7; }
  95.6% { transform: translateX(3px); opacity: 1; }
  95.9% { transform: none; }
}
.logo-status .gear-icon {
  width: 12px; height: 12px;
  filter: brightness(0) invert(1);
}

nav#main-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  flex-wrap: nowrap;
}
nav#main-nav a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--fg-dim);
  transition: color 0.2s, text-shadow 0.2s;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
nav#main-nav a:hover {
  color: #fff;
  text-shadow: -1px 0 0 #ff2bb6, 1px 0 0 #29c7ff;
}
nav#main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff2bb6 0%, #29c7ff 100%);
  box-shadow: 0 0 12px rgba(255,40,180,0.6);
}

.header-actions {
  display: flex; align-items: center; gap: 10px;
}
.lang-switcher {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  border: 2px solid var(--shadow-ink);
  background: rgba(255,255,255,0.08);
  color: #fff;
  box-shadow: 0 2px 0 var(--shadow-ink);
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.lang-switcher:hover { transform: translateY(-1px); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-glow {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cta-fg);
  background: var(--cta-bg);
  border: var(--cta-border);
  border-radius: var(--cta-radius);
  box-shadow: var(--cta-shadow);
  padding: 14px 26px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.25s ease;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--shadow-ink), 0 14px 24px rgba(0,255,234,0.45);
}
.btn-glow:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--shadow-ink);
}
.btn-glow.btn-lg { font-size: 18px; padding: 18px 38px; }
.btn-glow.btn-xl { font-size: 22px; padding: 22px 46px; }
.btn-glow.pink {
  background: linear-gradient(180deg, #ff4ec9 0%, #d63dff 100%);
  color: #fff;
}
.btn-glow.pink:hover {
  box-shadow: 0 8px 0 var(--shadow-ink), 0 14px 24px rgba(255,80,200,0.5);
}
/* Neon halo pulse */
.btn-glow.animated::after,
.btn-glow.btn-lg::after,
.btn-glow.btn-xl::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(0,255,200,0.4), transparent);
  filter: blur(8px);
  z-index: -1;
  opacity: 0.4;
  animation: btn-neon 2.4s ease-in-out infinite;
}
.btn-glow.pink::after {
  background: linear-gradient(90deg, transparent, rgba(255,80,200,0.4), transparent);
}
@keyframes btn-neon {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.7; }
}

.btn-tg {
  background: linear-gradient(180deg, #59c8ff 0%, #1fa3ff 100%);
  border: 3px solid var(--shadow-ink);
  box-shadow: 0 4px 0 var(--shadow-ink);
  padding: 9px 14px;
  font-family: var(--font-display);
  font-size: 12px;
  color: #fff;
  border-radius: 12px;
  display: inline-flex; gap: 8px; align-items: center;
  font-weight: 900; font-style: italic; letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.btn-tg:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--shadow-ink), 0 10px 18px rgba(41,182,246,0.45);
}
.btn-tg-icon { width: 14px; height: 14px; filter: brightness(0) invert(1); }

.btn-secondary {
  background: linear-gradient(180deg, #ff4ec9 0%, #d63dff 100%);
  color: #fff;
  border: var(--cta-border);
  border-radius: var(--cta-radius);
  box-shadow: var(--cta-shadow);
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 26px;
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-secondary.btn-lg { font-size: 18px; padding: 18px 38px; }
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--shadow-ink), 0 14px 24px rgba(255,80,200,0.45);
}

/* ============================================================
   SECTIONS
   ============================================================ */
main { padding-top: 80px; }
.section {
  padding: 110px 40px;
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
}
.section.alt,
.section.section-dark {
  background: var(--section-bg-alt);
}
.section.section-center,
.section#faq {
  text-align: center;
}
.section.section-center .section-eyebrow,
.section.section-center .section-title,
.section.section-center .section-sub,
.section#faq .section-eyebrow,
.section#faq h2,
.section#faq .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}
.section.section-center .section-sub,
.section#faq .section-subtitle { text-align: center; }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 800; font-size: 12px;
  letter-spacing: 3px; text-transform: uppercase;
  background: var(--accent);
  color: #1a0530;
  border: 2px solid var(--shadow-ink);
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 3px 0 var(--shadow-ink), 0 0 18px rgba(255,40,180,0.4);
  margin-bottom: 18px;
}
.section-eyebrow svg { color: #1a0530; }

.section-title,
.section h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
  text-shadow:
    -2px -2px 0 var(--shadow-ink), 2px -2px 0 var(--shadow-ink),
    -2px  2px 0 var(--shadow-ink), 2px  2px 0 var(--shadow-ink),
    -2px 0 0 var(--shadow-ink), 2px 0 0 var(--shadow-ink),
    0 -2px 0 var(--shadow-ink), 0 2px 0 var(--shadow-ink),
    0 6px 0 var(--shadow-ink),
    -4px 0 18px rgba(255,40,180,0.35),
    4px 0 18px rgba(0,255,200,0.25);
}
.section-sub,
.section-subtitle {
  font-size: 18px;
  color: var(--fg-dim);
  max-width: 640px;
  margin-bottom: 60px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 140px 40px 100px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 70px;
  text-align: center;
}
.hero-content { max-width: 900px; }
.hero-content > p { max-width: 580px; margin: 0 auto 32px; }
.hero-content .hero-actions { justify-content: center; }

.outlined-title,
.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
  filter: var(--title-glow);
  margin-bottom: 24px;
  text-shadow:
    -3px -3px 0 var(--shadow-ink),  3px -3px 0 var(--shadow-ink),
    -3px  3px 0 var(--shadow-ink),  3px  3px 0 var(--shadow-ink),
     0   -3px 0 var(--shadow-ink),  0    3px 0 var(--shadow-ink),
    -3px  0   0 var(--shadow-ink),  3px  0   0 var(--shadow-ink),
    0 9px 0 var(--shadow-ink),
    -6px 0 30px rgba(255,40,180,0.5),
    6px 0 30px rgba(0,255,200,0.4),
    0 0 60px rgba(255,80,200,0.4);
}
.hero p {
  font-size: 18px;
  color: var(--fg-dim);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-screen {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
}
.hero-screen-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1080/541;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #2a1466 0%, #0c0420 100%);
  transform: perspective(2400px) rotateX(2deg);
  transform-origin: center top;
  isolation: isolate;
  border: 5px solid var(--shadow-ink);
  box-shadow:
    0 12px 0 var(--shadow-ink),
    0 24px 60px rgba(0,0,0,0.5),
    -8px 0 40px rgba(255,40,180,0.3),
    8px 0 40px rgba(0,255,234,0.3);
}
.hero-screen-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, #ff2bb6 0%, transparent 30%, transparent 70%, #00ffea 100%);
  z-index: -1;
  opacity: 0.6;
  border-radius: inherit;
  filter: blur(20px);
}
.hero-screen-frame img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-screen-glare {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, transparent 45%, rgba(255,255,255,0.06) 50%, transparent 55%, transparent 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.08) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  z-index: 2;
}
/* Optional scroll hint kept from original */
.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.scroll-hint-track {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scroll-hint 2s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; }
  50% { transform: scaleY(1); }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  padding: 18px 0;
  margin: 40px 0;
  background: var(--accent);
  border-top: 3px solid var(--shadow-ink);
  border-bottom: 3px solid var(--shadow-ink);
  position: relative;
}
.marquee::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(12,4,32,0.08) 0,
    rgba(12,4,32,0.08) 1px,
    transparent 1px,
    transparent 4px);
  pointer-events: none;
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 28s linear infinite, marquee-pulse 3.4s ease-in-out infinite;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: 22px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #1a0530;
  text-shadow: -1.5px 0 0 rgba(255,40,180,0.85), 1.5px 0 0 rgba(0,170,255,0.85);
  padding-left: 60px;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.marquee-track span + span::before {
  content: "";
  display: inline-block;
  width: 18px; height: 18px;
  background: #1a0530;
  border-radius: 4px;
  transform: rotate(45deg);
  margin-right: 60px;
  flex-shrink: 0;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-pulse {
  0%, 100% { filter: none; }
  50%      { filter: drop-shadow(0 0 6px rgba(255,40,180,0.5)); }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card,
.feature-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 28px 22px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.card:hover,
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 10px 0 var(--shadow-ink),
    0 18px 32px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,40,180,0.5) inset,
    -6px 0 22px rgba(255,40,180,0.35),
    6px 0 22px rgba(0,255,200,0.3);
}
.card h3,
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: 22px; letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    -1.5px -1.5px 0 var(--shadow-ink), 1.5px -1.5px 0 var(--shadow-ink),
    -1.5px  1.5px 0 var(--shadow-ink), 1.5px  1.5px 0 var(--shadow-ink),
    0 3px 0 var(--shadow-ink);
}
.card p,
.feature-card p { color: var(--fg-dim); font-size: 14px; line-height: 1.55; }

.feature-icon-wrap {
  width: 72px; height: 72px;
  border: 3px solid var(--shadow-ink);
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--shadow-ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-icon-wrap.arena  { background: linear-gradient(180deg, #ff4ec9, #d63dff); }
.feature-icon-wrap.chars  { background: linear-gradient(180deg, #29c7ff, #1976d2); }
.feature-icon-wrap.energy { background: linear-gradient(180deg, #ffe156, #ffaf1d); }
.feature-icon-wrap.custom { background: linear-gradient(180deg, #6be24a, #1d9f3f); }
.feature-icon-wrap svg { width: 40px; height: 40px; }

.feature-tag {
  margin-top: auto;
  padding-top: 8px;
}
.trophy-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.08);
  border: 2px solid var(--shadow-ink);
  border-radius: 10px;
  box-shadow: 0 2px 0 var(--shadow-ink);
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: 12px; color: #fff;
  letter-spacing: 0.5px;
}
.trophy-chip svg { width: 14px; height: 14px; color: var(--gold-1); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.about-text p {
  font-size: 16px;
  color: var(--fg-dim);
  margin-bottom: 16px;
  line-height: 1.7;
}
.about-features,
.about-points {
  margin-top: 28px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px;
  list-style: none;
}
.about-features li,
.about-point {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 2px solid var(--shadow-ink);
  border-radius: 14px;
  box-shadow: 0 3px 0 var(--shadow-ink);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.about-features li::before,
.about-point .check {
  content: "";
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--mint-1), #00b885);
  border: 2px solid var(--shadow-ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--shadow-ink);
  flex-shrink: 0;
  background-image:
    linear-gradient(180deg, var(--mint-1), #00b885),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0322' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12 L10 17 L19 7'/></svg>");
  background-blend-mode: normal;
  background-size: cover, 70%;
  background-position: center;
  background-repeat: no-repeat;
}
.about-point .check {
  background: linear-gradient(180deg, var(--mint-1), #00b885);
  background-image: none;
}
.about-point .check svg {
  width: 14px; height: 14px;
}

/* About stats panel */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}
.stat-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.stat-card-lg { grid-column: 1 / -1; padding: 36px 30px; }
.stat-card-wide { grid-column: 1 / -1; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: clamp(48px, 6vw, 92px);
  line-height: 1;
  color: #fff;
  text-shadow:
    -2px -2px 0 var(--shadow-ink), 2px -2px 0 var(--shadow-ink),
    -2px  2px 0 var(--shadow-ink), 2px  2px 0 var(--shadow-ink),
    -2px 0 0 var(--shadow-ink), 2px 0 0 var(--shadow-ink),
    0 -2px 0 var(--shadow-ink), 0 2px 0 var(--shadow-ink),
    0 5px 0 var(--shadow-ink),
    -3px 0 18px rgba(255,40,180,0.5),
    3px 0 18px rgba(0,255,234,0.4);
}
.stat-num-mono {
  font-family: var(--font-mono);
  font-style: normal;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.stat-bar {
  margin-top: 14px;
  height: 10px;
  background: rgba(0,0,0,0.4);
  border: 2px solid var(--shadow-ink);
  border-radius: 999px;
  overflow: hidden;
}
.stat-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hot) 100%);
  border-radius: 999px;
  box-shadow: 0 0 12px var(--accent-soft);
}
.stat-pulse {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0,255,234,0.06) 0 1px, transparent 1px 4px);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* ============================================================
   CHARACTERS
   ============================================================ */
.characters-grid,
.chars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}
.char-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.char-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 10px 0 var(--shadow-ink),
    0 20px 36px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,40,180,0.5) inset,
    -6px 0 22px rgba(255,40,180,0.35),
    6px 0 22px rgba(0,255,200,0.3);
}

.char-art,
.char-portrait {
  position: relative;
  aspect-ratio: 420/246;
  background:
    radial-gradient(ellipse 80% 70% at 50% 90%, rgba(255,160,40,0.5) 0%, transparent 70%),
    linear-gradient(180deg, #ff4ec9 0%, #5b1bb5 50%, #1f0a40 100%);
  overflow: hidden;
}
.char-art::after,
.char-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 100% 50%, rgba(0,255,200,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 100% at 0% 50%, rgba(255,40,180,0.18) 0%, transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.char-art img,
.char-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.45));
}
.char-portrait h3,
.char-portrait .char-type {
  display: none; /* shown in body now */
}

.char-card-locked .char-art {
  background:
    repeating-linear-gradient(0deg, rgba(0,255,234,0.04) 0 2px, transparent 2px 4px),
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(255,40,180,0.35) 0%, transparent 70%),
    linear-gradient(180deg, #190a3e 0%, #0a0220 100%);
}
.char-locked {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  padding: 16px;
  text-align: center;
  font-family: var(--font-mono);
}
.char-locked-glitch {
  position: relative;
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: 64px; letter-spacing: 6px;
  color: #fff;
  text-shadow:
    -3px 0 0 rgba(255,40,180,0.9),
    3px 0 0 rgba(0,255,234,0.9),
    0 0 30px rgba(255,40,180,0.5);
  animation: lock-flicker 2.6s steps(1) infinite;
}
@keyframes lock-flicker {
  0%, 92%, 100% { opacity: 1; transform: none; }
  93%   { opacity: 0.3; transform: translateX(-3px); }
  93.5% { opacity: 1; transform: translateX(4px); }
  94%   { opacity: 0.7; transform: none; }
  97%   { opacity: 0.2; }
  97.5% { opacity: 1; }
}
.char-locked-bars {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(0,255,234,0.85);
  text-transform: uppercase;
}
.char-locked-bars span:last-child {
  color: rgba(255,40,180,0.9);
}

.char-body,
.char-card > p {
  padding: 18px 20px 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.char-card > p {
  display: block;
  font-size: 13px; color: var(--fg-dim); line-height: 1.5;
  padding-top: 0;
}
.char-class-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.char-class-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.char-class-dot.attack  { background: var(--hex-attack); }
.char-class-dot.speed   { background: var(--hex-speed); }
.char-class-dot.defense { background: var(--hex-defense); }
.char-class-dot.control { background: var(--hex-control); }
.char-class-dot.support { background: var(--hex-support); }

.char-name,
.char-body h3,
.char-card h3 {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: 22px; letter-spacing: 0;
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    -1.5px -1.5px 0 var(--shadow-ink), 1.5px -1.5px 0 var(--shadow-ink),
    -1.5px  1.5px 0 var(--shadow-ink), 1.5px  1.5px 0 var(--shadow-ink),
    0 3px 0 var(--shadow-ink);
}
.char-desc { font-size: 13px; color: var(--fg-dim); line-height: 1.5; }

/* ============================================================
   ROADMAP
   ============================================================ */
.roadmap-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.roadmap-item {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.roadmap-item.done   { --rm-color: var(--mint-1); }
.roadmap-item.active { --rm-color: var(--accent); }
.roadmap-item.upcoming,
.roadmap-item.todo   { --rm-color: #5b1bb5; }
.roadmap-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 0 var(--shadow-ink),
    0 18px 32px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,40,180,0.5) inset,
    -6px 0 22px rgba(255,40,180,0.35),
    6px 0 22px rgba(0,255,200,0.3);
}
.roadmap-marker {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--rm-color);
  border: 2px solid var(--shadow-ink);
  font-size: 14px; color: #1a0530;
  box-shadow: 0 2px 0 var(--shadow-ink);
  font-weight: 900;
}
.roadmap-phase-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rm-color);
}
.roadmap-content h3 {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: 20px; text-transform: uppercase;
  color: #fff;
  letter-spacing: 0;
  line-height: 1.05;
  text-shadow:
    -1.5px -1.5px 0 var(--shadow-ink), 1.5px -1.5px 0 var(--shadow-ink),
    -1.5px  1.5px 0 var(--shadow-ink), 1.5px  1.5px 0 var(--shadow-ink),
    0 3px 0 var(--shadow-ink);
}
.roadmap-content p { font-size: 13px; color: var(--fg-dim); }
.progress-bar {
  position: relative;
  height: 12px;
  background: rgba(0,0,0,0.4);
  border: 2px solid var(--shadow-ink);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rm-color), var(--accent-hot));
  border-radius: 999px;
  transition: width 1s ease;
}
.progress-label {
  font-weight: 900; font-size: 12px;
  color: var(--rm-color);
  letter-spacing: 1px;
}

/* ============================================================
   NEWS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.news-card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 10px 0 var(--shadow-ink),
    0 18px 32px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,40,180,0.5) inset,
    -6px 0 22px rgba(255,40,180,0.35),
    6px 0 22px rgba(0,255,200,0.3);
}
.news-date {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--accent);
  color: #1a0530;
  border: 2px solid var(--shadow-ink);
  box-shadow: 0 2px 0 var(--shadow-ink);
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
}
.news-card h3 {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: 20px; line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0;
  text-shadow:
    -1px -1px 0 var(--shadow-ink), 1px -1px 0 var(--shadow-ink),
    -1px  1px 0 var(--shadow-ink), 1px  1px 0 var(--shadow-ink),
    0 2px 0 var(--shadow-ink);
}
.news-card p { font-size: 14px; color: var(--fg-dim); flex: 1; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 22px;
  overflow: hidden;
  background: #1a0a3e;
  cursor: pointer;
  transition: transform 0.25s;
  border: 4px solid var(--shadow-ink);
  box-shadow: 0 6px 0 var(--shadow-ink), 0 14px 28px rgba(0,0,0,0.5);
}
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item img {
  position: absolute; inset: 0; width:100%; height:100%; object-fit:cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12,4,32,0.6);
  opacity: 0;
  transition: opacity 0.25s;
  font-size: 32px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ============================================================
   404 — SYSTEM ERROR PAGE
   ============================================================ */
body.page-404 {
  min-height: 100vh;
}
.nf {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 32px 110px;
}

/* Warm edge vignette — sits behind page content so it never dims the UI */
.nf-vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 160px 40px rgba(255,120,40,0.28),
    inset 0 0 60px 10px rgba(12,3,34,0.9);
}

/* ── System tag, top-left ────────────────────────────────── */
.nf-tag {
  position: absolute;
  top: 26px; left: 32px;
  z-index: 5;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-hot);
  text-shadow: 0 0 14px rgba(255,78,201,0.6);
}
.nf-tag .cursor {
  display: inline-block;
  width: 9px; height: 1em;
  background: var(--accent-hot);
  margin-left: 3px;
  vertical-align: -1px;
  animation: nf-blink 1s steps(1) infinite;
}
@keyframes nf-blink { 50% { opacity: 0; } }

/* ── Back button, top-right ──────────────────────────────── */
.nf-back {
  position: absolute;
  top: 24px; right: 32px;
  z-index: 5;
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cta-fg);
  background: var(--cta-bg);
  border: var(--cta-border);
  border-radius: var(--cta-radius);
  box-shadow: var(--cta-shadow);
  padding: 12px 22px;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.25s ease;
}
.nf-back::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(0,255,200,0.4), transparent);
  filter: blur(8px);
  z-index: -1;
  opacity: 0.4;
  animation: btn-neon 2.4s ease-in-out infinite;
}
.nf-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--shadow-ink), 0 14px 24px rgba(0,255,234,0.45);
}
.nf-back:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--shadow-ink);
}

/* ── Stage: centred column ───────────────────────────────── */
.nf-stage {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.nf-code {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: clamp(110px, 17vw, 210px);
  line-height: 0.82;
  letter-spacing: -2px;
  color: #fff;
  text-shadow:
    -4px -4px 0 var(--shadow-ink), 4px -4px 0 var(--shadow-ink),
    -4px  4px 0 var(--shadow-ink), 4px  4px 0 var(--shadow-ink),
     0   -4px 0 var(--shadow-ink), 0    4px 0 var(--shadow-ink),
    -4px  0   0 var(--shadow-ink), 4px  0   0 var(--shadow-ink),
    0 12px 0 var(--shadow-ink),
    -8px 0 36px rgba(255,40,180,0.6),
    8px 0 36px rgba(0,255,200,0.5);
}

/* ── Console window ──────────────────────────────────────── */
.nf-console {
  width: 100%;
  background: rgba(8,2,26,0.94);
  border: 3px solid var(--shadow-ink);
  border-radius: 16px;
  box-shadow:
    0 8px 0 var(--shadow-ink),
    0 18px 40px rgba(0,0,0,0.55),
    -6px 0 30px rgba(255,40,180,0.22),
    6px 0 30px rgba(0,255,234,0.22);
  overflow: hidden;
  position: relative;
}
/* faint scanlines inside the console */
.nf-console::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.025) 0px,
    rgba(255,255,255,0.025) 1px,
    transparent 1px,
    transparent 3px);
}
.nf-console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: linear-gradient(180deg, rgba(124,58,237,0.4), rgba(40,15,90,0.6));
  border-bottom: 3px solid var(--shadow-ink);
}
.nf-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--shadow-ink);
}
.nf-dot:nth-child(1) { background: #ff4d6d; }
.nf-dot:nth-child(2) { background: var(--gold-1); }
.nf-dot:nth-child(3) { background: var(--mint-1); }
.nf-console-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.nf-console-body {
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.45;
  min-height: 322px;
}
.nf-cline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 7px;
  color: rgba(255,255,255,0.82);
  opacity: 0;
}
.nf-cline.shown { opacity: 1; }
.nf-cline::before {
  content: ">";
  color: var(--accent);
  flex-shrink: 0;
}
.nf-cline.err { color: #ff6b8a; }
.nf-cline.err::before { content: "!"; color: #ff4d6d; }
.nf-cline.hint { color: var(--accent); }
.nf-cline.hint::before { content: "#"; color: var(--accent); }
.nf-cline-text { flex: 1; }
.nf-tag-chip {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 2px 9px;
  border-radius: 5px;
  border: 2px solid var(--shadow-ink);
  opacity: 0;
  transition: opacity 0.12s;
}
.nf-tag-chip.show { opacity: 1; }
.nf-tag-chip.ok   { background: var(--mint-1); color: var(--shadow-ink); }
.nf-tag-chip.fail { background: #ff4d6d;       color: #fff; }
.nf-tag-chip.warn { background: var(--gold-1); color: var(--shadow-ink); }
.nf-prompt::before { content: ">"; }
.nf-prompt {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
}
.nf-prompt .cursor {
  display: inline-block;
  width: 9px; height: 1em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: -1px;
  animation: nf-blink 1s steps(1) infinite;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 720px) {
  .nf { padding: 78px 16px 104px; }
  .nf-tag { font-size: 12px; top: 18px; left: 18px; letter-spacing: 1.5px; }
  .nf-back {
    position: fixed;
    top: auto; right: auto;
    bottom: 18px; left: 50%;
    transform: translateX(-50%);
    font-size: 14px; padding: 12px 20px;
  }
  .nf-back:hover { transform: translateX(-50%) translateY(-2px); }
  .nf-back:active { transform: translateX(-50%) translateY(3px); }
  .nf-stage { gap: 22px; }
  .nf-code { font-size: clamp(96px, 34vw, 150px); }
  .nf-console-body { padding: 18px 16px; font-size: 12px; min-height: 300px; }
  .nf-console-title { font-size: 10px; letter-spacing: 1px; }
  .nf-prompt { font-size: 12px; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: flex; flex-direction: column;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}
.faq-item {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: transparent; border: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px;
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  gap: 16px;
}
.faq-icon {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 8px;
  color: #1a0530;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s;
  font-weight: 900;
  font-size: 20px;
  border: 2px solid var(--shadow-ink);
  box-shadow: 0 2px 0 var(--shadow-ink);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p {
  padding: 0 24px 22px;
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 80px 40px 60px;
  text-align: center;
  border-top: 3px solid var(--shadow-ink);
  background: rgba(12,4,32,0.5);
  position: relative;
  z-index: 1;
}
.footer-cta {
  max-width: 760px;
  margin: 0 auto 60px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.footer-cta h2 {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    -2px -2px 0 var(--shadow-ink), 2px -2px 0 var(--shadow-ink),
    -2px  2px 0 var(--shadow-ink), 2px  2px 0 var(--shadow-ink),
    0 5px 0 var(--shadow-ink);
}
.footer-cta p { color: var(--fg-dim); }
.social-icons {
  display: flex; gap: 14px; justify-content: center;
  margin: 20px 0 36px;
  flex-wrap: wrap;
}
.social-icons a {
  width: 48px; height: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
  border: 3px solid var(--shadow-ink);
  box-shadow: 0 3px 0 var(--shadow-ink);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.social-icons a:hover {
  transform: translateY(-3px);
  background: var(--accent);
}
.social-icons a:hover img { filter: brightness(0); }
.social-icons img { width: 20px; height: 20px; filter: brightness(0) invert(1); transition: filter 0.2s; }

.footer-note {
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================================
   GLITCH
   ============================================================ */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  font: inherit; letter-spacing: inherit;
  color: transparent;
  pointer-events: none;
  mix-blend-mode: screen;
  white-space: pre-line;
}
.glitch::before {
  color: rgba(255,0,204,0.85);
  filter: drop-shadow(0 0 8px rgba(255,0,204,0.6));
  text-shadow: none;
  animation: glitch1 5s infinite steps(1);
}
.glitch::after {
  color: rgba(0,255,200,0.75);
  filter: drop-shadow(0 0 8px rgba(0,255,200,0.5));
  text-shadow: none;
  animation: glitch2 5s infinite steps(1);
}
@keyframes glitch1 {
  0%, 90%, 100% { transform: translateX(-2px); opacity: 0.5; clip-path: none; }
  91% { transform: translateX(-18px); clip-path: inset(10% 0 60% 0); opacity: 1; }
  92% { transform: translateX(14px);  clip-path: inset(50% 0 25% 0); opacity: 1; }
  93% { transform: translateX(-2px); opacity: 0.5; clip-path: none; }
}
@keyframes glitch2 {
  0%, 90%, 100% { transform: translateX(2px); opacity: 0.4; clip-path: none; }
  91% { transform: translateX(20px);  clip-path: inset(60% 0 10% 0); opacity: 1; }
  92% { transform: translateX(-16px); clip-path: inset(20% 0 55% 0); opacity: 1; }
  93% { transform: translateX(2px); opacity: 0.4; clip-path: none; }
}

/* ============================================================
   HAMBURGER + MOBILE DRAWER
   ============================================================ */
.hamburger {
  display: none;
  width: 42px; height: 42px;
  background: linear-gradient(180deg, #ff4ec9 0%, #d63dff 100%);
  border: 3px solid var(--shadow-ink);
  border-radius: 10px;
  box-shadow: 0 3px 0 var(--shadow-ink);
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   DEV POPUP (kept, restyled)
   ============================================================ */
.dev-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8,2,26,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.dev-popup-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.dev-popup {
  position: relative;
  background: linear-gradient(180deg, rgba(74,30,150,0.95) 0%, rgba(40,15,90,0.98) 100%);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: 0 12px 0 var(--shadow-ink), 0 24px 60px rgba(0,0,0,0.6),
              -10px 0 40px rgba(255,40,180,0.3), 10px 0 40px rgba(0,255,234,0.3);
  padding: 48px 40px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.3s ease;
}
.dev-popup-backdrop.active .dev-popup { transform: scale(1); }
.popup-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: var(--accent);
  border: 2px solid var(--shadow-ink);
  box-shadow: 0 2px 0 var(--shadow-ink);
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #1a0530;
  font-weight: 900;
}
.popup-close::before,
.popup-close::after {
  content: "";
  position: absolute;
  width: 16px; height: 2.5px;
  background: var(--shadow-ink);
  border-radius: 2px;
}
.popup-close::before { transform: rotate(45deg); }
.popup-close::after  { transform: rotate(-45deg); }
.popup-title {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: clamp(28px, 4vw, 40px);
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: 0;
  text-shadow:
    -2px -2px 0 var(--shadow-ink), 2px -2px 0 var(--shadow-ink),
    -2px  2px 0 var(--shadow-ink), 2px  2px 0 var(--shadow-ink),
    0 4px 0 var(--shadow-ink);
}
.popup-body {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.popup-text {
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.6;
}
.popup-button {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cta-fg);
  background: var(--cta-bg);
  border: var(--cta-border);
  border-radius: var(--cta-radius);
  box-shadow: var(--cta-shadow);
  padding: 12px 26px;
  cursor: pointer;
  position: relative;
}
.popup-button::after {
  content: "OK";
}
.popup-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--shadow-ink), 0 14px 24px rgba(0,255,234,0.45);
}

/* ============================================================
   LIGHTBOX (gallery)
   ============================================================ */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8,2,26,0.94);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.lightbox-backdrop.active { opacity: 1; pointer-events: auto; }
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border: 4px solid var(--shadow-ink);
  border-radius: 14px;
  box-shadow: 0 8px 0 var(--shadow-ink), 0 24px 60px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--accent);
  border: 3px solid var(--shadow-ink);
  border-radius: 10px;
  box-shadow: 0 3px 0 var(--shadow-ink);
  color: var(--shadow-ink);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

/* ============================================================
   ANIMATIONS (scroll reveal)
   ============================================================ */
[data-animate],
[data-animate-stagger] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].is-visible,
[data-animate-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
[data-animate-stagger].is-visible > *:nth-child(1) { transition-delay: 0s; }
[data-animate-stagger].is-visible > *:nth-child(2) { transition-delay: 0.08s; }
[data-animate-stagger].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
[data-animate-stagger].is-visible > *:nth-child(4) { transition-delay: 0.24s; }
[data-animate-stagger].is-visible > *:nth-child(5) { transition-delay: 0.32s; }
[data-animate-stagger].is-visible > *:nth-child(6) { transition-delay: 0.40s; }
[data-animate-stagger].is-visible > *:nth-child(7) { transition-delay: 0.48s; }
[data-animate-stagger].is-visible > *:nth-child(8) { transition-delay: 0.56s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .features, .roadmap-list { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  nav#main-nav { display: none; }
  .hamburger { display: flex; }
  .section { padding: 90px 32px; }
  .hero { padding: 50px 32px 80px; gap: 50px; }

  /* Mobile drawer: when nav has .open it becomes a fullscreen overlay.
     Uses 100vw/100vh because the header creates a containing block
     via backdrop-filter, so inset:0 would clip to the header instead. */
  nav#main-nav.open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99;
    background: rgba(8,2,26,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 80px 30px 40px;
    margin: 0;
    overflow-y: auto;
  }
  nav#main-nav.open a {
    font-family: var(--font-display);
    font-weight: 900; font-style: italic;
    font-size: 28px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    text-shadow:
      -1.5px 0 0 rgba(255,40,180,0.6),
      1.5px 0 0 rgba(0,255,234,0.6);
    padding: 8px 0;
  }
  nav#main-nav.open a:hover::after { display: none; }
}

@media (max-width: 720px) {
  header { padding: 12px 18px; gap: 10px; }
  .logo-main { font-size: 22px; letter-spacing: 1.5px; }
  .logo-status { font-size: 8px; padding: 4px 8px; gap: 4px; }
  .header-actions { gap: 8px; }
  .btn-tg { padding: 7px 10px; font-size: 11px; }
  .btn-tg span { display: none; }
  .lang-switcher { padding: 5px 10px; font-size: 11px; }

  .section { padding: 70px 18px; }
  main { padding-top: 70px; }
  .section-title, .section h2 { font-size: clamp(30px, 9vw, 44px); }
  .section-sub, .section-subtitle { font-size: 15px; margin-bottom: 40px; }

  .hero { padding: 100px 18px 60px; min-height: auto; gap: 36px; }
  .outlined-title, .hero h1 {
    font-size: clamp(40px, 11vw, 60px);
    text-shadow:
      -2px -2px 0 var(--shadow-ink), 2px -2px 0 var(--shadow-ink),
      -2px  2px 0 var(--shadow-ink), 2px  2px 0 var(--shadow-ink),
      0 -2px 0 var(--shadow-ink), 0 2px 0 var(--shadow-ink),
      -2px 0 0 var(--shadow-ink), 2px 0 0 var(--shadow-ink),
      0 6px 0 var(--shadow-ink),
      -4px 0 20px rgba(255,40,180,0.5),
      4px 0 20px rgba(0,255,234,0.4);
  }
  .hero p { font-size: 15px; }
  .hero-actions { flex-direction: column; gap: 12px; width: 100%; max-width: 320px; margin: 0 auto; }
  .hero-actions .btn-glow, .hero-actions .btn-secondary {
    width: 100%; justify-content: center; padding: 14px 18px; font-size: 13px;
  }
  .hero-screen-frame { transform: none; border-width: 3px; }

  .marquee { margin: 24px 0; padding: 14px 0; }
  .marquee-track { font-size: 16px; letter-spacing: 2px; gap: 40px; }

  .features, .roadmap-list, .news-grid, .characters-grid, .chars-grid {
    grid-template-columns: 1fr; gap: 16px;
  }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .about-features, .about-points { grid-template-columns: 1fr; }

  .about-stats { gap: 12px; }
  .stat-card { padding: 22px 18px; }
  .stat-card-lg { padding: 26px 20px; }
  .stat-num { font-size: clamp(48px, 16vw, 68px); }
  .stat-label { font-size: 10px; letter-spacing: 2px; }

  .char-portrait img, .char-art img { object-position: center 30%; }
  .char-body, .char-card > p { padding: 16px 18px 20px; }
  .char-name, .char-card h3 { font-size: 20px; }
  .char-locked-glitch { font-size: 44px; letter-spacing: 4px; }

  .roadmap-item { padding: 20px 18px; }

  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .faq-question { padding: 18px 18px; font-size: 14px; letter-spacing: 0.3px; gap: 12px; }
  .faq-icon { width: 28px; height: 28px; font-size: 16px; }
  .faq-answer p { padding: 0 18px 18px; font-size: 13px; }

  .footer { padding: 60px 18px 40px; }
  .footer-cta { gap: 14px; }
  .footer-cta h2 { font-size: clamp(26px, 7vw, 36px); }
  .social-icons { gap: 10px; margin: 16px 0 28px; flex-wrap: wrap; max-width: 320px; margin-left: auto; margin-right: auto; }
  .social-icons a { width: 42px; height: 42px; }
  .preloader-bar { width: 200px; }
}

@media (max-width: 380px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .logo-status { display: none; }
  .marquee-track { font-size: 14px; gap: 30px; }
}
