/* ============================================================
   BLANK TOURNAMENT – Landing Page
   Design: Apple-Minimal x Esports Bento
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #080808;
  --bg-2:      #0f0f0f;
  --bg-card:   rgba(255,255,255,0.04);
  --border:    rgba(255,255,255,0.08);
  --border-hi: rgba(255,255,255,0.14);
  --text:      #ffffff;
  --muted:     rgba(255,255,255,0.45);
  --accent:    #f5a524;
  --accent-2:  #ff6b00;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(245,165,36,0.4); border-radius: 3px; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  padding: 0 5%;
}

.section { padding: 120px 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--border-hi);
  background: rgba(245,165,36,0.08);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: #ffc147;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(245,165,36,0.35);
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border-hi);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  transition: background 0.4s, border-color 0.4s;
}

.nav.scrolled {
  background: rgba(8,8,8,0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  width: 100%;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
  opacity: 0.9;
}

.footer-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-discord {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 99px;
  background: rgba(88,101,242,0.15);
  border: 1px solid rgba(88,101,242,0.3);
  font-size: 13px;
  font-weight: 600;
  color: #8b9fff;
  transition: all 0.2s;
}
.nav-discord:hover {
  background: rgba(88,101,242,0.25);
  border-color: rgba(88,101,242,0.5);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  outline: none;
}
.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

/* WebGL Canvas */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-badge {
  animation: fadeInDown 0.7s var(--ease) both;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  animation: fadeInUp 0.8s var(--ease) 0.1s both;
}

.hero-title .line-accent {
  display: block;
  color: var(--accent);
}

.hero-title .line-outline {
  display: block;
  -webkit-text-stroke: 1px rgba(255,255,255,0.3);
  color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
  animation: fadeInUp 0.8s var(--ease) 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.8s var(--ease) 0.3s both;
}

/* Hero stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 32px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s var(--ease) 0.4s both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 32px;
}

.hero-stat + .hero-stat {
  border-left: 1px solid var(--border);
}

.hero-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero-stat-num span {
  color: var(--accent);
}

.hero-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 1s var(--ease) 1s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

/* ============================================================
   BENTO GRID – STATS & HIGHLIGHTS
   ============================================================ */
.bento { padding: 80px 0 120px; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}

/* Bento Card base */
.bcard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.bcard:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}

/* Hover glow effect */
.bcard::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,50%),
    rgba(245,165,36,0.08), transparent 60%);
}
.bcard:hover::before { opacity: 1; }

/* Grid placements */
.bcard-players {
  grid-column: 1 / 5;
  grid-row: 1;
}
.bcard-tournaments {
  grid-column: 5 / 9;
  grid-row: 1;
}
.bcard-prize {
  grid-column: 9 / 13;
  grid-row: 1;
}
.bcard-featured {
  grid-column: 1 / 7;
  grid-row: 2 / 4;
  min-height: 360px;
}
.bcard-formats {
  grid-column: 7 / 13;
  grid-row: 2;
}
.bcard-lan {
  grid-column: 7 / 10;
  grid-row: 3;
}
.bcard-discord {
  grid-column: 10 / 13;
  grid-row: 3;
}

/* Stat cards */
.bcard-stat .stat-num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 16px 0 8px;
}
.bcard-stat .stat-num em {
  color: var(--accent);
  font-style: normal;
}
.bcard-stat .stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.bcard-stat .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245,165,36,0.1);
  border: 1px solid rgba(245,165,36,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* Featured card */
.bcard-featured {
  background: linear-gradient(135deg, rgba(245,165,36,0.1) 0%, rgba(255,107,0,0.05) 100%);
  border-color: rgba(245,165,36,0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bcard-featured .featured-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 80% 20%, rgba(245,165,36,0.12) 0%, transparent 60%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 30px,
      rgba(245,165,36,0.02) 30px,
      rgba(245,165,36,0.02) 31px
    );
}

.bcard-featured .featured-badge {
  position: absolute;
  top: 24px;
  right: 24px;
}

.bcard-featured .featured-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  position: relative;
}

.bcard-featured .featured-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
  position: relative;
}

.bcard-featured .featured-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
  position: relative;
}

.bcard-featured .featured-modes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
}

