/* ══════════════════════════════════════════════
   DZESPORTS — style.css
   All colors via CSS variables from injectCSSVars()
   ══════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-ui); }
input, select, textarea { font-family: var(--font-ui); }

/* ── CSS VARIABLE DEFAULTS (overridden by injectCSSVars) ── */
:root {
  --bg: #060810; --bg2: #0a0d16; --bg3: #0f1320;
  --surface: #111827; --surface2: #1a2234; --border: #1e2d45;
  --text: #e8eaf0; --text-dim: #8896aa; --cyan: #00f5d4; --white: #ffffff;
  --val: #ff4655; --lol: #fed557; --rl: #55badd; --r6: #a0a0a0; --cs: #fbac26;
  --font-display: 'Exo 2', sans-serif;
  --font-ui: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

/* Scroll margin for fixed nav */
section[id] { scroll-margin-top: 80px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 2px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroLogoIn { from { opacity: 0; transform: scale(0.8); } to { opacity: .9; transform: scale(1); } }
@keyframes floatLogo { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes rotateSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-8px); } 40% { transform: translateX(8px); }
  60% { transform: translateX(-8px); } 80% { transform: translateX(8px); }
}
@keyframes staggerFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scanline { 0% { transform: translateY(-100%); } 100% { transform: translateY(100vh); } }
@keyframes borderGlow { 0%,100% { box-shadow: 0 0 10px rgba(0,245,212,.3); } 50% { box-shadow: 0 0 30px rgba(0,245,212,.7), 0 0 60px rgba(0,245,212,.3); } }
@keyframes partnersScroll { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes progressBar { from { width: 0; } to { width: 60%; } }
@keyframes loaderFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── SECTION DIVIDER ── */
.section-divider { height: 1px; background: linear-gradient(to right, transparent, var(--border), transparent); margin: 0 40px; }

/* ── EMPTY STATE ── */
.empty-state {
  padding: 60px; text-align: center;
  font-family: var(--font-mono); font-size: .8rem;
  color: var(--text-dim); letter-spacing: .2em;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cyan); color: var(--bg);
  padding: 14px 28px; font-weight: 700; font-size: .9rem; letter-spacing: .15em; text-transform: uppercase;
  border: none; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: all .25s ease; font-family: var(--font-ui);
}
.btn-primary:hover { background: var(--white); transform: translateY(-2px); box-shadow: 0 0 30px rgba(0,245,212,.5); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  padding: 14px 28px; font-weight: 700; font-size: .9rem; letter-spacing: .15em; text-transform: uppercase;
  border: 1px solid var(--border); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: all .25s ease; font-family: var(--font-ui);
}
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

/* ── FORM INPUTS ── */
.form-input {
  width: 100%; background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 10px 14px; outline: none; font-family: var(--font-ui); font-size: .95rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: border-color .2s ease;
}
.form-input:focus { border-color: var(--cyan); }
select.form-input option { background: #0a0d16; color: #e8eaf0; }
textarea.form-input { resize: vertical; min-height: 80px; }

/* ── SECTION LAYOUT ── */
section { padding: 100px 40px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag { font-family: var(--font-mono); font-size: .75rem; color: var(--cyan); letter-spacing: .35em; text-transform: uppercase; margin-bottom: 12px; display: block; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.02em; }
.section-sub { font-size: .95rem; color: var(--text-dim); margin-top: 10px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ── PAGE LOADER ── */
#pageLoader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
  transition: opacity .4s ease;
}
#pageLoader.fade-out { opacity: 0; pointer-events: none; }
.loader-brand {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 900;
  letter-spacing: .15em; color: var(--cyan);
  text-shadow: 0 0 40px rgba(0,245,212,.4);
}
.loader-bar-wrap {
  width: 200px; height: 2px; background: var(--border);
}
.loader-bar {
  height: 100%; background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: progressBar .8s ease forwards;
}
.loader-sub { font-family: var(--font-mono); font-size: .7rem; color: var(--text-dim); letter-spacing: .3em; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 70px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 40px;
  background: rgba(6,8,16,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: all .3s ease;
}
nav.scrolled { background: rgba(6,8,16,.98); border-bottom-color: rgba(0,245,212,.3); }
.nav-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .1em; }
.nav-logo img { height: 36px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); transition: color .2s ease; position: relative; font-family: var(--font-ui);
}
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--cyan); transition: width .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }
.nav-links a:hover::after, .nav-links a.active::after { width: 60%; }
.nav-cta { margin-left: 16px; }
.nav-cta a {
  padding: 10px 22px; background: transparent; border: 1px solid var(--cyan); color: var(--cyan);
  font-size: .8rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: all .2s ease; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui);
}
.nav-cta a:hover { background: var(--cyan); color: var(--bg); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); transition: all .3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV OVERLAY ── */
#mobileNavOverlay {
  position: fixed; inset: 0; z-index: 999; background: rgba(6,8,16,.98);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 80px 40px;
}
#mobileNavOverlay.open { display: flex; }
#mobileNavOverlay a {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim); padding: 12px 24px;
  transition: color .2s ease; opacity: 0; animation: staggerFadeUp .4s ease forwards;
}
#mobileNavOverlay a:hover, #mobileNavOverlay a.active { color: var(--cyan); }
#mobileNavOverlay .mobile-discord-link { color: var(--cyan); font-size: 1.2rem; margin-top: 16px; }

