/* =============================================================
   MEME THRONE — stylesheet
   Pure black canvas. Apple glass cards. Bright blue + red accents.
   Heavy display typography for the wordmark.
   Visual cues: Pepe + LEVELS plushie aesthetic from the brief.
   ============================================================= */


/* ─────────────────────────────────────────────────────────────
   01 · TOKENS
   ───────────────────────────────────────────────────────────── */

:root {
  /* Pure black canvas — matches the LEVELS visual brief. */
  --bg:           #000000;
  --surface-1:    #0a0a0c;
  --surface-2:    #14141a;
  --surface-3:    #1c1c24;

  /* Glass — frosted Apple cards on dark backdrop. */
  --glass-bg:     rgba(255, 255, 255, 0.045);
  --glass-bg-2:   rgba(255, 255, 255, 0.07);
  --glass-line:   rgba(255, 255, 255, 0.12);
  --glass-line-2: rgba(255, 255, 255, 0.18);
  --glass-glow:   rgba(255, 255, 255, 0.08);

  /* Text */
  --text:         #ffffff;
  --text-90:      rgba(255, 255, 255, 0.90);
  --text-70:      rgba(255, 255, 255, 0.70);
  --text-50:      rgba(255, 255, 255, 0.50);
  --text-35:      rgba(255, 255, 255, 0.35);

  /* Accents — colors lifted from the LEVELS Pepe creatives. */
  --blue:         #1B7CFF;     /* "MEME" word + glow */
  --blue-deep:    #0F5BD5;
  --blue-soft:    rgba(27, 124, 255, 0.18);
  --red:          #FF3B30;     /* Pepe mouth + neon outlines */
  --red-deep:     #D62A20;
  --red-soft:     rgba(255, 59, 48, 0.15);
  --green:        #2ECC71;     /* Pepe body / live status */
  --gold:         #FFD60A;     /* champion crown */

  /* Type */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;

  /* Measures */
  --container:    1280px;
  --gutter:       clamp(20px, 4.5vw, 56px);
  --section-y:    clamp(72px, 11vh, 140px);
  --header-h:     68px;

  /* Motion */
  --ease-out:     cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-inout:   cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:     220ms;
  --dur-med:      460ms;
  --dur-slow:     800ms;

  /* Glass shadow stack — inner highlight + outer drop */
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 24px 60px -16px rgba(0, 0, 0, 0.7);
}


/* ─────────────────────────────────────────────────────────────
   02 · RESET + BASE
   ───────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  touch-action: manipulation;
  -ms-content-zooming: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-90);
  overflow-x: hidden;
  background: var(--bg);
  min-height: 100vh;
}

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--blue); color: #ffffff; }


/* ─────────────────────────────────────────────────────────────
   03 · BACKGROUND AURA
   Animated radial glows + film grain — the page never looks flat.
   ───────────────────────────────────────────────────────────── */

.bg-aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aura-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  will-change: transform;
}
.aura-blue {
  width: 60vw;
  height: 60vw;
  top: -10vw;
  left: -10vw;
  background: radial-gradient(circle at 50% 50%, var(--blue) 0%, transparent 60%);
  animation: drift-1 22s ease-in-out infinite;
}
.aura-red {
  width: 50vw;
  height: 50vw;
  bottom: -10vw;
  right: -10vw;
  background: radial-gradient(circle at 50% 50%, var(--red) 0%, transparent 60%);
  opacity: 0.22;
  animation: drift-2 28s ease-in-out infinite;
}
@keyframes drift-1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(8vw, 6vh, 0) scale(1.1); }
}
@keyframes drift-2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-6vw, -8vh, 0) scale(0.9); }
}

.aura-grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}


/* ─────────────────────────────────────────────────────────────
   04 · CONTAINER + LAYOUT PRIMITIVES
   ───────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}


/* ─────────────────────────────────────────────────────────────
   05 · TYPOGRAPHY UTILITIES
   ───────────────────────────────────────────────────────────── */

