/* ===========================================================================
   TOP10 CASON — design system
   Style:  Modern Dark (cinematic) + vibrant block accents
   Type:   Russo One (display) / Chakra Petch (body)
   Motion: expo-out cubic-bezier(.16,1,.3,1), 180/260/420ms, staggered reveals
   =========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* surfaces */
  --bg-deep: #06060d;
  --bg: #0a0a14;
  --bg-2: #0f0f1e;
  --bg-3: #15152a;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .075);
  --surface-3: rgba(255, 255, 255, .11);

  /* lines */
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);

  /* text */
  --fg: #ececf5;
  --fg-2: #a6abc2;
  --fg-3: #8a90a8;

  /* brand */
  --violet: #7c3aed;
  --violet-2: #a78bfa;
  --violet-3: #4c1d95;
  --rose: #f43f5e;
  --rose-2: #fb7185;
  --gold: #e8c46c;
  --gold-2: #c9a227;
  --gold-3: #f8e7b0;
  --cyan: #22d3ee;
  --green: #22c55e;
  --amber: #f59e0b;
  --orange: #f97316;
  --red: #ef4444;
  --pink: #ec4899;
  --blue: #3b82f6;

  /* semantic */
  --accent: var(--violet);
  --accent-soft: rgba(124, 58, 237, .18);
  --cta: var(--rose);
  --on-accent: #fff;

  /* gradients */
  --g-brand: linear-gradient(135deg, #7c3aed 0%, #a78bfa 50%, #f43f5e 100%);
  --g-gold: linear-gradient(135deg, #f8e7b0 0%, #e8c46c 40%, #c9a227 100%);
  --g-glass: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));

  /* radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-full: 9999px;

  /* spacing scale (density: standard) */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;

  /* elevation */
  --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-2: 0 8px 24px rgba(0, 0, 0, .38);
  --sh-3: 0 18px 48px rgba(0, 0, 0, .48);
  --sh-4: 0 32px 80px rgba(0, 0, 0, .58);
  --glow-violet: 0 0 0 1px rgba(124, 58, 237, .35), 0 12px 40px rgba(124, 58, 237, .28);
  --glow-gold: 0 0 0 1px rgba(232, 196, 108, .3), 0 12px 40px rgba(201, 162, 39, .22);

  /* motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.55, 0, 1, .45);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
  --t-fast: 180ms;
  --t: 260ms;
  --t-slow: 420ms;

  /* layout */
  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --nav-h: 72px;

  /* type */
  --font-d: "Russo One", "Arial Black", system-ui, sans-serif;
  --font-b: "Chakra Petch", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --z-nav: 900;
  --z-drawer: 950;
  --z-modal: 1000;

  color-scheme: dark;
}

/* ---------- 2. Reset & base ---------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-b);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img,
svg,
video { display: block; max-width: 100%; }

img { height: auto; }

a { color: inherit; text-decoration: none; }

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: 0; }

ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--violet-2);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(124, 58, 237, .45); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #262640; border-radius: var(--r-full); border: 2px solid var(--bg-deep); }
::-webkit-scrollbar-thumb:hover { background: #383860; }

/* ---------- 3. Typography ------------------------------------------------ */
.t-hero,
.t1, .t2, .t3, .t4 {
  font-family: var(--font-d);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.t-hero { font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: 1.02; }
.t1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.t2 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); line-height: 1.12; }
.t3 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.2; }
.t4 { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.25; }

.cap {
  font-family: var(--font-b);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--violet-2);
}

.lead {
  font-size: clamp(1rem, 1.35vw, 1.09rem);
  line-height: 1.72;
  color: var(--fg-2);
  max-width: 62ch;
}

.body { color: var(--fg-2); line-height: 1.75; max-width: 68ch; }

.fine { font-size: .78rem; color: var(--fg-3); line-height: 1.6; }

