/* ================================================================
   KhelMC FFA PvP — High Performance Esports Dark Theme Stylesheet
   Fonts: Chakra Petch (Esports), Cinzel (Fancy Headings), Outfit (Body)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,500;0,600;0,700;1,700&family=Cinzel:wght@600;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-deep: #050608;
  --bg-dark: #0a0b0f;
  --bg-surface: #10121a;
  --bg-card: rgba(16, 18, 26, 0.82);
  --bg-card-hover: rgba(24, 27, 40, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-crimson: rgba(255, 30, 66, 0.35);
  --border-crimson-bright: #ff1e42;
  
  --crimson-primary: #ff1e42;
  --crimson-dark: #990f23;
  --crimson-glow: rgba(255, 30, 66, 0.45);
  --crimson-light: #ff4766;
  
  --gold-accent: #fbbf24;
  --gold-dark: #b45309;
  --gold-glow: rgba(251, 191, 36, 0.45);
  
  --silver-accent: #cbd5e1;
  --silver-glow: rgba(203, 213, 225, 0.35);
  
  --bronze-accent: #f97316;
  --bronze-glow: rgba(249, 115, 22, 0.35);
  
  --green-online: #10b981;
  --green-glow: rgba(16, 185, 129, 0.5);
  --cyan-accent: #06b6d4;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-esports: 'Chakra Petch', sans-serif;
  --font-fancy: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;
  --font-tech: 'Chakra Petch', sans-serif;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Background Atmosphere */
.video-bg-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.video-bg-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: contrast(1.15) brightness(0.8);
  transform: scale(1.02);
}

.dark-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 50% 20%, rgba(255, 30, 66, 0.08) 0%, rgba(5, 6, 8, 0.78) 55%, rgba(5, 6, 8, 0.98) 100%);
  pointer-events: none;
}

#ember-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ================================================================
   TOP NAVIGATION BAR
   ================================================================ */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 0.75rem 2rem;
  background: rgba(10, 11, 15, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--crimson-primary), var(--crimson-dark));
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--crimson-glow);
  flex-shrink: 0;
}

.nav-logo-icon svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.nav-brand-group {
  display: flex;
  flex-direction: column;
}

.nav-brand-text {
  font-family: var(--font-esports);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}

.nav-brand-text span {
  color: var(--crimson-primary);
  text-shadow: 0 0 12px var(--crimson-glow);
}

.nav-brand-sub {
  font-size: 0.7rem;
  font-family: var(--font-tech);
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

/* Central Section Navigation Tabs */
.nav-sections {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.nav-section-link {
  font-family: var(--font-esports);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 1.1rem;
  border-radius: 4px;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-icon-svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
}

.nav-section-link:hover {
  color: #fff;
}

.nav-section-link.active {
  color: #fff;
  background: rgba(255, 30, 66, 0.2);
  border: 1px solid var(--border-crimson);
  box-shadow: 0 0 16px rgba(255, 30, 66, 0.35);
}

.nav-section-link.active .nav-icon-svg {
  stroke: var(--crimson-light);
  filter: drop-shadow(0 0 6px var(--crimson-glow));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-family: var(--font-tech);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--green-online);
  box-shadow: 0 0 8px var(--green-online);
  animation: pulseBeacon 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--green-online); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: #5865f2;
  color: #ffffff;
  font-family: var(--font-esports);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 4px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: var(--transition-fast);
}

.discord-btn:hover {
  background: #4752c4;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.5);
  transform: translateY(-1px);
}

/* ================================================================
   CONTENT SECTION SWITCHING
   ================================================================ */
.content-section {
  display: none;
  opacity: 0;
  animation: fadeInSection 0.35s ease forwards;
  width: 100%;
}

.content-section.active {
  display: block;
}

@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   SECTION 1: HERO & ABOUT
   ================================================================ */
.hero-section {
  max-width: 1380px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  width: 100%;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.25rem;
  background: rgba(255, 30, 66, 0.12);
  border: 1px solid var(--border-crimson);
  color: var(--crimson-light);
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(255, 30, 66, 0.2);
  max-width: 100%;
}

.badge-gem {
  color: var(--crimson-primary);
  font-size: 0.75rem;
  filter: drop-shadow(0 0 6px var(--crimson-glow));
}