em {
  font-style: italic;
  color: var(--blue);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-70);
  padding: 7px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 var(--red);
  animation: pulse-red 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-red {
  0%   { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.55); }
  60%  { box-shadow: 0 0 0 12px rgba(255, 59, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}


/* ─────────────────────────────────────────────────────────────
   06 · HEADER
   ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--glass-line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-levels { color: var(--text); letter-spacing: 0.06em; font-weight: 700; font-size: 13px; }
.brand-divider { color: var(--text-35); }
.brand-meme { color: var(--blue); }
.brand-throne { color: var(--text); margin-left: 1px; }

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}
.nav a {
  position: relative;
  color: var(--text-70);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.nav-stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-stats .live-dot { width: 6px; height: 6px; }

/* «Играть» pill — primary CTA in the nav, stands out from in-page links */
.nav-play {
  padding: 6px 14px;
  background: var(--blue-soft);
  border: 1px solid rgba(27, 124, 255, 0.45);
  border-radius: 999px;
  color: var(--text) !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-play::after { display: none !important; }
.nav-play:hover { background: var(--blue); color: #fff !important; border-color: var(--blue); }

.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
  border: 1px solid transparent;
}
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-primary {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 24px -6px rgba(27, 124, 255, 0.45);
}
.btn-primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--glass-bg);
  color: var(--text);
  border-color: var(--glass-line);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.btn-ghost:hover {
  background: var(--glass-bg-2);
  border-color: var(--glass-line-2);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--glass-line);
  background: var(--glass-bg);
  border-radius: 999px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--text);
  transition: transform 240ms var(--ease-inout), opacity 240ms var(--ease-out);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0.1); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }


/* Mobile drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  inset-inline: 0;
  bottom: 0;
  z-index: 45;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 32px var(--gutter) 40px;
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms var(--ease-out), transform 480ms var(--ease-inout), visibility 0s linear 320ms;
  overflow-y: auto;
}
.mobile-nav.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 240ms var(--ease-out), transform 360ms var(--ease-inout), visibility 0s linear 0s;
}
.mobile-nav nav { display: flex; flex-direction: column; border-top: 1px solid var(--glass-line); }
.mobile-nav nav a {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: clamp(16px, 2.6vh, 24px) 0;
  font-weight: 700;
  font-size: clamp(28px, 8vw, 44px);
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--glass-line);
  color: var(--text);
  transition: color var(--dur-fast) var(--ease-out), padding-left var(--dur-med) var(--ease-out);
}
.mobile-nav nav a::after {
  content: "→";
  margin-left: auto;
  font-weight: 400;
  font-size: 22px;
  color: var(--text-35);
  transition: color var(--dur-fast), transform var(--dur-med) var(--ease-out);
}
.mobile-nav nav a.mext::after { content: "↗"; color: var(--blue); }
.mobile-nav nav a:active,
.mobile-nav nav a:hover {
  color: var(--blue);
  padding-left: 8px;
}
.mobile-nav .mn-n {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-35);
  flex-shrink: 0;
  padding-top: 12px;
}
body.nav-open { overflow: hidden; }


/* ─────────────────────────────────────────────────────────────
   07 · HERO
   ───────────────────────────────────────────────────────────── */

.hero {
  padding-top: clamp(48px, 7vh, 96px);
  padding-bottom: clamp(72px, 10vh, 120px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hero-copy { min-width: 0; }

.hero-title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 12vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.hero-title .line { display: block; }
.word-meme {
  color: var(--blue);
  text-shadow:
    0 0 1px rgba(27, 124, 255, 0.6),
    0 4px 24px rgba(27, 124, 255, 0.45);
}
.word-throne {
  color: var(--text);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 24px rgba(255, 255, 255, 0.06);
}

.hero-lede {
  max-width: 56ch;
  margin: 0 0 36px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text-70);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1vw, 14px);
  margin-bottom: 36px;
}
.hstat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: var(--glass-shadow);
}
.hstat-n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.hstat-n.highlight { color: var(--blue); }
.hstat-l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-50);
}

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