.gt {
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.gt-gold {
  background: var(--g-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Icon defaults. Component rules (.btn svg, .chip svg, …) are more specific
   and still win; this only catches icons used inline in prose. */
.ic { width: 18px; height: 18px; flex: none; }
.ic.ic--xs { width: 14px; height: 14px; }
.ic.ic--sm { width: 16px; height: 16px; }

.meta-row {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .74rem;
  color: var(--fg-3);
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  position: fixed;
  top: 12px; left: 12px;
  z-index: calc(var(--z-modal) + 1);
  width: auto; height: auto;
  margin: 0;
  padding: .7rem 1.2rem;
  overflow: visible;
  clip: auto;
  border-radius: var(--r-full);
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--sh-3);
}

/* ---------- 4. Layout ---------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 880px; }
.wrap--mid { max-width: 1000px; }

.sec { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.sec--sm { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.sec--tight { padding-block: clamp(2rem, 4vw, 3rem); }

.stack > * + * { margin-top: var(--s4); }

.sec-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head .cap { display: block; margin-bottom: var(--s3); }
.sec-head .lead { margin-top: var(--s4); }
.sec-head--center .lead { margin-inline: auto; }

.grid { display: grid; gap: var(--s5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* ---------- 5. Ambient background --------------------------------------- */
.amb {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1100px 700px at 12% -8%, rgba(124, 58, 237, .16), transparent 62%),
    radial-gradient(900px 600px at 88% 4%, rgba(244, 63, 94, .10), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 42%, var(--bg-deep) 100%);
}

.amb__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  will-change: transform;
}

.amb__blob--1 { width: 46vw; height: 46vw; left: -12vw; top: -8vw; background: rgba(124, 58, 237, .30); animation: drift-a 26s var(--ease-soft) infinite alternate; }
.amb__blob--2 { width: 38vw; height: 38vw; right: -10vw; top: 22vh; background: rgba(244, 63, 94, .20); animation: drift-b 32s var(--ease-soft) infinite alternate; }
.amb__blob--3 { width: 30vw; height: 30vw; left: 30vw; bottom: -12vw; background: rgba(34, 211, 238, .13); animation: drift-c 38s var(--ease-soft) infinite alternate; }

@keyframes drift-a { to { transform: translate3d(8vw, 6vh, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-7vw, -5vh, 0) scale(1.1); } }
@keyframes drift-c { to { transform: translate3d(5vw, -8vh, 0) scale(1.2); } }

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 6. Progress bar ---------------------------------------------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--g-brand);
  z-index: 999;
  will-change: transform;
}

/* ---------- 7. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--fg);
  --btn-line: var(--line-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 46px;
  padding: .72rem 1.4rem;
  border: 1px solid var(--btn-line);
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-b);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  touch-action: manipulation;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t) var(--ease),
              background-color var(--t) var(--ease),
              border-color var(--t) var(--ease),
              color var(--t) var(--ease);
}

.btn > * { position: relative; z-index: 1; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn:hover { transform: translateY(-2px); border-color: var(--line-2); }
.btn:active { transform: translateY(0) scale(.975); transition-duration: 90ms; }

.btn[disabled],
.btn[aria-disabled="true"] {
  background: var(--surface);
  background-image: none;
  border-color: var(--line);
  color: var(--fg-3);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--brand {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-line: transparent;
  background: var(--g-brand);
  box-shadow: 0 8px 28px rgba(124, 58, 237, .34);
}
.btn--brand:hover { box-shadow: 0 14px 40px rgba(124, 58, 237, .48); }

.btn--gold {
  --btn-fg: #17120a;
  --btn-line: transparent;
  background: var(--g-gold);
  box-shadow: 0 8px 28px rgba(201, 162, 39, .3);
}
.btn--gold:hover { box-shadow: 0 14px 40px rgba(201, 162, 39, .42); }

.btn--cta {
  --btn-fg: #fff;
  --btn-line: transparent;
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  box-shadow: 0 8px 28px rgba(244, 63, 94, .32);
}
.btn--cta:hover { box-shadow: 0 14px 40px rgba(244, 63, 94, .45); }

.btn--ghost { --btn-bg: transparent; --btn-line: var(--line-2); }
.btn--ghost:hover { --btn-bg: var(--surface-2); }

.btn--lg { min-height: 54px; padding: .92rem 1.85rem; font-size: 1rem; }
.btn--sm { min-height: 38px; padding: .45rem 1rem; font-size: .82rem; }
.btn--block { width: 100%; }

/* sheen sweep on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .28) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 620ms var(--ease);
}
.btn:hover::after { transform: translateX(130%); }

/* ---------- 8. Chips, tags, notices -------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .32rem .8rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-full);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--fg-2);
  white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; }
.chip--violet { color: var(--violet-2); border-color: rgba(167, 139, 250, .35); background: rgba(124, 58, 237, .12); }
.chip--rose { color: var(--rose-2); border-color: rgba(251, 113, 133, .35); background: rgba(244, 63, 94, .12); }
.chip--gold { color: var(--gold); border-color: rgba(232, 196, 108, .35); background: rgba(201, 162, 39, .12); }
.chip--cyan { color: var(--cyan); border-color: rgba(34, 211, 238, .32); background: rgba(34, 211, 238, .1); }
.chip--green { color: #4ade80; border-color: rgba(34, 197, 94, .32); background: rgba(34, 197, 94, .1); }

.chip-row { display: flex; flex-wrap: wrap; gap: var(--s2); }

.notice {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-sm);
  background: rgba(245, 158, 11, .07);
  font-size: .87rem;
  line-height: 1.65;
  color: var(--fg-2);
}
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--amber); }
.notice strong { color: var(--fg); font-weight: 700; }

.notice--info { border-left-color: var(--cyan); background: rgba(34, 211, 238, .07); }
.notice--info svg { color: var(--cyan); }
.notice--ok { border-left-color: var(--green); background: rgba(34, 197, 94, .07); }
.notice--ok svg { color: var(--green); }

/* ---------- 9. Cards ----------------------------------------------------- */
.card {
  position: relative;
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--g-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--sh-2);
  transition: transform var(--t) var(--ease),
              border-color var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
  overflow: hidden;
}

