/* =========================================================
   Pub of Homies — styles.css
   Neon arcade pub. Dark, purple-forward, amber accents.
   ========================================================= */

:root {
  /* --- Tweakable surface (driven by Tweaks panel) --- */
  --bg-darkness: 1;          /* 0.6 = lifted, 1 = spec, 1.2 = pitch */
  --glow: 1;                 /* 0..2 multiplier */
  --accent-hue: 270;         /* 270 purple, 35 amber */
  --accent-mix: 0.65;        /* purple/amber blend in some surfaces */

  /* --- Brand --- */
  --c-bg: oklch(calc(0.14 / var(--bg-darkness)) 0.02 280);
  --c-bg-2: oklch(calc(0.18 / var(--bg-darkness)) 0.03 280);
  --c-bg-3: oklch(calc(0.22 / var(--bg-darkness)) 0.04 280);
  --c-ink: oklch(0.97 0.01 280);
  --c-ink-2: oklch(0.82 0.02 280);
  --c-ink-3: oklch(0.62 0.02 280);
  --c-line: oklch(0.32 0.03 280 / 0.7);
  --c-line-2: oklch(0.42 0.04 280 / 0.5);

  --c-purple: #a855f7;
  --c-purple-2: #c084fc;
  --c-purple-deep: #6d28d9;
  --c-amber: #f59e0b;
  --c-amber-2: #fbbf24;

  --c-accent: hsl(var(--accent-hue) 90% 65%);
  --c-accent-2: hsl(var(--accent-hue) 95% 75%);
  --c-accent-deep: hsl(var(--accent-hue) 80% 45%);

  --c-good: #34d399;
  --c-bad:  #f87171;

  /* --- Type --- */
  --f-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* --- Layout --- */
  --container: 1200px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* --- Glass --- */
  --glass-bg: oklch(0.22 0.03 280 / 0.45);
  --glass-bd: oklch(0.55 0.05 280 / 0.35);

  /* --- Glow tokens --- */
  --shadow-soft: 0 10px 40px -10px oklch(0.1 0.02 280 / 0.6);
  --glow-purple: 0 0 calc(40px * var(--glow)) oklch(0.65 0.25 300 / calc(0.45 * var(--glow))),
                 0 0 calc(120px * var(--glow)) oklch(0.5 0.22 300 / calc(0.25 * var(--glow)));
  --glow-amber:  0 0 calc(28px * var(--glow)) oklch(0.78 0.18 70 / calc(0.4 * var(--glow)));
  --glow-accent: 0 0 calc(40px * var(--glow)) hsl(var(--accent-hue) 95% 65% / calc(0.4 * var(--glow))),
                 0 0 calc(120px * var(--glow)) hsl(var(--accent-hue) 90% 55% / calc(0.22 * var(--glow)));
}

/* =========================================================
   Base
   ========================================================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--f-sans);
  background: var(--c-bg);
  color: var(--c-ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* =========================================================
   Background — aurora + grain + vignette
   ========================================================= */
.bg {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; overflow: hidden;
}
#aurora {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  filter: blur(60px) saturate(1.1);
  opacity: calc(0.85 * var(--glow));
}
.bg-grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
  animation: grain 8s steps(8) infinite;
}
.bg-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, transparent 30%, oklch(0.08 0.02 280 / 0.6) 100%),
    radial-gradient(ellipse at 50% 100%, transparent 40%, oklch(0.06 0.02 280 / 0.8) 100%);
}
@keyframes grain {
  0% { transform: translate(0,0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(0,0); }
}

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px max(20px, calc((100% - var(--container)) / 2));
  background: oklch(0.12 0.02 280 / 0.6);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.is-stuck {
  border-bottom-color: var(--c-line);
  background: oklch(0.1 0.02 280 / 0.85);
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav__mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  color: var(--c-accent);
  background: linear-gradient(135deg, oklch(0.25 0.08 290 / 0.7), oklch(0.18 0.05 290 / 0.7));
  border: 1px solid var(--c-line);
  box-shadow: var(--glow-accent);
}
.nav__name { font-size: 15px; }
.nav__links {
  display: flex; gap: 6px;
  justify-self: center;
}
.nav__links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--c-ink-2);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--c-ink); background: oklch(0.25 0.04 280 / 0.5); }
.nav__right {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--c-ink-2);
}
.nav__pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--c-good);
  position: relative;
  box-shadow: 0 0 12px var(--c-good);
}
.nav__pulse i {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--c-good);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}
.nav__online b { color: var(--c-ink); font-weight: 600; }