.mode-chip {
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.mode-chip.active {
  background: rgba(245,165,36,0.15);
  border-color: rgba(245,165,36,0.3);
  color: var(--accent);
}

/* Formats card */
.bcard-formats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bcard-formats .card-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.format-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.format-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: default;
}
.format-item:hover {
  background: rgba(245,165,36,0.06);
  border-color: rgba(245,165,36,0.2);
}

.format-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(245,165,36,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.format-info { flex: 1; }
.format-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.format-desc {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.format-freq {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* LAN card */
.bcard-lan {
  background: linear-gradient(135deg,
    rgba(245,165,36,0.08) 0%,
    rgba(255,107,0,0.04) 100%);
  border-color: rgba(245,165,36,0.15);
}
.bcard-lan .lan-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.bcard-lan .lan-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.bcard-lan .lan-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Discord card */
.bcard-discord {
  background: linear-gradient(135deg,
    rgba(88,101,242,0.12) 0%,
    rgba(88,101,242,0.04) 100%);
  border-color: rgba(88,101,242,0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}
.bcard-discord .discord-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(88,101,242,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.bcard-discord .discord-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.bcard-discord .discord-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 99px;
  background: rgba(88,101,242,0.2);
  border: 1px solid rgba(88,101,242,0.35);
  font-size: 13px;
  font-weight: 700;
  color: #8b9fff;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-discord:hover {
  background: rgba(88,101,242,0.3);
  transform: translateY(-1px);
}

/* ============================================================
   SCHEDULE / EVENTS
   ============================================================ */
.events { padding: 80px 0 120px; }
.events-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.event-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.event-card-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(245,165,36,0.1);
  border: 1px solid rgba(245,165,36,0.2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.event-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}
.event-status .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 1.5s ease-in-out infinite;
}
.event-status .soon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.event-card-body {
  padding: 20px 24px 24px;
}
.event-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.event-date {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.event-meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.meta-value { font-size: 13px; font-weight: 700; }
.meta-value.prize { color: var(--accent); }

/* ============================================================
   TESTIMONIAL / COMMUNITY SECTION
   ============================================================ */
.community {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}

.community::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%,
    rgba(245,165,36,0.05) 0%, transparent 70%);
}

.community-inner {
  position: relative;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.community-number {
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.community-text {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
  transition: all 0.3s;
}
.testimonial-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
}

.testimonial-text {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #000;
}

.author-name {
  font-size: 13px;
  font-weight: 700;
}
.author-sub {
  font-size: 11px;
  color: var(--muted);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 80px 0 120px;
}

.cta-box {
  border-radius: var(--radius-lg);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg,
      rgba(245,165,36,0.1) 0%,
      rgba(255,107,0,0.05) 50%,
      rgba(245,165,36,0.08) 100%);
  border: 1px solid rgba(245,165,36,0.2);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(245,165,36,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,107,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.cta-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.2s;
  cursor: pointer;
  color: var(--muted);
}
.social-btn:hover {
  background: rgba(255,255,255,0.09);
  color: var(--text);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--text); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Intersection Observer fade-in */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .bcard-players    { grid-column: 1 / 3; grid-row: 1; }
  .bcard-tournaments{ grid-column: 3 / 5; grid-row: 1; }
  .bcard-prize      { grid-column: 5 / 7; grid-row: 1; }
  .bcard-featured   { grid-column: 1 / 7; grid-row: 2; min-height: 280px; }
  .bcard-formats    { grid-column: 1 / 4; grid-row: 3; }
  .bcard-lan        { grid-column: 4 / 7; grid-row: 3; }
  .bcard-discord    { grid-column: 1 / 7; grid-row: 4; }

  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Nav always shows glass background on mobile, with safe-area-inset for notch */
  .nav {
    background: rgba(8,8,8,0.92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding-top: env(safe-area-inset-top);
    height: calc(64px + env(safe-area-inset-top));
  }
  .nav.scrolled {
    border-bottom: 1px solid var(--border);
  }
  .nav-burger { display: flex; }
  .nav-discord-text { display: none; }

  /* Mobile nav panel: slide-in from top */
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: rgba(8,8,8,0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    transform: translateY(calc(-100% - 80px));
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 98;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav-links.nav-open {
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links li { display: block; }
  .nav-links a {
    display: block;
    padding: 0 0 13px;
    font-size: 17px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    letter-spacing: 0;
    text-align: center;
  }
  .nav-links a:hover { color: #fff; }
  .nav-item-dropdown .nav-chevron { display: none; }

  .hero-scroll { position: relative; bottom: auto; left: auto; transform: none; margin-top: 24px; }

  .hero-stats {
    flex-wrap: nowrap;
    gap: 0;
    padding: 12px 16px;
    justify-content: space-around;
  }
  .hero-stat { padding: 8px 6px; width: auto; flex: 1; min-width: 0; }
  .hero-stat + .hero-stat { border-left: 1px solid var(--border); border-top: none; }
  .hero-stat-num { font-size: 1rem; white-space: nowrap; }
  .hero-stat-label { font-size: 8px; white-space: nowrap; }

  .bento-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bcard-players    { grid-column: 1 / 2; grid-row: auto; }
  .bcard-tournaments{ grid-column: 2 / 3; grid-row: auto; }
  .bcard-prize      { grid-column: 1 / 3; grid-row: auto; }
  .bcard-featured   { grid-column: 1 / 3; grid-row: auto; min-height: 260px; }
  .bcard-formats    { grid-column: 1 / 3; grid-row: auto; }
  .bcard-lan        { grid-column: 1 / 2; grid-row: auto; }
  .bcard-discord    { grid-column: 2 / 3; grid-row: auto; }

  .events-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .testimonial-card:nth-child(3) { display: none; }

  .cta-box { padding: 48px 28px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-col:nth-child(3), .footer-col:nth-child(4) { display: none; }

  .section { padding: 80px 0; }
}

@media (max-width: 480px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bcard-players, .bcard-tournaments, .bcard-prize,
  .bcard-featured, .bcard-formats, .bcard-lan, .bcard-discord {
    grid-column: 1 / 2;
    grid-row: auto;
  }
}

/* ============================================================
   NAV DROPDOWN
   ============================================================ */
.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.nav-item-dropdown.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(12,12,12,0.97);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  min-width: 180px;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  z-index: 200;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 6px;
  background: var(--border-hi);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Transparent bridge – fills the gap so hover doesn't drop when moving mouse down */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  height: 20px;
  background: transparent;
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown.open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 14px !important;
  border-radius: 8px;
  font-size: 13px !important;
  color: var(--muted) !important;
  font-weight: 500 !important;
  transition: all 0.15s;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  color: var(--text) !important;
  background: rgba(255,255,255,0.06);
}

.nav-dropdown .dropdown-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(245,165,36,0.1);
  border: 1px solid rgba(245,165,36,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* Active nav link */
.nav-links a.nav-active {
  color: var(--text) !important;
}

/* ============================================================
   INNER PAGE HEADER
   ============================================================ */
.page-header {
  padding: 130px 0 72px;
  position: relative;
  overflow: hidden;
}

.page-header-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 100%);
}

.page-header-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%,
    rgba(245,165,36,0.1) 0%,
    transparent 70%);
  pointer-events: none;
}

.page-header-inner {
  position: relative;
  z-index: 1;
}

.page-header .page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

.page-breadcrumb a {
  color: var(--muted);
  transition: color 0.2s;
}
.page-breadcrumb a:hover { color: var(--text); }
.page-breadcrumb span { color: rgba(255,255,255,0.2); }

.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
}

.page-header h1 em {
  font-style: normal;
  color: var(--accent);
}

.page-header .page-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   TEAM PAGE
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 30%;
}

/* Mouse-tracking spotlight */
.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my),
    rgba(245,165,36,0.13), transparent 70%);
}