/* ── BACK TO TOP ── */
#backToTop {
  position: fixed; bottom: 30px; left: 30px; z-index: 500;
  background: var(--surface); border: 1px solid var(--cyan); color: var(--cyan);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  font-size: 1.1rem; cursor: pointer; font-family: var(--font-mono);
  opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .2s ease;
}
#backToTop.visible { opacity: 1; pointer-events: auto; }
#backToTop:hover { background: var(--cyan); color: var(--bg); transform: translateY(-2px); }

/* ── HERO ── */
#home {
  min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden;
  padding: 120px 40px 80px; gap: 40px;
}
#heroParticles {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,245,212,.06) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(255,70,85,.05) 0%, transparent 60%);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(30,45,69,.3) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(30,45,69,.3) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-scanline { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.hero-scanline::after {
  content: ''; position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(transparent, rgba(0,245,212,.1), transparent);
  animation: scanline 8s linear infinite;
}
.hero-content { position: relative; z-index: 2; flex: 1; max-width: 680px; }
.hero-eyebrow { font-family: var(--font-mono); font-size: .8rem; color: var(--cyan); letter-spacing: .3em; margin-bottom: 20px; opacity: .8; }
.hero-title { font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 7rem); font-weight: 900; line-height: .95; margin-bottom: 24px; letter-spacing: -.02em; }
.hero-title .dz { color: var(--cyan); text-shadow: 0 0 40px rgba(0,245,212,.5); }
.hero-title .es { color: var(--text); }
.hero-tagline { font-family: var(--font-mono); font-size: .85rem; color: var(--text-dim); letter-spacing: .25em; margin-bottom: 24px; }
.hero-desc { font-size: 1.05rem; color: var(--text-dim); max-width: 520px; line-height: 1.7; margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: var(--cyan); display: block; line-height: 1; }
.stat-label { font-size: .72rem; color: var(--text-dim); letter-spacing: .2em; text-transform: uppercase; font-family: var(--font-mono); margin-top: 4px; display: block; }
.hero-visual {
  position: absolute; z-index: 1;
  right: -60px; top: 0; bottom: 0;
  width: 55%; display: flex; align-items: center; justify-content: flex-end;
  pointer-events: none;
}
.hero-logo-wrap {
  position: relative;
  animation: floatLogo 4s ease-in-out infinite;
  /* square container sized to the logo height so ring centers perfectly */
  height: 85vh; max-height: 780px; min-height: 400px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-logo-img {
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: .18;
  animation: heroLogoIn .8s ease forwards;
  filter: drop-shadow(0 0 80px rgba(0,245,212,.12));
  position: relative; z-index: 1;
}
.hero-logo-ring {
  position: absolute; inset: 0;
  border-radius: 50%; border: 1px solid rgba(0,245,212,.1);
  animation: rotateSlow 20s linear infinite;
  z-index: 0;
}
.hero-logo-ring::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 12px var(--cyan);
}
.hero-logo-glow {
  position: absolute; inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,245,212,.08) 0%, transparent 65%);
  z-index: 0;
}