@media (max-width: 820px) {
  .nav { grid-template-columns: auto 1fr; padding: 12px 16px; gap: 12px; }
  .nav__links { display: none; }
  .nav__right { justify-self: end; }
  .nav__online { display: none; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
  user-select: none;
}
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--lg { padding: 14px 24px; font-size: 15px; }
.btn--xl { padding: 20px 36px; font-size: 17px; border-radius: 999px; }

.btn--primary {
  color: #0c0512;
  background: linear-gradient(135deg, var(--c-accent-2), var(--c-accent));
  box-shadow: var(--glow-accent), 0 1px 0 oklch(1 0 0 / 0.25) inset;
  border-color: oklch(1 0 0 / 0.15);
  position: relative;
  overflow: hidden;
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, oklch(1 0 0 / 0.45) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s ease;
}
.btn--primary:hover { transform: translateY(-2px) scale(1.02); }
.btn--primary:hover::before { transform: translateX(110%); }
.btn--primary:active { transform: translateY(0) scale(0.99); }

.btn--ghost {
  color: var(--c-ink);
  background: oklch(0.25 0.03 280 / 0.4);
  border-color: var(--c-line-2);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  background: oklch(0.32 0.05 280 / 0.55);
  border-color: var(--c-accent);
  color: var(--c-accent-2);
  box-shadow: var(--glow-accent);
}

.btn--disabled {
  color: var(--c-ink-3);
  background: oklch(0.2 0.02 280 / 0.5);
  border: 1px dashed var(--c-line-2);
  cursor: not-allowed;
  opacity: 0.85;
}
.btn--disabled .dot { animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
}
.dot--purple { background: var(--c-purple); box-shadow: 0 0 10px var(--c-purple); }
.dot--amber  { background: var(--c-amber);  box-shadow: 0 0 10px var(--c-amber); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 9vw, 100px);
  overflow: hidden;
}
.hero__inner {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero__copy { max-width: 880px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink-2);
  background: oklch(0.22 0.04 280 / 0.4);
  border: 1px solid var(--c-line);
  backdrop-filter: blur(8px);
  margin-bottom: 28px;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-good);
  box-shadow: 0 0 12px var(--c-good);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 7.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero__title-glow {
  display: block;
  background: linear-gradient(135deg, var(--c-accent-2) 0%, var(--c-accent) 60%, var(--c-amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 calc(20px * var(--glow)) hsl(var(--accent-hue) 95% 60% / calc(0.5 * var(--glow))));
}

.hero__sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--c-ink-2);
  max-width: 620px;
  margin: 0 auto 36px;
  text-wrap: pretty;
}

.hero__cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 56px;
}

.hero__meta {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 700px;
  margin-inline: auto;
}
.hero__meta li {
  display: grid; gap: 4px;
  padding: 18px 12px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--c-line);
  backdrop-filter: blur(14px);
}
.hero__meta b {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--c-ink);
}
.hero__meta span { font-size: 12.5px; color: var(--c-ink-3); }

/* Floating orbs */
.hero__orbs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  animation: float 18s ease-in-out infinite;
}
.orb--a { width: 420px; height: 420px; left: -120px; top: -80px;
  background: radial-gradient(circle, var(--c-purple), transparent 60%);
}
.orb--b { width: 360px; height: 360px; right: -100px; top: 80px;
  background: radial-gradient(circle, var(--c-amber), transparent 60%);
  animation-delay: -6s; opacity: 0.4;
}
.orb--c { width: 300px; height: 300px; left: 30%; bottom: -120px;
  background: radial-gradient(circle, var(--c-purple-2), transparent 60%);
  animation-delay: -12s;
}
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 24px;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1.5px solid var(--c-line-2);
  border-radius: 999px;
  display: grid; place-items: start center;
  padding-top: 7px;
}
.scroll-hint span {
  width: 3px; height: 8px; border-radius: 2px;
  background: var(--c-accent);
  animation: scroll-mouse 1.6s ease infinite;
}
@keyframes scroll-mouse {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* =========================================================
   Section heads / kickers
   ========================================================= */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2,
.vibe__lede,
.tournaments h2,
.proof h2,
.rules h2,
.mods h2,
.faq h2,
.final h2 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  margin: 8px 0 0;
  line-height: 1.1;
  text-wrap: balance;
}
.section-kicker {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  padding: 6px 12px;
  border-radius: 999px;
  background: hsl(var(--accent-hue) 80% 50% / 0.12);
  border: 1px solid hsl(var(--accent-hue) 80% 50% / 0.3);
}
.section-kicker--alert {
  color: var(--c-amber);
  background: oklch(0.7 0.18 70 / 0.12);
  border-color: oklch(0.7 0.18 70 / 0.4);
}