/* Hero visual — Pepe slot + status card */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.pepe-throne {
  position: relative;
  aspect-ratio: 1;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 60%, rgba(46, 204, 113, 0.12), transparent 60%),
    var(--surface-1);
  border: 1px solid var(--glass-line);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pepe-glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 50% 60%, rgba(255, 59, 48, 0.18), transparent 50%);
  pointer-events: none;
}
.pepe-slot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
/* Placeholder Pepe — flat CSS art until /assets/pepe/throne.gif uploaded */
.pepe-placeholder {
  position: relative;
  width: clamp(120px, 22vw, 200px);
  height: clamp(120px, 22vw, 200px);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #6BC56B 0%, #3E9D3E 70%, #257725 100%);
  box-shadow:
    inset 0 -20px 30px rgba(0, 0, 0, 0.3),
    inset 0 10px 16px rgba(255, 255, 255, 0.15);
}
.pp-eye {
  position: absolute;
  top: 25%;
  left: 22%;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset -4px -4px 6px rgba(0, 0, 0, 0.15);
}
.pp-eye::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 30%;
  width: 35%;
  height: 35%;
  border-radius: 50%;
  background: #000;
}
.pp-eye-r { left: auto; right: 22%; }
.pp-mouth {
  position: absolute;
  bottom: 18%;
  left: 18%;
  right: 18%;
  height: 10%;
  background: var(--red);
  border-radius: 0 0 60% 60% / 0 0 100% 100%;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.2);
}
.pp-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-35);
}

/* GLASS card — generic frosted card class */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--glass-shadow);
}
.card-status { padding: 22px 24px; }
.card-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
  display: block;
}
.card-h {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.card-p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-70);
}


/* ─────────────────────────────────────────────────────────────
   08 · SECTION HEADER
   ───────────────────────────────────────────────────────────── */

.sec-head {
  max-width: 760px;
  margin: 0 0 clamp(40px, 6vh, 64px);
}
.sec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-50);
  margin-bottom: 22px;
}
.sec-kicker::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--red);
}
.sec-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
}
.sec-lede {
  margin: 0;
  max-width: 64ch;
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--text-70);
  line-height: 1.55;
}


/* ─────────────────────────────────────────────────────────────
   09 · HOW (4 cards)
   ───────────────────────────────────────────────────────────── */

.how { padding: var(--section-y) 0; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.how-card {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.how-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-line-2);
}
.how-card.highlight {
  background: linear-gradient(180deg, rgba(255, 59, 48, 0.08) 0%, rgba(255, 59, 48, 0.02) 100%), var(--glass-bg);
  border-color: rgba(255, 59, 48, 0.25);
}
.how-n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--blue);
  font-weight: 600;
}
.how-card.highlight .how-n { color: var(--red); }
.how-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.how-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-70);
}
.how-card strong { color: var(--red); font-weight: 600; }


/* ─────────────────────────────────────────────────────────────
   10 · BRACKET
   ───────────────────────────────────────────────────────────── */

.bracket-section { padding: var(--section-y) 0; }
.bracket {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 56px);
  align-items: stretch;
}
.round {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 16px;
  position: relative;
}
.round-label {
  position: absolute;
  top: -28px;
  left: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-50);
}
.champ-label { color: var(--gold); }

.match {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--glass-shadow);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.match:hover { border-color: var(--blue); background: rgba(27, 124, 255, 0.04); }

.team {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--glass-line);
}
.team:last-child { border-bottom: 0; }
.team .seed {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-35);
  font-weight: 500;
}
.team .t-name { color: var(--text); letter-spacing: -0.01em; }
.team .t-votes {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-50);
  font-variant-numeric: tabular-nums;
}
.team.is-winner .t-name { color: var(--blue); }
.team.is-loser   .t-name { color: var(--text-35); text-decoration: line-through; }

