@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Oxanium:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #050508;
  --bg-card: #0f0f14;
  --bg-input: #1a1a24;
  --border: #2a2a3a;
  --text: #e4e4e7;
  --text-muted: #8888a0;
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-glow: rgba(124,58,237,0.5);
  --secondary: #06b6d4;
  --secondary-glow: rgba(6,182,212,0.5);
  --success: #22c55e;
  --danger: #ef4444;
  --live: #ef4444;
  --neon-purple: #a855f7;
  --neon-cyan: #22d3ee;
  --neon-red: #f43f5e;
  --neon-pink: #ec4899;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; line-height: 1.5; overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { font-family: 'Oxanium', sans-serif; letter-spacing: 0.05em; text-transform: uppercase; }
a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--secondary); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.glow { text-shadow: 0 0 15px var(--primary-glow), 0 0 40px rgba(124,58,237,0.1); }
.glow-cyan { text-shadow: 0 0 15px var(--secondary-glow), 0 0 40px rgba(6,182,212,0.1); }

/* ====================== NAVBAR ====================== */
.navbar {
  background: rgba(5,5,8,0.9); border-bottom: 1px solid rgba(124,58,237,0.2);
  padding: 10px 0; position: sticky; top: 0; z-index: 200;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.navbar-brand { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 900; color: var(--neon-purple); text-transform: uppercase; letter-spacing: 0.1em; text-shadow: 0 0 12px var(--primary-glow); white-space: nowrap; }
.navbar-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.navbar-links a { color: var(--text-muted); font-weight: 500; font-size: 0.75rem; transition: all 0.3s; position: relative; letter-spacing: 0.03em; }
.navbar-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 2px; background: var(--neon-purple); box-shadow: 0 0 6px var(--primary-glow); transition: width 0.3s; }
.navbar-links a:hover::after, .navbar-links a.active::after { width: 100%; }
.navbar-links a:hover, .navbar-links a.active { color: var(--neon-purple); }

/* Hamburger menu */
.navbar-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 6px;
  flex-direction: column; gap: 4px; z-index: 210;
}
.navbar-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: all 0.3s ease;
}
.navbar-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ====================== HERO (50% smaller) ====================== */
.hero {
  position: relative; min-height: 50vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg); overflow: hidden; padding: 24px 0;
}
.hero-bg-anim {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(124,58,237,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 75% 60%, rgba(6,182,212,0.12) 0%, transparent 55%),
    radial-gradient(circle at 50% 20%, rgba(236,72,153,0.08) 0%, transparent 40%);
  animation: heroBgShift 10s ease-in-out infinite alternate;
}
@keyframes heroBgShift {
  0% { opacity: 0.8; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.05) rotate(0.5deg); }
  100% { opacity: 0.8; transform: scale(1) rotate(-0.5deg); }
}
.hero-hex-grid {
  position: absolute; inset: 0; z-index: 1; opacity: 0.04;
  background-image:
    linear-gradient(30deg, var(--neon-purple) 1px, transparent 1px),
    linear-gradient(150deg, var(--neon-purple) 1px, transparent 1px),
    linear-gradient(270deg, rgba(124,58,237,0.3) 1px, transparent 1px);
  background-size: 50px 86px;
  animation: gridScroll 20s linear infinite;
}
@keyframes gridScroll { 0% { transform: translateY(0); } 100% { transform: translateY(86px); } }
.hero-scanlines {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.03;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.08) 2px, rgba(255,255,255,0.08) 4px);
}
.hero-glow-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); z-index: 1; pointer-events: none;
}
.hero-glow-orb-1 { width: 250px; height: 250px; background: rgba(124,58,237,0.15); top: 10%; left: 10%; animation: orbFloat1 8s ease-in-out infinite; }
.hero-glow-orb-2 { width: 150px; height: 150px; background: rgba(6,182,212,0.12); bottom: 20%; right: 10%; animation: orbFloat2 10s ease-in-out infinite; }
.hero-glow-orb-3 { width: 130px; height: 130px; background: rgba(236,72,153,0.08); top: 50%; left: 60%; animation: orbFloat3 12s ease-in-out infinite; }
@keyframes orbFloat1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px,-30px); } }
@keyframes orbFloat2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px,20px); } }
@keyframes orbFloat3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(15px,15px); } }