.t-purple { color: var(--c-purple-2); }
.t-amber  { color: var(--c-amber-2); }

/* =========================================================
   Vibe
   ========================================================= */
.vibe { padding: clamp(40px, 6vw, 80px) 0; }
.vibe__lede {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  color: var(--c-ink);
  text-wrap: pretty;
}

/* =========================================================
   Features
   ========================================================= */
.features { padding: clamp(60px, 8vw, 110px) 0; }
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--c-line);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  isolation: isolate;
}
.card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--card-angle, 0deg),
    transparent 0deg,
    hsl(var(--accent-hue) 95% 70%) 90deg,
    transparent 180deg,
    var(--c-amber-2) 270deg,
    transparent 360deg
  );
  -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;
  z-index: -1;
  animation: card-spin 6s linear infinite;
}
@keyframes card-spin { to { --card-angle: 360deg; } }
@property --card-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  background: oklch(0.26 0.04 280 / 0.6);
}
.card:hover::before { opacity: 1; }

.card__icon {
  font-size: 32px;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, oklch(0.3 0.08 290 / 0.6), oklch(0.2 0.05 290 / 0.4));
  border: 1px solid var(--c-line);
  margin-bottom: 18px;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.card:hover .card__icon { transform: rotate(-6deg) scale(1.08); }

.card h3 {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.card p { color: var(--c-ink-2); font-size: 14.5px; margin: 0; }

.card__hover {
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), hsl(var(--accent-hue) 95% 65% / 0.18), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover .card__hover { opacity: 1; }

/* =========================================================
   Tournaments — glitch
   ========================================================= */
.tournaments {
  padding: clamp(60px, 8vw, 110px) 0;
  position: relative;
}
.tournaments::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, oklch(1 0 0 / 0.012) 3px 4px);
  pointer-events: none;
}
.tournaments__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .tournaments__inner { grid-template-columns: 1fr; gap: 40px; }
}
.tournaments h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  margin: 16px 0 18px;
  text-wrap: balance;
}
.tournaments p {
  color: var(--c-ink-2);
  font-size: 16.5px;
  max-width: 520px;
  margin: 0 0 26px;
}
.tournaments__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.tournaments__hint {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--c-ink-3);
}
.tournaments__hint b { color: var(--c-amber); }

/* Glitch */
.glitch {
  position: relative;
  color: var(--c-ink);
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.glitch::before {
  color: var(--c-amber);
  transform: translate(-2px, 0);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  animation: glitch-1 3.6s infinite steps(1);
}
.glitch::after {
  color: var(--c-purple-2);
  transform: translate(2px, 0);
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  animation: glitch-2 4.2s infinite steps(1);
}
@keyframes glitch-1 {
  0%, 92%, 100% { transform: translate(0,0); }
  93% { transform: translate(-3px, 1px); }
  95% { transform: translate(2px, -1px); }
  97% { transform: translate(-1px, 0); }
}
@keyframes glitch-2 {
  0%, 90%, 100% { transform: translate(0,0); }
  91% { transform: translate(2px, 1px); }
  94% { transform: translate(-2px, -1px); }
  96% { transform: translate(1px, 0); }
}

/* Bracket */
.bracket {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: oklch(0.18 0.03 280 / 0.5);
  border: 1px solid var(--c-line);
  backdrop-filter: blur(10px);
  font-family: var(--f-mono);
  font-size: 13px;
  position: relative;
}
.bracket::before {
  content: "// bracket_v3.live";
  position: absolute; top: -10px; left: 18px;
  background: var(--c-bg);
  color: var(--c-amber);
  padding: 0 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.bracket__round { display: grid; gap: 14px; }
.bracket__match {
  display: flex; justify-content: space-between;
  padding: 10px 12px;
  background: oklch(0.22 0.03 280 / 0.6);
  border: 1px solid var(--c-line);
  border-radius: 8px;
  position: relative;
}
.bracket__match.dim { color: var(--c-ink-3); }
.bracket__match .w { color: var(--c-amber); font-weight: 600; }
.bracket__match::after {
  content: ""; position: absolute;
  right: -19px; top: 50%;
  width: 18px; height: 1px;
  background: var(--c-line-2);
}
.bracket__round:last-child .bracket__match::after { display: none; }
.bracket__final {
  border-color: var(--c-amber);
  box-shadow: 0 0 calc(20px * var(--glow)) oklch(0.78 0.18 70 / calc(0.4 * var(--glow)));
  color: var(--c-amber);
}
.bracket__final .tba { color: var(--c-ink-3); }

@media (max-width: 560px) {
  .bracket { grid-template-columns: 1fr; }
  .bracket__match::after { display: none; }
}

/* =========================================================
   Proof
   ========================================================= */
.proof { padding: clamp(60px, 8vw, 110px) 0; }
.proof__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .proof__inner { grid-template-columns: 1fr; gap: 48px; }
}
.proof h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  margin: 14px 0 28px;
  line-height: 1.1;
  text-wrap: balance;
}
.stats {
  list-style: none;
  padding: 0; margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 460px;
}
.stats li {
  display: grid; gap: 4px;
  padding: 16px 14px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--c-line);
}
.stats b {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--c-accent-2);
}
.stats li:nth-child(2) b { color: var(--c-amber-2); }
.stats span { font-size: 13px; color: var(--c-ink-3); }
.proof__note { color: var(--c-ink-3); font-size: 14px; max-width: 440px; }