.hero-title {
  font-family: var(--font-esports);
  font-size: clamp(2.3rem, 7.5vw, 5.8rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  position: relative;
  word-break: break-word;
  max-width: 100%;
}

.hero-title .brand-khel {
  background: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-title .brand-ffa {
  color: var(--crimson-primary);
  text-shadow: 0 0 35px var(--crimson-glow), 0 0 10px rgba(255, 30, 66, 0.8);
  margin-left: 0.2em;
}

.hero-subtitle {
  max-width: 780px;
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  font-weight: 400;
  line-height: 1.65;
  padding: 0 1rem;
}

.hero-subtitle strong {
  color: #fff;
  font-weight: 600;
}

/* Central Action Hub */
.action-hub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  width: 100%;
  max-width: 100%;
}

/* Interactive Copy Server IP Button */
.copy-ip-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 2.2rem;
  background: linear-gradient(135deg, #180407 0%, #35070f 50%, #8c0c20 100%);
  border: 2px solid var(--crimson-primary);
  color: #ffffff;
  font-family: var(--font-tech);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  border-radius: 6px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: 0 0 25px var(--crimson-glow), inset 0 0 15px rgba(255, 30, 66, 0.25);
  transition: all var(--transition-fast);
  overflow: hidden;
}

.copy-ip-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
  transform: rotate(45deg);
  animation: lightSweep 4s infinite linear;
  pointer-events: none;
}

@keyframes lightSweep {
  0% { transform: translateX(-100%) rotate(45deg); }
  35%, 100% { transform: translateX(100%) rotate(45deg); }
}