/* top hairline highlight */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
}

/* A <button> used as a card centres its content by UA default. */
button.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  font: inherit;
  color: inherit;
}

.card--hover:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--sh-3);
}

.card__title {
  font-family: var(--font-d);
  font-size: 1.02rem;
  line-height: 1.25;
  margin-bottom: var(--s2);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--s4);
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--accent-ic, var(--violet-2));
}
.card__icon svg { width: 22px; height: 22px; }

/* tilt wrapper */
[data-tilt] { transform-style: preserve-3d; will-change: transform; }
[data-tilt] > * { transform: translateZ(0); }

/* ---------- 10. Header / nav --------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  transition: background-color var(--t) var(--ease), box-shadow var(--t) var(--ease), backdrop-filter var(--t);
}

.nav--solid {
  background: rgba(10, 10, 20, .78);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), 0 12px 34px rgba(0, 0, 0, .45);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--s5);
  min-height: var(--nav-h);
}

.nav__logo { display: flex; align-items: center; gap: .65rem; flex: none; }

.nav__mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--g-gold);
  color: #17120a;
  font-family: var(--font-d);
  font-size: .95rem;
  box-shadow: var(--glow-gold);
  transition: transform var(--t) var(--ease);
}
.nav__logo:hover .nav__mark { transform: rotate(-8deg) scale(1.06); }

.nav__word { display: flex; flex-direction: column; line-height: 1; }
.nav__word b { font-family: var(--font-d); font-size: .98rem; letter-spacing: .02em; }
.nav__word span { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); margin-top: 3px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s1);
  margin-left: auto;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .8rem;
  border-radius: var(--r-full);
  font-size: .87rem;
  font-weight: 600;
  color: var(--fg-2);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.nav__link svg { width: 16px; height: 16px; opacity: .8; }
.nav__link:hover { color: var(--fg); background: var(--surface); }
.nav__link[aria-current="page"] { color: var(--fg); background: var(--surface-2); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: var(--g-brand);
}

.nav__sep { width: 1px; height: 22px; background: var(--line); margin-inline: var(--s2); }

.nav__right { display: flex; align-items: center; gap: var(--s3); flex: none; }

.nav__age {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--rose);
  color: var(--rose-2);
  font-family: var(--font-d);
  font-size: .7rem;
}

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--fg);
}
.nav__burger svg { width: 20px; height: 20px; }

/* ticker */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(124, 58, 237, .09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem 1.1rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--violet-2);
  white-space: nowrap;
}
.ticker__item::after { content: "◆"; margin-left: 1.1rem; color: var(--fg-3); font-size: .6rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: none;
  background: rgba(6, 6, 13, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.drawer[data-open] { display: block; }

.drawer__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(360px, 88vw);
  padding: var(--s5) var(--s5) var(--s7);
  overflow-y: auto;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  box-shadow: var(--sh-4);
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease);
}
.drawer[data-open] .drawer__panel { transform: translateX(0); }

.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s6); }
.drawer__close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); }
.drawer__close svg { width: 20px; height: 20px; }

.drawer__nav { display: flex; flex-direction: column; gap: var(--s1); }
.drawer__link {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 52px;
  padding: .7rem 1rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-2);
  opacity: 0;
  transform: translateX(16px);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.drawer[data-open] .drawer__link { animation: drawer-in var(--t-slow) var(--ease) forwards; }