/* ── GAMES ── */
#games { padding: 100px 40px; }
.games-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.game-card {
  position: relative; background: var(--surface); overflow: hidden; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: all .3s ease; padding: 40px 24px; text-align: center;
  border-bottom: 3px solid transparent;
}
.game-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; width: 3px; height: 0;
  background: var(--game-color); transition: height .3s ease;
}
.game-card:hover { transform: translateY(-4px); border-bottom-color: var(--game-color); background: var(--surface2); }
.game-card:hover::before { height: 100%; }
.game-card-logo { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 20px; transition: transform .3s ease; }
.game-card:hover .game-card-logo { transform: scale(1.1); }
.game-card-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; letter-spacing: .05em; margin-bottom: 6px; color: var(--text); }
.game-card-genre { font-family: var(--font-mono); font-size: .7rem; color: var(--text-dim); letter-spacing: .2em; text-transform: uppercase; }
.game-card-accent { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--game-color); opacity: .6; }

/* ── PARTNERS BAND ── */
#partners { padding: 0; }
.partners-band {
  background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  position: relative;
}
.partners-header {
  text-align: center; padding: 12px 0 0;
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .4em;
  color: var(--text-dim); text-transform: uppercase; opacity: .5;
}
.partners-stage {
  position: relative; width: 100%; height: 110px; overflow: hidden;
}
/* fade edges */
.partners-stage::before,
.partners-stage::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.partners-stage::before { left: 0; background: linear-gradient(to right, var(--bg2), transparent); }
.partners-stage::after  { right: 0; background: linear-gradient(to left,  var(--bg2), transparent); }
.partner-item {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 40px; height: 110px; position: absolute; top: 0;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.partner-item::after {
  content: ''; position: absolute; bottom: 0; left: 15%; right: 15%; height: 2px;
  background: var(--partner-color, var(--cyan)); transform: scaleX(0);
  transition: transform .3s ease; transform-origin: center;
}
.partner-item:hover::after { transform: scaleX(1); }
.partner-logo {
  height: 52px; width: auto; max-width: 160px; object-fit: contain;
  opacity: 0.7; transition: opacity .3s ease;
}
.partner-item:hover .partner-logo { opacity: 1; }
.partner-name-fallback {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  letter-spacing: .1em; color: var(--text-dim); text-transform: uppercase;
  transition: color .3s ease;
}
.partner-item:hover .partner-name-fallback { color: var(--cyan); }
.partner-tier-dot {
  position: absolute; top: 10px; right: 10px; width: 6px; height: 6px; border-radius: 50%;
}
.partners-empty {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 110px;
  font-family: var(--font-mono); font-size: .75rem; color: var(--text-dim); letter-spacing: .2em;
}

/* ── TOURNAMENTS ── */
#tournaments {
  padding: 100px 40px; background: var(--bg2);
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 20px,
    rgba(255,255,255,.02) 20px, rgba(255,255,255,.02) 21px
  );
}
.tour-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; justify-content: center; }
.filter-btn {
  padding: 8px 20px; background: transparent; border: 1px solid var(--border); color: var(--text-dim);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  cursor: pointer; transition: all .2s ease;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.filter-btn:hover, .filter-btn.active { background: var(--cyan); color: var(--bg); border-color: var(--cyan); }
#tourGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tour-card {
  background: var(--surface); overflow: hidden; position: relative;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  border: 1px solid var(--border); transition: all .3s ease;
}
.tour-card:hover { transform: translateY(-4px); border-color: var(--game-color); }
.tour-banner {
  height: 110px; position: relative; overflow: hidden; background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
}
.tour-banner img.tour-banner-img { width: 100%; height: 100%; object-fit: cover; }
.tour-banner-logo { width: 80px; height: 80px; object-fit: contain; opacity: .4; }
/* CSS-only generated banner */
.tour-banner-generated {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative;
}
.tour-banner-watermark {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 900;
  letter-spacing: .1em; text-transform: uppercase; opacity: .08; user-select: none;
}
.tour-champion-strip {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.9));
}
.tour-champion-name { font-family: var(--font-display); font-size: .85rem; font-weight: 700; color: #fbbf24; }
.tour-mvp-name { font-family: var(--font-mono); font-size: .72rem; color: var(--text-dim); margin-top: 2px; }
.tour-body { padding: 14px; }
.tour-status-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tour-name { font-family: var(--font-display); font-size: .88rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.status-badge {
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase;
  padding: 4px 10px;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}
.status-live { background: rgba(220,38,38,.2); color: #f87171; border: 1px solid #f87171; animation: pulse 2s infinite; }
.status-upcoming { background: rgba(0,245,212,.1); color: var(--cyan); border: 1px solid rgba(0,245,212,.3); }
.status-completed { background: rgba(251,188,38,.1); color: #fbbf24; border: 1px solid rgba(251,188,38,.3); }
.game-badge {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; background: rgba(0,0,0,.3); border: 1px solid var(--game-color); color: var(--game-color);
}
.tour-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.tour-meta-item { background: var(--bg2); padding: 7px; text-align: center; }
.tour-meta-label { font-family: var(--font-mono); font-size: .6rem; color: var(--text-dim); letter-spacing: .15em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.tour-meta-value { font-family: var(--font-display); font-size: .78rem; font-weight: 700; color: var(--text); }
.tour-bracket-btn {
  display: block; width: 100%; text-align: center; padding: 8px;
  background: rgba(0,245,212,.1); color: var(--cyan); border: 1px solid rgba(0,245,212,.3);
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
  transition: all .2s ease; cursor: pointer;
}
.tour-bracket-btn:hover { background: rgba(0,245,212,.2); }

/* ── CHAMPIONS ── */
#champions { padding: 100px 40px; }
#championsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── HOF CARD ── */
.hof-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: default;
}
.hof-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--game-color); z-index: 3;
}
.hof-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.hof-pending { opacity: .65; }

/* Banner */
.hof-banner {
  height: 180px; position: relative; overflow: hidden;
}
.hof-banner-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hof-banner-fallback {
  position: absolute; inset: 0;
}
.hof-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.2) 0%, rgba(0,0,0,.55) 100%);
  z-index: 1;
}
.hof-game-tag {
  position: absolute; top: 10px; left: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  background: rgba(0,0,0,.6); color: var(--game-color);
  border: 1px solid var(--game-color); padding: 3px 8px;
  backdrop-filter: blur(4px);
}
.hof-prize {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em;
  background: rgba(0,0,0,.6); color: #fbbf24;
  border: 1px solid #fbbf2466; padding: 3px 8px;
  backdrop-filter: blur(4px);
}

