/* ═══════════════════════════════════════════════
   ARENA — League of Sports · Landing
   Dark anime energy · liquid glass · fuego y rayos
   ═══════════════════════════════════════════════ */

:root {
  --bg: #0A0C12;
  --surface: #12161F;
  --neon: #FF6B2C;
  --neon-bright: #FF8A4C;
  --electric: #4AA3FF;
  --gold: #F5C542;
  --cream: #F7F3EA;
  --grass: #1F6B45;
  --text: #EDEAE2;
  --muted: #9BA3B4;
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(255, 255, 255, 0.14);
  --radius: 22px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-comic: 'Bangers', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--neon); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── FX layers ── */
#fx-embers, #fx-lightning {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 1;
}
#fx-lightning { z-index: 2; mix-blend-mode: screen; }

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

/* ── Liquid glass ── */
.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(0,0,0,.25),
    0 12px 40px rgba(0,0,0,.35);
}
.glass::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.10), transparent 40%, transparent 70%, rgba(255,255,255,.04));
  pointer-events: none;
}
.glass-heavy {
  position: relative;
  background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 32px;
  box-shadow: 0 30px 90px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.2);
}

/* ── Type helpers ── */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--neon-bright);
}
.kicker-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px var(--neon), 0 0 30px var(--neon);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { transform: scale(1.6); opacity: .6; } }

.grad-text {
  background: linear-gradient(92deg, var(--neon) 10%, var(--gold) 50%, var(--electric) 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800; line-height: .98; letter-spacing: -.02em;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  padding: 15px 30px; border-radius: 999px;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  cursor: pointer; border: 0;
}
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: scale(.97); }
.btn-neon {
  background: linear-gradient(135deg, var(--neon), var(--neon-bright));
  color: #16080a;
  box-shadow: 0 8px 30px rgba(255,107,44,.45), 0 0 0 1px rgba(255,255,255,.15) inset;
}
.btn-neon:hover { box-shadow: 0 14px 44px rgba(255,107,44,.65); }
.btn-ghost {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); color: var(--text);
}
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-xl { padding: 20px 44px; font-size: 19px; }

/* ── Nav ── */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 50;
  width: min(1180px, calc(100% - 32px));
  display: flex; align-items: center; gap: 28px;
  padding: 10px 18px;
  border-radius: 999px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(255,107,44,.5)); }