.copy-ip-btn:hover {
  background: linear-gradient(135deg, #28080f 0%, #580d19 50%, #b8102b 100%);
  box-shadow: 0 0 35px rgba(255, 30, 66, 0.7), inset 0 0 20px rgba(255, 30, 66, 0.5);
  transform: translateY(-2px);
}

.copy-ip-btn.copied {
  background: linear-gradient(135deg, #063826 0%, #0d6e49 50%, #10b981 100%);
  border-color: #34d399;
  box-shadow: 0 0 35px var(--green-glow);
}

.btn-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.btn-label {
  font-size: 0.72rem;
  color: var(--crimson-light);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.copy-ip-btn.copied .btn-label {
  color: #a7f3d0;
}

.btn-ip {
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: lowercase;
}

/* Adjacent Live Status Widget */
.status-widget {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 1.6rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-crimson);
  border-radius: 6px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.status-indicator-col {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.status-badge-text {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green-online);
}

.status-divider {
  width: 1px;
  height: 38px;
  background: var(--border-subtle);
}

.status-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}

.player-count-label {
  font-size: 0.65rem;
  font-family: var(--font-tech);
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-count-val {
  font-family: var(--font-tech);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.player-count-val span:first-child {
  color: var(--crimson-light);
}

.map-badge-val {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.map-badge-val svg {
  stroke: var(--crimson-light);
}

/* ================================================================
   MAIN GRID (ARENA OVERVIEW & LEADERBOARD)
   ================================================================ */
.main-grid {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
}

.features-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-title {
  font-family: var(--font-fancy);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  border-bottom: 2px solid var(--border-crimson);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.section-title svg {
  fill: var(--crimson-primary);
  filter: drop-shadow(0 0 8px var(--crimson-glow));
}

.kits-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.35rem;
  border-radius: 6px;
}

.kits-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.kits-title-row h4 {
  font-family: var(--font-esports);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kit-badge-pill {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  background: rgba(255, 30, 66, 0.12);
  color: var(--crimson-light);
  border: 1px solid var(--border-crimson);
}

.kits-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.kit-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.kit-badge:hover {
  background: rgba(255, 30, 66, 0.08);
  border-color: var(--border-crimson);
  color: #fff;
}

.kit-icon-svg {
  width: 16px;
  height: 16px;
  stroke: var(--crimson-light);
  flex-shrink: 0;
}

.about-intro-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  border-radius: 6px;
}

.about-intro-panel h3 {
  font-family: var(--font-fancy);
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.about-intro-panel p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

.highlight-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: rgba(255, 30, 66, 0.12);
  border: 1px solid var(--border-crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-item-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--crimson-light);
}

.highlight-item-text strong {
  display: block;
  font-family: var(--font-esports);
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.03em;
}

.highlight-item-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: block;
}

/* ================================================================
   LEADERBOARD COMPONENT
   ================================================================ */
.leaderboard-container {
  background: var(--bg-card);
  border: 1px solid var(--border-crimson);
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
}

.lb-header-title {
  font-family: var(--font-fancy);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lb-header-title svg {
  fill: var(--crimson-primary);
  filter: drop-shadow(0 0 6px var(--crimson-glow));
}

.lb-tabs {
  display: flex;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.2rem 0.3rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.lb-tab-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  border-radius: 3px;
  transition: var(--transition-fast);
}

.lb-tab-btn:hover {
  color: #fff;
}

.lb-tab-btn.active {
  background: var(--crimson-primary);
  color: #fff;
  box-shadow: 0 0 12px var(--crimson-glow);
}

/* Spotlight Champion Card */
.spotlight-champion {
  background: linear-gradient(135deg, rgba(35, 7, 12, 0.75) 0%, rgba(18, 20, 29, 0.95) 100%);
  border: 1px solid var(--border-crimson-bright);
  border-radius: 6px;
  padding: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 0 25px rgba(255, 30, 66, 0.22);
}

.champ-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.champ-avatar-wrap {
  position: relative;
  width: 54px;
  height: 54px;
  border: 2px solid var(--gold-accent);
  border-radius: 6px;
  padding: 2px;
  background: #000;
  box-shadow: 0 0 14px var(--gold-glow);
  flex-shrink: 0;
}

.champ-avatar {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  border-radius: 4px;
}

.crown-badge {
  position: absolute;
  top: -14px;
  right: -10px;
  width: 26px;
  height: 26px;
}

.crown-badge-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px var(--gold-glow));
}

.champ-details {
  display: flex;
  flex-direction: column;
}

.champ-rank-tag {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--crimson-light);
}

.champ-name {
  font-family: var(--font-esports);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}

.champ-stats-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.champ-stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.champ-stat-label {
  font-size: 0.65rem;
  font-family: var(--font-tech);
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.champ-stat-val {
  font-family: var(--font-tech);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}

.champ-stat-val.kills { color: var(--crimson-light); text-shadow: 0 0 10px var(--crimson-glow); }
.champ-stat-val.kdr { color: var(--gold-accent); text-shadow: 0 0 10px var(--gold-glow); }
.champ-stat-val.streak { color: var(--cyan-accent); }

/* Leaderboard List */
.lb-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.lb-list::-webkit-scrollbar {
  width: 5px;
}
.lb-list::-webkit-scrollbar-thumb {
  background: var(--border-crimson);
  border-radius: 4px;
}

.lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  transition: var(--transition-fast);
}

.lb-row:hover {
  background: rgba(255, 30, 66, 0.08);
  border-color: var(--border-crimson);
}

.lb-row-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lb-pos {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dim);
  width: 24px;
}

.lb-avatar {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.lb-user-info {
  display: flex;
  flex-direction: column;
}

.lb-username {
  font-family: var(--font-esports);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.lb-role-badge {
  font-size: 0.68rem;
  font-family: var(--font-tech);
  color: var(--text-dim);
}

.lb-stats-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lb-stat-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.lb-cell-label {
  font-size: 0.62rem;
  font-family: var(--font-tech);
  color: var(--text-dim);
}

.lb-cell-val {
  font-family: var(--font-tech);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.lb-cell-val.kills { color: var(--crimson-light); }
.lb-cell-val.kdr { color: var(--gold-accent); }
.lb-cell-val.streak { color: var(--cyan-accent); }

/* ================================================================
   SECTION 2: GUIDE (Alternating Flow & Logos)
   ================================================================ */
.guide-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem 1.5rem;
  width: 100%;
}

.section-header-block {
  text-align: center;
  margin-bottom: 3.5rem;
}

.fancy-subtitle-pill {
  display: inline-block;
  font-family: var(--font-tech);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crimson-light);
  padding: 0.3rem 0.9rem;
  background: rgba(255, 30, 66, 0.1);
  border: 1px solid var(--border-crimson);
  border-radius: 3px;
  margin-bottom: 0.85rem;
}

.section-header-title {
  font-family: var(--font-fancy);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.6rem;
  line-height: 1.1;
}

.section-header-title span {
  color: var(--crimson-primary);
  text-shadow: 0 0 25px var(--crimson-glow);
}

.section-header-sub {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Alternating Guide Rows */
.guide-flow {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.guide-flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.5rem;
  padding: 2.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.guide-flow-row:hover {
  border-color: var(--border-crimson);
  box-shadow: 0 12px 35px rgba(255, 30, 66, 0.15);
  transform: translateY(-2px);
}

.guide-flow-row.reverse {
  flex-direction: row-reverse;
}

.guide-flow-text {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.guide-flow-step {
  font-family: var(--font-tech);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--crimson-light);
  text-transform: uppercase;
}

.guide-flow-title {
  font-family: var(--font-fancy);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
  line-height: 1.2;
}

.guide-flow-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.guide-flow-desc strong {
  color: #fff;
  font-weight: 600;
}

.guide-flow-desc code {
  background: rgba(255, 30, 66, 0.15);
  color: var(--crimson-light);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
  border: 1px solid rgba(255, 30, 66, 0.25);
}

.guide-perk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.perk-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.perk-chip svg {
  width: 14px;
  height: 14px;
  stroke: var(--crimson-light);
  flex-shrink: 0;
}

.guide-flow-media {
  flex: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 320px;
}

.guide-logo-emblem {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 24px;
  padding: 6px;
  background: linear-gradient(135deg, rgba(255, 30, 66, 0.4) 0%, rgba(10, 11, 15, 0.9) 60%, rgba(245, 158, 11, 0.3) 100%);
  box-shadow: 0 0 35px rgba(255, 30, 66, 0.25), inset 0 0 20px rgba(0, 0, 0, 0.8);
  animation: floatEmblem 6s infinite ease-in-out;
}

@keyframes floatEmblem {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

.guide-logo-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Sub-section Dividers */
.sub-section-divider {
  text-align: center;
  margin: 3.5rem 0 1.75rem 0;
}

.sub-section-title {
  font-family: var(--font-fancy);
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.35rem;
}

.sub-section-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Kits Deep Dive */
.kits-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.kit-full-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: var(--transition-fast);
}

.kit-full-card:hover {
  border-color: var(--border-crimson);
  transform: translateY(-2px);
}

.kit-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.65rem;
}

.kit-card-name {
  font-family: var(--font-esports);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.kit-head-svg {
  width: 18px;
  height: 18px;
  stroke: var(--crimson-light);
}

.kit-card-role {
  font-family: var(--font-tech);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.kit-card-role.damage { background: rgba(255, 30, 66, 0.15); color: var(--crimson-light); }
.kit-card-role.ranged { background: rgba(6, 182, 212, 0.15); color: var(--cyan-accent); }
.kit-card-role.speed { background: rgba(245, 158, 11, 0.15); color: var(--gold-accent); }
.kit-card-role.tank { background: rgba(16, 185, 129, 0.15); color: var(--green-online); }

.kit-gear-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
}

.kit-gear-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.gear-icon-svg {
  width: 14px;
  height: 14px;
  stroke: var(--crimson-light);
  flex-shrink: 0;
}

.kit-desc-text {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Upgrade Table */
.upgrade-table-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow-x: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.upgrade-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.upgrade-table th, .upgrade-table td {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
}

.upgrade-table th {
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.4);
}

.upgrade-table tbody tr:hover {
  background: rgba(255, 30, 66, 0.04);
}

.price-tag {
  font-family: var(--font-tech);
  font-weight: 700;
  color: var(--gold-accent);
}

/* ================================================================
   SECTION 3: REWARDS (3D Olympic Esports Podium)
   ================================================================ */
.rewards-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem 1.5rem;
  width: 100%;
}

/* 3D Olympic Podium Grid */
.podium-stage {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: flex-end;
  gap: 1.5rem;
  margin: 2.5rem 0 3.5rem 0;
  position: relative;
}

.podium-pillar {
  background: var(--bg-card);
  border-radius: 8px 8px 0 0;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

/* 2nd Place (Left) */
.podium-pillar.silver {
  border: 1px solid var(--silver-accent);
  border-bottom: none;
  min-height: 480px;
  background: linear-gradient(180deg, rgba(203, 213, 225, 0.1) 0%, rgba(16, 18, 26, 0.95) 100%);
}

/* 1st Place (Center, Elevated) */
.podium-pillar.gold.champion-pillar {
  border: 2px solid var(--gold-accent);
  border-bottom: none;
  min-height: 560px;
  transform: translateY(-24px);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.16) 0%, rgba(20, 16, 10, 0.95) 100%);
  box-shadow: 0 0 45px rgba(251, 191, 36, 0.28), 0 16px 45px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

/* 3rd Place (Right) */
.podium-pillar.bronze {
  border: 1px solid var(--bronze-accent);
  border-bottom: none;
  min-height: 440px;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.1) 0%, rgba(16, 18, 26, 0.95) 100%);
}

.podium-champ-crown {
  position: absolute;
  top: -26px;
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 12px var(--gold-glow));
}