/* Player / logo image */
.hof-img-wrap {
  width: 75%; height: 120px;
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 0;
  z-index: 3; background: none;
  overflow: hidden;
}
.hof-img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.6) 60%, transparent 100%); mask-image: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.6) 60%, transparent 100%); }
.hof-img-placeholder {
  display: flex; align-items: flex-end; justify-content: center;
  font-size: 2.5rem; background: none; padding-bottom: 8px;
}
.hof-placeholder-icon { filter: grayscale(1); opacity: .5; }

/* Body */
.hof-body {
  padding: 18px 20px 22px; text-align: center; position: relative; z-index: 2;
}
.hof-winner {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 900;
  color: var(--text); letter-spacing: .02em; margin-bottom: 4px;
}
.hof-pending .hof-winner { color: var(--text-dim); }
.hof-subtitle {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em;
  color: var(--game-color); text-transform: uppercase; margin-bottom: 8px;
}
.hof-title {
  font-family: var(--font-mono); font-size: .65rem; color: var(--text-dim);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px;
  padding: 0 10px;
}
.hof-date {
  font-family: var(--font-mono); font-size: .6rem; color: var(--text-dim);
  opacity: .6; margin-top: 4px;
}

/* Glow overlay */
.hof-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0; transition: opacity .3s ease;
}
.hof-card:hover .hof-glow { opacity: 1; }