/* Mock chat */
.chat {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, oklch(0.16 0.03 280 / 0.85), oklch(0.13 0.02 280 / 0.85));
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-soft), 0 0 calc(60px * var(--glow)) hsl(var(--accent-hue) 80% 50% / calc(0.18 * var(--glow)));
  overflow: hidden;
  backdrop-filter: blur(16px);
}
.chat__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--c-line);
  background: oklch(0.14 0.02 280 / 0.7);
  font-size: 13px;
}
.chat__channel { color: var(--c-ink-3); }
.chat__channel b { color: var(--c-ink); font-weight: 600; }
.chat__voice {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-ink-3);
}
.chat__voice b { color: var(--c-good); }
.chat__voice-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-good);
  box-shadow: 0 0 10px var(--c-good);
  animation: pulse-dot 1.6s infinite;
}
.chat__body {
  display: flex; flex-direction: column;
  gap: 14px;
  padding: 20px 18px;
  min-height: 320px;
  max-height: 420px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(180deg, transparent, #000 8%, #000 100%);
}
.msg {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: flex-start;
  animation: msg-in 0.4s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: hsl(var(--avatar-hue, 280) 60% 50%);
  box-shadow: 0 0 0 2px oklch(0.13 0.02 280);
  position: relative;
}
.msg__avatar.is-online::after {
  content: "";
  position: absolute; right: -1px; bottom: -1px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--c-good);
  border: 2.5px solid oklch(0.16 0.03 280);
}
.msg__head {
  display: flex; gap: 8px; align-items: baseline;
  font-size: 14px;
  margin-bottom: 2px;
}
.msg__name { font-weight: 600; color: var(--c-accent-2); }
.msg__name.amber { color: var(--c-amber-2); }
.msg__name.green { color: var(--c-good); }
.msg__time { font-size: 11px; color: var(--c-ink-3); font-family: var(--f-mono); }
.msg__text { font-size: 14px; color: var(--c-ink); line-height: 1.45; }
.msg__text .gif {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  font-size: 11px; font-family: var(--f-mono);
  background: oklch(0.25 0.05 290 / 0.5);
  border: 1px solid var(--c-line);
  border-radius: 6px;
  color: var(--c-ink-3);
}
.caret {
  display: inline-block; width: 7px; height: 14px;
  background: var(--c-accent);
  margin-left: 2px; vertical-align: -2px;
  animation: caret-blink 1s steps(2) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.chat__compose {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--c-line);
  background: oklch(0.18 0.02 280 / 0.7);
  font-size: 13.5px;
}
.chat__plus {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-ink-3);
  color: oklch(0.16 0.02 280);
  display: grid; place-items: center;
  font-weight: 700;
}
.chat__placeholder { color: var(--c-ink-3); flex: 1; }
.chat__typing { display: inline-flex; gap: 3px; }
.chat__typing i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--c-ink-3);
  animation: typing 1.2s infinite;
}
.chat__typing i:nth-child(2) { animation-delay: 0.15s; }
.chat__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* =========================================================
   Live Discord widget (iframe wrapper)
   ========================================================= */