#hero-particles { position: absolute; inset: 0; z-index: 3; }

.hero-content { position: relative; z-index: 10; text-align: center; max-width: 700px; }

.hero-badge-wrap { margin-bottom: 10px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  border: 1px solid rgba(124,58,237,0.4); border-radius: 50px;
  font-family: 'Oxanium', sans-serif; font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.18em; color: var(--neon-purple);
  background: rgba(124,58,237,0.06);
  animation: badgePulse 3s ease-in-out infinite;
}
.hero-badge-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--neon-purple);
  box-shadow: 0 0 6px var(--neon-purple); animation: dotBlink 1.5s infinite;
}
@keyframes dotBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes badgePulse { 0%,100% { box-shadow: 0 0 0 rgba(124,58,237,0); } 50% { box-shadow: 0 0 15px rgba(124,58,237,0.15); } }

.hero-title { margin-bottom: 8px; line-height: 1; position: relative; }
.hero-title-main {
  font-family: 'Orbitron', sans-serif; font-size: clamp(1.6rem, 5vw, 2.8rem); font-weight: 900;
  letter-spacing: 0.08em; display: block; position: relative; color: #fff;
  text-shadow: 0 0 8px rgba(124,58,237,0.8), 0 0 30px rgba(124,58,237,0.3), 0 0 60px rgba(124,58,237,0.15);
  animation: titleGlow 4s ease-in-out infinite, titleEntry 1s ease-out;
}
@keyframes titleGlow {
  0%,100% { text-shadow: 0 0 8px rgba(124,58,237,0.8), 0 0 30px rgba(124,58,237,0.3); filter: brightness(1); }
  50% { text-shadow: 0 0 15px rgba(124,58,237,1), 0 0 40px rgba(6,182,212,0.4), 0 0 70px rgba(124,58,237,0.3); filter: brightness(1.1); }
}
@keyframes titleEntry { 0% { opacity: 0; transform: translateY(20px) scale(0.95); filter: blur(8px); } 100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
.hero-title-main::before,
.hero-title-main::after {
  content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
}
.hero-title-main::before {
  color: var(--neon-cyan); animation: glitchShift1 5s infinite linear;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.hero-title-main::after {
  color: var(--neon-pink); animation: glitchShift2 5s infinite linear;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}
@keyframes glitchShift1 { 0%,88%,100% { transform: translate(0); } 89% { transform: translate(-2px, -1px); } 90% { transform: translate(2px, 1px); } 91% { transform: translate(-1px, 0); } 92% { transform: translate(0); } }
@keyframes glitchShift2 { 0%,92%,100% { transform: translate(0); } 93% { transform: translate(2px, 1px); } 94% { transform: translate(-2px, -1px); } 95% { transform: translate(1px, 0); } 96% { transform: translate(0); } }

.hero-typing-wrap {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1rem, 3vw, 1.6rem);
  font-weight: 900; letter-spacing: 0.06em;
  margin: 0 0 10px 0; padding: 0; min-height: 1.4em; text-transform: uppercase;
  animation: typingColorShift 5s ease-in-out infinite;
}
@keyframes typingColorShift {
  0%,100% { color: #c084fc; text-shadow: 0 0 15px rgba(192,132,252,0.5); }
  25% { color: #22d3ee; text-shadow: 0 0 15px rgba(34,211,238,0.5); }
  50% { color: #fb7185; text-shadow: 0 0 15px rgba(251,113,133,0.5); }
  75% { color: #34d399; text-shadow: 0 0 15px rgba(52,211,153,0.5); }
}
.hero-typing-label { opacity: 0.35; }
.hero-cursor { animation: cursorBlink 0.6s step-end infinite; }
@keyframes cursorBlink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

.hero-desc {
  font-size: 0.8rem; color: var(--text-muted); max-width: 460px; margin: 0 auto 16px;
  animation: fadeUp 1s 0.3s ease-out both;
}
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(15px); } 100% { opacity: 1; transform: translateY(0); } }

.hero-cta {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 1s 0.5s ease-out both;
}
.hero-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 6px; font-family: 'Oxanium', sans-serif;
  font-weight: 700; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border: none; overflow: hidden; transition: all 0.3s;
}
.hero-btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #7c3aed 100%);
  background-size: 200% 200%; color: #fff;
  box-shadow: 0 0 20px rgba(124,58,237,0.4), 0 4px 12px rgba(0,0,0,0.3);
  animation: btnShine 3s ease-in-out infinite;
}
.hero-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(124,58,237,0.6); color: #fff; }
@keyframes btnShine { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-btn-bg {
  position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%); animation: btnSweep 4s infinite;
}
@keyframes btnSweep { 0%,70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.hero-btn-outline {
  background: transparent; border: 2px solid var(--neon-cyan); color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(6,182,212,0.15), inset 0 0 10px rgba(6,182,212,0.05);
}
.hero-btn-outline:hover { background: rgba(6,182,212,0.1); transform: translateY(-2px); color: var(--neon-cyan); }
.hero-btn-text { position: relative; z-index: 2; }

.hero-scroll-hint { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 10; }
.hero-scroll-line {
  width: 2px; height: 24px; background: linear-gradient(180deg, var(--neon-purple), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse { 0% { opacity: 1; height: 24px; } 50% { opacity: 0.3; height: 12px; } 100% { opacity: 1; height: 24px; } }

/* ====================== SECTIONS (50% smaller) ====================== */
.section { padding: 24px 0; position: relative; }
.section-compact { padding: 16px 0; }
.section-dark { background: rgba(124,58,237,0.02); }
.section-head { text-align: center; margin-bottom: 16px; }
.section-title { font-size: clamp(1rem, 2.5vw, 1.3rem); margin-bottom: 4px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 50px;
  font-family: 'Oxanium', sans-serif; font-size: 0.5rem; font-weight: 700;
  letter-spacing: 0.12em; margin-bottom: 6px;
}
.tag-purple { background: rgba(124,58,237,0.1); color: var(--neon-purple); border: 1px solid rgba(124,58,237,0.25); }
.tag-cyan { background: rgba(6,182,212,0.1); color: var(--neon-cyan); border: 1px solid rgba(6,182,212,0.25); }
.tag-live { background: rgba(239,68,68,0.1); color: var(--neon-red); border: 1px solid rgba(239,68,68,0.25); }
.tag-dot { width: 4px; height: 4px; border-radius: 50%; display: inline-block; }
.tag-dot-purple { background: var(--neon-purple); box-shadow: 0 0 5px var(--neon-purple); }
.tag-dot-cyan { background: var(--neon-cyan); box-shadow: 0 0 5px var(--neon-cyan); }
.tag-dot-red { background: var(--neon-red); box-shadow: 0 0 5px var(--neon-red); animation: dotBlink 1.5s infinite; }

.section-neon { position: absolute; top: 0; left: 0; right: 0; height: 1px; }
.section-neon-purple { background: linear-gradient(90deg, transparent, var(--neon-purple), transparent); box-shadow: 0 0 8px var(--primary-glow); }
.section-neon-cyan { background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent); box-shadow: 0 0 8px var(--secondary-glow); }
.section-neon-red { background: linear-gradient(90deg, transparent, var(--neon-red), transparent); box-shadow: 0 0 8px rgba(244,63,94,0.4); }

.live-section { background: rgba(244,63,94,0.015); }

/* ====================== SHOWCASE CARDS (compact) ====================== */
.showcase-section { padding: 20px 0; position: relative; }
.showcase-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-purple), var(--neon-cyan), transparent);
}
.showcase-card {
  display: flex; align-items: center; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 16px; transition: all 0.3s ease; text-decoration: none; color: var(--text);
}
.showcase-card:hover {
  border-color: var(--neon-purple); transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 12px rgba(124,58,237,0.08); color: var(--text);
}
.showcase-card-cyan:hover { border-color: var(--neon-cyan); box-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 12px rgba(6,182,212,0.08); }
.showcase-card-pink:hover { border-color: var(--neon-pink); box-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 12px rgba(236,72,153,0.08); }

