/* ==========================================================================
   X2 — OFFICIAL COMPETITIVE PLATFORM DESIGN SYSTEM (2026)
   Palette: Deep Obsidian (#060709), Championship Gold (#FFD000), Electric Cyan (#00A3FF), Blaze Orange (#FF5E00)
   ========================================================================== */

:root {
  --bg-void: #050608;
  --bg-obsidian: #0A0C10;
  --bg-surface: #10131A;
  --bg-surface-hover: #161A24;
  --bg-glass: rgba(12, 15, 22, 0.72);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(255, 208, 0, 0.35);
  --border-gold-bright: rgba(255, 208, 0, 0.85);

  --gold: #FFD000;
  --gold-bright: #FFE45E;
  --gold-amber: #F59E0B;
  --gold-glow: rgba(255, 208, 0, 0.28);

  --cyan: #00A3FF;
  --cyan-glow: rgba(0, 163, 255, 0.25);
  --orange: #FF5E00;
  --orange-glow: rgba(255, 94, 0, 0.25);
  --emerald: #10B981;

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --font-display: 'Chakra Petch', 'Rajdhani', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-ar: 'Cairo', 'Plus Jakarta Sans', sans-serif;

  --container-max: 1360px;
  --nav-height: 82px;
  --transition-fast: 180ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-smooth: 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

html[dir="rtl"] body {
  font-family: var(--font-ar);
}

body {
  background-color: var(--bg-void);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(255, 208, 0, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(0, 163, 255, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(255, 94, 0, 0.04) 0%, transparent 45%);
  min-height: 100vh;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: #232836;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Tactical Background Grid Overlay */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-size: 64px 64px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 85%);
}

/* ==========================================================================
   PRELOADER / INTRO SPLASH (Session-based)
   ========================================================================== */
.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #040507;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s;
}
.intro-splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-crest-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseCrest 1.6s ease-in-out infinite alternate;
}
.intro-crest-wrap img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 0 28px rgba(255, 208, 0, 0.55));
}
.intro-bar {
  width: 220px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 28px;
  overflow: hidden;
  position: relative;
}
.intro-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-amber), var(--gold), #fff);
  box-shadow: 0 0 12px var(--gold);
  animation: loadBar 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.intro-label {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  color: var(--gold);
  text-transform: uppercase;
}
@keyframes pulseCrest {
  from { transform: scale(0.96); filter: brightness(0.95); }
  to { transform: scale(1.03); filter: brightness(1.12); }
}
@keyframes loadBar {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(6, 7, 10, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.site-header.scrolled {
  background: rgba(5, 6, 8, 0.94);
  border-bottom-color: rgba(255, 208, 0, 0.22);
}
.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
  group: brand;
}
.brand-crest {
  height: 46px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(255, 208, 0, 0.28));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}
.brand-link:hover .brand-crest {
  transform: scale(1.06);
  filter: drop-shadow(0 0 16px rgba(255, 208, 0, 0.55));
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #fff;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 15px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 15px;
  right: 15px;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

/* Dropdown Menu for Teams */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #0D1017;
  border: 1px solid rgba(255, 208, 0, 0.25);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-fast);
  z-index: 1100;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--transition-fast);
}
.dropdown-item:hover {
  background: rgba(255, 208, 0, 0.1);
  color: #fff;
}
.dropdown-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
}
.dropdown-badge.complete {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
}

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

/* Language Toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 3px;
  cursor: pointer;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.lang-btn.active {
  background: var(--gold);
  color: #050608;
  font-weight: 700;
}

/* Primary Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.btn-gold {
  background: linear-gradient(135deg, #FFD000 0%, #F5B000 100%);
  color: #050608;
  box-shadow: 0 4px 20px rgba(255, 208, 0, 0.25);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 208, 0, 0.45);
  background: linear-gradient(135deg, #FFE033 0%, #FFC000 100%);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(255, 208, 0, 0.08);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 8px 15px;
  font-size: 0.8rem;
}

/* Mobile Hamburger */
.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==========================================================================
   LAYOUT UTILITIES & TYPOGRAPHY
   ========================================================================== */
main {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height);
}
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}
.section {
  padding: 96px 0;
  position: relative;
}
.section-sm {
  padding: 64px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}
.section-title span {
  color: var(--gold);
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  margin-top: 14px;
}

/* ==========================================================================
   HERO SECTION (HOME)
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.48;
  transform: scale(1.03);
  transition: transform 10s ease-out;
}
.hero:hover .hero-bg img {
  transform: scale(1.06);
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 45%, rgba(255, 208, 0, 0.08) 0%, transparent 50%),
    linear-gradient(90deg, #050608 0%, rgba(5, 6, 8, 0.88) 48%, rgba(5, 6, 8, 0.45) 100%),
    linear-gradient(0deg, #050608 0%, transparent 25%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding: 72px 0;
}
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 208, 0, 0.08);
  border: 1px solid rgba(255, 208, 0, 0.3);
  padding: 7px 16px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: blinkDot 1.8s infinite;
}
@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.6vw, 4.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 22px;
}
.hero-headline .accent-gold {
  background: linear-gradient(135deg, #FFF3B0 0%, #FFD000 50%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 34px;
  line-height: 1.7;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  max-width: 560px;
}
.metric-val {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.metric-val span {
  color: var(--gold);
}
.metric-lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Hero Right Crest Showcase */
.hero-emblem-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.emblem-card-3d {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 208, 0, 0.35);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.85),
    0 0 60px rgba(255, 208, 0, 0.16);
  background: #08090C;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.emblem-card-3d:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.9),
    0 0 85px rgba(255, 208, 0, 0.28);
}
.emblem-card-3d img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.emblem-hud-tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(6, 7, 10, 0.84);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 208, 0, 0.28);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hud-left {
  display: flex;
  flex-direction: column;
}
.hud-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #fff;
}
.hud-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.14em;
}
.hud-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(255, 208, 0, 0.7);
}