.podium-champ-crown img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.podium-trophy-holder {
  width: 130px;
  height: 130px;
  margin-bottom: 1.25rem;
  position: relative;
}

.champion-trophy {
  width: 160px;
  height: 160px;
}

.podium-trophy-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.6));
}

.podium-pillar.gold .podium-trophy-img {
  filter: drop-shadow(0 0 20px var(--gold-glow));
}

.podium-rank-pill {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.silver .podium-rank-pill {
  background: var(--silver-accent);
  color: #000;
}

.gold-pill {
  background: linear-gradient(135deg, var(--gold-accent), #d97706);
  color: #000;
  box-shadow: 0 0 16px var(--gold-glow);
}

.bronze .podium-rank-pill {
  background: var(--bronze-accent);
  color: #fff;
}

.podium-title {
  font-family: var(--font-fancy);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.gold-title {
  font-size: 1.85rem;
  color: var(--gold-accent);
  text-shadow: 0 0 15px var(--gold-glow);
}

.podium-prize-badge {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1.25rem;
}

.prize-main {
  font-family: var(--font-esports);
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.gold-prize .prize-main {
  color: var(--gold-accent);
  text-shadow: 0 0 18px var(--gold-glow);
  font-size: 2.5rem;
}

.prize-alt {
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.podium-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  margin-bottom: 1.5rem;
}

.podium-perks li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.podium-perks li svg {
  width: 14px;
  height: 14px;
  stroke: var(--green-online);
  flex-shrink: 0;
}

.gold .podium-perks li strong {
  color: #fff;
}

/* 3D Podium Step Base */
.podium-step-pedestal {
  width: 100%;
  padding: 0.85rem 0;
  background: rgba(0, 0, 0, 0.6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

.step-num {
  font-family: var(--font-fancy);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.25);
}

.gold-step .step-num {
  color: var(--gold-accent);
  opacity: 0.75;
  text-shadow: 0 0 15px var(--gold-glow);
  font-size: 2.8rem;
}

/* Streak Master Strip */
.streak-master-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 1.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-crimson);
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(255, 30, 66, 0.15);
  margin-bottom: 3.5rem;
}

.streak-strip-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.streak-strip-logo {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  padding: 2px;
  background: linear-gradient(135deg, var(--crimson-primary), var(--gold-accent));
  box-shadow: 0 0 15px var(--crimson-glow);
  flex-shrink: 0;
}

.streak-strip-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.streak-strip-tag {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--crimson-light);
}

.streak-strip-info h4 {
  font-family: var(--font-fancy);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.streak-strip-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.streak-strip-prize {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.streak-strip-prize span {
  font-family: var(--font-esports);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--crimson-light);
  line-height: 1;
}

.streak-strip-prize small {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Payout Guidelines Box */
.payout-policy-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2rem;
}

.policy-title {
  font-family: var(--font-fancy);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.policy-title svg {
  fill: var(--crimson-primary);
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.policy-card {
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

.policy-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: rgba(255, 30, 66, 0.12);
  border: 1px solid var(--border-crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.policy-card-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--crimson-light);
}

.policy-card h4 {
  font-family: var(--font-esports);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.policy-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ================================================================
   SITE FOOTER
   ================================================================ */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 6, 8, 0.95);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-esports);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
}

.footer-brand span {
  color: var(--crimson-primary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--crimson-light);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
  max-width: 650px;
  line-height: 1.5;
}

/* ================================================================
   MOBILE RESPONSIVENESS OVERHAUL (max-width: 900px, 768px, 480px)
   Resolves Header Overflow, Layout cutoffs & Font sizing
   ================================================================ */

@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  
  .navbar {
    padding: 0.75rem 1.25rem;
  }
}

@media (max-width: 860px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0.65rem 1rem;
  }

  .nav-sections {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 0.4rem;
  }

  .nav-section-link {
    font-size: 0.95rem;
    padding: 0.35rem 0.85rem;
  }

  .nav-pill {
    display: none; /* Hide TPS pill on medium/small mobile to prevent navbar explosion */
  }

  .discord-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }

  .nav-brand-text {
    font-size: 1.35rem;
  }
}