.team-card:hover {
  border-color: rgba(245,165,36,0.4);
  transform: translateY(-5px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,165,36,0.08);
}
.team-card:hover::before { opacity: 1; }

.team-card.founder {
  border-color: rgba(245,165,36,0.25);
  background: linear-gradient(135deg, rgba(245,165,36,0.07) 0%, var(--bg-card) 60%);
}

.team-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: #000;
  margin: 0 auto 16px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.team-card:hover .team-avatar {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,165,36,0.35);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  display: block;
}

.team-avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(245,165,36,0.4);
  pointer-events: none;
  z-index: 1;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.team-card:hover .team-avatar-ring {
  border-color: rgba(245,165,36,0.9);
  box-shadow: 0 0 12px rgba(245,165,36,0.4), inset 0 0 8px rgba(245,165,36,0.1);
  animation: ring-pulse 1.8s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(245,165,36,0.4), inset 0 0 8px rgba(245,165,36,0.1); }
  50%       { box-shadow: 0 0 22px rgba(245,165,36,0.7), inset 0 0 12px rgba(245,165,36,0.2); }
}

.team-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.team-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.team-role-sub {
  font-size: 11px;
  color: var(--muted);
}

.founder-badge {
  position: absolute;
  top: 16px;
  right: 16px;
}