/* ==========================================================================
   DIVISION CARDS & ROSTERS
   ========================================================================== */
.divisions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.division-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
  text-decoration: none;
  color: inherit;
}
.division-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--gold));
  opacity: 0.85;
}
.division-card:hover {
  transform: translateY(-6px);
  background: var(--bg-surface-hover);
  border-color: var(--card-accent, var(--gold));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
}
.div-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.div-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--card-accent, var(--gold));
}
.div-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.div-status.complete {
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.div-status.recruiting {
  background: rgba(255, 208, 0, 0.12);
  color: var(--gold);
  border: 1px solid rgba(255, 208, 0, 0.32);
}
.div-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  margin-bottom: 6px;
}
.div-meta {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-fill {
  height: 100%;
  background: var(--card-accent, var(--gold));
  border-radius: 999px;
}
.div-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.div-foot strong {
  color: #fff;
}

/* ==========================================================================
   INKSTORM DUAL-ENERGY BANNER STRIP
   ========================================================================== */
.inkstorm-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #060709;
  min-height: 340px;
  display: flex;
  align-items: center;
}
.inkstorm-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}
.inkstorm-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 6, 8, 0.92) 0%, rgba(5, 6, 8, 0.65) 55%, rgba(5, 6, 8, 0.88) 100%);
}
.inkstorm-content {
  position: relative;
  z-index: 2;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  width: 100%;
}

/* ==========================================================================
   ROSTER PLAYER CARDS (TEAMS PAGE & PREVIEW)
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 34px 0 42px;
}
.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-btn:hover {
  border-color: rgba(255, 208, 0, 0.45);
  color: #fff;
}
.filter-btn.active {
  background: var(--gold);
  color: #050608;
  border-color: var(--gold);
  box-shadow: 0 4px 18px rgba(255, 208, 0, 0.25);
}

.roster-division-block {
  margin-bottom: 64px;
  scroll-margin-top: 110px;
}
.roster-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 28px;
}
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.player-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.player-card.confirmed {
  border-color: rgba(255, 208, 0, 0.24);
  background: linear-gradient(180deg, rgba(255, 208, 0, 0.04) 0%, var(--bg-surface) 100%);
}
.player-card.confirmed:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 208, 0, 0.12);
}
.player-card.open-slot {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(16, 19, 26, 0.45);
}
.player-card.open-slot:hover {
  border-color: var(--cyan);
  background: rgba(0, 163, 255, 0.05);
  transform: translateY(-4px);
}
.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.player-tag-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}
.player-tag-chip.confirmed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
}
.player-tag-chip.sub {
  background: rgba(0, 163, 255, 0.15);
  color: var(--cyan);
}
.player-tag-chip.open {
  background: rgba(255, 208, 0, 0.12);
  color: var(--gold);
}
.player-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #080A0F;
  border: 1px solid rgba(255, 208, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
}
.player-avatar img {
  width: 38px;
  height: auto;
}
.player-avatar.open-avatar {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 1.3rem;
}
.player-ign {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.player-role {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.player-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}
.player-action:hover {
  background: var(--gold);
  color: #050608;
  border-color: var(--gold);
}

/* ==========================================================================
   CARDS, STAFF, TIMELINE, NEWS & PATHWAYS
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card-glass {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 30px;
  transition: all var(--transition-smooth);
}
.card-glass:hover {
  border-color: rgba(255, 208, 0, 0.35);
  transform: translateY(-4px);
}

/* Staff Cards */
.staff-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}
.staff-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}
.staff-role-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 208, 0, 0.1);
  border: 1px solid rgba(255, 208, 0, 0.25);
  padding: 4px 10px;
  border-radius: 5px;
  margin-bottom: 14px;
}
.staff-handle {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.staff-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.staff-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Timeline (History) */
.timeline {
  position: relative;
  padding-left: 36px;
  border-left: 2px solid rgba(255, 208, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.timeline-item {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 28px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -45px;
  top: 32px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 4px solid var(--bg-void);
  box-shadow: 0 0 14px var(--gold);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Subpage Hero Banner */
.page-hero {
  position: relative;
  padding: 84px 0 64px;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 208, 0, 0.04) 0%, transparent 100%);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  object-fit: cover;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Legal & Prose Document Styling */
.legal-doc {
  max-width: 860px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 44px;
}
.legal-doc h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 28px 0 10px;
}
.legal-doc h2:first-child {
  margin-top: 0;
}
.legal-doc p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.75;
}
.legal-doc a {
  color: var(--gold);
  text-decoration: underline;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 2;
  background: #040507;
  border-top: 1px solid var(--border-subtle);
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 42px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
}
.footer-brand-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 18px 0 24px;
  max-width: 340px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.social-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 208, 0, 0.08);
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}
.footer-list a:hover {
  color: var(--gold);
}
.footer-bottom {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-emblem-stage {
    max-width: 360px;
  }
  .divisions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #080A0F;
    border-bottom: 1px solid rgba(255, 208, 0, 0.25);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 28px 28px;
    gap: 8px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.02);
  }
  .mobile-toggle {
    display: flex;
  }
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  .inkstorm-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }
}

@media (max-width: 580px) {
  .divisions-grid {
    grid-template-columns: 1fr;
  }
  .hero-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .legal-doc {
    padding: 26px 20px;
  }
}