.widget {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, oklch(0.16 0.03 280 / 0.85), oklch(0.13 0.02 280 / 0.85));
  border: 1px solid var(--c-line);
  box-shadow:
    var(--shadow-soft),
    0 0 calc(60px * var(--glow)) hsl(var(--accent-hue) 80% 50% / calc(0.22 * var(--glow)));
  overflow: hidden;
  backdrop-filter: blur(16px);
  position: relative;
  isolation: isolate;
}
.widget::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--card-angle, 0deg),
    transparent 0deg, hsl(var(--accent-hue) 95% 70%) 90deg,
    transparent 200deg, var(--c-amber-2) 300deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.55;
  z-index: -1;
  animation: card-spin 12s linear infinite;
}
.widget__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--c-line);
  background: oklch(0.14 0.02 280 / 0.7);
  font-size: 13px;
}
.widget__channel {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--c-ink-2);
}
.widget__channel b {
  font-family: var(--f-display);
  color: var(--c-ink); font-weight: 600;
}
.widget__live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--c-good);
}
.widget__frame {
  position: relative;
  background: #1e1f22; /* matches Discord widget bg, no FOUC */
}
.widget__frame iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
  background: transparent;
}
.widget__foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px;
  border-top: 1px solid var(--c-line);
  background: oklch(0.14 0.02 280 / 0.7);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-ink-3);
}
.widget__foot a {
  color: var(--c-accent-2);
  font-weight: 600;
  font-family: var(--f-sans);
  font-size: 13px;
  transition: color 0.2s, text-shadow 0.2s;
}
.widget__foot a:hover {
  color: var(--c-accent);
  text-shadow: 0 0 12px hsl(var(--accent-hue) 90% 65%);
}

@media (max-width: 540px) {
  .widget__frame iframe { height: 460px; }
}

/* =========================================================
   Rules
   ========================================================= */
.rules { padding: clamp(60px, 8vw, 110px) 0; }
.rules__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .rules__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .rules__grid { grid-template-columns: 1fr; } }
.rule {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: oklch(0.18 0.03 280 / 0.5);
  border: 1px solid var(--c-line);
  backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.rule:hover {
  transform: translateY(-3px);
  border-color: var(--c-accent);
  box-shadow: 0 0 calc(30px * var(--glow)) hsl(var(--accent-hue) 80% 50% / calc(0.25 * var(--glow)));
}
.rule__num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-accent);
  letter-spacing: 0.15em;
}
.rule h4 {
  font-family: var(--f-display);
  font-size: 18px;
  margin: 8px 0 6px;
  font-weight: 600;
}
.rule p { color: var(--c-ink-2); font-size: 14px; margin: 0; }

/* =========================================================
   Mods
   ========================================================= */
.mods { padding: clamp(60px, 8vw, 110px) 0; }
.mods__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 800px) { .mods__grid { grid-template-columns: 1fr; } }
.mod {
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--c-line);
  backdrop-filter: blur(14px);
  transition: transform 0.3s, border-color 0.3s;
}
.mod:hover {
  transform: translateY(-3px);
  border-color: hsl(var(--avatar-hue) 70% 60% / 0.6);
}
.mod__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  background:
    radial-gradient(circle at 30% 30%, hsl(var(--avatar-hue) 80% 65%), hsl(var(--avatar-hue) 70% 40%));
  box-shadow: 0 0 calc(30px * var(--glow)) hsl(var(--avatar-hue) 80% 60% / calc(0.4 * var(--glow)));
  margin-bottom: 14px;
}
.mod__avatar::before { content: attr(data-letter); }
.mod__role {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  margin-bottom: 6px;
}
.mod h4 {
  font-family: var(--f-display);
  font-size: 19px;
  margin: 0 0 6px;
  font-weight: 600;
}
.mod h4 span { font-weight: 400; color: var(--c-ink-3); font-size: 14px; }
.mod p { color: var(--c-ink-2); font-size: 14px; margin: 0; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: clamp(60px, 8vw, 110px) 0; }
.faq__inner { max-width: 760px; }
.faq__list {
  display: grid; gap: 10px;
  margin-top: 10px;
}
.faq__item {
  background: oklch(0.18 0.03 280 / 0.5);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.faq__item[open] {
  border-color: hsl(var(--accent-hue) 80% 50% / 0.45);
  background: oklch(0.22 0.04 280 / 0.6);
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--c-line-2);
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s, border-color 0.3s;
}
.faq__chev::before, .faq__chev::after {
  content: ""; position: absolute;
  background: var(--c-ink-2);
  border-radius: 1px;
  top: 50%; left: 50%;
}
.faq__chev::before { width: 9px; height: 1.5px; transform: translate(-50%, -50%); }
.faq__chev::after  { width: 1.5px; height: 9px; transform: translate(-50%, -50%); transition: transform 0.3s; }
.faq__item[open] .faq__chev { border-color: var(--c-accent); }
.faq__item[open] .faq__chev::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__body {
  padding: 0 22px 20px;
  color: var(--c-ink-2);
  font-size: 15px;
  line-height: 1.6;
}
.faq__body p { margin: 0; }