.drawer__link svg { width: 19px; height: 19px; color: var(--violet-2); }
.drawer__link:hover,
.drawer__link[aria-current="page"] { background: var(--surface-2); color: var(--fg); border-color: var(--line); }
@keyframes drawer-in { to { opacity: 1; transform: translateX(0); } }

.drawer__foot { margin-top: var(--s6); display: grid; gap: var(--s3); }

/* ---------- 11. Hero ----------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  min-height: min(88svh, 820px);
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero__spot {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), rgba(167, 139, 250, .16), transparent 65%);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease);
}
.hero:hover .hero__spot { opacity: 1; }

.hero__content { position: relative; z-index: 2; }
.hero__chips { margin-bottom: var(--s5); }

.hero__title { margin-bottom: var(--s5); }

/* word-by-word reveal */
.word { display: inline-block; overflow: hidden; vertical-align: top; }
.js .word > span {
  display: inline-block;
  transform: translateY(105%) rotate(4deg);
  opacity: 0;
}
.is-typed .word > span {
  animation: word-up 820ms var(--ease) forwards;
  animation-delay: calc(var(--i) * 55ms);
}

/* A word wrapper clips its own box, so a gradient painted on the .gt
   ancestor never reaches the split words. Paint it per word instead. */
.gt .word > span {
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.gt-gold .word > span {
  background: var(--g-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@keyframes word-up { to { transform: translateY(0) rotate(0); opacity: 1; } }

.hero__sub { margin-bottom: var(--s6); max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s5); }

.hero__medal {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(430px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: url("../img/hero.jpg") center / 118% no-repeat;
  border: 3px solid rgba(232, 196, 108, .6);
  box-shadow:
    0 0 0 10px rgba(10, 8, 6, .55),
    0 0 0 11px rgba(232, 196, 108, .2),
    0 28px 80px rgba(0, 0, 0, .62),
    0 0 64px rgba(124, 58, 237, .3),
    0 0 130px rgba(201, 162, 39, .18);
  animation: breathe 7.5s var(--ease-soft) infinite;
  will-change: transform;
}

.hero__medal::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(232, 196, 108, .3);
  animation: spin 46s linear infinite;
}

@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.018); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__orbit {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: rgba(15, 15, 30, .8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--sh-3);
  color: var(--gold);
  animation: float 6s var(--ease-soft) infinite;
}
.hero__orbit svg { width: 24px; height: 24px; }
.hero__orbit--1 { top: 10%; right: 12%; animation-delay: 0s; color: var(--violet-2); }
.hero__orbit--2 { bottom: 12%; right: 30%; animation-delay: 1.4s; color: var(--rose-2); }
.hero__orbit--3 { top: 46%; right: 36%; animation-delay: 2.6s; color: var(--cyan); }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}

/* page hero (inner pages) */
.phero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.phero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 140%;
  background: radial-gradient(60% 60% at 20% 0%, rgba(124, 58, 237, .2), transparent 70%);
  pointer-events: none;
}
.phero__inner { position: relative; z-index: 1; }
.phero + .sec { padding-top: clamp(2rem, 4vw, 3rem); }
.phero .chip-row { margin-bottom: var(--s5); }
.phero h1 { margin-bottom: var(--s4); }

/* ---------- 12. Reveal animations ---------------------------------------- */
/* Scoped to .js so a failed or blocked script leaves the page fully readable
   instead of permanently transparent. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 720ms var(--ease) var(--rd, 0ms),
    transform 720ms var(--ease) var(--rd, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal="left"] { transform: translateX(-30px); }
.js [data-reveal="right"] { transform: translateX(30px); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="blur"] { filter: blur(12px); transition-property: opacity, transform, filter; }

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- 13. Live activity feed --------------------------------------- */
.live {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.live__stats { display: flex; flex-wrap: wrap; gap: var(--s5); margin-top: var(--s6); }
.live__stat strong {
  display: block;
  font-family: var(--font-d);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1;
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.live__stat span { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }

.feed {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--g-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--sh-3);
}

.feed__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: .7rem .9rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.feed__item.is-on {
  background: var(--surface-2);
  border-color: var(--line);
  transform: translateX(5px);
}
.feed__item.is-on::before {
  content: "";
  position: absolute;
  left: 0; top: 18%;
  width: 3px; height: 64%;
  border-radius: var(--r-full);
  background: var(--fc, var(--violet));
}

.feed__ico {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: 11px;
  background: color-mix(in srgb, var(--fc, var(--violet)) 16%, transparent);
  color: var(--fc, var(--violet));
}
.feed__ico svg { width: 17px; height: 17px; }

.feed__body { display: flex; flex-direction: column; min-width: 0; }
.feed__user { font-size: .84rem; font-weight: 700; color: var(--fg); }
.feed__act { font-size: .8rem; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; }
.feed__time { margin-left: auto; font-size: .7rem; color: var(--fg-3); flex: none; }

/* ---------- 14. Game showcases ------------------------------------------- */
.shows { display: grid; gap: var(--s5); }

.show {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--g-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--sh-2);
  transition: transform var(--t-slow) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.show:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--sh-3); }