.team-socials {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.team-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.2s;
  flex-shrink: 0;
}
.team-social-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-hi);
  color: var(--text);
  transform: translateY(-2px);
}
.team-social-btn.twitch:hover { background: rgba(145,71,255,0.15); border-color: rgba(145,71,255,0.3); color: #9147ff; }
.team-social-btn.twitter:hover { background: rgba(255,255,255,0.1); border-color: var(--border-hi); color: var(--text); }
.team-social-btn.instagram:hover { background: rgba(225,48,108,0.12); border-color: rgba(225,48,108,0.25); color: #e1306c; }
.team-social-btn.tiktok:hover { background: rgba(255,255,255,0.08); border-color: var(--border-hi); color: var(--text); }
.team-social-btn.youtube:hover { background: rgba(255,0,0,0.1); border-color: rgba(255,0,0,0.2); color: #ff0000; }
.team-social-btn.discord:hover { background: rgba(88,101,242,0.15); border-color: rgba(88,101,242,0.3); color: #5865f2; }

/* ============================================================
   REGELWERK PAGE
   ============================================================ */
.rw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rw-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease);
  position: relative;
}

.rw-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.rw-card-visual {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.rw-card-visual[style*="background-image"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

.rw-card-visual .rw-icon {
  font-size: 64px;
  position: relative;
  z-index: 1;
}

.rw-card-visual .rw-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(245,165,36,0.1) 0%,
    rgba(255,107,0,0.05) 100%);
}

.rw-card-visual .rw-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.rw-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rw-card-body h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.rw-card-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.rw-card-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.rw-card.soon .rw-card-visual {
  filter: grayscale(0.5);
}

.rw-card.soon .rw-card-body h3 { opacity: 0.7; }
.rw-card.soon .rw-card-body p { opacity: 0.6; }

.soon-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-hi);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Regelwerk content page */
.rw-content {
  padding: 0 0 120px;
}

.rw-content-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.rw-sidebar {
  position: sticky;
  top: 84px;
}

.rw-sidebar-nav {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.rw-sidebar-title {
  padding: 16px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.rw-sidebar-nav ul {
  padding: 8px;
}

.rw-sidebar-nav ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  transition: all 0.2s;
}

.rw-sidebar-nav ul li a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.rw-sidebar-nav ul li a.active {
  color: var(--accent);
  background: rgba(245,165,36,0.08);
}

.rw-sidebar-nav ul li a .link-icon {
  font-size: 15px;
}

.rw-main { min-width: 0; }

.rw-toc {
  margin-bottom: 28px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.rw-toc-title {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.rw-toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rw-toc-links a {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s;
}

.rw-toc-links a:hover {
  color: var(--text);
  border-color: var(--border-hi);
  background: rgba(255,255,255,0.07);
}

.rw-intro {
  margin-bottom: 24px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.rw-intro-label {
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.rw-intro .rw-section-body { gap: 10px; }

.rw-intro .rw-section-body p,
.rw-intro .rw-section-body li,
.rw-intro .rw-section-body blockquote {
  font-size: 14px;
  line-height: 1.65;
}

.rw-intro .rw-section-body blockquote { padding: 12px 14px; }

.rw-scroll-cta {
  display: flex;
  justify-content: center;
  padding: 18px 0 34px;
}

.rw-scroll-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  padding: 16px 24px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(245,165,36,0.12), rgba(245,165,36,0.03));
  border: 1px solid rgba(245,165,36,0.24);
  box-shadow: 0 18px 44px rgba(0,0,0,0.28);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.rw-scroll-link:hover {
  color: var(--text);
  border-color: rgba(245,165,36,0.42);
  background: linear-gradient(180deg, rgba(245,165,36,0.18), rgba(245,165,36,0.05));
}

.rw-scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, rgba(245,165,36,1), transparent);
}

.rw-section {
  margin-bottom: 48px;
}

.rw-section-body {
  display: grid;
  gap: 14px;
}

.rw-section-primary {
  scroll-margin-top: 110px;
  margin-top: 4px;
}

.rw-section-primary .rw-section-title {
  font-size: 1.65rem;
}

.rw-section-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rw-section-title .section-icon {
  font-size: 20px;
}

.rw-rule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rw-rule {
  display: flex;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: border-color 0.2s;
}

.rw-rule:hover {
  border-color: var(--border-hi);
}

.rw-rule-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(245,165,36,0.1);
  border: 1px solid rgba(245,165,36,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.rw-rule-text {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
}

.rw-rule-text strong {
  color: var(--text);
  font-weight: 700;
}

.rw-info-box {
  background: rgba(245,165,36,0.06);
  border: 1px solid rgba(245,165,36,0.2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.rw-info-box .info-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.rw-format-card {
  background: linear-gradient(135deg, rgba(245,165,36,0.08) 0%, var(--bg-card) 60%);
  border: 1px solid rgba(245,165,36,0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
}

.rw-format-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 12px;
}

.rw-format-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.rw-format-card p:last-child { margin-bottom: 0; }

/* ============================================================
   RANKING PAGE
   ============================================================ */
.ranking-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.ranking-tab {
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.ranking-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.ranking-tab:hover:not(.active) {
  border-color: var(--border-hi);
  color: var(--text);
}

.ranking-frame-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card);
}

.ranking-frame-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ranking-frame-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ranking-frame-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ranking-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(34,197,94,0.6);
  animation: live-dot-pulse 3s ease-in-out infinite;
}
@keyframes live-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1);   box-shadow: 0 0 6px rgba(34,197,94,0.6); }
  50%       { opacity: 0.6; transform: scale(0.75); box-shadow: 0 0 10px rgba(34,197,94,0.3); }
}

/* Tabellen-Ranking (ersetzt iframe) */
.ranking-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.ranking-table thead th {
  padding: 14px 20px;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
}

.ranking-table th.rank-group-header {
  text-align: center;
}

.ranking-table th.rank-group-sep,
.ranking-table td.rank-col-start {
  border-left: 1px solid var(--border);
}

.ranking-table tbody td {
  padding: 10px 20px;
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
  white-space: nowrap;
}

.ranking-table tbody tr:last-child td {
  border-bottom: none;
}

.ranking-table tbody tr:hover td {
  background: rgba(255,255,255,0.03);
}

.ranking-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.ranking-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.ranking-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.ranking-search-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245,165,36,0.9), rgba(255,200,80,1), rgba(245,165,36,0.9), transparent);
  transform: translateX(-100%);
  opacity: 0;
  will-change: transform, opacity;
}
.ranking-search-wrap.beam-go::after {
  animation: search-beam 2.4s ease-in-out 1 forwards;
}
@keyframes search-beam {
  0%   { transform: translateX(-100%); opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(167%);  opacity: 0; }
}
.ranking-search-wrap:focus-within {
  border-bottom-color: rgba(245,165,36,0.6);
  background: rgba(245,165,36,0.03);
  box-shadow: 0 4px 20px -4px rgba(245,165,36,0.15);
}
.ranking-search-wrap svg {
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.25s, transform 0.25s;
}
.ranking-search-wrap:focus-within svg {
  color: var(--accent);
  transform: scale(1.15);
}
.ranking-search {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: letter-spacing 0.2s;
}
.ranking-search:focus { letter-spacing: 0.01em; }
.ranking-search::placeholder {
  color: var(--muted);
  transition: opacity 0.2s, transform 0.2s;
}
.ranking-search:focus::placeholder {
  opacity: 0.4;
  transform: translateX(4px);
}
@keyframes row-flash {
  0%   { background: rgba(245,165,36,0.18); }
  100% { background: transparent; }
}
.ranking-table tbody tr.row-flash td {
  animation: row-flash 0.7s ease-out forwards;
}
mark.cell-match {
  background: none;
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 12px rgba(245,165,36,0.5);
}