.showcase-icon {
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.showcase-icon-purple { background: rgba(124,58,237,0.12); color: var(--neon-purple); border: 1px solid rgba(124,58,237,0.25); }
.showcase-icon-cyan { background: rgba(6,182,212,0.12); color: var(--neon-cyan); border: 1px solid rgba(6,182,212,0.25); }
.showcase-icon-pink { background: rgba(236,72,153,0.12); color: var(--neon-pink); border: 1px solid rgba(236,72,153,0.25); }

.showcase-body { flex: 1; }
.showcase-count {
  font-family: 'Orbitron', sans-serif; font-size: 1.4rem; font-weight: 900; line-height: 1;
  color: var(--neon-purple); text-shadow: 0 0 8px var(--primary-glow); margin-bottom: 1px;
}
.showcase-count-cyan { color: var(--neon-cyan); text-shadow: 0 0 8px var(--secondary-glow); }
.showcase-count-pink { color: var(--neon-pink); text-shadow: 0 0 8px rgba(236,72,153,0.4); }
.showcase-label { font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.04em; }

/* ====================== TEAMS (compact) ====================== */
.teams-section { padding: 24px 0; }
.team-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; text-align: center; transition: all 0.3s ease;
}
.team-card:hover { border-color: var(--neon-purple); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.4); }
.team-logo { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 8px; border: 2px solid var(--neon-purple); padding: 2px; box-shadow: 0 0 8px var(--primary-glow); }
.team-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.team-name { font-family: 'Orbitron', sans-serif; font-size: 0.65rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.team-desc { font-size: 0.6rem; color: var(--text-muted); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.team-members { display: flex; justify-content: center; gap: 3px; margin-top: 6px; }
.team-member-avatar { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--neon-cyan); }

/* ====================== PLAYERS (compact) ====================== */
.players-section { padding: 24px 0; position: relative; }
.player-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; display: flex; align-items: center; gap: 10px; transition: all 0.3s ease;
}
.player-card:hover { border-color: var(--neon-cyan); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.4); }
.player-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--neon-cyan); flex-shrink: 0; }
.player-info { flex: 1; text-align: left; }
.player-name { font-family: 'Orbitron', sans-serif; font-size: 0.65rem; font-weight: 700; color: var(--text); }
.player-team-badge { font-size: 0.5rem; color: var(--neon-purple); background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.3); border-radius: 3px; padding: 0 4px; display: inline-block; margin-top: 1px; }
.player-stats { display: flex; gap: 6px; margin-top: 3px; }
.player-stat { font-size: 0.55rem; color: var(--text-muted); }
.player-stat-val { color: var(--neon-cyan); font-weight: 700; }