/* ── NEWS ── */
#news { padding: 100px 40px; background: var(--bg2); }
#newsGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.news-featured {
  background: var(--surface); position: relative;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  border: 1px solid var(--border); overflow: hidden; transition: border-color .3s;
}
/* Glowing left border on featured */
.news-featured::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--cyan);
  box-shadow: 0 0 15px rgba(0,245,212,.6), 0 0 30px rgba(0,245,212,.3);
}
.news-featured:hover { border-color: var(--cyan); }
.news-featured-banner {
  height: 240px; background: var(--surface2); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.news-featured-banner img { width: 100%; height: 100%; object-fit: cover; }
.news-banner-placeholder { font-family: var(--font-mono); font-size: .75rem; color: var(--text-dim); letter-spacing: .2em; opacity: .4; }
.news-featured-body { padding: 28px; }
.news-tag {
  display: inline-block; padding: 4px 12px; font-family: var(--font-mono); font-size: .65rem;
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px;
  background: rgba(0,245,212,.1); color: var(--cyan); border: 1px solid rgba(0,245,212,.3);
}
.news-featured-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.news-featured-excerpt { color: var(--text-dim); font-size: .9rem; line-height: 1.6; margin-bottom: 16px; }
.news-featured-date { font-family: var(--font-mono); font-size: .7rem; color: var(--text-dim); letter-spacing: .1em; }
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 8px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  border: 1px solid var(--border); transition: all .25s ease; cursor: pointer;
}
.news-item:hover { border-color: var(--item-color, var(--cyan)); background: var(--surface2); transform: translateX(4px); }
.news-item-tag {
  display: inline-block; padding: 2px 8px; font-family: var(--font-mono); font-size: .6rem;
  letter-spacing: .15em; text-transform: uppercase; width: fit-content;
  background: rgba(0,0,0,.3); border: 1px solid var(--item-color, var(--cyan)); color: var(--item-color, var(--cyan));
}
.news-item-title { font-family: var(--font-display); font-size: .9rem; font-weight: 700; line-height: 1.3; }
.news-item-date { font-family: var(--font-mono); font-size: .65rem; color: var(--text-dim); }

/* ── MEDIA ── */
#media { padding: 100px 40px; }
#mediaGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.media-cell {
  position: relative; overflow: hidden; background: var(--surface2); cursor: pointer; aspect-ratio: 16/9;
}
.media-cell:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 300px; }
.media-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.media-cell:hover img { transform: scale(1.05); }
.media-iframe-wrap { width: 100%; height: 100%; position: relative; }
.media-iframe-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.media-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--surface2), var(--bg3));
}
.media-placeholder-label { font-family: var(--font-mono); font-size: .7rem; color: var(--text-dim); letter-spacing: .2em; text-align: center; padding: 0 12px; }
.media-placeholder-bar { width: 40px; height: 2px; background: var(--game-color, var(--cyan)); opacity: .5; }
.media-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--game-color, var(--cyan));
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.media-cell:hover .media-overlay { opacity: 1; }
.media-expand { display: none; }
.media-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .15em; color: var(--text-dim);
  transform: translateY(100%); transition: transform .3s ease;
}
.media-cell:hover .media-caption { transform: translateY(0); }