@media (max-width: 768px) {
  /* Alternating Guide Flow collapses cleanly to vertical column */
  .guide-flow-row, .guide-flow-row.reverse {
    flex-direction: column !important;
    text-align: center;
    align-items: center;
    gap: 1.75rem;
    padding: 1.5rem 1.15rem;
  }

  .guide-flow-text {
    align-items: center;
    text-align: center;
  }

  .guide-flow-title {
    font-size: 1.55rem;
  }

  .guide-perk-chips {
    justify-content: center;
  }

  .guide-flow-media {
    max-width: 180px;
  }

  .guide-logo-emblem {
    width: 170px;
    height: 170px;
  }

  /* 3D Podium Stacking for Mobile */
  .podium-stage {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Order on mobile: 1st place on top, then 2nd, then 3rd */
  #podium-rank-1 {
    order: 1;
    transform: none;
    min-height: auto;
    border-bottom: 2px solid var(--gold-accent);
    border-radius: 8px;
  }

  #podium-rank-2 {
    order: 2;
    transform: none;
    min-height: auto;
    border-bottom: 1px solid var(--silver-accent);
    border-radius: 8px;
  }

  #podium-rank-3 {
    order: 3;
    transform: none;
    min-height: auto;
    border-bottom: 1px solid var(--bronze-accent);
    border-radius: 8px;
  }

  .podium-trophy-holder {
    width: 110px;
    height: 110px;
  }

  .champion-trophy {
    width: 130px;
    height: 130px;
  }

  .streak-master-strip {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.25rem;
  }

  .streak-strip-left {
    flex-direction: column;
    text-align: center;
  }

  .streak-strip-prize {
    align-items: center;
  }

  .kits-tags, .about-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.5rem 0.75rem;
  }

  .nav-brand-text {
    font-size: 1.2rem;
  }

  .nav-brand-sub {
    font-size: 0.62rem;
  }

  .nav-logo-icon {
    width: 32px;
    height: 32px;
  }

  .nav-section-link {
    font-size: 0.82rem;
    padding: 0.3rem 0.55rem;
    gap: 0.25rem;
  }

  .nav-icon-svg {
    width: 13px;
    height: 13px;
  }

  .hero-section {
    padding: 1.75rem 0.75rem 1rem 0.75rem;
  }

  .hero-badge-tag {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.65rem;
    line-height: 1.35;
  }

  .hero-title {
    font-size: clamp(1.85rem, 8vw, 2.75rem);
    line-height: 1.05;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    padding: 0 0.25rem;
    margin-bottom: 1.75rem;
  }

  .action-hub {
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
  }

  .copy-ip-btn {
    width: 100%;
    max-width: 100%;
    padding: 0.85rem 1.15rem;
    clip-path: none;
    border-radius: 8px;
    justify-content: center;
  }

  .btn-ip {
    font-size: 1.05rem;
  }

  .btn-label {
    font-size: 0.65rem;
  }

  .status-widget {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    clip-path: none;
    border-radius: 8px;
    justify-content: space-around;
  }

  .main-grid {
    padding: 0 0.85rem 3rem 0.85rem;
  }

  .guide-container, .rewards-container {
    padding: 1.75rem 0.85rem 3.5rem 0.85rem;
  }

  .section-header-title {
    font-size: 1.95rem;
  }

  .spotlight-champion {
    flex-direction: column;
    align-items: flex-start;
  }

  .champ-stats-row {
    width: 100%;
    justify-content: space-between;
  }
}