.nav-word {
  font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: .06em;
  display: flex; flex-direction: column; line-height: 1;
}
.nav-word em { font-style: normal; font-size: 9px; letter-spacing: .34em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--neon-bright); }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 24px 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 75% 20%, rgba(74,163,255,.16), transparent 65%),
    radial-gradient(55% 60% at 15% 85%, rgba(255,107,44,.20), transparent 60%),
    radial-gradient(40% 40% at 50% 50%, rgba(245,197,66,.05), transparent 70%),
    var(--bg);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 46px, rgba(255,255,255,.025) 46px 47px),
              repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.025) 46px 47px);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.hero-inner {
  width: min(1180px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero-title {
  font-family: var(--font-comic);
  font-size: clamp(84px, 13vw, 190px);
  line-height: .82; letter-spacing: .01em;
  margin: 22px 0;
}
.hero-title .line { display: block; }
.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 3px var(--electric);
  text-shadow: 0 0 34px rgba(74,163,255,.45);
}
.hero-title .grad {
  background: linear-gradient(95deg, var(--neon) 20%, var(--gold) 80%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(255,107,44,.5));
}
.hero-sub { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 480px; }
.hero-sub strong { color: var(--cream); }
.hero-cta { display: flex; gap: 14px; margin: 30px 0 26px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; max-width: 520px; }
.badge { padding: 7px 14px; font-size: 13px; font-weight: 600; border-radius: 999px; }

.hero-art { position: relative; display: flex; justify-content: center; }

/* ── iPhone mockup ── */
.iphone-tilt {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1200px;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.iphone { transform: rotate(3deg); animation: float 6s ease-in-out infinite; }
.iphone-frame {
  position: relative;
  width: min(340px, 80vw);
  aspect-ratio: 9 / 19.3;
  border-radius: 56px;
  padding: 11px;
  background: linear-gradient(155deg, #3c4149 0%, #17191f 28%, #0c0d12 55%, #2c3038 100%);
  box-shadow:
    inset 0 0 0 2px #43484f,
    inset 0 0 4px 2px rgba(255,255,255,.14),
    0 40px 90px rgba(0,0,0,.65),
    0 0 60px rgba(255,107,44,.12);
}
.iphone-screen {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 46px;
  display: block;
}
.dynamic-island {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 30px; border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 4px rgba(255,255,255,.08), 0 1px 2px rgba(0,0,0,.8);
}
.dynamic-island::after {
  content: ''; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1e2a3a, #05070a 70%);
  box-shadow: inset 0 0 2px rgba(74,163,255,.5);
}
.iphone-glare {
  position: absolute; inset: 11px; border-radius: 46px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.16) 0%, transparent 22%, transparent 78%, rgba(255,255,255,.05) 100%);
  mix-blend-mode: screen;
}
.iphone-btn {
  position: absolute; border-radius: 3px;
  background: linear-gradient(90deg, #4a4f57, #1a1c22);
}
.iphone-btn-action { left: -3px; top: 130px; width: 4px; height: 34px; }
.iphone-btn-vol-up { left: -3px; top: 190px; width: 4px; height: 58px; }
.iphone-btn-vol-down { left: -3px; top: 258px; width: 4px; height: 58px; }
.iphone-btn-power { right: -3px; top: 200px; width: 4px; height: 88px; }
.hero-phone-glow {
  position: absolute; inset: -22%;
  background: radial-gradient(50% 50% at 50% 60%, rgba(255,107,44,.32), transparent 70%);
  z-index: -1; filter: blur(30px);
}
@keyframes float { 50% { transform: rotate(3deg) translateY(-16px); } }

.hero-ball {
  position: absolute; width: 84px;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.6)) drop-shadow(0 0 18px rgba(255,138,76,.28));
  transition: translate .3s ease-out;
  will-change: translate;
  -webkit-mask-image: radial-gradient(circle at center, #000 52%, transparent 74%);
  mask-image: radial-gradient(circle at center, #000 52%, transparent 74%);
}
.sport-card[data-sport="hyrox"] .sport-media,
.sport-card[data-sport="hyrox"] video,
.sport-hero video[src*="hyrox"] { object-position: 50% 18%; }

/* Los iconos de deporte llevan glow en la imagen original; fundimos el cuadrado */
.sport-name img {
  -webkit-mask-image: radial-gradient(ellipse at center, #000 42%, rgba(0,0,0,.96) 57%, transparent 77%);
  mask-image: radial-gradient(ellipse at center, #000 42%, rgba(0,0,0,.96) 57%, transparent 77%);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 70%, transparent));
}
.b1 { top: 4%; left: 2%; animation: orbit 7s ease-in-out infinite; }
.b2 { bottom: 8%; right: 0; width: 96px; animation: orbit 9s ease-in-out infinite reverse; }
.b3 { top: 46%; right: 6%; width: 60px; animation: orbit 5.5s ease-in-out infinite; }
@keyframes orbit { 50% { transform: translateY(-22px) rotate(14deg); } }

.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px; border: 2px solid var(--glass-border); border-radius: 14px;
}
.hero-scroll span {
  position: absolute; top: 8px; left: 50%; margin-left: -2px;
  width: 4px; height: 9px; border-radius: 4px; background: var(--neon);
  animation: scroll-hint 1.8s infinite;
}
@keyframes scroll-hint { 60% { transform: translateY(16px); opacity: 0; } 100% { transform: translateY(16px); opacity: 0; } }

/* ── Marquee ── */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(90deg, rgba(255,107,44,.08), rgba(74,163,255,.08));
  padding: 14px 0; position: relative; z-index: 4;
}
.marquee-track { display: inline-flex; animation: marquee 26s linear infinite; }
.marquee-track span {
  font-family: var(--font-comic); font-size: 26px; letter-spacing: .06em;
  color: var(--cream); padding-right: 12px;
  text-shadow: 0 0 18px rgba(255,107,44,.35);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sections ── */
.section { position: relative; z-index: 4; padding: 110px 24px; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.025) 20%, rgba(255,255,255,.025) 80%, transparent); }
.section-head { width: min(1180px, 100%); margin: 0 auto 56px; }
.section-sub { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 620px; margin-top: 18px; }

/* ── Sports grid ── */
.sports-grid {
  width: min(1180px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;
}
.sport-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  aspect-ratio: 3 / 4; cursor: pointer;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s;
  background: var(--surface);
}
.sport-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 40px var(--accent, rgba(255,107,44,.25)); }
.sport-card .sport-media, .sport-card video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.sport-card video { opacity: 0; transition: opacity .5s; }
.sport-card:hover video { opacity: 1; }
.sport-card .sport-media { transition: transform .6s; }
.sport-card:hover .sport-media { transform: scale(1.06); }
.sport-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, transparent 40%, rgba(5,7,14,.88) 92%);
}
.sport-name {
  font-family: var(--font-comic); font-size: 34px; letter-spacing: .03em;
  display: flex; align-items: center; gap: 12px;
}
.sport-name img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.sport-tag { font-size: 13.5px; color: var(--muted); margin-top: 6px; font-weight: 500; }
.sport-cta {
  margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent, var(--neon-bright));
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s, transform .35s;
}
.sport-card:hover .sport-cta { opacity: 1; transform: translateY(0); }
.sport-card.wide { grid-column: span 2; aspect-ratio: 21 / 10; }