.show:nth-child(even) .show__art { order: 2; }

.show__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: var(--s6);
  overflow: hidden;
}
.show__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--ac) 30%, transparent), transparent 68%);
}

.show__sigil {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 108px; height: 108px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(0, 0, 0, .3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  animation: float 6.5s var(--ease-soft) infinite;
}
.show__sigil svg { width: 48px; height: 48px; }

.show__rings {
  position: absolute;
  width: 210px; height: 210px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  animation: spin 30s linear infinite;
}
.show__rings::after {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .12);
}

.show__body { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; }
.show__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); }
.show__stats { display: flex; flex-wrap: wrap; gap: var(--s5); margin: var(--s5) 0; }
.show__stat strong { display: block; font-family: var(--font-d); font-size: 1.15rem; color: var(--ac); line-height: 1.1; }
.show__stat span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.show__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }

/* ---------- 15. Drop cards ----------------------------------------------- */
.drops-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(255px, 1fr);
  gap: var(--s4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--s4);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.drops-scroll > * { scroll-snap-align: start; }

@media (min-width: 900px) {
  .drops-scroll {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    padding-bottom: 0;
  }
}

.drop {
  --dc: var(--violet);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--g-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease);
}
.drop::before {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--dc) 22%, transparent);
  filter: blur(46px);
}
.drop:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--dc) 45%, transparent); }

.drop__top { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.drop__ico {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--dc) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--dc) 40%, transparent);
  color: var(--dc);
}
.drop__ico svg { width: 21px; height: 21px; }
.drop__tag {
  font-size: .62rem; font-weight: 700; letter-spacing: .12em;
  padding: .22rem .6rem;
  border-radius: var(--r-full);
  border: 1px solid color-mix(in srgb, var(--dc) 40%, transparent);
  color: var(--dc);
}
.drop__title { position: relative; font-family: var(--font-d); font-size: 1rem; margin-bottom: var(--s2); }
.drop__desc { position: relative; font-size: .84rem; color: var(--fg-2); margin-bottom: var(--s4); flex: 1; }
.drop__reward {
  position: relative;
  font-family: var(--font-d);
  font-size: 1.1rem;
  color: var(--dc);
}
.drop__reward small { font-family: var(--font-b); font-size: .7rem; font-weight: 600; color: var(--fg-3); letter-spacing: .06em; }
.drop__fine { position: relative; margin-top: var(--s2); font-size: .66rem; color: var(--fg-3); }

/* ---------- 16. Social avatars ------------------------------------------- */
.social-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.avatars { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s3); }

.avatar {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  animation: float 5s var(--ease-soft) infinite;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.avatar:hover { border-color: var(--line-2); background: var(--surface-2); }
.avatar__circle {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  border-radius: 50%;
  font-family: var(--font-d);
  font-size: .75rem;
  color: #fff;
}
.avatar__info { display: flex; flex-direction: column; min-width: 0; }
.avatar__handle { font-size: .82rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.avatar__rank { font-size: .7rem; color: var(--fg-3); }

/* ---------- 17. Transparency band ---------------------------------------- */
.transp {
  position: relative;
  border-block: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(124, 58, 237, .12), rgba(244, 63, 94, .06));
  overflow: hidden;
}
.transp__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s5); margin-top: var(--s6); }
.transp__item { display: flex; gap: var(--s3); }
.transp__item svg { width: 24px; height: 24px; flex: none; color: var(--violet-2); }
.transp__item strong { display: block; font-family: var(--font-d); font-size: .95rem; margin-bottom: var(--s1); }
.transp__item p { font-size: .84rem; color: var(--fg-2); line-height: 1.65; }

/* ---------- 18. Tabs ----------------------------------------------------- */
.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--s3);
  margin-bottom: var(--s6);
}

.tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: left;
  overflow: hidden;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.tab:hover { transform: translateY(-2px); border-color: var(--line-2); }