.ranking-no-result {
  padding: 20px 24px;
  color: var(--muted);
  font-size: 14px;
}

.ranking-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.ranking-load-error {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.ranking-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* ============================================================
   RESET LAN PAGE
   ============================================================ */
.lan-hero {
  padding: 130px 0 80px;
  position: relative;
  overflow: hidden;
}

.lan-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 60% 40%, rgba(245,165,36,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 60%, rgba(255,107,0,0.06) 0%, transparent 60%);
}

.lan-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 40%, transparent 100%);
}

.lan-hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.lan-hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin-bottom: 24px;
}

.lan-hero-title em {
  font-style: normal;
  color: var(--accent);
}

.lan-hero-desc {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.lan-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 80px 0;
}

.lan-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all 0.3s;
}

.lan-feature-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}

.lan-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(245,165,36,0.1);
  border: 1px solid rgba(245,165,36,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.lan-feature-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.lan-feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.lan-sponsors {
  padding: 64px 0 120px;
  border-top: 1px solid var(--border);
}

.lan-sponsors-title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}

.sponsors-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.sponsor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  min-width: 140px;
  text-align: center;
}

.sponsor-item:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}

.sponsor-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.sponsor-type {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   RESPONSIVE – NEW PAGES
   ============================================================ */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .rw-content-inner { grid-template-columns: 1fr; }
  .rw-sidebar { position: static; }
  .rw-sidebar-nav ul { display: flex; flex-wrap: wrap; padding: 8px; gap: 4px; }
  .rw-sidebar-nav ul li a { padding: 8px 12px; }
  .rw-sidebar-title { padding: 12px 20px; }
}