/* ── Steps ── */
.steps {
  width: min(1180px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px;
}
.step { padding: 28px; overflow: hidden; }
.step-num {
  font-family: var(--font-comic); font-size: 56px; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(255,138,76,.7);
  margin-bottom: 16px;
}
.step-icon { width: 56px; height: 56px; object-fit: contain; margin-bottom: 16px; filter: drop-shadow(0 6px 16px rgba(255,107,44,.35)); }
.step h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.step-art { margin-top: 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ── Cast ── */
.cast-grid {
  width: min(1180px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px;
}
.cast-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--glass-border);
  aspect-ratio: 1; background: var(--surface);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.cast-card:hover { transform: translateY(-6px) rotate(-1deg); }
.cast-card img { width: 100%; height: 100%; object-fit: cover; }
.cast-info {
  position: absolute; inset: auto 0 0; padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(5,7,14,.92));
}
.cast-info h4 { font-family: var(--font-comic); font-size: 24px; letter-spacing: .04em; }
.cast-info p { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.buddies {
  width: min(1180px, 100%); margin: 22px auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px;
}
.buddy { display: flex; align-items: center; gap: 18px; padding: 18px 22px; }
.buddy img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(74,163,255,.35)); }
.buddy h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.buddy p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ── Ranking ── */
.ranking-section { overflow: hidden; }
.ranking-bg {
  position: absolute; inset: 0; z-index: 0; opacity: .3;
  background: url('assets/misc/bg-ranking-live.webp') center/cover;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.ranking-section .section-head,
.ranking-section .divisions,
.ranking-section .trophies { position: relative; z-index: 1; }
.divisions {
  width: min(1080px, 100%); margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.division {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 22px; min-width: 128px;
  transition: transform .3s;
}
.division:hover { transform: translateY(-6px) scale(1.05); }
.division img { width: 72px; height: 72px; object-fit: contain; }
.division span { font-family: var(--font-comic); font-size: 22px; letter-spacing: .08em; }
.division-arrow { font-size: 22px; color: var(--electric); text-shadow: 0 0 14px var(--electric); }
.div-a { border-color: rgba(245,197,66,.5); box-shadow: 0 0 44px rgba(245,197,66,.25), inset 0 1px 0 rgba(255,255,255,.2); }
.div-a span { color: var(--gold); }
.trophies {
  display: flex; justify-content: center; align-items: flex-end; gap: 34px;
  margin-top: 54px;
}
.trophies img { width: 88px; filter: drop-shadow(0 14px 28px rgba(0,0,0,.55)); transition: transform .3s; }
.trophies img:hover { transform: translateY(-8px) scale(1.06); }
.trophies .trophy-gold { width: 124px; filter: drop-shadow(0 0 34px rgba(245,197,66,.45)); }

/* ── Features ── */
.features-grid {
  width: min(1180px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px;
}
.feature {
  position: relative; overflow: hidden; padding: 30px; min-height: 190px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.feature::after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--bg);
  background-size: cover; background-position: center;
  opacity: .42; transition: opacity .4s, transform .6s;
}
.feature:hover::after { opacity: .62; transform: scale(1.05); }
.feature > * { position: relative; z-index: 1; }
.feature h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); line-height: 1.6; max-width: 340px; }
.feature-icon { position: absolute; top: 22px; right: 22px; width: 52px; height: 52px; object-fit: contain; }