.tab__ico {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--tc, var(--violet-2));
  transition: background-color var(--t) var(--ease);
}
.tab__ico svg { width: 21px; height: 21px; }
.tab strong { display: block; font-family: var(--font-d); font-size: .92rem; line-height: 1.2; }
.tab small { font-size: .72rem; color: var(--fg-3); }

.tab[aria-selected="true"] {
  border-color: color-mix(in srgb, var(--tc) 55%, transparent);
  background: color-mix(in srgb, var(--tc) 12%, transparent);
}
.tab[aria-selected="true"] .tab__ico { background: color-mix(in srgb, var(--tc) 22%, transparent); }
.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--tc);
}

.panel[hidden] { display: none !important; }
.panel { animation: panel-in var(--t-slow) var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- 19. Accordion (FAQ) ------------------------------------------ */
.acc { display: flex; flex-direction: column; gap: var(--s3); }
.acc__group + .acc__group { margin-top: var(--s6); }
.acc__group-title { font-family: var(--font-d); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--violet-2); margin-bottom: var(--s4); }

.acc__item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.acc__item:hover { border-color: var(--line-2); }
.acc__item.is-open { border-color: rgba(167, 139, 250, .4); background: rgba(124, 58, 237, .08); }

.acc__btn {
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  min-height: 56px;
  padding: var(--s4) var(--s5);
  text-align: left;
  font-size: .95rem;
  font-weight: 600;
  color: var(--fg);
}
.acc__btn svg {
  width: 18px; height: 18px;
  flex: none;
  margin-left: auto;
  color: var(--violet-2);
  transition: transform var(--t) var(--ease);
}
.acc__item.is-open .acc__btn svg { transform: rotate(180deg); }

.acc__panel { overflow: hidden; height: 0; }
.acc__panel > div { padding: 0 var(--s5) var(--s5); color: var(--fg-2); font-size: .9rem; line-height: 1.75; }

/* ---------- 20. Tables / lists (compliance, about) ----------------------- */
.dl {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.dl__row {
  display: grid;
  grid-template-columns: minmax(140px, 210px) 1fr;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.dl__row:last-child { border-bottom: 0; }
.dl__row:nth-child(odd) { background: var(--surface); }
.dl__row dt { font-size: .8rem; font-weight: 600; color: var(--fg-3); letter-spacing: .04em; }
.dl__row dd { font-size: .92rem; margin: 0; }

.arrow-list li {
  position: relative;
  padding: .3rem 0 .3rem 1.6rem;
  color: var(--fg-2);
  font-size: .92rem;
  line-height: 1.7;
}
.arrow-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .95em;
  width: 10px; height: 1.5px;
  background: var(--violet-2);
}
.arrow-list li::after {
  content: "";
  position: absolute;
  left: 7px; top: calc(.95em - 2.5px);
  width: 6px; height: 6px;
  border-top: 1.5px solid var(--violet-2);
  border-right: 1.5px solid var(--violet-2);
  transform: rotate(45deg);
}

/* prose (legal pages) */
.prose h2 {
  font-family: var(--font-d);
  font-size: 1.22rem;
  margin: var(--s7) 0 var(--s3);
  color: var(--fg);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--font-d);
  font-size: .95rem;
  margin: var(--s5) 0 var(--s2);
  color: var(--violet-2);
}
.prose p { color: var(--fg-2); font-size: .93rem; line-height: 1.8; margin-bottom: var(--s3); }
.prose a { color: var(--violet-2); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gold); }

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
  padding-bottom: var(--s4);
  margin-bottom: var(--s6);
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
  color: var(--fg-3);
}