/* ── ABOUT ── */
#about { padding: 100px 40px; background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.about-logo-wrap { position: relative; }
.about-logo-wrap img { width: 220px; height: 220px; object-fit: contain; opacity: .8; margin: 0 auto; }
.about-hex {
  position: absolute; inset: -40px; border: 1px solid rgba(0,245,212,.1);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: rotateSlow 30s linear infinite;
}
.about-hex2 {
  position: absolute; inset: -20px; border: 1px solid rgba(0,245,212,.08);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: rotateSlow 20s linear infinite reverse;
}
.about-tag { font-family: var(--font-mono); font-size: .75rem; color: var(--cyan); letter-spacing: .3em; margin-bottom: 16px; display: block; }
.about-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 900; margin-bottom: 20px; line-height: 1.2; }
.about-text { color: var(--text-dim); line-height: 1.8; font-size: .95rem; margin-bottom: 28px; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-fact { padding: 16px; background: var(--surface); border-left: 3px solid var(--cyan); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.about-fact-label { font-family: var(--font-mono); font-size: .65rem; letter-spacing: .2em; color: var(--text-dim); display: block; margin-bottom: 4px; }
.about-fact-value { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--cyan); }

/* ── COMMUNITY ── */
#community { padding: 100px 40px; }
.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.discord-widget {
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.discord-header {
  background: #5865f2; padding: 16px 20px; display: flex; align-items: center; gap: 12px;
}
.discord-header svg { flex-shrink: 0; }
.discord-server-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: #fff; }
.discord-online {
  font-size: .75rem; color: rgba(255,255,255,.75); font-family: var(--font-mono);
  display: flex; align-items: center; gap: 5px; margin-top: 2px;
}
.discord-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #23d160;
  box-shadow: 0 0 6px #23d160; flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
/* Total members badge pushed to the right */
.discord-total-badge {
  margin-left: auto; text-align: center; background: rgba(0,0,0,.25);
  padding: 6px 12px; border-radius: 4px; flex-shrink: 0;
}
.discord-total-num {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 900;
  color: #fff; display: block; line-height: 1;
}
.discord-total-label {
  font-family: var(--font-mono); font-size: .55rem; letter-spacing: .15em;
  text-transform: uppercase; color: rgba(255,255,255,.6); display: block; margin-top: 2px;
}
/* Member list */
.dc-members-list {
  padding: 12px 0; max-height: 260px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.dc-members-list::-webkit-scrollbar { width: 3px; }
.dc-members-list::-webkit-scrollbar-thumb { background: var(--border); }
.dc-member {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 16px; transition: background .15s;
}
.dc-member:hover { background: rgba(0,245,212,.04); }
.dc-member-avatar-wrap { position: relative; flex-shrink: 0; }
.dc-member-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  background: var(--surface2); display: block;
}
.dc-member-initials {
  display: flex; align-items: center; justify-content: center;
  background: #5865f2; color: #fff;
  font-family: var(--font-display); font-size: .9rem; font-weight: 700;
}
.dc-member-status {
  position: absolute; bottom: 0; right: 0;
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--surface);
}
.dc-member-info { flex: 1; min-width: 0; }
.dc-member-name {
  font-family: var(--font-display); font-size: .85rem; font-weight: 600;
  color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dc-member-activity {
  font-family: var(--font-mono); font-size: .62rem; color: var(--text-dim);
  letter-spacing: .05em; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
.dc-empty {
  padding: 20px 16px; font-family: var(--font-mono); font-size: .72rem;
  color: var(--text-dim); letter-spacing: .1em; text-align: center;
}
.discord-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.discord-join-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px;
  background: #5865f2; color: #fff; font-family: var(--font-ui); font-weight: 700;
  font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; border: none; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: background .2s ease;
}
.discord-join-btn:hover { background: #4752c4; }
.community-text .section-tag { text-align: left; }
.community-text .section-title { text-align: left; }
.community-desc { color: var(--text-dim); line-height: 1.7; margin-top: 16px; margin-bottom: 32px; }
.community-perks { display: flex; flex-direction: column; gap: 12px; }
.perk-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px; background: var(--surface); border-left: 2px solid var(--cyan); }
.perk-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.perk-text { font-size: .9rem; color: var(--text-dim); line-height: 1.5; }
.perk-text strong { color: var(--text); display: block; font-family: var(--font-display); font-size: .95rem; margin-bottom: 2px; }

/* ── CONTACT ── */
#contact { padding: 100px 40px; background: var(--bg2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 40px; }
.social-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.social-card {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: all .25s ease;
}
.social-card:hover { border-color: var(--social-color); transform: translateY(-2px); background: var(--surface2); }
.social-icon {
  flex-shrink: 0; width: 20px; height: 20px; color: var(--social-color, var(--cyan));
  display: flex; align-items: center; justify-content: center;
}
.social-icon svg { width: 20px; height: 20px; }
.social-card-name { font-family: var(--font-display); font-size: .9rem; font-weight: 700; }
.social-card-label { font-family: var(--font-mono); font-size: .65rem; color: var(--text-dim); letter-spacing: .1em; }
.contact-form {
  background: var(--surface); padding: 32px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  border: 1px solid var(--border);
}
.contact-form-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; color: var(--cyan); }
.form-group { margin-bottom: 16px; }
.form-label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em; color: var(--text-dim); display: block; margin-bottom: 6px; text-transform: uppercase; }
.form-success {
  padding: 12px; background: rgba(0,245,212,.1); border: 1px solid rgba(0,245,212,.3);
  color: var(--cyan); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em;
  display: none; margin-top: 12px;
}