/* ── Países ── */
.waves {
  width: min(1180px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;
}
.wave { padding: 30px; }
.wave-tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .2em;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.wave-tag.live { background: rgba(255,107,44,.18); color: var(--neon-bright); border: 1px solid rgba(255,107,44,.45); box-shadow: 0 0 20px rgba(255,107,44,.25); animation: pulse 2.4s infinite; }
.wave-tag.soon { background: rgba(74,163,255,.14); color: var(--electric); border: 1px solid rgba(74,163,255,.35); }
.wave-countries { display: flex; flex-direction: column; gap: 20px; }
.country { display: grid; grid-template-columns: 54px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; }
.country .flag { grid-row: span 2; font-size: 46px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.country h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.country p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.wave-flags { font-size: 42px; letter-spacing: .2em; margin-bottom: 16px; }
.wave > p { color: var(--muted); font-size: 14.5px; }

/* ── Privacidad ── */
.privacy-grid {
  width: min(1180px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px;
}
.priv { padding: 26px; }
.priv-icon { font-size: 34px; display: block; margin-bottom: 14px; }
.priv h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.priv p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.privacy-links { width: min(1180px, 100%); margin: 30px auto 0; display: flex; gap: 14px; flex-wrap: wrap; }

/* ── CTA final ── */
.cta-final { padding-bottom: 140px; }
.cta-card {
  width: min(880px, 100%); margin: 0 auto;
  text-align: center; padding: 70px 40px;
}
.cta-logo { width: 110px; margin: 0 auto 26px; filter: drop-shadow(0 0 30px rgba(255,107,44,.5)); }
.cta-card p { color: var(--muted); font-size: 17px; margin: 20px auto 30px; max-width: 460px; line-height: 1.6; }
.cta-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-note { margin-top: 24px !important; font-size: 13px !important; opacity: .8; }

/* ── Footer ── */
.footer { position: relative; z-index: 4; border-top: 1px solid rgba(255,255,255,.08); padding: 60px 24px 34px; background: rgba(0,0,0,.3); }
.footer-inner {
  width: min(1180px, 100%); margin: 0 auto 44px;
  display: flex; gap: 60px; flex-wrap: wrap;
}
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand img { width: 58px; }
.footer-brand p { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.5; }
.footer-brand span { color: var(--neon-bright); font-size: 12px; letter-spacing: .3em; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.footer-col a { font-size: 14.5px; color: var(--text); opacity: .85; transition: color .2s, opacity .2s; }
.footer-col a:hover { color: var(--neon-bright); opacity: 1; }
.footer-copy { text-align: center; font-size: 13px; color: var(--muted); }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-badges { justify-content: center; }
  .hero-cta { justify-content: center; }
  .nav-links { display: none; }
  .sport-card.wide { grid-column: span 1; aspect-ratio: 3/4; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Legal pages ── */
.legal-main { position: relative; z-index: 4; width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 150px 0 90px; }
.legal-main h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px); font-weight: 800; margin-bottom: 8px; }
.legal-main .legal-date { color: var(--neon-bright); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 40px; }
.legal-main h2 { font-size: 26px; margin: 44px 0 14px; }
.legal-main p, .legal-main li { color: var(--muted); line-height: 1.75; font-size: 15.5px; }
.legal-main ul { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.legal-main strong { color: var(--cream); }
.legal-main a { color: var(--electric); text-decoration: underline; }
.legal-card { padding: 34px; margin-bottom: 26px; }
.legal-back { display: inline-block; margin-bottom: 30px; }

/* ── Sport detail pages ── */
.sport-hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; }
.sport-hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.1);
}
.sport-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,18,.55) 0%, rgba(10,12,18,.15) 35%, rgba(10,12,18,.92) 88%),
              radial-gradient(70% 60% at 50% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
}
.sport-hero-inner { position: relative; z-index: 2; width: min(1180px, 100%); margin: 0 auto; padding: 140px 24px 64px; }
.sport-title {
  font-family: var(--font-comic); font-size: clamp(64px, 10vw, 130px); line-height: .9;
  display: flex; align-items: center; gap: 22px; margin: 18px 0;
  text-shadow: 0 8px 40px rgba(0,0,0,.7);
}
.sport-title-ball { width: clamp(64px, 9vw, 110px); height: auto; filter: drop-shadow(0 10px 26px rgba(0,0,0,.6)); }
.sport-tagline { font-size: 19px; color: var(--muted); max-width: 560px; margin-bottom: 24px; }