/* ---------- 21. Leaderboard ---------------------------------------------- */
.lb {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--g-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lb__row {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s3) var(--s5);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--t) var(--ease);
}
.lb__row:last-child { border-bottom: 0; }
.lb__row:hover { background: var(--surface); }
.lb__row--top { background: linear-gradient(90deg, rgba(232, 196, 108, .12), transparent 60%); }
.lb__rank {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  border-radius: 10px;
  font-family: var(--font-d);
  font-size: .85rem;
  background: var(--surface-2);
  color: var(--fg-3);
}
.lb__rank--1 { background: rgba(232, 196, 108, .18); color: var(--gold); }
.lb__rank--2 { background: rgba(203, 213, 225, .14); color: #cbd5e1; }
.lb__rank--3 { background: rgba(205, 124, 47, .16); color: #e0904a; }
.lb__handle { flex: 1; font-weight: 700; font-size: .92rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lb__score { font-family: var(--font-d); color: var(--violet-2); }
.lb__score small { font-family: var(--font-b); font-size: .7rem; font-weight: 500; color: var(--fg-3); margin-left: 3px; }

/* ---------- 22. Progression path ----------------------------------------- */
.path { display: flex; flex-direction: column; gap: var(--s4); position: relative; }
.path::before {
  content: "";
  position: absolute;
  left: 33px; top: 40px; bottom: 40px;
  width: 2px;
  background: linear-gradient(180deg, var(--violet), rgba(124, 58, 237, .06));
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: var(--s4);
  align-items: center;
  padding: var(--s4) var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--g-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease);
}
.stage:hover { transform: translateX(5px); border-color: var(--line-2); }
.stage--locked { opacity: .55; }

.stage__badge {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(167, 139, 250, .45);
  background: rgba(124, 58, 237, .16);
  font-family: var(--font-d);
  color: var(--violet-2);
}
.stage__badge svg { width: 20px; height: 20px; }
.stage--locked .stage__badge { border-color: var(--line-2); background: var(--surface); color: var(--fg-3); }

.stage__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s3); margin-bottom: var(--s1); }
.stage__head h3 { font-family: var(--font-d); font-size: 1rem; }
.stage__xp { font-size: .74rem; color: var(--fg-3); }
.stage p { font-size: .86rem; color: var(--fg-2); }
.stage p em { font-size: .7rem; color: var(--fg-3); font-style: normal; }

/* ---------- 23. Community posts ------------------------------------------ */
.post { padding: var(--s5); }
.post__head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.post__av { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-family: var(--font-d); font-size: .75rem; color: #fff; flex: none; }
.post__meta { display: flex; flex-direction: column; }
.post__user { font-weight: 700; font-size: .9rem; }
.post__rank { font-size: .72rem; color: var(--fg-3); }
.post__time { margin-left: auto; font-size: .72rem; color: var(--fg-3); }
.post__text { color: var(--fg-2); font-size: .92rem; line-height: 1.72; margin-bottom: var(--s4); }
.post__reacts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }

.react {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 36px;
  padding: .3rem .8rem;
  border-radius: var(--r-full);
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: .82rem;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.react:hover { transform: translateY(-2px); background: var(--surface-2); }
.react[aria-pressed="true"] { border-color: var(--violet-2); background: rgba(124, 58, 237, .18); }
.react:active { transform: scale(.94); }
.react__count { margin-left: auto; font-size: .74rem; color: var(--fg-3); }

/* ---------- 24. Forms ---------------------------------------------------- */
.field { margin-bottom: var(--s4); }
.label { display: block; font-size: .8rem; font-weight: 600; color: var(--fg-2); margin-bottom: var(--s2); }
.label .req { color: var(--rose-2); }

.input,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: .72rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .28);
  color: var(--fg);
  font-size: .95rem;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.textarea { min-height: 132px; resize: vertical; line-height: 1.6; }

.input::placeholder,
.textarea::placeholder { color: var(--fg-3); }

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--violet-2);
  background: rgba(0, 0, 0, .4);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .18);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); }

.help { font-size: .76rem; color: var(--fg-3); margin-top: var(--s2); }
.error {
  display: none;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  color: #fca5a5;
  margin-top: var(--s2);
}
.error svg { width: 14px; height: 14px; }
.error.is-on { display: flex; }

.form-status {
  display: none;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3) var(--s4);
  margin-top: var(--s4);
  border-radius: var(--r-sm);
  border: 1px solid rgba(34, 197, 94, .35);
  background: rgba(34, 197, 94, .1);
  color: #86efac;
  font-size: .86rem;
}
.form-status svg { width: 18px; height: 18px; }
.form-status.is-on { display: flex; animation: panel-in var(--t) var(--ease); }