/* ── FOOTER ── */
footer {
  background: var(--bg3); padding: 60px 40px 30px;
  border-top: 1px solid var(--cyan);
  box-shadow: 0 -4px 20px rgba(0,245,212,.1);
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand img { height: 48px; width: auto; object-fit: contain; }
.footer-brand-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 900; letter-spacing: .1em; margin-top: 14px; margin-bottom: 8px; }
.footer-brand-desc { font-size: .85rem; color: var(--text-dim); line-height: 1.6; max-width: 260px; }
.footer-col-title { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .85rem; color: var(--text-dim); transition: color .2s ease; }
.footer-links a:hover { color: var(--text); }
.footer-game-logos { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-game-logo { width: 28px; height: 28px; object-fit: contain; opacity: .4; transition: opacity .2s ease; cursor: pointer; }
.footer-game-logo:hover { opacity: 1; }
/* Newsletter */
.footer-newsletter { margin-top: 24px; }
.footer-newsletter-label { font-family: var(--font-mono); font-size: .65rem; letter-spacing: .25em; color: var(--cyan); margin-bottom: 10px; display: block; text-transform: uppercase; }
.newsletter-row { display: flex; gap: 0; }
.newsletter-input {
  flex: 1; background: var(--surface); border: 1px solid var(--border); border-right: none;
  color: var(--text); padding: 10px 14px; outline: none; font-family: var(--font-mono);
  font-size: .8rem; clip-path: none;
  transition: border-color .2s ease;
}
.newsletter-input:focus { border-color: var(--cyan); }
.newsletter-btn {
  padding: 10px 18px; background: var(--cyan); color: var(--bg);
  border: 1px solid var(--cyan); font-family: var(--font-mono); font-size: .7rem;
  font-weight: 700; letter-spacing: .1em; cursor: pointer;
  transition: background .2s ease; white-space: nowrap;
}
.newsletter-btn:hover { background: var(--white); }
.newsletter-success {
  display: none; margin-top: 8px; font-family: var(--font-mono);
  font-size: .7rem; color: var(--cyan); letter-spacing: .1em;
}
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }
.footer-copy { font-family: var(--font-mono); font-size: .7rem; color: var(--text-dim); letter-spacing: .1em; }
.footer-tagline { font-family: var(--font-mono); font-size: .7rem; color: var(--cyan); letter-spacing: .2em; }

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  #tourGrid { grid-template-columns: repeat(2, 1fr); }
  #championsGrid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .about-grid, .community-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { width: 70%; right: -80px; }
  .hero-logo-img { opacity: .10; }
  #newsGrid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  section { padding: 60px 20px; }
  .section-divider { margin: 0 20px; }
  nav { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  #tourGrid { grid-template-columns: 1fr; }
  #championsGrid { grid-template-columns: repeat(2, 1fr); }
  #mediaGrid { grid-template-columns: repeat(2, 1fr); }
  .media-cell:first-child { grid-column: span 2; }
  .social-cards { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  #backToTop { bottom: 20px; left: 20px; }
}
@media (max-width: 480px) {
  .games-grid { grid-template-columns: 1fr; }
  #championsGrid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
}