/* ====================== SPONSORS (compact) ====================== */
.sponsors-section { padding: 24px 0; position: relative; }
.sponsors-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #fbbf24, #f59e0b, transparent);
}
.sponsor-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 12px; text-align: center; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.sponsor-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.sponsor-card.tier-platinum::before { background: linear-gradient(90deg, #e5e7eb, #f8fafc, #e5e7eb); }
.sponsor-card.tier-gold::before { background: linear-gradient(90deg, #d97706, #fbbf24, #d97706); }
.sponsor-card.tier-silver::before { background: linear-gradient(90deg, #6b7280, #9ca3af, #6b7280); }
.sponsor-card.tier-bronze::before { background: linear-gradient(90deg, #92400e, #d97706, #92400e); }
.sponsor-card:hover { border-color: #fbbf24; transform: translateY(-2px); }
.sponsor-logo { width: 40px; height: 40px; border-radius: 8px; margin: 0 auto 8px; border: 1px solid rgba(251,191,36,0.3); padding: 3px; background: rgba(251,191,36,0.05); }
.sponsor-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 5px; }
.sponsor-name { font-family: 'Orbitron', sans-serif; font-size: 0.65rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.sponsor-tier { font-size: 0.5rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 4px; }
.sponsor-tier-platinum { color: #f8fafc; }
.sponsor-tier-gold { color: #fbbf24; }
.sponsor-tier-silver { color: #9ca3af; }
.sponsor-tier-bronze { color: #d97706; }
.sponsor-desc { font-size: 0.6rem; color: var(--text-muted); line-height: 1.3; }
.sponsor-link { display: inline-block; margin-top: 6px; font-size: 0.55rem; color: var(--neon-cyan); border: 1px solid rgba(6,182,212,0.3); padding: 2px 8px; border-radius: 5px; transition: all 0.2s; }
.sponsor-link:hover { background: rgba(6,182,212,0.1); color: var(--neon-cyan); }

/* ====================== ADS ====================== */
.ads-banner {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; transition: all 0.3s ease; position: relative;
}
.ads-banner:hover { border-color: var(--neon-purple); }
.ads-banner-label {
  position: absolute; top: 4px; right: 4px; font-size: 0.45rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); background: rgba(0,0,0,0.6);
  padding: 1px 5px; border-radius: 3px; z-index: 2; opacity: 0.5;
}
.ads-banner a { display: block; text-decoration: none; color: inherit; }
.ads-banner img { width: 100%; height: auto; max-height: 80px; object-fit: cover; display: block; }
.ads-banner-text { padding: 6px 10px; text-align: center; }
.ads-banner-text h4 { font-family: 'Oxanium', sans-serif; font-size: 0.65rem; color: var(--text); }

.tournament-creator { font-size: 0.6rem; color: var(--text-muted); margin-top: 2px; }
.tournament-creator-name { color: var(--neon-cyan); font-weight: 600; }

/* ====================== CARDS (compact) ====================== */
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 14px;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.card-anim { opacity: 0; transform: translateY(15px); }
.card-anim.visible { opacity: 1; transform: translateY(0); transition: opacity 0.4s, transform 0.4s; }
.card:hover { border-color: rgba(124,58,237,0.3); box-shadow: 0 4px 14px rgba(0,0,0,0.3); transform: translateY(-2px); }
.card-anim.visible:hover { transform: translateY(-2px); }

.card-tournament { position: relative; }
.card-top-line {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary)); opacity: 0; transition: opacity 0.3s;
}
.card-tournament:hover .card-top-line { opacity: 1; }
.card-game-label {
  position: absolute; top: 8px; right: 8px; padding: 2px 6px; border-radius: 4px;
  font-size: 0.5rem; font-weight: 700; background: rgba(124,58,237,0.12); color: var(--neon-purple);
  font-family: 'Oxanium', sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
}
.card-live-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--neon-red); box-shadow: 0 0 8px rgba(244,63,94,0.5);
  animation: livePulse 2s infinite;
}
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.card-feature { text-align: center; }
.feature-icon {
  width: 38px; height: 38px; border-radius: 8px; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.fi-purple { background: rgba(124,58,237,0.12); color: var(--neon-purple); border: 1px solid rgba(124,58,237,0.25); }
.fi-cyan { background: rgba(6,182,212,0.12); color: var(--neon-cyan); border: 1px solid rgba(6,182,212,0.25); }
.fi-red { background: rgba(244,63,94,0.12); color: var(--neon-red); border: 1px solid rgba(244,63,94,0.25); }

/* ====================== BUTTONS ====================== */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 6px; font-weight: 600; font-size: 0.75rem; cursor: pointer; border: none; transition: all 0.3s; font-family: 'Inter', sans-serif; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); color: white; box-shadow: 0 0 15px var(--primary-glow); }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; color: white; }
.btn-sm { padding: 4px 10px; font-size: 0.65rem; }
.btn-success { background: var(--success); color: white; }

/* ====================== FORMS ====================== */
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }
.form-control { width: 100%; padding: 8px 10px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 0.8rem; font-family: 'Inter', sans-serif; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(124,58,237,0.2); }
select.form-control { appearance: none; }
textarea.form-control { min-height: 80px; resize: vertical; }

/* ====================== BADGES ====================== */
.badge { display: inline-block; padding: 2px 8px; border-radius: 16px; font-size: 0.55rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.badge-live { background: rgba(239,68,68,0.15); color: var(--live); animation: blink 1.5s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.badge-upcoming { background: rgba(124,58,237,0.15); color: var(--primary); }
.badge-completed { background: rgba(34,197,94,0.15); color: var(--success); }
.badge-ongoing { background: rgba(239,68,68,0.15); color: var(--live); animation: blink 1.5s infinite; }

/* ====================== BRACKET ====================== */
.bracket { display: flex; gap: 30px; padding: 24px 16px; overflow-x: auto; min-height: 300px; align-items: center; }
.bracket-round { display: flex; flex-direction: column; gap: 16px; min-width: 220px; }
.bracket-round-title { font-family: 'Oxanium', sans-serif; text-transform: uppercase; font-size: 0.65rem; color: var(--text-muted); text-align: center; margin-bottom: 8px; letter-spacing: 0.08em; }
.bracket-match { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; transition: all 0.2s; }
.bracket-match:hover { border-color: var(--primary); }
.bracket-match.live { border-color: var(--live); box-shadow: 0 0 10px rgba(239,68,68,0.15); }
.bracket-team { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 0.8rem; }
.bracket-team + .bracket-team { border-top: 1px solid var(--border); }
.bracket-team.winner { background: rgba(124,58,237,0.1); color: var(--primary); font-weight: 600; }
.bracket-team .score { font-family: 'Oxanium', sans-serif; font-weight: 700; font-size: 0.95rem; min-width: 24px; text-align: center; }

/* ====================== STREAM ====================== */
.stream-embed { width: 100%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.stream-embed iframe { width: 100%; height: 100%; border: none; }

/* ====================== GRID ====================== */
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* ====================== ADMIN ====================== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px; background: linear-gradient(180deg, #0c0c14 0%, #0f0f18 100%);
  border-right: 1px solid var(--border); padding: 0; position: fixed; height: 100vh; overflow-y: auto; z-index: 100;
}
.admin-sidebar .brand {
  padding: 16px; font-family: 'Orbitron', sans-serif; font-size: 0.85rem; color: var(--neon-purple);
  font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border); margin-bottom: 6px;
  text-shadow: 0 0 10px var(--primary-glow);
  background: linear-gradient(135deg, rgba(124,58,237,0.08), transparent);
}
.admin-sidebar a {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px; color: var(--text-muted);
  font-size: 0.75rem; font-weight: 500; transition: all 0.2s; border-left: 3px solid transparent;
}
.admin-sidebar a:hover { color: var(--text); background: rgba(124,58,237,0.06); border-left-color: rgba(124,58,237,0.3); }
.admin-sidebar a.active { color: var(--neon-purple); background: rgba(124,58,237,0.1); border-left-color: var(--neon-purple); font-weight: 600; }
.admin-content { margin-left: 220px; flex: 1; padding: 20px 24px; }
.admin-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.admin-header h1 { font-family: 'Orbitron', sans-serif; font-size: 1.1rem; color: var(--text); letter-spacing: 0.06em; }

/* Admin mobile toggle */
.admin-sidebar-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 6px;
  cursor: pointer; padding: 6px 10px; color: var(--text);
}
.admin-sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 90;
}

/* ====================== TABLE ====================== */
.table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 8px 12px; font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--border); font-family: 'Oxanium', sans-serif; background: rgba(124,58,237,0.04); }
td { padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 0.75rem; }
tr:hover td { background: rgba(124,58,237,0.03); }
tr:last-child td { border-bottom: none; }

/* ====================== STATS (admin) ====================== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 14px;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary)); opacity: 0.6;
}
.stat-card .stat-value { font-family: 'Orbitron', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--neon-purple); text-shadow: 0 0 8px var(--primary-glow); }
.stat-card .stat-label { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ====================== FOOTER ====================== */
.footer { padding: 16px 0; border-top: 1px solid var(--border); text-align: center; color: var(--text-muted); font-size: 0.7rem; }
.footer-brand { font-family: 'Orbitron', sans-serif; font-size: 0.75rem; font-weight: 800; color: var(--neon-purple); text-transform: uppercase; letter-spacing: 0.08em; text-shadow: 0 0 8px var(--primary-glow); margin-bottom: 3px; }

/* ====================== UTILITY ====================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-2 { margin-top: 6px; }
.mt-4 { margin-top: 12px; }
.mb-4 { margin-bottom: 12px; }
.mb-6 { margin-bottom: 18px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 6px; }
.gap-4 { gap: 12px; }

/* ====================== RESPONSIVE ====================== */

/* Tablet */
@media (max-width: 768px) {
  .container { padding: 0 12px; }
  .hero { min-height: 45vh; padding: 20px 0; }
  .hero-title-main { font-size: 1.6rem; }
  .hero-typing-wrap { font-size: 0.85rem; }
  .hero-btn { padding: 8px 16px; font-size: 0.65rem; }
  .hero-desc { font-size: 0.7rem; max-width: 360px; margin-bottom: 12px; }
  .hero-badge { font-size: 0.5rem; padding: 3px 10px; }
  .hero-glow-orb-1 { width: 150px; height: 150px; }
  .hero-glow-orb-2 { width: 100px; height: 100px; }
  .hero-glow-orb-3 { width: 80px; height: 80px; }

  .navbar-toggle { display: flex; }
  .navbar-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(5,5,8,0.98); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 12px 16px; gap: 8px;
    backdrop-filter: blur(20px);
  }
  .navbar-links.open { display: flex; }
  .navbar-links a { font-size: 0.8rem; padding: 8px 0; }
  .navbar-links a::after { display: none; }
  .navbar { position: relative; }

  .section { padding: 18px 0; }
  .section-title { font-size: 1rem; }
  .showcase-section { padding: 14px 0; }
  .showcase-card { padding: 10px 12px; gap: 10px; }
  .showcase-icon { width: 34px; height: 34px; font-size: 0.85rem; }
  .showcase-count { font-size: 1.1rem; }

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

  .team-card { padding: 12px; }
  .player-card { padding: 8px 10px; }

  /* Admin mobile */
  .admin-sidebar {
    transform: translateX(-100%); transition: transform 0.3s ease;
    width: 240px; z-index: 110;
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; padding: 14px; }
  .admin-sidebar-toggle { display: inline-flex; }
  .admin-sidebar-overlay.active { display: block; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  .bracket { gap: 16px; padding: 16px 8px; }
  .bracket-round { min-width: 180px; }
}

/* Mobile */
@media (max-width: 480px) {
  .container { padding: 0 10px; }
  .hero { min-height: 40vh; padding: 16px 0; }
  .hero-title-main { font-size: 1.3rem; letter-spacing: 0.04em; }
  .hero-typing-wrap { font-size: 0.75rem; }
  .hero-desc { font-size: 0.65rem; max-width: 300px; }
  .hero-btn { padding: 7px 14px; font-size: 0.6rem; }
  .hero-cta { flex-direction: column; align-items: center; gap: 8px; }
  .hero-badge { font-size: 0.45rem; }
  .hero-scroll-hint { display: none; }

  .navbar-brand { font-size: 0.8rem; }

  .section { padding: 14px 0; }
  .section-title { font-size: 0.9rem; }
  .section-head { margin-bottom: 10px; }

  .showcase-card { padding: 8px 10px; }
  .showcase-count { font-size: 1rem; }
  .showcase-icon { width: 30px; height: 30px; font-size: 0.75rem; }

  .grid-3 { grid-template-columns: 1fr; gap: 8px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .card { padding: 10px; }
  .team-card { padding: 10px; }
  .team-logo { width: 36px; height: 36px; }
  .team-name { font-size: 0.6rem; }
  .player-card { padding: 8px; gap: 8px; }
  .player-avatar { width: 30px; height: 30px; }
  .player-name { font-size: 0.6rem; }
  .player-stat { font-size: 0.5rem; }

  .sponsor-card { padding: 10px 8px; }
  .sponsor-logo { width: 32px; height: 32px; }

  .btn { padding: 5px 10px; font-size: 0.65rem; }
  .btn-sm { padding: 3px 8px; font-size: 0.55rem; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-card { padding: 10px; }
  .stat-card .stat-value { font-size: 1.1rem; }
  .stat-card .stat-label { font-size: 0.55rem; }

  .footer { padding: 12px 0; }
  .footer-brand { font-size: 0.65rem; }
  .footer p { font-size: 0.6rem; }

  .bracket { padding: 12px 6px; }
  .bracket-round { min-width: 160px; gap: 10px; }
  .bracket-team { padding: 6px 8px; font-size: 0.7rem; }
}

/* Small mobile */
@media (max-width: 360px) {
  .hero-title-main { font-size: 1.1rem; }
  .hero-typing-wrap { font-size: 0.65rem; }
  .grid-4 { grid-template-columns: 1fr; }
}