.match-final {
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, rgba(255, 214, 10, 0.06), transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 214, 10, 0.15),
    0 24px 60px -16px rgba(255, 214, 10, 0.18);
}

.round-champ { justify-content: center; }
.champion {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  border-color: var(--gold);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 214, 10, 0.12), transparent 70%),
    var(--glass-bg);
}
.champion-crown { font-size: 38px; line-height: 1; }
.champion-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.champion-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-50);
}


/* ─────────────────────────────────────────────────────────────
   11 · REWARDS
   ───────────────────────────────────────────────────────────── */

.rewards { padding: var(--section-y) 0; }
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.reward-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.reward-card .r-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 4px 10px;
  background: var(--blue-soft);
  border-radius: 999px;
  border: 1px solid rgba(27, 124, 255, 0.3);
}
.reward-card.highlight .r-tag {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgba(255, 59, 48, 0.3);
}
.reward-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.reward-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-70);
}
.reward-card strong { color: var(--text); font-weight: 600; }
.reward-card.highlight strong { color: var(--red); }
.reward-card ul { display: flex; flex-direction: column; gap: 6px; padding-left: 0; }
.reward-card li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-70);
}
.reward-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 600;
}
.reward-card.highlight {
  background:
    linear-gradient(180deg, rgba(255, 59, 48, 0.08), rgba(255, 59, 48, 0.02)),
    var(--glass-bg);
  border-color: rgba(255, 59, 48, 0.25);
}
.r-emphasis {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: auto;
}
.r-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-red 1.6s ease-in-out infinite;
}


/* ─────────────────────────────────────────────────────────────
   12 · RULES STRIP
   ───────────────────────────────────────────────────────────── */

.rules-strip {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--glass-line);
  border-bottom: 1px solid var(--glass-line);
  background:
    linear-gradient(180deg, rgba(27, 124, 255, 0.03), transparent),
    var(--surface-1);
}
.rules-h {
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.025em;
  color: var(--text);
}
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.rules-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-line);
  color: var(--text);
}
.rules-list .r-n {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.7em;
  font-weight: 700;
}


/* ─────────────────────────────────────────────────────────────
   13 · CTA
   ───────────────────────────────────────────────────────────── */

.cta { padding: var(--section-y) 0; text-align: center; }
.cta-wrap {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-h {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}
.cta-h em { color: var(--blue); }
.cta-p {
  margin: 0 0 32px;
  max-width: 50ch;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--text-70);
}
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }


/* ─────────────────────────────────────────────────────────────
   14 · FOOTER
   ───────────────────────────────────────────────────────────── */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--glass-line);
  padding: 56px 0 32px;
  position: relative;
  z-index: 1;
}
.foot-wrap { display: flex; flex-direction: column; gap: 36px; }
.foot-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.02em;
}
.foot-brand .brand-levels { font-size: 0.55em; }
.foot-brand .brand-divider { color: var(--text-35); font-size: 0.6em; }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  padding-top: 32px;
  border-top: 1px solid var(--glass-line);
}
.foot-col { display: flex; flex-direction: column; gap: 14px; }
.foot-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-50);
}
.foot-col ul { display: flex; flex-direction: column; gap: 6px; }
.foot-col li, .foot-col a { font-size: 14px; color: var(--text-70); }
.foot-col a:hover { color: var(--blue); }

.foot-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-35);
  flex-wrap: wrap;
}


/* ─────────────────────────────────────────────────────────────
   15 · RESPONSIVE
   ───────────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .bracket {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .round-label { position: static; margin-bottom: 12px; display: block; }
  .rewards-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .header-meta .btn-ghost { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; }
  .foot-base { flex-direction: column; align-items: flex-start; }
}