/* =========================================================
   Final CTA
   ========================================================= */
.final {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0;
  overflow: hidden;
  text-align: center;
}
.final__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, hsl(var(--accent-hue) 90% 50% / 0.18), transparent 60%),
    radial-gradient(ellipse at 30% 20%, oklch(0.7 0.18 70 / 0.1), transparent 50%);
  z-index: -1;
}
.final__inner { position: relative; z-index: 1; }
.final__kicker {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin: 0 0 16px;
}
.final__title {
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 36px;
  text-wrap: balance;
}
.final__title-glow {
  display: block;
  background: linear-gradient(135deg, var(--c-accent-2), var(--c-accent), var(--c-amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 calc(24px * var(--glow)) hsl(var(--accent-hue) 95% 60% / calc(0.5 * var(--glow))));
}
.final__sub {
  margin-top: 24px;
  color: var(--c-ink-3);
  font-size: 14.5px;
  font-family: var(--f-mono);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--c-line);
  background: oklch(0.1 0.02 280 / 0.6);
}
.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.footer__brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
}
.footer__copy {
  font-family: var(--f-sans); font-weight: 400;
  color: var(--c-ink-3); font-size: 13px;
  margin-left: 8px;
}
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__links a {
  font-size: 13.5px;
  color: var(--c-ink-3);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--c-accent-2); }

/* =========================================================
   Reveal (intersection observer driven)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(.2,.8,.2,1), transform 0.7s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Tweaks panel
   ========================================================= */
.tweaks-toggle {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 100;
  display: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: oklch(0.18 0.04 280 / 0.85);
  color: var(--c-ink);
  border: 1px solid var(--c-line-2);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.tweaks-toggle.is-visible { display: inline-flex; align-items: center; gap: 8px; }
.tweaks-toggle:hover { border-color: var(--c-accent); }

.tweaks {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 101;
  width: 280px;
  border-radius: var(--radius);
  background: oklch(0.13 0.02 280 / 0.92);
  border: 1px solid var(--c-line-2);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 20px 60px -10px oklch(0 0 0 / 0.6), 0 0 40px oklch(0.5 0.2 290 / 0.15);
  font-size: 13px;
  display: none;
  overflow: hidden;
  animation: tweaks-in 0.25s cubic-bezier(.2,.8,.2,1);
}
.tweaks.is-open { display: block; }
@keyframes tweaks-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.tweaks__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-line);
}
.tweaks__head h4 {
  margin: 0;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 600;
}
.tweaks__close {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  color: var(--c-ink-2);
}
.tweaks__close:hover { color: var(--c-ink); border-color: var(--c-accent); }
.tweaks__body { padding: 14px; display: grid; gap: 16px; }
.tweak label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px;
  color: var(--c-ink-2);
  margin-bottom: 6px;
  font-family: var(--f-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tweak label b { color: var(--c-ink); font-weight: 500; font-family: var(--f-sans); text-transform: none; letter-spacing: normal; }
.tweak input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: var(--c-line);
  border-radius: 999px;
  outline: none;
}
.tweak input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--c-accent);
  border: 2px solid var(--c-bg);
  box-shadow: 0 0 10px var(--c-accent);
  cursor: pointer;
}
.tweak input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--c-accent); border: 2px solid var(--c-bg);
  box-shadow: 0 0 10px var(--c-accent); cursor: pointer;
}
.tweak__swatches {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
}
.tweak__swatches button {
  height: 28px; border-radius: 7px;
  border: 1.5px solid var(--c-line);
  background: hsl(var(--h, 270) 90% 60%);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.tweak__swatches button:hover { transform: scale(1.08); }
.tweak__swatches button.is-active { border-color: var(--c-ink); transform: scale(1.05); box-shadow: 0 0 12px hsl(var(--h) 90% 60%); }

.tweak input[type="color"] {
  width: 100%; height: 28px; padding: 0;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: 7px;
  cursor: pointer;
}