@media (max-width: 768px) {
  /* ── Page header ── */
  .page-header { padding: 88px 0 44px; }

  /* ── Nav: hide dropdown, hide chevron (shown inline via nav-open) ── */
  .nav-dropdown { display: none; }
  .nav-item-dropdown > a { justify-content: center !important; }
  .nav-item-dropdown .nav-chevron {
    display: inline-block !important;
    transition: transform 0.25s ease;
    opacity: 0.5;
    font-size: 11px;
  }
  .nav-item-dropdown.open .nav-chevron { transform: rotate(180deg); }

  /* Warzone sub-links: show inline only when parent has .open class */
  .nav-links.nav-open .nav-item-dropdown .nav-dropdown {
    display: none !important;
  }
  .nav-links.nav-open .nav-item-dropdown.open .nav-dropdown {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    background: rgba(255,255,255,0.04) !important;
    border: none !important;
    border-top: 1px solid rgba(255,255,255,0.07) !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 0 !important;
    padding: 4px 0 !important;
    min-width: auto !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }
  .nav-links.nav-open .nav-dropdown::before,
  .nav-links.nav-open .nav-dropdown::after { display: none !important; }
  .nav-links.nav-open .nav-dropdown a {
    display: block !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 9px 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: rgba(255,255,255,0.38) !important;
    text-align: center !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
  }
  .nav-links.nav-open .nav-dropdown a:last-child { border-bottom: none !important; }
  .nav-links.nav-open .nav-dropdown a:hover {
    color: rgba(255,255,255,0.85) !important;
    background: rgba(245,165,36,0.08) !important;
    letter-spacing: 0.07em !important;
  }
  .nav-links.nav-open .nav-dropdown .dropdown-icon { display: none !important; }

  /* ── Grids ── */
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .rw-grid { grid-template-columns: 1fr; }
  .lan-features { grid-template-columns: 1fr; }

  /* ── Footer ── */
  .footer-col:nth-child(3), .footer-col:nth-child(4) { display: block; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .sponsors-grid { gap: 16px; }
  .sponsor-item { min-width: 120px; padding: 16px 20px; }
  .page-header { padding: 80px 0 36px; }
}

/* WordPress Admin-Bar Offset */
body.admin-bar .nav {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .nav {
    top: 46px;
  }
}