.rank-table { width: min(860px, 100%); margin: 0 auto; overflow: hidden; }
.rank-row {
  display: grid; grid-template-columns: 72px 1fr 90px 100px 100px;
  align-items: center; gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: 15px; font-weight: 600;
}
.rank-row:last-child { border-bottom: 0; }
.rank-head { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.rank-pos { font-family: var(--font-comic); font-size: 22px; display: flex; align-items: center; gap: 6px; }
.rank-trophy { width: 30px; height: 30px; object-fit: contain; }
.rank-div { width: 34px; height: 34px; object-fit: contain; }
.rank-pts { font-family: var(--font-display); font-weight: 800; color: var(--gold); text-align: right; }
@media (max-width: 640px) { .rank-row { grid-template-columns: 48px 1fr 60px 80px 70px; padding: 12px 14px; font-size: 13.5px; } }

.community-card {
  width: min(980px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden;
}
.community-card img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.community-text { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.community-text h3 { font-family: var(--font-comic); font-size: 40px; letter-spacing: .03em; }
.community-text p { color: var(--muted); line-height: 1.6; }
.community-text .btn { align-self: flex-start; }
@media (max-width: 760px) { .community-card { grid-template-columns: 1fr; } }

/* ── Community gallery (main page) ── */
.gallery-grid {
  width: min(1180px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
}
.gallery-grid figure {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--glass-border); aspect-ratio: 4/5; margin: 0;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.gallery-grid figure:hover { transform: translateY(-6px) rotate(1deg); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid figure:nth-child(2n) { transform: rotate(-1.2deg); }
.gallery-grid figure:nth-child(2n):hover { transform: translateY(-6px) rotate(0deg); }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0; padding: 14px 16px;
  font-size: 12.5px; font-weight: 600; color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(5,7,14,.9));
}

.sport-card-link { display: block; color: inherit; }