/* ---------- 25. Age gate ------------------------------------------------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--s4);
  background: rgba(4, 4, 10, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.gate[hidden] { display: none; }

.gate__card {
  width: 100%;
  max-width: 460px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, #16162c, #0c0c18);
  box-shadow: var(--sh-4), var(--glow-violet);
  text-align: center;
  animation: gate-in 460ms var(--ease);
}
@keyframes gate-in { from { opacity: 0; transform: translateY(22px) scale(.96); } }

.gate__badge {
  display: grid;
  place-items: center;
  width: 78px; height: 78px;
  margin: 0 auto var(--s5);
  border-radius: 50%;
  border: 2px solid var(--rose);
  background: rgba(244, 63, 94, .12);
  font-family: var(--font-d);
  font-size: 1.35rem;
  color: var(--rose-2);
  box-shadow: 0 0 40px rgba(244, 63, 94, .3);
}
.gate__title { font-family: var(--font-d); font-size: 1.4rem; margin-bottom: var(--s3); }
.gate__text { color: var(--fg-2); font-size: .9rem; line-height: 1.7; margin-bottom: var(--s4); }
.gate__notice {
  padding: var(--s3) var(--s4);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  background: rgba(245, 158, 11, .08);
  text-align: left;
  font-size: .8rem;
  color: var(--fg-2);
  line-height: 1.6;
  margin-bottom: var(--s5);
}
.gate__actions { display: grid; gap: var(--s3); }
.gate__exit { background: none; border: 0; color: var(--fg-3); font-size: .86rem; font-weight: 600; padding: var(--s2); }
.gate__exit:hover { color: var(--fg); }

/* ---------- 26. Footer --------------------------------------------------- */
.foot {
  position: relative;
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(124, 58, 237, .08), transparent 40%), var(--bg-deep);
}

.foot__glow {
  position: absolute;
  top: -1px; left: 50%;
  width: min(680px, 80%);
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--violet), var(--rose), transparent);
  filter: blur(1px);
}

.foot__main { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.foot__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(140px, 1fr));
  gap: var(--s6) var(--s5);
}
.foot__logo { display: flex; align-items: center; gap: .65rem; margin-bottom: var(--s4); }
.foot__desc { font-size: .87rem; color: var(--fg-2); line-height: 1.7; margin-bottom: var(--s4); max-width: 34ch; }
.foot__col-title { font-family: var(--font-d); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg); margin-bottom: var(--s4); }
.foot__col a {
  display: block;
  padding: .45rem 0;
  min-height: 30px;
  font-size: .87rem;
  color: var(--fg-2);
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.foot__col a:hover { color: var(--violet-2); transform: translateX(3px); }

.foot__compliance { border-top: 1px solid var(--line); padding-block: var(--s6); }
.foot__comp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--s5); }
.foot__comp-grid > div { display: flex; gap: var(--s3); }
.foot__comp-grid svg { width: 20px; height: 20px; flex: none; color: var(--amber); margin-top: 2px; }
.foot__comp-grid strong { display: block; font-size: .82rem; font-weight: 700; margin-bottom: var(--s1); }
.foot__comp-grid p { font-size: .78rem; color: var(--fg-3); line-height: 1.65; }
.foot__comp-grid a { color: var(--violet-2); }

.foot__bottom { border-top: 1px solid var(--line); padding-block: var(--s5); }
.foot__bottom-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); }
.foot__bottom p { font-size: .78rem; color: var(--fg-3); }
.foot__bottom-links { display: flex; gap: var(--s4); }
.foot__bottom-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-inline: 2px;
  font-size: .78rem;
  color: var(--fg-3);
}
.foot__bottom-links a:hover { color: var(--violet-2); }

/* ---------- 27. Responsive ----------------------------------------------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__content { order: 2; }
  .hero__medal { order: 1; width: min(320px, 72vw); }
  .hero__chips, .hero__cta { justify-content: center; }
  .hero__sub { margin-inline: auto; }
  .hero__orbit { display: none; }
  .live, .social-layout { grid-template-columns: 1fr; }
  .show, .show:nth-child(even) .show__art { grid-template-columns: 1fr; order: 0; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --nav-h: 62px; }
  .foot__grid { grid-template-columns: 1fr; }
  .dl__row { grid-template-columns: 1fr; gap: var(--s1); }
  .stage { grid-template-columns: 54px 1fr; padding: var(--s4); }
  .path::before { left: 27px; }
  .show__art { min-height: 200px; }
  .live__stats { gap: var(--s4); }
  .tabs { grid-template-columns: 1fr; }
}

/* ---------- 28. Reduced motion ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .word > span { opacity: 1 !important; transform: none !important; }
  .amb__blob, .hero__medal, .hero__medal::after, .hero__orbit, .show__sigil, .show__rings, .avatar { animation: none !important; }
  .ticker__track { animation: none !important; }
  .btn::after { display: none; }
}

/* ---------- 29. Print ---------------------------------------------------- */
@media print {
  .nav, .ticker, .foot__compliance, .amb, .grain, .progress, .gate { display: none !important; }
  body { background: #fff; color: #000; }
}
