/* ═══════════════════════════════════════════════
   UZX PUBLIC SITE — Styles v2.0
   Inspirado en admin panel
════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Base */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  --surface: #f8fafc;

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  /* Borders */
  --border: #e2e8f0;
  --border-dark: #cbd5e1;

  /* Brand */
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #d1fae5;
  --primary-glow: rgba(16, 185, 129, 0.15);

  /* Colors */
  --green: #10b981;
  --blue: #3b82f6;
  --amber: #f59e0b;
  --red: #ef4444;
  --purple: #8b5cf6;

  /* Squad themes */
  --oficial-primary: #10b981;
  --oficial-bg: #ecfdf5;
  --tier-primary: #3b82f6;
  --tier-bg: #eff6ff;
  --girls-primary: #ec4899;
  --girls-bg: #fdf2f8;

  /* Feedback */
  --success: #10b981;
  --success-bg: #d1fae5;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --danger: #ef4444;
  --danger-bg: #fee2e2;
  --info: #3b82f6;
  --info-bg: #dbeafe;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Radius */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* Fonts */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Active squad (dynamic) */
  --active-primary: var(--oficial-primary);
  --active-bg: var(--oficial-bg);
}

/* Squad theme classes */
.squad-oficial {
  --active-primary: var(--oficial-primary);
  --active-bg: var(--oficial-bg);
}

.squad-tier {
  --active-primary: var(--tier-primary);
  --active-bg: var(--tier-bg);
}

.squad-girls {
  --active-primary: var(--girls-primary);
  --active-bg: var(--girls-bg);
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  /*max-width: 100%;*/
  display: block;
}

  /* ═══════════════════════════════════════════════
    WAKE-UP SCREEN — Immersive Loading
  ═════════════════════════════════════════════ */
  .wakeup-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0f0c;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }

  .wakeup-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  /* Slideshow de fondos de mapas */
  .wakeup-bg-slideshow {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease;
    opacity: 1;
    z-index: 0;
  }

  /* Overlay oscuro */
  .wakeup-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(10, 15, 12, 0.85) 0%,
      rgba(10, 15, 12, 0.7) 50%,
      rgba(10, 15, 12, 0.9) 100%
    );
    z-index: 1;
  }

  /* Contenido */
  .wakeup-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 480px;
    padding: 2rem;
  }

  /* Logo */
  .wakeup-logo-wrap {
    position: relative;
  }

  .wakeup-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.4));
  }

  @keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }



  @keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.15); opacity: 0.7; }
  }

  /* Brand */
  .wakeup-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .wakeup-brand-uzx {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 4px;
    text-transform: uppercase;
  }
  
  .wakeup-brand-divider {
    width: 2px;
    height: 18px;
    background: var(--primary);
    border-radius: 1px;
  }

  .wakeup-brand-esports {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
  }

  /* Subtítulo */
  .wakeup-subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
  }

  /* Loader */
  .wakeup-loader {
    width: 200px;
    margin-top: 0.5rem;
  }

  .wakeup-loader-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
  }

  .wakeup-loader-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  }

  /* Estado */
  .wakeup-status {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
  }

  .wakeup-status.ready {
    color: var(--primary);
  }

  /* Tip */
  .wakeup-tip {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    line-height: 1.5;
    max-width: 380px;
    margin-top: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    font-style: italic;
    letter-spacing: 0.2px;
  }

  /* Botón de reintentar */
  .wakeup-retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.65rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeUp 0.5s ease forwards;
  }

  .wakeup-retry-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
/* ═══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;

  display: grid;
  grid-template-columns: 260px 1fr 180px;
  align-items: center;

  height: 74px;
  padding: 0 28px;

  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

/*════════════ LEFT ════════════*/

.navbar-left {
  width: 260px;

  display: flex;
  align-items: center;
  gap: 12px;

  cursor: pointer;
}

.navbar-left img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.navbar-brand-text {

  display: flex;
  gap: 6px;

  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;

  white-space: nowrap;
}

.navbar-brand-text span {
  color: var(--active-primary);
}

/*════════════ CENTER ════════════*/

.navbar-center {

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;

}

.nav-link {

  position: relative;

  display: flex;
  align-items: center;
  gap: 8px;

  border: none;
  background: none;

  padding: 12px 16px;

  cursor: pointer;

  color: var(--text-secondary);

  font-size: .92rem;
  font-weight: 600;

  transition: .25s;

}

.nav-link:hover {

  color: var(--text-primary);

}

.nav-link svg {

  width: 18px;
  height: 18px;

}

.nav-link.active {

  color: var(--active-primary);

}

.nav-link.active::after {

  content: "";

  position: absolute;

  left: 12px;
  right: 12px;
  bottom: -15px;

  height: 3px;

  border-radius: 999px;

  background: var(--active-primary);

}

/*════════════ RIGHT ════════════*/

.navbar-right {

  width: 180px;

  display: flex;
  justify-content: flex-end;

}

.squad-selector {

  width: 160px;

  padding: 10px 14px;

  border-radius: 12px;

  border: 1px solid var(--border);

  background: var(--bg-secondary);

  font-weight: 700;

  cursor: pointer;

}

/*═══════════════════════════════════════
           TABLET
═══════════════════════════════════════*/

@media (max-width:1000px) {

  .navbar {

    grid-template-columns: 220px 1fr 150px;

    padding: 0 18px;

  }

  .navbar-left {

    width: 220px;

  }

  .navbar-right {

    width: 150px;

  }

  .nav-link {

    padding: 10px;

  }

  .nav-link span {

    display: none;

  }

}

/*═══════════════════════════════════════
             MOBILE
═══════════════════════════════════════*/

@media (max-width:768px) {

  .navbar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo selector"
      "menu menu";
    gap: 14px;
    height: auto;
    padding: 14px;
  }

  .navbar-left {
    grid-area: logo;
    width: auto;
  }

  .navbar-right {
    grid-area: selector;
    width: auto;
    justify-content: flex-end;
  }

  .navbar-center {
    grid-area: menu;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

  .nav-link {
    flex-direction: column;

    justify-content: center;

    gap: 6px;

    padding: 10px 4px;

    border-radius: 12px;

    background: var(--bg-secondary);

    font-size: .75rem;

  }

  .nav-link svg {

    width: 20px;
    height: 20px;

  }

  .nav-link.active::after {

    display: none;

  }

  .navbar-brand-text {

    font-size: 1rem;

  }

  .navbar-left img {

    width: 38px;
    height: 38px;

  }

  .squad-selector {

    width: 120px;

  }

}

/*═══════════════════════════════════════
        MÓVILES MUY PEQUEÑOS
═══════════════════════════════════════*/

@media (max-width:420px) {

  .navbar {

    padding: 12px;

  }

  .navbar-brand-text {

    font-size: .95rem;

  }

  .navbar-center {

    gap: 6px;

  }

  .nav-link {

    font-size: .70rem;

    padding: 8px 2px;

  }

  .nav-link svg {

    width: 18px;
    height: 18px;

  }

}

.squad-dropdown {
  position: relative;
}

.squad-current {
  width: 150px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: .2s;
}

.squad-current:hover {
  border-color: var(--active-primary);
}

.squad-current img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-right: 10px;
}

.squad-current span {
  flex: 1;
  text-align: left;
  font-weight: 700;
  font-size: .82rem;
}

.squad-current svg {
  flex-shrink: 0;
}

.squad-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 150px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
  z-index: 1000;

  /* CAMBIO 1: Quitamos el hover. Usamos opacity/visibility */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  pointer-events: none;
}

/* CAMBIO 2: La clase .open activa el menú */
.squad-dropdown.open .squad-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.squad-dropdown.open .squad-current svg {
  transform: rotate(180deg);
}

.squad-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: white;
  border: none;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  transition: .18s;
}

.squad-menu button:hover {
  background: #EAFBF3;
  color: var(--active-primary);
}

.squad-menu img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* ═══════════════════════════════════════════════
   HERO SECTION
═════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(135deg, var(--active-bg) 0%, var(--bg-primary) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

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

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 130px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 4px;
  line-height: 1;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.hero-title .accent {
  color: var(--active-primary);
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 3px;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.hero-stats {
  display: inline-flex;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-stat {
  padding: 1.25rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--active-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════
   SECTIONS
═════════════════════════════════════════════ */
.section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.section-title svg {
  width: 24px;
  height: 24px;
  color: var(--active-primary);
}

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

/* ═══════════════════════════════════════════════
   PLAYER CARDS (Admin Style - Horizontal Layout)
═════════════════════════════════════════════ */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.player-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.player-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: var(--active-primary);
}

.player-card-hidden {
  opacity: 0.55;
}

.player-card-inner {
  display: flex;
  min-height: 170px;
}

/* Foto a la izquierda */
.player-photo-wrap {
  width: 115px;
  min-height: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  flex-shrink: 0;
}

.player-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.player-photo-wrap .default-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

/* Bandera */
.player-flag-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  z-index: 2;
  pointer-events: none;
}

.player-flag-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Badge de inactivo */
.player-status-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: var(--danger-bg);
  color: var(--danger);
}

/* Info del jugador */
.player-info-wrap {
  flex: 1;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-width: 0;
}

.player-game-name {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.player-real-name {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.35rem;
}

.player-role-text {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.55rem;
}

.player-divider {
  width: 30px;
  height: 2px;
  background: var(--active-primary);
  margin-bottom: 0.55rem;
}

.player-maps-played {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.player-maps-played strong {
  color: var(--text-primary);
  font-size: 0.78rem;
}

/* Barra de rendimiento */
.perf-bar-section {
  padding: 0.55rem 1rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.perf-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.perf-bar-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.perf-bar-value {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary);
}

.perf-bar-track {
  width: 100%;
  height: 5px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.perf-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.perf-bar-fill.perf-good {
  background: var(--success);
}

.perf-bar-fill.perf-mid {
  background: var(--amber);
}

.perf-bar-fill.perf-low {
  background: var(--danger);
}

/* Stats inferiores */
.player-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.stat-box {
  padding: 0.55rem 0.25rem;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}

.stat-box:last-child {
  border-right: none;
}

.stat-box:hover {
  background: var(--bg-secondary);
}

.stat-icon {
  width: 20px;
  height: 20px;
  margin: 0 auto 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon img {
  display: block;
}

.stat-box-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.15rem;
}

.stat-box-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .players-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .player-card-inner {
    flex-direction: column;
  }

  .player-photo-wrap {
    width: 100%;
    height: 160px;
  }
}
/* ══════════════════════════════════════════════
   SCRIMS - Filtros y Paginación
═════════════════════════════════════════════ */

.scrims-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.filter-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.filter-input,
.filter-select {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.25s;
  cursor: pointer;
}

.filter-input:focus,
.filter-select:focus {
  border-color: var(--active-primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.filter-clear-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s;
}

.filter-clear-btn:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}

/* Paginación */
.scrims-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--border);
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--active-bg);
  border-color: var(--active-primary);
  color: var(--active-primary);
  transform: translateY(-1px);
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.pagination-info span {
  color: var(--text-primary);
  font-weight: 700;
}

/* ══════════════════════════════════════════════
   SCRIM CARDS - Compactas y Profesionales
═════════════════════════════════════════════ */

.scrims-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scrim-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
}

.scrim-card:hover {
  border-color: var(--active-primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

/* Columna izquierda */
.scrim-card-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

/* Date box con colores por squad */
.scrim-date-box {
  position: relative;
  width: 75px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.scrim-date-bg-oficial {
  background-image: url('../assets/fech.png');
}

.scrim-date-bg-tier {
  background-image: url('../assets/fechtier.png');
}

.scrim-date-bg-girls {
  background-image: url('../assets/fechgirls.png');
}

/* Colores de texto por squad */
.text-oficial {
  color: var(--primary) !important;
}

.text-tier {
  color: var(--blue) !important;
}

.text-girls {
  color: var(--pink, #ec4899) !important;
}

.scrim-date-day {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.scrim-date-mon {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.15rem;
}

.scrim-date-yr {
  font-size: 0.62rem;
  margin-top: 0.05rem;
}

/* Info */
.scrim-info {
  min-width: 0;
  flex: 1;
}

.scrim-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.scrim-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.scrim-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.scrim-meta-item svg {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
}

.scrim-mvp-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.scrim-mvp-row svg {
  width: 13px;
  height: 13px;
  color: var(--amber);
}

.scrim-mvp-row strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Columna derecha */
.scrim-card-right {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
}

.scrim-quick-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.scrim-quick-item {
  text-align: center;
  min-width: 70px;
}

.scrim-quick-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.scrim-quick-lbl {
  font-size: 0.58rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scrim-quick-sep {
  width: 1px;
  height: 50px;
  background: var(--border);
  margin: 0 1rem;
}

/* Collage deportivo - Estilo limpio */
.scrim-collage-wrap {
  flex: 1;
  min-width: 320px;
}

.scrim-map-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-tertiary);
  padding: 3px;
}

.scrim-map-slice {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.scrim-map-slice:hover {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.scrim-map-slice.not-played {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.scrim-map-slice::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0.1) 0%, 
    rgba(0, 0, 0, 0.5) 100%);
}

.scrim-map-slice .slice-label {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 3;
}

.scrim-map-slice .slice-label span {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  background: rgba(0,0,0,0.4);
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  display: inline-block;
}

/* Rendimientos debajo */
.scrim-map-perf-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: 6px;
  padding: 0 3px;
}

.scrim-map-perf-item {
  text-align: center;
  padding: 0.35rem 0.25rem;
  background: var(--bg-secondary);
  border-radius: 4px;
}

.scrim-map-perf-val {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}

.scrim-map-perf-val.hi {
  color: var(--success);
}

.scrim-map-perf-val.md {
  color: var(--warning);
}

.scrim-map-perf-val.lo {
  color: var(--danger);
}

.scrim-map-perf-val.none {
  color: var(--text-muted);
}

/* Map art */
.mp-art-BERMUDA {
  background-image: url('../assets/bm.png');
}

.mp-art-PURGATORIO {
  background-image: url('../assets/pg.png');
}

.mp-art-KALAHARI {
  background-image: url('../assets/kh.png');
}

.mp-art-NEXTERRA {
  background-image: url('../assets/nt.png');
}

/* Responsive */
@media (max-width: 900px) {
  .scrim-card {
    flex-direction: column;
    align-items: stretch;
  }
  
  .scrim-card-left {
    flex-direction: row;
  }
  
  .scrim-card-right {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .scrim-quick-sep {
    width: 100%;
    height: 1px;
    margin: 0.5rem 0;
  }
  
  .scrim-collage-wrap {
    min-width: auto;
    width: 100%;
  }
  
  .scrim-map-collage {
    height: 60px;
  }
}

@media (max-width: 600px) {
  .scrims-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    justify-content: space-between;
  }
  
  .scrim-card {
    padding: 0.875rem;
  }
  
  .scrim-date-box {
    width: 65px;
    height: 85px;
  }
  
  .scrim-date-day {
    font-size: 1.65rem;
  }
  
  .scrim-title {
    font-size: 0.85rem;
  }
  
  .scrim-quick-val {
    font-size: 1.25rem;
  }
  
  .scrim-map-collage {
    height: 50px;
  }
  
  .scrim-map-perf-val {
    font-size: 0.75rem;
  }
}
/* ═══════════════════════════════════════════════
   SCRIM DETAIL OVERLAY
   ⚠️ ESTE BLOQUE SE PERDIÓ AL PEGAR LOS CAMBIOS NUEVOS.
   Pégalo en tu styles.css, justo ANTES de ".sd-rooms-wrap"
   (o en cualquier parte, pero fuera de otro bloque).
═════════════════════════════════════════════ */
.scrim-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.scrim-detail-overlay.show {
  opacity: 1;
  visibility: visible;
}

.scrim-detail-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.scrim-detail-overlay.show .scrim-detail-box {
  transform: scale(1);
}

.scrim-detail-header {
  padding: 1.25rem 1.5rem;  
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 🔥 COLOR DINÁMICO según el squad del overlay */
  background: var(--header-bg, var(--bg-secondary));
  position: sticky;
  top: 0;
  z-index: 10;
}

/* 🔥 Colores por squad para el header */
#scrim-detail-overlay[data-squad="OFICIAL"] .scrim-detail-header {
  --header-bg: #f1f8f5;
}

#scrim-detail-overlay[data-squad="TIER"] .scrim-detail-header {
  --header-bg: #eff6ff;
}

#scrim-detail-overlay[data-squad="GIRLS"] .scrim-detail-header {
  --header-bg: #fdf2f8;
}

.scrim-detail-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scrim-detail-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.scrim-detail-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.scrim-detail-close:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}

.scrim-detail-body {
  padding: 1.5rem;
}








/* Perf pill */
.perf-pill {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.perf-pill-high {
  background: var(--success-bg);
  color: var(--success);
}

.perf-pill-mid {
  background: var(--warning-bg);
  color: var(--warning);
}

.perf-pill-low {
  background: var(--danger-bg);
  color: var(--danger);
}
/* ═══════════════════════════════════════════════
   ANNOUNCEMENT CARDS - CORREGIDO (SIN DUPLICADOS)
═════════════════════════════════════════════ */
.announcements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.announcement-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.announcement-card:hover {
  border-color: var(--active-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.announcement-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background-color: var(--bg-secondary);
  display: block;
}

.announcement-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Etiqueta y fecha arriba */
.announcement-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.announcement-target {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--active-bg);
  color: var(--active-primary);
  border: 1px solid var(--active-primary);
  width: fit-content;
}

.announcement-date-top {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.announcement-date-top svg {
  width: 14px;
  height: 14px;
}

.announcement-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.announcement-content {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1; /* Empuja el botón hacia abajo */
}

.announcement-footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.announcement-read-more {
  background: none;
  border: none;
  color: var(--active-primary);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.announcement-read-more:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════
   MODAL DE COMUNICADOS (CORREGIDO)
═════════════════════════════════════════════ */
.announcement-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.announcement-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.announcement-modal-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.announcement-modal-overlay.open .announcement-modal-box {
  transform: scale(1) translateY(0);
}

.announcement-modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 10;
}

.announcement-modal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.announcement-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.announcement-modal-close:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}

.announcement-modal-body {
  padding: 1.5rem;
}

.announcement-modal-body .modal-image {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  display: block;
}

.announcement-modal-body .modal-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.modal-meta-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-date svg {
  width: 16px;
  height: 16px;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE - ANNOUNCEMENTS
═════════════════════════════════════════════ */
@media (max-width: 768px) {
  .announcements-grid {
    grid-template-columns: 1fr;
  }
  
  .announcement-image {
    aspect-ratio: 16 / 9;
  }

  .announcement-modal-overlay {
    padding: 0.75rem;
  }
  
  .announcement-modal-box {
    max-height: 95vh;
  }
}

/* ═══════════════════════════════════════════════
   MVP CARD (for player highlight)
═════════════════════════════════════════════ */
.mvp-card-pro {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1122 / 1402;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-image: url('../assets/designmvp.png');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
}

.mvp-card-pro-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 2;
  pointer-events: none;
}

.mvp-photo-overlay {
  position: absolute;
  left: -3%;
  bottom: 0%;
  width: 74%;
  height: 81%;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.mvp-photo-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.mvp-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.05);
}


.mvp-stats-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.mvp-stat-overlay {
  position: absolute;
  left: 78.4%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.mvp-stat-elims {
  top: 42.9%;
}

.mvp-stat-asist {
  top: 57.9%;
}

.mvp-stat-dano {
  top: 72.8%;
}

.mvp-player-name {
  text-align: center;
  margin-top: 0.5rem;
}

.mvp-player-name .name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mvp-player-name .squad {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ═══════════════════════════════════════════════
   MAP PERFORMANCE COMPONENT
═════════════════════════════════════════════ */
.mp-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.mp-map-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.mp-map-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--active-primary);
}

.mp-map-banner {
  position: relative;
  height: 140px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.mp-map-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.85) 100%);
}

.mp-map-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.mp-map-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.mp-map-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
}

.mp-rank-list {
  padding: 0.5rem 0;
}

.mp-rank-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}

.mp-rank-row:hover {
  background: var(--bg-hover);
}

.mp-rank-pos {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  min-width: 18px;
  text-align: center;
}

.mp-rank-row[data-rank="1"] { border-left-color: #fbbf24; }
.mp-rank-row[data-rank="2"] { border-left-color: #94a3b8; }
.mp-rank-row[data-rank="3"] { border-left-color: #b45309; }
.mp-rank-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.mp-rank-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.mp-rank-games {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.mp-rank-score {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--active-primary);
}

.mp-empty-row {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* ═══════════════════════════════════════════════
   LOADING & EMPTY STATES
═════════════════════════════════════════════ */
.loading-pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.loading-pulse::before {
  content: '';
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--active-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  opacity: 0.3;
  color: var(--text-muted);
}

.empty-state-icon svg {
  width: 100%;
  height: 100%;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════
   FOOTER — Mejorado con redes sociales y crédito
═════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--bg-card);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--active-primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ─── Redes sociales ─── */
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--active-primary);
  border-color: var(--active-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.social-link svg {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

/* ─── Crédito ─── */
.footer-credit {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-dev {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 400;
}

.footer-dev span {
  color: var(--text-primary);
  font-weight: 700;
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
  .footer-socials {
    gap: 0.8rem;
  }
  .social-link {
    width: 38px;
    height: 38px;
  }
  .social-link svg {
    width: 18px;
    height: 18px;
  }
}

/* ═══════════════════════════════════════════════
   UTILITY CLASSES
═════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .players-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }


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

@media (max-width: 768px) {




  .hero {
    padding: 3rem 1rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .hero-stat {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .players-grid {
    grid-template-columns: 1fr;
  }

  .announcements-grid {
    grid-template-columns: 1fr;
  }

  .scrim-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .scrim-map-collage {
    width: 100%;
  }

  .scrim-stats-right {
    width: 100%;
    justify-content: space-between;
  }

  .mp-overview-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {

  .hero-title {
    font-size: 1.75rem;
  }

  .detail-summary {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════
   MODAL OVERLAY (para mapPerformance)
═════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.15s ease;
}

.modal-overlay.show .modal {
  transform: scale(1);
}

.modal-xl {
  max-width: 960px;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.01) 100%
  );
}

/* ═══════════════════════════════════════════════
   MAP PERFORMANCE — dentro del modal
═════════════════════════════════════════════ */
.mp-modal-overlay {
  z-index: 1100;
}

.mp-modal-overlay .modal {
  max-width: 960px;
}

/* Loading block */
.mp-loading-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.mp-loading-block::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 3px solid var(--border);
  border-top-color: var(--active-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Player header in modal */
.mp-player-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.mp-player-avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  flex-shrink: 0;
}

.mp-player-name-lg {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

/* Grid de tarjetas de stats por mapa */
.mp-stat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.mp-stat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1.5px solid var(--border);
  transition: var(--transition);
}

.mp-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mp-stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.mp-stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.75) 60%,
      rgba(0, 0, 0, 0.92) 100%);
  z-index: 1;
}

/* Imágenes de fondo por mapa */
.mp-art-BERMUDA::before {
  background-image: url('../assets/bm.png');
}

.mp-art-PURGATORIO::before {
  background-image: url('../assets/pg.png');
}

.mp-art-KALAHARI::before {
  background-image: url('../assets/kh.png');
}

.mp-art-NEXTERRA::before {
  background-image: url('../assets/nt.png');
}

.mp-stat-card-range {
  position: absolute;
  top: 0.5rem;
  right: 0.625rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.5);
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
  z-index: 2;
}

.mp-stat-card-body {
  position: relative;
  z-index: 2;
  padding: 0.875rem 1rem;
}

.mp-stat-card-map {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  top: -4.1rem;
}

.mp-stat-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
}

.mp-stat-card-metric {
  text-align: center;
}

.mp-stat-card-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.mp-stat-card-lbl {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.15rem;
}

/* Breakdown / historial */
.mp-breakdown-wrap {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mp-breakdown-head {
  padding: 0.875rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.mp-breakdown-headrow {
  display: grid;
  grid-template-columns: 70px 1.5fr 0.6fr 0.6fr 0.8fr 0.7fr;
  align-items: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.mp-breakdown-row {
  display: grid;
  grid-template-columns: 70px 1.5fr 0.6fr 0.6fr 0.8fr 0.7fr;
  align-items: center;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.mp-breakdown-row:last-child {
  border-bottom: none;
}

.mp-breakdown-row:hover {
  background: var(--bg-hover);
}

.mp-breakdown-map {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.82rem;
}

.mp-breakdown-map .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.mp-rank-avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.mp-empty-row {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* Perf pill */
.perf-pill {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.perf-pill.hi {
  background: var(--success-bg);
  color: var(--success);
}

.perf-pill.md {
  background: var(--warning-bg);
  color: var(--warning);
}

.perf-pill.lo {
  background: var(--danger-bg);
  color: var(--danger);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE para el modal
═════════════════════════════════════════════ */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 0.5rem;
  }

  .mp-stat-cards {
    grid-template-columns: 1fr 1fr;
  }

  .mp-breakdown-row,
  .mp-breakdown-headrow {
    grid-template-columns: 60px 1fr 0.5fr 0.5fr;
    font-size: 0.78rem;
  }

  .mp-breakdown-row>div:nth-child(5),
  .mp-breakdown-row>div:nth-child(6),
  .mp-breakdown-headrow>div:nth-child(5),
  .mp-breakdown-headrow>div:nth-child(6) {
    display: none;
  }
}

@media (max-width: 480px) {
  .mp-stat-cards {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════
   SCRIM ACCORDION (Historial colapsable)
═════════════════════════════════════════════ */
.mp-scrim-accordion {
  border-bottom: 1px solid var(--border);
}

.mp-scrim-accordion:last-child {
  border-bottom: none;
}

.mp-scrim-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s;
  gap: 1rem;
}

.mp-scrim-accordion-header:hover {
  background: var(--bg-hover);
}

.mp-scrim-accordion-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  min-width: 0;
}

.mp-scrim-accordion-date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.mp-scrim-accordion-date svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.mp-scrim-accordion-maps-count {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.mp-scrim-accordion-opponent {
  font-size: 0.78rem;
  color: var(--active-primary);
  font-weight: 600;
}

.mp-scrim-accordion-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.mp-scrim-accordion-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.mp-scrim-accordion-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.mp-scrim-accordion-stat-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.mp-scrim-accordion-stat-lbl {
  font-size: 0.58rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Botón de ojo para detalle */
.mp-scrim-detail-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.mp-scrim-detail-btn:hover {
  background: var(--active-bg);
  border-color: var(--active-primary);
  color: var(--active-primary);
}

/* Flecha del acordeón */
.mp-accordion-arrow {
  transition: transform 0.2s ease;
  color: var(--text-muted);
  flex-shrink: 0;
}

.mp-accordion-arrow.rotated {
  transform: rotate(180deg);
}

/* Cuerpo colapsable */
.mp-scrim-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.mp-scrim-accordion-body.open {
  max-height: 500px;
}

/* Tabla dentro del acordeón */
.mp-scrim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.mp-scrim-table thead th {
  text-align: left;
  padding: 0.6rem 1.25rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.mp-scrim-table tbody td {
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

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

.mp-scrim-table tbody tr:hover {
  background: var(--bg-hover);
}

/* Badge de mapa en la tabla */
.mp-scrim-map-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.82rem;
}

.mp-scrim-map-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═════════════════════════════════════════════ */
@media (max-width: 768px) {
  .mp-scrim-accordion-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .mp-scrim-accordion-right {
    width: 100%;
    justify-content: space-between;
  }

  .mp-scrim-accordion-stats {
    gap: 0.75rem;
  }

  .mp-scrim-table thead th,
  .mp-scrim-table tbody td {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* ═══════════════════════════════════════════════
   MVP SECTION (Scrim Detail)
═════════════════════════════════════════════ */


.mvp-card-pro {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1122 / 1402;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background-image: url('../assets/designmvp.png');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
}

.mvp-photo-overlay {
  position: absolute;
  left: -3%;
  bottom: 0%;
  width: 74%;
  height: 81%;
  z-index: 1;
  overflow: hidden;
  border-radius: 8px;
}

.mvp-photo-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.mvp-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.05);
}


.mvp-stats-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.mvp-stat-num-overlay {
  position: absolute;
  left: 78.4%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.mvp-stat-elims {
  top: 42.9%;
}

.mvp-stat-asist {
  top: 57.9%;
}

.mvp-stat-dano {
  top: 72.8%;
}


.mvp-player-name-overlay .mvp-name-txt {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mvp-player-name-overlay .mvp-squad-txt {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}



.mvp-gstat-val.green {
  color: var(--green);
}

.mvp-gstat-val.blue {
  color: var(--blue);
}

.mvp-gstat-val.amber {
  color: var(--amber);
}

/* Scrim detail modal overlay */
.scrim-detail-modal-overlay {
  z-index: 1200 !important;
}

/* ─── COLORES DE TEXTO PARA LA TABLA DE JUGADORES ─── */
.sd-player-row .col-num {
  color: var(--text-primary);
  font-weight: 500;
}

.sd-player-row .sd-kills {
  font-weight: 800;
  color: var(--green);
}

.sd-player-row .sd-time {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ─── CORRECCIÓN: Valores invisibles (Asist., Daño, Revives) ─── */
.sd-player-row .col-num:not(.sd-kills):not(.sd-time) {
  color: var(--text-primary) !important;
}

/* Responsive MVP */
@media (max-width: 768px) {
  .mvp-section-grid {
    grid-template-columns: 1fr;
  }

  .mvp-card-pro {
    max-width: 280px;
  }

  .mvp-general-stats {
    max-width: 100%;
    margin: 1rem auto 0;
  }
}

/* ═══════════════════════════════════════════════
   PLAYER HERO (Header del modal de rendimiento)
═════════════════════════════════════════════ */
.mp-player-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* Columna izquierda: Card del jugador con fondo */
.mp-player-hero-left {
  position: relative;
  width: 230px;
  height: 312px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  /* background-image se pone inline desde JS según el squad */
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

/* Capa oscura abajo para que el nombre se lea */
.mp-player-hero-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.15) 35%,
      transparent 50%);
  z-index: 1;
  pointer-events: none;
}

/* Foto del jugador */
.mp-player-hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mp-player-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.mp-player-hero-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
}

/* Nombre del squad (arriba, sobre la foto) */
.mp-player-hero-squad {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--active-primary);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

/* Nombre del jugador (abajo, sobre la foto) */
.mp-player-hero-name {
  position: absolute;
  bottom: 0.875rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

/* Rol (abajo del nombre) */
.mp-player-hero-role {
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Columna derecha: Mapas 2x2 */
.mp-player-hero-right {
  min-width: 0;
}

.mp-player-hero-right .mp-stat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.mp-player-hero-right .mp-stat-card {
  min-height: 150px;
}

.mp-player-hero-right .mp-stat-card-map {
  font-size: 0.85rem;
  top: -3.7rem;
}

.mp-player-hero-right .mp-stat-card-val {
  font-size: 1.1rem;
}

.mp-player-hero-right .mp-stat-card-lbl {
  font-size: 0.58rem;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═════════════════════════════════════════════ */
@media (max-width: 768px) {
  .mp-player-hero {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .mp-player-hero-left {
    width: 220px;
    height: 300px;
    margin: 0 auto;
  }

  .mp-player-hero-right .mp-stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .mp-player-hero-right .mp-stat-card {
    min-height: 140px;
  }
}

@media (max-width: 480px) {
  .mp-player-hero-right .mp-stat-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* ═══════════════════════════════════════════════
   SEARCH BAR PREMIUM
═════════════════════════════════════════════ */
.search-bar-premium {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.search-input-premium {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.search-input-premium::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.search-input-premium:focus {
  outline: none;
  border-color: var(--active-primary);
  box-shadow: 0 0 0 3px var(--primary-glow), var(--shadow-md);
}

.search-input-premium:focus+.search-clear-btn {
  opacity: 1;
}

.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1;
}

.search-clear-btn:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.search-results-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  display: none;
  padding: 0.5rem 0.875rem;
  background: var(--bg-secondary);
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 600px) {
  .search-bar-premium {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .search-input-wrapper {
    max-width: 100%;
  }

  .search-results-count {
    align-self: flex-start;
  }
}

/* ═══════════════════════════════════════════════
   PLAYERS PAGINATION
═════════════════════════════════════════════ */
.players-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--active-bg);
  border-color: var(--active-primary);
  color: var(--active-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 0.5rem;
}

.pagination-info span {
  color: var(--text-primary);
  font-weight: 700;
}


/* Badge de mapas en la esquina superior derecha */
.player-maps-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.stat-icon-damage {
  width: 23px !important;
  height: 22px !important;
  margin-top: -2px;
}

.mp-rank-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;  /* ← mueve la imagen hacia arriba, mostrando más la cabeza */
  border: 2px solid var(--border);
  flex-shrink: 0;
}

/* ============================================================
   HERO STATS CON FONDOS PNG (como el admin)
   ============================================================ */
   .hero-stats {
    
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-stat {
    position: relative;
    width: 108px;
    height: 72px;
    border-radius: var(--radius, 8px);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-secondary, #1a1a2e);
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.4rem;
    flex-shrink: 0;
  }
  
  .hero-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.267));
    z-index: 0;
  }
  
  .hero-stat-value,
  .hero-stat-label {
    position: relative;
    z-index: 1;
  }
  
  .hero-stat.stat-players { background-image: url('../assets/dash-stat-players.png'); }
  .hero-stat.stat-scrims  { background-image: url('../assets/dash-stat-scrims.png'); }
  .hero-stat.stat-kills   { background-image: url('../assets/dash-stat-kills.png'); }
  .hero-stat.stat-perf    { background-image: url('../assets/dash-stat-perf.png'); }
  
  .hero-stat-value {
    font-family: var(--font-display, 'Montserrat', sans-serif);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary, #ffffff);
  }
  
  .hero-stat-label {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted, #94a3b8);
    text-align: center;
    line-height: 1.1;
  }
  
  @media (max-width: 600px) {
    .hero-stats {
      gap: 0.5rem;
    }
    .hero-stat {
      width: 80px;
      height: 60px;
    }
    .hero-stat-value {
      font-size: 1rem;
    }
    .hero-stat-label {
      font-size: 0.5rem;
    }
  }

/* ========================================================================== 
   UZX COMMAND CENTER — Landing only
   The public home uses its own visual system; functional application views
   retain the interface styles declared above.
   ========================================================================== */

body[data-page="home"] {
  background: #07090c;
  color: #f5f7f5;
}

body[data-page="home"] .navbar {
  --nav-ink: rgba(245, 247, 245, .78);
  position: absolute;
  width: 100%;
  background: linear-gradient(180deg, rgba(4, 6, 8, .72), rgba(4, 6, 8, 0));
  border-bottom-color: rgba(255, 255, 255, .08);
  backdrop-filter: none;
  color: #f5f7f5;
}

body[data-page="home"] .navbar-brand-text,
body[data-page="home"] .nav-link {
  color: var(--nav-ink);
}

body[data-page="home"] .nav-link:hover,
body[data-page="home"] .nav-link.active {
  color: #fff;
}

body[data-page="home"] .nav-link.active::after {
  bottom: -11px;
}

body[data-page="home"] .squad-current {
  background: rgba(8, 12, 14, .52);
  border-color: rgba(255, 255, 255, .14);
  color: #fff;
}

.command-center {
  --cc-ink: #f5f7f5;
  --cc-muted: #919a96;
  --cc-faint: #59605d;
  --cc-ground: #07090c;
  --cc-surface: #0d1013;
  --cc-line: rgba(231, 242, 235, .14);
  --cc-rule: clamp(1.5rem, 3vw, 4.5rem);
  --cc-gutter: clamp(1.25rem, 4.25vw, 5.5rem);
  --cc-max: 1440px;
  --cc-display: 'Barlow Condensed', Impact, sans-serif;
  --cc-body: 'Inter', sans-serif;
  background: var(--cc-ground);
  color: var(--cc-ink);
  font-family: var(--cc-body);
  overflow: hidden;
}

.command-center button {
  font: inherit;
}

.command-hero {
  --scene-accent: #10b981;
  --scene-map-art: none;
  position: relative;
  display: grid;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 77% 47%, color-mix(in srgb, var(--scene-accent) 24%, transparent), transparent 21%),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .08), transparent 30%),
    linear-gradient(112deg, #050607 0%, #0a0d0f 51%, #101519 100%);
}

.command-hero__atmosphere,
.command-hero__atmosphere::before,
.command-hero__atmosphere::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.command-hero__atmosphere::before,
.command-hero__atmosphere::after {
  content: '';
}

.command-hero__atmosphere::before {
  opacity: .55;
  background-image: radial-gradient(rgba(255, 255, 255, .5) .55px, transparent .65px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
}

.command-hero__atmosphere::after {
  background: linear-gradient(90deg, rgba(7, 9, 12, .97) 0%, rgba(7, 9, 12, .66) 37%, transparent 68%);
}

.command-hero__grid {
  position: absolute;
  width: 78vw;
  height: 88vw;
  right: -17vw;
  top: -21vw;
  transform: rotate(-17deg);
  opacity: .3;
  background-image:
    linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
  background-size: 3.25rem 3.25rem;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 66%);
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 66%);
}

.command-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.command-hero__glow--one {
  width: min(52vw, 54rem);
  aspect-ratio: 1;
  right: -10vw;
  top: 14%;
  opacity: .25;
  background: radial-gradient(circle, var(--scene-accent), transparent 67%);
  animation: command-breathe 7s ease-in-out infinite alternate;
}

.command-hero__glow--two {
  width: min(34vw, 36rem);
  aspect-ratio: 1;
  left: 26%;
  bottom: -30%;
  opacity: .09;
  background: radial-gradient(circle, #d8fff2, transparent 70%);
  animation: command-breathe 10s ease-in-out infinite alternate-reverse;
}

.command-hero__scanlines {
  position: absolute;
  inset: 0;
  opacity: .16;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.09) 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
}

.command-hero__coordinates {
  position: absolute;
  right: var(--cc-gutter);
  bottom: 2.25rem;
  color: rgba(245, 247, 245, .35);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.command-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5.2fr) minmax(26rem, 6.8fr);
  align-items: center;
  gap: var(--cc-rule);
  width: min(100%, var(--cc-max));
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(7.5rem, 12vh, 10rem) var(--cc-gutter) clamp(4.8rem, 8vh, 7rem);
}

.command-hero__copy {
  position: relative;
  z-index: 4;
  max-width: 39rem;
  animation: command-rise .9s cubic-bezier(.16, 1, .3, 1) both;
}

.command-hero__eyebrow,
.command-kicker {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--cc-muted);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.3;
  text-transform: uppercase;
}

.command-hero__pulse {
  width: .43rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--scene-accent);
  box-shadow: 0 0 0 .28rem color-mix(in srgb, var(--scene-accent) 18%, transparent);
  animation: command-pulse 2.8s ease-out infinite;
}

.command-hero__rule {
  width: 2.1rem;
  height: 1px;
  background: rgba(255, 255, 255, .28);
}

.command-hero__title,
.command-story h2,
.command-section-heading h2,
.operations-deck h2,
.command-closing h2 {
  margin: 1.45rem 0 0;
  color: var(--cc-ink);
  font-family: var(--cc-display);
  font-size: clamp(4.3rem, 8.25vw, 8.2rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .78;
  text-transform: uppercase;
}

.command-hero__title em {
  display: block;
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--scene-accent) 85%, white);
  text-stroke: 1px color-mix(in srgb, var(--scene-accent) 85%, white);
}

.command-hero__lede {
  max-width: 31rem;
  margin-top: 1.65rem;
  color: #bac1bd;
  font-size: clamp(.84rem, 1.1vw, 1rem);
  line-height: 1.7;
}

.command-hero__actions,
.command-closing__links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.command-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  min-height: 3.35rem;
  padding: 0 1.2rem;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), background-color .3s ease, border-color .3s ease, color .3s ease;
}

.command-button:hover {
  transform: translateY(-3px);
}

.command-button--primary {
  min-width: 13.25rem;
  border-color: var(--scene-accent, var(--active-primary));
  background: var(--scene-accent, var(--active-primary));
  color: #06100d;
  box-shadow: 0 .9rem 2rem color-mix(in srgb, var(--scene-accent, var(--active-primary)) 18%, transparent);
}

.command-button--primary:hover {
  background: #f5f7f5;
  border-color: #f5f7f5;
}

.command-button--quiet {
  border-color: var(--cc-line);
  background: rgba(255,255,255,.02);
  color: var(--cc-ink);
}

.command-button--quiet:hover {
  border-color: rgba(255,255,255,.52);
  background: rgba(255,255,255,.07);
}

.command-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 36rem;
  margin-top: clamp(2rem, 5.5vh, 4rem);
  border-top: 1px solid var(--cc-line);
}

.command-stat {
  position: relative;
  padding: 1rem .75rem .15rem 0;
}

.command-stat:not(:first-child) {
  padding-left: .75rem;
}

.command-stat:not(:last-child)::after {
  position: absolute;
  top: 1.1rem;
  right: 0;
  width: 1px;
  height: 2rem;
  background: var(--cc-line);
  content: '';
}

.command-stat dt {
  color: var(--cc-muted);
  font-size: .57rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.command-stat dd {
  margin: .18rem 0 0;
  color: var(--cc-ink);
  font-family: var(--cc-display);
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}

.command-hero__stage {
  position: relative;
  align-self: stretch;
  min-height: 33rem;
}

.command-stage__map {
  position: absolute;
  inset: 10% -8% 6% 5%;
  opacity: 3;
  background-image: linear-gradient(115deg, #0c1012 6%, transparent 50%), var(--scene-map-art);
  background-position: center;
  background-size: cover;
  filter: grayscale(1) contrast(1.25) saturate(-1);
  -webkit-mask-image: radial-gradient(ellipse at 64% 48%, #000 16%, transparent 70%);
  mask-image: radial-gradient(ellipse at 64% 48%, #000 16%, transparent 70%);
  transform: scale(1.05);
  transition: background-image .65s ease, opacity .65s ease, transform .8s cubic-bezier(.16,1,.3,1);
}

.command-stage__reticle {
  position: absolute;
  z-index: 4;
  top: 7%;
  right: -10%;
  width: clamp(8rem, 13vw, 13rem);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--scene-accent) 70%, transparent);
  border-radius: 50%;
  opacity: .4;
  animation: command-reticle 20s linear infinite;
}

.command-stage__reticle::before,
.command-stage__reticle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--scene-accent);
  content: '';
  transform: translate(-50%, -50%);
}

.command-stage__reticle::before { width: calc(100% + 2rem); height: 1px; }
.command-stage__reticle::after { width: 1px; height: calc(100% + 2rem); }

.command-stage__reticle i {
  position: absolute;
  width: .45rem;
  aspect-ratio: 1;
  border: 1px solid var(--scene-accent);
  background: #080b0d;
}

.command-stage__reticle i:nth-child(1) { top: -.22rem; left: 50%; transform: translateX(-50%); }
.command-stage__reticle i:nth-child(2) { right: -.22rem; top: 50%; transform: translateY(-50%); }
.command-stage__reticle i:nth-child(3) { bottom: -.22rem; left: 50%; transform: translateX(-50%); }
.command-stage__reticle i:nth-child(4) { left: -.22rem; top: 50%; transform: translateY(-50%); }

.command-stage__player-wrap {
  position: absolute;
  z-index: 3;
  inset: 2% 2% 1% 7%;
  display: grid;
  place-items: end center;
}

.command-stage__player-wrap::before {
  position: absolute;
  z-index: -1;
  top: 13%;
  left: 19%;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--scene-accent) 56%, transparent), transparent 67%);
  content: '';
  filter: blur(20px);
  animation: command-breathe 5s ease-in-out infinite alternate;
}

.command-stage__player {
  position: relative;
  z-index: 2;
  width: min(100%, 42rem);
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(-1.2rem 1.8rem 1.7rem rgba(0, 0, 0, .58)) drop-shadow(0 0 2.7rem color-mix(in srgb, var(--scene-accent) 32%, transparent));
  transform: translate3d(1.25rem, 0, 0);
  transition: opacity .35s ease, transform .7s cubic-bezier(.16,1,.3,1), filter .7s ease;
}

.command-stage__fallback {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(75%, 26rem);
  aspect-ratio: .66;
  margin-bottom: 1rem;
  border: 1px solid color-mix(in srgb, var(--scene-accent) 60%, transparent);
  color: var(--scene-accent);
  font-family: var(--cc-display);
  font-size: clamp(5rem, 12vw, 12rem);
  font-weight: 900;
  letter-spacing: -.08em;
  background: linear-gradient(135deg, color-mix(in srgb, var(--scene-accent) 22%, transparent), transparent 68%);
  box-shadow: inset 0 0 5rem color-mix(in srgb, var(--scene-accent) 8%, transparent), 0 1.8rem 2.8rem rgba(0,0,0,.4);
}

.command-stage__shadow {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 18%;
  width: 70%;
  height: 12%;
  border-radius: 50%;
  background: rgba(0, 0, 0, .76);
  filter: blur(1.3rem);
  transform: rotate(-7deg);
}

.command-stage__light {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.command-stage__light--back {
  right: 6%;
  bottom: 14%;
  width: 39%;
  height: 54%;
  opacity: .55;
  background: linear-gradient(135deg, transparent 0 36%, color-mix(in srgb, var(--scene-accent) 76%, transparent) 49%, transparent 54%);
  filter: blur(12px);
  transform: skewX(-18deg);
}

.command-stage__light--front {
  right: 5%;
  bottom: 18%;
  width: 40%;
  height: 1px;
  opacity: .75;
  background: var(--scene-accent);
  box-shadow: 0 0 2rem var(--scene-accent);
  transform: rotate(-51deg);
}

.command-stage__identity {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 7%;
  width: min(66%, 25rem);
  padding: 1.1rem 0 0 1.1rem;
  border-top: 1px solid rgba(255,255,255,.48);
  background: linear-gradient(90deg, rgba(8, 11, 13, .25), rgba(8,11,13,.02));
  text-align: right;
}

.command-stage__identity-top,
.command-stage__identity-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  color: var(--cc-muted);
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.command-stage__index {
  color: var(--scene-accent);
}

.command-stage__identity strong {
  display: block;
  margin: .08rem 0 .42rem;
  color: #fff;
  font-family: var(--cc-display);
  font-size: clamp(3.6rem, 6.7vw, 6.7rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .75;
  text-transform: uppercase;
  text-shadow: 0 1rem 2rem rgba(0,0,0,.5);
}

.command-stage__identity-bottom img {
  width: 1.05rem;
  height: .72rem;
  object-fit: cover;
}

.command-stage__map-label {
  display: inline-flex;
  align-items: center;
  min-height: 1.28rem;
  margin-left: .4rem;
  padding: 0 .38rem;
  border: 1px solid color-mix(in srgb, var(--scene-accent) 45%, transparent);
  color: var(--scene-accent);
}

.command-stage__marks {
  position: absolute;
  z-index: 5;
  top: 16%;
  left: 7%;
  display: grid;
  gap: .38rem;
}

.command-stage__marks span {
  display: block;
  width: 1.85rem;
  height: 2px;
  background: var(--scene-accent);
}

.command-stage__marks span:nth-child(2) { width: 1rem; opacity: .62; }
.command-stage__marks span:nth-child(3) { width: .45rem; opacity: .35; }

.command-stage__selectors {
  position: absolute;
  z-index: 7;
  right: 0;
  bottom: 0;
  display: flex;
  gap: .35rem;
}

.command-stage__selectors button {
  width: 2rem;
  height: 1.45rem;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: rgba(255,255,255,.34);
  cursor: pointer;
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .08em;
  transition: width .35s cubic-bezier(.16,1,.3,1), color .35s ease, border-color .35s ease;
}

.command-stage__selectors button.is-active {
  width: 3.4rem;
  border-color: var(--scene-accent);
  color: var(--scene-accent);
}

.command-hero.is-changing .command-stage__player,
.command-hero.is-changing .command-stage__fallback,
.command-hero.is-changing .command-stage__identity {
  animation: command-scene-enter .72s cubic-bezier(.16,1,.3,1) both;
}

.command-hero.is-changing .command-stage__map {
  transform: scale(1.13) translateX(-1.5%);
}

.command-hero__scroll {
  position: absolute;
  z-index: 6;
  bottom: 2.05rem;
  left: var(--cc-gutter);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .25rem 0;
  border: 0;
  background: transparent;
  color: var(--cc-muted);
  cursor: pointer;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.command-hero__scroll i {
  display: block;
  width: 1.35rem;
  height: 1px;
  background: var(--scene-accent);
  animation: command-scroll 2s ease-in-out infinite;
}

.command-story,
.roster-field,
.operations-deck,
.command-closing {
  position: relative;
  padding-right: var(--cc-gutter);
  padding-left: var(--cc-gutter);
}

.command-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--cc-rule);
  min-height: min(54rem, 82vh);
  padding-top: clamp(6rem, 6vw, 7rem);
  padding-bottom: clamp(1rem, 1vw, 7rem);
  background:
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px) 0 0 / 25% 100%,
    linear-gradient(180deg, #0b0e10, #101517);
}

.command-story__frame {
  max-width: 50rem;
}

.command-story h2,
.command-section-heading h2,
.operations-deck h2,
.command-closing h2 {
  font-size: clamp(3.8rem, 7.25vw, 7.2rem);
}

.command-story__statement {
  max-width: 31rem;
  margin: 9.75rem 0 0 clamp(2rem, 10vw, 12rem);
  color: #c4cbc7;
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  line-height: 1.72;
}

.command-story__signal {
  position: relative;
  align-self: center;
  height: clamp(13rem, 27vw, 26rem);
  border-right: 1px solid rgba(255,255,255,.22);
  border-bottom: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(135deg, transparent 50%, color-mix(in srgb, var(--active-primary) 13%, transparent));
}

.command-story__signal::before,
.command-story__signal::after {
  position: absolute;
  content: '';
}

.command-story__signal::before {
  inset: 17% 13%;
  border: 1px solid color-mix(in srgb, var(--active-primary) 55%, transparent);
  transform: rotate(45deg);
}

.command-story__signal::after {
  right: 0;
  bottom: 0;
  width: 76%;
  height: 1px;
  background: var(--active-primary);
  box-shadow: 0 0 2rem var(--active-primary);
  transform: rotate(-38deg);
  transform-origin: right center;
}

.command-story__signal span {
  position: absolute;
  width: .43rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--active-primary);
  box-shadow: 0 0 1rem var(--active-primary);
}

.command-story__signal span:nth-child(1) { top: 17%; left: 7%; }
.command-story__signal span:nth-child(2) { top: 51%; left: 34%; }
.command-story__signal span:nth-child(3) { right: 16%; bottom: 22%; }
.command-story__signal span:nth-child(4) { right: 6%; top: 14%; opacity: .48; }

.roster-field {
  padding-top: clamp(2.5rem, 1vw, 10rem);
  padding-bottom: clamp(3.5rem, 1vw, 10rem);
  background: #edf0ec;
  color: #101511;
}

.roster-field .command-kicker { color: #66716a; }

.roster-field .command-section-heading h2 {
  color: #101511;
}

.command-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  width: min(100%, var(--cc-max));
  margin: 0 auto;
}

.command-section-heading__metric {
  display: grid;
  justify-items: end;
  padding-bottom: .3rem;
}

.command-section-heading__metric strong {
  color: var(--active-primary);
  font-family: var(--cc-display);
  font-size: clamp(3rem, 5vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .7;
}

.command-section-heading__metric span {
  margin-top: .5rem;
  color: #617068;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: right;
  text-transform: uppercase;
}

.roster-field__line {
  width: min(100%, var(--cc-max));
  height: 1px;
  margin: clamp(2.4rem, 5vw, 5.25rem) auto 0;
  background: rgba(16, 21, 17, .18);
}

.roster-field__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 4px;
  width: min(100%, var(--cc-max));
  margin: 0 auto;
}

.roster-unit {
  position: relative;
  min-height: 25rem;
  overflow: hidden;
  border-right: 1px solid rgba(16, 21, 17, .16);
  border-bottom: 1px solid rgba(16, 21, 17, .16);
  background: #e5e9e4;
  transition: background-color .35s ease;
}

.roster-unit:hover { background: #f8faf7; }

.roster-unit__portrait {
  position: relative;
  display: grid;
  place-items: end center;
  height: 14.6rem;
  overflow: hidden;
  background-color: #e5e9e4;
}

.roster-unit__portrait > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(.7rem 1rem .8rem rgba(0,0,0,.23));
  transition: transform .5s cubic-bezier(.16,1,.3,1), filter .5s ease;
}

.roster-unit:hover .roster-unit__portrait > img { transform: scale(1.06) translateY(-.25rem); }

.roster-unit__fallback {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
  color: var(--active-primary);
  font-family: var(--cc-display);
  font-size: 7rem;
  font-weight: 900;
  letter-spacing: -.12em;
}

.roster-unit__number {
  position: absolute;
  z-index: 2;
  top: .8rem;
  right: .85rem;
  color: rgba(16,21,17,.42);
  font-family: var(--cc-display);
  font-size: 1.2rem;
  font-weight: 800;
}

.roster-unit__copy { padding: 1rem 1rem .9rem; }

.roster-unit__meta {
  display: flex;
  align-items: center;
  gap: .42rem;
  min-height: .8rem;
  color: #66716a;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.roster-unit__flag-badge {
  position: absolute;
  z-index: 3;
  top: -4px;
  left: 0;
  width: 60px;
  height: 60px;
  pointer-events: none;
}

.roster-unit__flag-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.roster-unit__role-badge {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 0;
  background: var(--active-primary);
  box-shadow: none;
  color: #fff;
  font-family: var(--cc-display);
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
}

.roster-unit h3 {
  margin-top: .4rem;
  text-align: center;
  font-family: var(--cc-display);
  font-size: clamp(2.2rem, 3.35vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .78;
  text-transform: uppercase;
}

.roster-unit p {
  margin-top: .52rem;
  color: #657169;
  font-size: .72rem;
}

.roster-unit__performance {
  margin-top: .85rem;
}

.roster-unit__performance > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  color: #68736c;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.roster-unit__performance strong {
  color: #101511;
  font-family: var(--cc-display);
  font-size: 1.1rem;
  letter-spacing: -.02em;
}

.roster-unit__performance i {
  display: block;
  height: 3px;
  margin-top: .38rem;
  overflow: hidden;
  background: rgba(16, 21, 17, .12);
}

.roster-unit__performance b {
  display: block;
  height: 100%;
  background: var(--active-primary);
}

.roster-unit__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid rgba(16, 21, 17, .16);
}

.roster-unit__stat {
  min-width: 0;
  padding: .5rem .2rem .45rem;
  text-align: center;
}

.roster-unit__stat + .roster-unit__stat {
  border-left: 1px solid rgba(16, 21, 17, .16);
}

.roster-unit__stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  margin: 0 auto .2rem;
}

.roster-unit__stat-icon img,
.roster-unit__stat-icon svg {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.roster-unit__stat-value {
  color: #101511;
  font-family: var(--cc-display);
  font-size: clamp(1.05rem, 1.45vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: .9;
}

.roster-unit__stat-label {
  margin-top: .15rem;
  color: #7a857e;
  font-size: .48rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}

.command-text-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  width: min(100%, var(--cc-max));
  margin: 2rem auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.command-text-link span { transition: transform .25s ease; }
.command-text-link:hover span { transform: translateX(.35rem); }

.operations-deck {
  padding-top: clamp(1.5rem, 2vw, 10rem);
  padding-bottom: clamp(4.5rem, 4.5rem, 10rem);
  background:
    linear-gradient(132deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 3rem 3rem,
    #0b0f11;
}

.operations-deck__heading,
.operations-deck__data,
.operations-deck > .command-text-link {
  display: block;
  width: min(100%, var(--cc-max));
  margin-right: auto;
  margin-left: auto;
}

.operations-deck__data { margin-top: clamp(2.5rem, 5vw, 5rem); }
.operations-deck > .command-text-link { display: inline-flex; margin-top: 2rem; }

.operation-record {
  display: grid;
  grid-template-columns: minmax(17rem, 19rem) minmax(0, 1fr);
  grid-template-areas:
    "lead topbar"
    "mvp maps"
    "mvp footer";
  align-items: start;
  gap: 1.1rem clamp(1.25rem, 2.5vw, 2.25rem);
  padding: clamp(1.25rem, 2vw, 2rem);
  border: 1px solid var(--cc-line);
  background: linear-gradient(115deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
  box-shadow: 0 2.5rem 6rem rgba(0,0,0,.22);
}

.operation-record__lead {
  grid-area: lead;
  align-self: start;
}
.operation-record__lead .command-kicker { color: var(--active-primary); }

.operation-record__lead h3 {
  margin-top: .6rem;
  font-family: var(--cc-display);
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .8;
  text-transform: uppercase;
}


.operation-record__topbar {
  grid-area: topbar;
  display: grid;
  grid-template-areas:
    "date date"
    "metrics button";
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .85rem 1.5rem;
}

.operation-record__date {
  grid-area: date;
  color: var(--cc-muted);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: right;
}

.operation-record__metrics {
  grid-area: metrics;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  align-self: end;
}

.operation-record__metrics div {
  min-width: 0;
  padding: 1rem .8rem .85rem;
  border-top: 2px solid var(--active-primary);
  background: rgba(255,255,255,.035);
  text-align: center;
}

.operation-record__metrics dt {
  color: var(--cc-muted);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.operation-record__metrics dd {
  margin: .35rem 0 0;
  color: var(--active-primary);
  font-family: var(--cc-display);
  font-size: clamp(1.65rem, 2.3vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .8;
}

.operation-record__mvp {
  grid-area: mvp;
  align-self: start;
  min-width: 0;
  padding: .65rem;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.025);
  text-align: center;
}

.operation-record__mvp-label {
  margin-bottom: .35rem;
  color: var(--active-primary);
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.operation-record__mvp .mvp-card-pro {
  width: 100%;
  max-width: 16rem;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: 0 1.2rem 2.5rem rgba(0,0,0,.3);
}

.operation-record__mvp .mvp-stat-num-overlay { font-size: 1rem; }

.operation-record__mvp-identity {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: .55rem;
  left: 0;
  padding: .8rem .45rem .4rem;
  text-align: center;
}

.operation-record__mvp-identity strong {
  display: block;
  font-family: var(--cc-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.035em;
  line-height: .9;
  text-transform: uppercase;
}

.operation-record__mvp-squad {
  margin-top: .3rem;
  color: var(--cc-muted);
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.operation-record__maps {
  grid-area: maps;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.operation-map {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 10.25rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  background-image: linear-gradient(180deg, rgba(4,7,8,.1), rgba(4,7,8,.92)), var(--map-image);
  background-position: center;
  background-size: cover;
  transition: transform .25s ease, border-color .25s ease;
}

.operation-map:hover {
  z-index: 1;
  border-color: var(--active-primary);
  transform: translateY(-.25rem);
}

.operation-map__header,
.operation-map__footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: .7rem;
  padding: .65rem .75rem;
}

.operation-map__header {
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(4,7,8,.73), transparent);
}

.operation-map__header strong {
  color: #fff;
  font-family: var(--cc-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .85;
  text-transform: uppercase;
}

.operation-map__header span,
.operation-map__footer {
  color: rgba(255,255,255,.78);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .05em;
}

.operation-map__header span { white-space: nowrap; }

.operation-map__footer {
  align-items: end;
  background: linear-gradient(0deg, rgba(4,7,8,.9), transparent);
}

.operation-map__footer small {
  display: block;
  margin-bottom: .18rem;
  color: rgba(255,255,255,.62);
  font-size: .46rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.operation-map__footer b {
  display: block;
  color: #fff;
  font-size: .66rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.operation-map__team b { color: var(--active-primary); }
.operation-map__best { max-width: 72%; text-align: right; }

.operation-record__footer {
  grid-area: footer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: .4rem;
  border-top: 1px solid rgba(255,255,255,.12);
  color: var(--cc-muted);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.operation-record__no-map,
.command-empty,
.command-loading {
  color: var(--cc-muted);
  font-size: .8rem;
}

.operation-record__button {
  grid-area: button;
  align-self: stretch;
  white-space: nowrap;
}

.command-closing {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: 24rem;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  background: linear-gradient(111deg, #060708 0%, #101818 56%, #07100e 100%);
}

.command-closing__mark {
  display: grid;
  place-items: center;
  width: clamp(5rem, 10vw, 8rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.035);
}

.command-closing__mark img {
  width: 73%;
  max-height: 73%;
  object-fit: contain;
  filter: drop-shadow(0 .6rem 1.2rem rgba(0,0,0,.46));
}

.command-closing h2 { font-size: clamp(3.5rem, 6vw, 6.2rem); }
.command-closing__links { justify-content: flex-end; margin-top: 0; }

@keyframes command-rise {
  from { opacity: 0; transform: translateY(1.6rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes command-breathe {
  from { transform: scale(.93); opacity: .18; }
  to { transform: scale(1.08); opacity: .35; }
}

@keyframes command-pulse {
  0%, 100% { box-shadow: 0 0 0 .18rem color-mix(in srgb, var(--scene-accent) 12%, transparent); }
  50% { box-shadow: 0 0 0 .48rem color-mix(in srgb, var(--scene-accent) 0%, transparent); }
}

@keyframes command-reticle { to { transform: rotate(360deg); } }

@keyframes command-scene-enter {
  0% { opacity: 0; transform: translate3d(1.8rem, .5rem, 0) scale(.98); filter: blur(4px); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}

@keyframes command-scroll {
  0%, 100% { transform: scaleX(.55); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
}

@media (max-width: 1050px) {
  .command-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(21rem, .95fr); }
  .command-hero__stage { min-height: 30rem; }
  .operation-record {
    grid-template-columns: minmax(0, 1fr) 13rem;
    grid-template-areas:
      "lead mvp"
      "metrics mvp"
      "maps maps"
      "footer footer";
  }
  .operation-record__maps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body[data-page="home"] .navbar {
    height: auto;
    min-height: 5.1rem;
    background: linear-gradient(180deg, rgba(4, 6, 8, .94), rgba(4, 6, 8, .15));
  }

  body[data-page="home"] .navbar-center { background: transparent; }
  body[data-page="home"] .nav-link.active::after { display: block; bottom: -4px; }
  body[data-page="home"] .nav-link {
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.045);
    color: rgba(255,255,255,.67);
  }

  .command-hero__inner {
    display: block;
    min-height: 100svh;
    padding-top: 9.5rem;
    padding-bottom: 3.6rem;
  }

  .command-hero__copy { max-width: 33rem; }
  .command-hero__title { font-size: clamp(4.2rem, 16vw, 6.4rem); }
  .command-hero__lede { max-width: 27rem; margin-top: 1.15rem; }
  .command-hero__actions { margin-top: 1.4rem; }
  .command-hero__stats { max-width: 29rem; margin-top: 1.6rem; }
  .command-hero__stage { position: absolute; right: 0; bottom: 2.8rem; left: 33%; min-height: 25rem; }
  .command-stage__identity { right: .2rem; bottom: 4%; width: 96%; }
  .command-stage__identity strong { font-size: clamp(3.3rem, 11vw, 5rem); }
  .command-stage__reticle { top: 7%; right: 0; }
  .command-stage__marks { top: 8%; left: 2%; }
  .command-hero__scroll { display: none; }
  .command-hero__coordinates { bottom: 1.15rem; }
  .command-story { grid-template-columns: 1fr; min-height: auto; }
  .command-story__roster { margin-top: 2rem; }
  .command-story__statement { margin-left: clamp(1rem, 14vw, 6rem); }
  .command-story__signal { display: none; }
  .command-section-heading { align-items: start; }
  .roster-field__list { grid-template-columns: repeat(2, 1fr); }
  .operation-record {
    grid-template-columns: 1fr;
    grid-template-areas:
      "lead"
      "metrics"
      "mvp"
      "maps"
      "footer";
  }
  .operation-record__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operation-record__mvp {
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(255,255,255,.13);
    border-left: 0;
  }
  .command-closing { grid-template-columns: auto 1fr; }
  .command-closing__links { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 520px) {
  body[data-page="home"] .navbar-left img { width: 2rem; height: 2rem; }
  body[data-page="home"] .navbar-brand-text { font-size: 1rem; }
  body[data-page="home"] .squad-current { padding: .42rem .52rem; }
  body[data-page="home"] .squad-current span { font-size: .64rem; }

  .command-hero__inner { padding-top: 8.75rem; }
  .command-hero__eyebrow { gap: .45rem; font-size: .53rem; letter-spacing: .11em; }
  .command-hero__rule { width: 1rem; }
  .command-hero__lede { max-width: 15.5rem; font-size: .75rem; line-height: 1.55; }
  .command-hero__actions { gap: .5rem; }
  .command-button { min-height: 2.9rem; padding: 0 .85rem; font-size: .59rem; }
  .command-button--primary { min-width: auto; }
  .command-hero__stats { width: min(100%, 17.5rem); }
  .command-stat { padding-top: .8rem; }
  .command-stat:not(:first-child) { padding-left: .45rem; }
  .command-stat:not(:last-child)::after { top: .85rem; }
  .command-stat dt { font-size: .47rem; letter-spacing: .06em; }
  .command-stat dd { font-size: 1.38rem; }
  .command-hero__stage { bottom: 1rem; left: 26%; min-height: 20rem; }
  .command-stage__player-wrap { inset: 1% -8% 0 0; }
  .command-stage__identity { bottom: 1.1rem; padding: .7rem 0 0 .7rem; }
  .command-stage__identity-top,
  .command-stage__identity-bottom { font-size: .47rem; }
  .command-stage__map-label { display: none; }
  .command-stage__selectors { bottom: -.2rem; }
  .command-stage__selectors button { width: 1.35rem; }
  .command-stage__selectors button.is-active { width: 2.3rem; }
  .command-hero__coordinates { right: 1.25rem; font-size: .46rem; }
  .command-story h2,
  .command-section-heading h2,
  .operations-deck h2,
  .command-closing h2 { font-size: clamp(3.15rem, 15.3vw, 4.3rem); }
  .command-story__statement { margin-top: 1.3rem; font-size: .92rem; }
  .command-section-heading { display: block; }
  .command-section-heading__metric { justify-items: start; margin-top: 2rem; }
  .command-section-heading__metric span { text-align: left; }
  .roster-field__list { grid-template-columns: 1fr 1fr; }
  .roster-unit { min-height: 19rem; }
  .roster-unit__portrait { height: 13.6rem; }
  .roster-unit h3 { font-size: 2.15rem; }
  .roster-unit__copy { padding: .75rem; }
  .operation-record { display: grid; gap: 1.4rem; padding: 1.3rem; }
  .operation-record__maps { grid-template-columns: 1fr; }
  .operation-record__footer { display: grid; justify-items: start; }
  .operation-record__button { margin-top: 0; }
  .command-closing { grid-template-columns: 1fr; min-height: auto; }
  .command-closing__mark { width: 4.2rem; }
  .command-closing__links { display: grid; justify-content: center;}
}

@media (prefers-reduced-motion: reduce) {
  .command-center *,
  .command-center *::before,
  .command-center *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
/* ============================================================
   5. NUEVO: skeleton.css (Estilos para Skeleton Loaders)
   ============================================================ */
   
   .home-skeleton {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .skeleton-story {
    height: 200px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 12px;
    margin-bottom: 2rem;
  }
  
  .skeleton-roster {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .skeleton-roster-item {
    height: 300px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 12px;
  }
  
  .skeleton-operations {
    height: 400px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 12px;
  }
  
  @keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

/* ═══════════════════════════════════════════════
   FILTROS Y PAGINACIÓN PARA MAP PERFORMANCE
═════════════════════════════════════════════ */

/* ── Barra de filtros ── */
.mp-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.mp-filters-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mp-filter-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mp-filter-label span {
  color: var(--text-secondary);
}

.mp-filter-date {
  padding: 0.35rem 0.6rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-family: var(--font-body);
  transition: var(--transition);
  cursor: pointer;
}

.mp-filter-date:focus {
  outline: none;
  border-color: var(--active-primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.mp-filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.mp-filter-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--active-primary);
  cursor: pointer;
}

.mp-filter-clear {
  padding: 0.3rem 0.8rem;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: var(--transition);
}

.mp-filter-clear:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}

/* ── Paginación ── */
.mp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.mp-pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: var(--transition);
}

.mp-pagination-btn:hover:not(:disabled) {
  background: var(--active-bg);
  border-color: var(--active-primary);
  color: var(--active-primary);
}

.mp-pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.mp-pagination-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.mp-pagination-info {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 0.25rem;
}

.mp-pagination-info span {
  color: var(--text-primary);
  font-weight: 700;
}

/* ── Contenedor de lista de scrims ── */
.mp-scrim-list {
  max-height: 600px;
  overflow-y: auto;
}

.mp-scrim-list::-webkit-scrollbar {
  width: 4px;
}

.mp-scrim-list::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.mp-scrim-list::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: 2px;
}

.mp-scrim-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .mp-filters-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .mp-filters-group {
    justify-content: center;
  }
  
  .mp-filter-label {
    flex: 1;
    justify-content: center;
  }
  
  .mp-filter-date {
    width: 100%;
    max-width: 180px;
  }
  
  .mp-pagination {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .mp-filters-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .mp-filter-label {
    justify-content: flex-start;
  }
  
  .mp-filter-date {
    max-width: 100%;
  }
  
  .mp-pagination-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.6rem;
  }
}

/* ============================================================
   LOADING OVERLAY - Home
   ============================================================ */
   .loading-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(16, 185, 129, 0.15);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  
  .loading-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    animation: loading-text-pulse 1.5s ease-in-out infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  @keyframes loading-text-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
  }




  
  .clock-icon {
    transform: translateY(3px);
  }
/* ═══════════════════════════════════════════════
   SCRIM DETAIL v3 — pega esto AL FINAL de tu styles.css
   (la cascada hace que estas reglas ganen sobre las viejas)
═════════════════════════════════════════════ */

.mvp-section-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ── Label de escuadra ARRIBA de la card MVP (no adentro) ── */
.mvp-squad-label-top {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

/* ── Nombre del MVP superpuesto sobre la foto/tf ── */
.mvp-name-overlay-onphoto {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3%;
  z-index: 5;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 16px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

/* Ya no se usa el nombre debajo de la card; si tu HTML aún lo trae, ocúltalo */
.mvp-player-name-overlay {
  display: none;
}

/* ── Stats centradas ── */
.sd-summary-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}

.sd-summary-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.mvp-gstat-card {
  position: relative;
  aspect-ratio: 200 / 90;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.4rem 0.4rem;
  box-shadow: var(--shadow-sm);
}

.mvp-gstat-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000000;
  text-shadow: none;
}

.mvp-gstat-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: #000000;
  text-shadow: none;
}

.mvp-gstat-val.gstat-orange {
  color: #f97316;
}

.mvp-gstat-val.gstat-green {
  color: #10b981;
}

.mvp-gstat-val.gstat-red {
  color: #ef4444;
}

.mvp-gstat-val.gstat-blue {
  color: #3b82f6;
}

/* ── Tarjeta del gráfico ── */
.sd-chart-card {
  flex: 1;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  min-height: 339px;
  margin-bottom: 15px;
}

.sd-chart-legend {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.sd-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sd-chart-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.sd-chart-swatch.perf {
  background: var(--active-primary);
}

.sd-chart-swatch.kills {
  background: var(--amber);
}

.sd-chart-svg {
  width: 100%;
  height: auto;
  flex: 1;
  overflow: visible;
}

.sd-chart-axis-lbl {
  font-size: 13px;
  font-weight: 600;
  fill: var(--text-muted);
  font-family: var(--font-body);
}

.sd-chart-line-perf {
  stroke: var(--active-primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
}

.sd-chart-line-kills {
  stroke: var(--amber);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.sd-chart-avatar-ring {
  fill: var(--bg-secondary);
  stroke-width: 3;
}

.sd-chart-avatar-ring.perf {
  stroke: var(--active-primary);
}

.sd-chart-avatar-ring.kills {
  stroke: var(--amber);
}

.sd-chart-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* ═══════════════════════════════════════════════
   SCRIM DETAIL — ROOMS
═════════════════════════════════════════════ */
.sd-rooms-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sd-room-block {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.sd-room-banner {
  background-size: cover;
  background-position: center;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.sd-room-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.sd-room-banner-right {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.sd-room-chip{
  display:flex;
  justify-content:center;
  align-items:center;
  min-width:58px;
  gap: 4px;
  padding:.3rem .65rem;
  border-radius:12px;
  background:rgba(17,24,39,.22);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:
      0 2px 10px rgba(0,0,0,.18);
  transition:.18s;

}

.sd-room-chip:hover{
  background:rgba(17,24,39,.55);
  border-color:rgba(255,255,255,.14);
}
.sd-room-chip-pos {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}

.sd-room-chip-total {
  margin-top: 2px;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255,255,255,.5);
}
.sd-room-chip-val {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.sd-room-chip-sep {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
}

.sd-room-chip-lbl {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
  margin-top: 0.1rem;
}

/* Player rows con foto real */
.sd-player-rows {
  display: flex;
  flex-direction: column;
}

.sd-player-rows-head,
.sd-player-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.8fr) repeat(6, 0.85fr);
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
}

.sd-player-rows-head {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-bottom: 1.5px solid var(--border);
}

.sd-player-row {
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.sd-player-row:last-child {
  border-bottom: none;
}

.sd-player-row:hover {
  background: var(--bg-hover);
}

.col-name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--text-primary);
}

.col-num {
  text-align: center;
}

.sd-player-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.sd-player-avatar-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
}

.sd-kills {
  font-weight: 800;
  color: var(--green);
}

.sd-time {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Mobile */
@media (max-width: 768px) {
  .mvp-section-grid {
    grid-template-columns: 1fr;
  }

  .sd-summary-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .mvp-gstat-card {
    aspect-ratio: 200 / 110;
  }

  .sd-chart-card {
    min-height: 190px;
  }
}

@media (max-width: 640px) {
  .sd-player-rows-head {
    display: none;
  }

  .sd-player-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
  }

  .sd-player-row .col-num {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-align: left;
    font-size: 0.78rem;
    color: var(--text-muted);
  }
}

/* ═══════════════════════════════════════════════
   MAPA EN TABLA — Thumbnail rectangular
═════════════════════════════════════════════ */
.mp-scrim-map-thumb {
  position: relative;
  width: 190px;
  height: 50px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.mp-scrim-map-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    rgba(0, 0, 0, 0.15) 0%, 
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
}

.mp-scrim-map-name-on-thumb {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

/* Ajuste de la celda para centrar */
.mp-scrim-table tbody td:first-child {
  padding: 0.3rem 0.5rem;
  text-align: center;
  width: 190px;
}

/* Responsive */
@media (max-width: 600px) {
  .mp-scrim-map-thumb {
    width: 75px;
    height: 32px;
  }
  
  .mp-scrim-map-name-on-thumb {
    font-size: 0.4rem;
  }
  
  .mp-scrim-table tbody td:first-child {
    width: 75px;
    padding: 0.2rem 0.3rem;
  }
}


/* ============================================================
   HERO ROSTER — Distribución horizontal completa
   ============================================================ */

   .command-story__roster {
    container-type: inline-size;
    container-name: roster;
    position: relative;
    align-self: center;
    height: min(88vh, 50rem);
    min-height: 40rem;
    margin-top: clamp(-5.5rem, -7vh, -3rem);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0;
  }
  
  .hero-roster-container {
    position: relative;
    width: 100%;
    max-width: none;
    height: 100%;
    display: grid;
    grid-template-rows: max-content clamp(17rem, 32cqw, 23.5rem) max-content;
    align-content: start;
    gap: clamp(.9rem, 1.75cqw, 1.35rem);
    padding: clamp(.35rem, .9cqw, .85rem) 0 0;
    box-sizing: border-box;
  }

  .hero-roster-brief {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: clamp(1rem, 2cqw, 1.75rem);
    align-items: end;
    padding: 0 clamp(.25rem, .8cqw, .7rem) .95rem;
    border-bottom: 1px solid color-mix(in srgb, var(--roster-accent, #10b981) 52%, transparent);
    color: #f4f7f4;
    text-transform: uppercase;
  }



  .hero-roster-brief p,
  .hero-roster-brief h3,
  .hero-roster-brief span { margin: 0; }

  .hero-roster-brief p {
    grid-column: 1 / -1;
    color: color-mix(in srgb, var(--roster-accent, #10b981) 72%, #c6d0ca);
    font-size: clamp(.62rem, .78cqw, .76rem);
    font-weight: 800;
    letter-spacing: .15em;
  }

  .hero-roster-brief h3 {
    margin-top: .34rem;
    font-family: var(--cc-display);
    font-size: clamp(2rem, 3.25cqw, 3.05rem);
    letter-spacing: .045em;
    line-height: .9;
  }

  .hero-roster-brief > span {
    grid-column: 1 / -1;
    margin-top: .38rem;
    color: rgba(232, 240, 235, .58);
    font-size: clamp(.58rem, .72cqw, .68rem);
    font-weight: 700;
    letter-spacing: .1em;
  }

  .hero-roster-brief dl {
    grid-column: 2;
    grid-row: 2 / span 2;
    display: flex;
    align-items: end;
    gap: clamp(.85rem, 1.45cqw, 1.35rem);
    margin: 0;
  }

  .hero-roster-brief dl div { text-align: right; }
  .hero-roster-brief dt {
    color: rgba(232, 240, 235, .48);
    font-size: clamp(.5rem, .6cqw, .58rem);
    font-weight: 800;
    letter-spacing: .12em;
  }
  .hero-roster-brief dd {
    margin: .15rem 0 0;
    color: var(--roster-accent, #10b981);
    font-family: var(--cc-display);
    font-size: clamp(1.55rem, 2.45cqw, 2.35rem);
    line-height: .8;
  }
  
  /* Glow orgánico — solo fondo difuminado */
  
  .hero-roster-stage {
    position: relative;
    z-index: 2;
    min-height: 0;
    overflow: hidden;
    display: grid;
    align-items: end;
  }

/* Glow orgánico — fondo con imagen */
.hero-roster-container::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  /* background-image: var(--roster-bg-image, none); ← QUITA ESTA LÍNEA */
  /* background-position: center 20%;             ← Y ESTAS TAMBIÉN */
  /* background-size: cover; */
  /* background-repeat: no-repeat; */
  /* background-color: #0d1013; */
  pointer-events: none;
}

.hero-roster-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--roster-bg-image, none);
  background-position: center 20%;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: transparent;  /* fallback mientras carga */
  opacity: 0.9;
  pointer-events: none;
}

/* Degradado encima del fondo (para que se vea bien) */
.hero-roster-container::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(7, 9, 12, 0.1) 0%,
    rgba(7, 9, 12, 0.25) 45%,
    rgba(7, 9, 12, 0.6) 100%
  );
  pointer-events: none;
}

  .hero-roster-grid {
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    padding-top: clamp(.25rem, .75cqw, .65rem);
    box-sizing: border-box;
    transform: none;
    transform-origin: center;
  }

  .hero-roster-map-pool {
    position: relative;
    z-index: 4;
    color: #f4f7f4;
  }

  .hero-roster-map-pool__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: .7rem;
    text-transform: uppercase;
  }

  .hero-roster-map-pool__heading span {
    color: var(--roster-accent, #10b981);
    font-size: clamp(.62rem, .82cqw, .76rem);
    font-weight: 800;
    letter-spacing: .16em;
  }

  .hero-roster-map-pool__heading small {
    color: rgba(232, 240, 235, .48);
    font-size: clamp(.5rem, .64cqw, .6rem);
    font-weight: 700;
    letter-spacing: .1em;
  }

  .hero-roster-map-pool__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
  }

  .hero-roster-map {
    position: relative;
    isolation: isolate;
    min-height: clamp(4.6rem, 8.1cqw, 7rem);
    padding: .7rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--roster-accent, #10b981) 30%, transparent);
    background: #101817;
  }

  /* Reuse the same editorial map card used by the Operations section. */
  .hero-roster-map.operation-map {
    aspect-ratio: 2.9 / 1;
    min-height: clamp(7.4rem, 11.4cqw, 10rem);
    padding: 0;
    border-color: rgba(255, 255, 255, .16);
    background-image: linear-gradient(180deg, rgba(4, 7, 8, .1), rgba(4, 7, 8, .92)), var(--map-image);
    background-position: center;
    background-size: cover;
  }

  .hero-roster-map.operation-map::before,
  .hero-roster-map.operation-map::after { display: none; }

  .hero-roster-map.operation-map .operation-map__header,
  .hero-roster-map.operation-map .operation-map__footer { padding: .65rem .75rem; }

  .hero-roster-map.operation-map .operation-map__header strong {
    color: #fff;
    font-family: var(--cc-display);
    font-size: clamp(1.1rem, 1.8cqw, 1.7rem);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: .85;
  }

  .hero-roster-map.operation-map .operation-map__header span,
  .hero-roster-map.operation-map .operation-map__footer {
    color: rgba(255, 255, 255, .78);
    font-size: clamp(.56rem, .8cqw, .72rem);
  }

  .hero-roster-map.operation-map .operation-map__header span,
  .hero-roster-map.operation-map .operation-map__footer span { margin-top: 0; }

  .hero-roster-map.operation-map .operation-map__footer small {
    font-size: clamp(.48rem, .62cqw, .58rem);
  }

  .hero-roster-map.operation-map .operation-map__footer b {
    font-size: clamp(.62rem, .9cqw, .82rem);
  }

  .hero-roster-map::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    content: '';
    background: var(--roster-map-art) center / cover no-repeat;
    filter: saturate(.78) brightness(.58);
    transform: scale(1.06);
  }

  .hero-roster-map::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: '';
    background: linear-gradient(90deg, rgba(7, 10, 11, .92), rgba(7, 10, 11, .22));
  }

  .hero-roster-map strong,
  .hero-roster-map span { display: block; }
  .hero-roster-map strong {
    font-size: clamp(.73rem, 1.16cqw, 1.04rem);
    letter-spacing: .04em;
  }
  .hero-roster-map span {
    margin-top: .38rem;
    color: rgba(239, 244, 240, .72);
    font-size: clamp(.49rem, .72cqw, .64rem);
    font-weight: 700;
    line-height: 1.35;
  }
  
  /* Jugadores — solo imágenes, sin card */
  .hero-roster-player {
    position: relative;
    z-index: var(--z, 1);
    /* Each portrait needs an explicit footprint.  Without this, flex uses the
       image's intrinsic width and the row can grow past the right edge. */
    width: clamp(8.8rem, 23cqw, 14.8rem);
    height: 100%;
    max-height: none;
    flex-shrink: 0;
    margin-left: clamp(-6.2rem, -9cqw, -4rem);
    transition: none;
    transform-origin: bottom center;
    pointer-events: none;
    user-select: none;
  }
  
  /* Primero sin margen negativo */
  .hero-roster-player:first-child {
    margin-left: 0;
  }
  
  /* Tamaños jerárquicos */
  .hero-roster-mvp { 
    height: 100%; 
    z-index: 5;
  }
  
  .hero-roster-left-2,
  .hero-roster-right-2 { 
    height: 98%; 
    z-index: 3;
  }
  
  .hero-roster-left-3,
  .hero-roster-right-3 { 
    height: 95%; 
    z-index: 2;
  }

  .hero-roster-left-4 {
    height: 92%;
    z-index: 1;
  }
  
  /* Hover */
  .hero-roster-player:hover {
    transform: none;
    filter: none;
    z-index: var(--z, 1) !important;
  }
  
  /* Solo la imagen, sin contenedor/card */
  .hero-roster-player-photo {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
  }
  
  .hero-roster-player-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    filter: drop-shadow(0 -5px 20px rgba(0,0,0,0.5));
    transition: none;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
  }
  
  .hero-roster-player:hover .hero-roster-player-photo img {
    filter: drop-shadow(0 -5px 20px rgba(0,0,0,0.5));
    transform: none;
  }
  
  .hero-roster-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255,255,255,0.2);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  /* Tablet */
  @container roster (max-width: 1024px) {
    .hero-roster-container {
      grid-template-rows: max-content clamp(15.5rem, 34cqw, 21.5rem) max-content;
      gap: clamp(.8rem, 1.8cqw, 1.25rem);
    }

    .hero-roster-stage {
      min-height: 0;
    }

    .hero-roster-player {
      width: clamp(7.35rem, 23cqw, 12.6rem);
      height: 100%;
      margin-left: clamp(-5.35rem, -9cqw, -3.45rem);
    }
    
    .hero-roster-mvp { 
      height: 100%;
    }
    
    .hero-roster-left-2,
    .hero-roster-right-2 { 
      height: 98%;
    }
    
    .hero-roster-left-3,
    .hero-roster-right-3 { 
      height: 95%;
    }

    .hero-roster-left-4 {
      height: 92%;
    }

    .hero-roster-map.operation-map {
      min-height: clamp(6.6rem, 12cqw, 8.8rem);
    }
  }
  
  /* Laptop pequeña */
  @container roster (max-width: 768px) {
    .command-story__roster {
      height: min(84vh, 42rem);
      min-height: 34rem;
      padding-right: 0;
    }
    
    .hero-roster-container {
      max-width: 100%;
      grid-template-rows: max-content clamp(14.5rem, 42cqw, 19.5rem) max-content;
      gap: clamp(.75rem, 2cqw, 1.05rem);
    }
    
    .hero-roster-grid {
      justify-content: center;
      padding-top: clamp(.2rem, .7cqw, .5rem);
      transform: none;
    }

    .hero-roster-stage::before {
      inset: 0;
    }

    .hero-roster-stage {
      min-height: 0;
    }
    
    .hero-roster-player {
      width: clamp(6.45rem, 23.5cqw, 11.2rem);
      height: 100%;
      margin-left: clamp(-4.65rem, -9.5cqw, -3rem);
    }
    
    .hero-roster-mvp { 
      height: 100%;
    }
    
  .hero-roster-left-2,
  .hero-roster-right-2 { 
      height: 98%;
    }
    
    .hero-roster-left-3,
    .hero-roster-right-3 { 
      height: 95%;
    }

    .hero-roster-left-4 {
      height: 92%;
    }

    .hero-roster-map.operation-map {
      min-height: clamp(5.6rem, 13cqw, 7.4rem);
    }
  }
  
  /* Mobile */
  @media (max-width: 640px) {
    .command-story__roster {
      height: auto;
      min-height: 37rem;
      padding-right: 0;
      margin-top: 2rem;
    }

    .hero-roster-container {
      grid-template-rows: max-content clamp(13.2rem, 60cqw, 18rem) max-content;
      gap: .85rem;
      min-height: 37rem;
      padding-top: 0;
    }

    .hero-roster-brief {
      padding-bottom: .72rem;
    }

    .hero-roster-brief h3 { font-size: clamp(1.55rem, 8cqw, 2rem); }
    .hero-roster-brief > span { font-size: .5rem; letter-spacing: .07em; }
    .hero-roster-brief dl { gap: .75rem; }
    .hero-roster-brief dd { font-size: clamp(1.25rem, 5.4cqw, 1.65rem); }

    .hero-roster-stage::before {
      inset: 0;
    }

    .hero-roster-stage {
      min-height: 0;
    }

    .hero-roster-grid {
      padding-top: .25rem;
      transform: none;
    }

    .hero-roster-map-pool__list { gap: .42rem; }
    .hero-roster-map { min-height: 4rem; padding: .55rem; }
    .hero-roster-map.operation-map {
      aspect-ratio: 2.35 / 1;
      min-height: clamp(4.7rem, 18cqw, 6rem);
    }
    .hero-roster-map strong { font-size: .68rem; }
    .hero-roster-map span { font-size: .48rem; }
    
    .hero-roster-player {
      width: clamp(4.6rem, 23cqw, 7.4rem); /* <--- CAMBIA ESTO */
      height: 100%;
      margin-left: clamp(-3.7rem, -11cqw, -2.25rem);
    }
    
    .hero-roster-mvp { 
      height: 100%;
    }

    .hero-roster-left-2,
    .hero-roster-right-2 {
      height: 98%;
    }

    .hero-roster-left-3,
    .hero-roster-right-3 {
      height: 95%;
    }

    .hero-roster-left-4 {
      height: 92%;
    }
  }
  
  /* Fallback */
  @supports not (container-type: inline-size) {
    .hero-roster-player {
      height: clamp(11rem, 24vw, 20rem);
      margin-left: -2rem;
    }
    
    .hero-roster-player:first-child {
      margin-left: 0;
    }
    
    .hero-roster-mvp { 
      height: clamp(13rem, 28vw, 23rem);
    }
    
    .hero-roster-left-2,
    .hero-roster-right-2 { 
      height: clamp(10rem, 22vw, 18rem);
    }
    
    .hero-roster-left-3,
    .hero-roster-right-3 { 
      height: clamp(8.5rem, 19vw, 16rem);
    }
    
  }

/* ═══════════════════════════════════════════════
SCROLLBAR FINAL FIX — Sin flechas, delgado y por squad
═══════════════════════════════════════════════ */

/* 1. MATAR LAS FLECHAS DEL SCROLLBAR A NIVEL GLOBAL */
::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* 2. CONFIGURACIÓN BASE PARA .scrollbar-thin y .custom-scrollbar */
.scrollbar-thin,
.custom-scrollbar {
  scrollbar-width: thin !important;
  scrollbar-color: var(--active-primary) var(--bg-secondary) !important;
}

.scrollbar-thin::-webkit-scrollbar,
.custom-scrollbar::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}

.scrollbar-thin::-webkit-scrollbar-track,
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent !important;
  border-radius: 8px !important;
}

.scrollbar-thin::-webkit-scrollbar-thumb,
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--active-primary) !important;
  border-radius: 8px !important;
  border: 2px solid transparent !important;
  background-clip: padding-box !important;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover,
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark) !important;
  background-clip: padding-box !important;
}

/* 3. FORZAR COLORES POR SQUAD EN .scrim-detail-box y .mp-scrim-list */
.squad-oficial .scrim-detail-box::-webkit-scrollbar-thumb,
.squad-oficial .mp-scrim-list::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.4) !important;
  background-clip: padding-box !important;
}
.squad-oficial .scrim-detail-box,
.squad-oficial .mp-scrim-list {
  scrollbar-color: rgba(16, 185, 129, 0.4) transparent !important;
}

.squad-tier .scrim-detail-box::-webkit-scrollbar-thumb,
.squad-tier .mp-scrim-list::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.4) !important;
  background-clip: padding-box !important;
}
.squad-tier .scrim-detail-box,
.squad-tier .mp-scrim-list {
  scrollbar-color: rgba(59, 130, 246, 0.4) transparent !important;
}

.squad-girls .scrim-detail-box::-webkit-scrollbar-thumb,
.squad-girls .mp-scrim-list::-webkit-scrollbar-thumb {
  background: rgba(236, 72, 153, 0.4) !important;
  background-clip: padding-box !important;
}
.squad-girls .scrim-detail-box,
.squad-girls .mp-scrim-list {
  scrollbar-color: rgba(236, 72, 153, 0.4) transparent !important;
}

/* 4. ASEGURAR QUE LOS CONTENEDORES TENGAN SCROLL */
.scrim-detail-box,
.mp-scrim-list {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
/* ═══════════════════════════════════════════════
   UNIFICAR ESTILO DEL SELECTOR DE SQUAD EN HOME
   (Ahora usa el mismo diseño visual que el resto de páginas)
═════════════════════════════════════════════ */

/* 1. Reseteamos el dropdown a su diseño original */
body[data-page="home"] .squad-dropdown .squad-current {
  height: 28px !important;
  padding: 0 14px !important;
  background: rgba(255, 255, 255, 0.12) !important; /* Fondo semitransparente para oscuro */
  backdrop-filter: blur(4px) !important; /* Un poco de cristal para que se vea bien */
  border: 1px solid rgba(255, 255, 255, 0.25) !important; /* Borde blanco sutil */
  border-radius: 12px !important;
  color: #ffffff !important; /* Texto blanco para que se lea en el fondo oscuro */
  font-family: var(--font-body) !important;
  font-size: 0.82rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: 0.2s !important;
  box-sizing: border-box !important;
}

/* Hover igual que en las otras páginas pero adaptado a oscuro */
body[data-page="home"] .squad-dropdown .squad-current:hover {
  border-color: rgba(255, 255, 255, 0.6) !important;
}

body[data-page="home"] .squad-dropdown .squad-current span {
  flex: 1 !important;
  text-align: left !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  color: #ffffff !important;
}

body[data-page="home"] .squad-dropdown .squad-current img {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain !important;
  margin-right: 10px !important;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.5)) !important; /* Para que se vea el logo sobre fondo claro/oscuro */
}

body[data-page="home"] .squad-dropdown .squad-current svg {
  flex-shrink: 0 !important;
  stroke: #ffffff !important; /* Flecha blanca */
  width: 16px !important;
  height: 16px !important;
}

/* 2. El menú desplegable (se mantiene igual que en las otras páginas) */
body[data-page="home"] .squad-dropdown .squad-menu {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  right: 0 !important;
  width: 150px !important;
  background: #ffffff !important; /* Fondo blanco como en el resto */
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25) !important;
  z-index: 1000 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-6px) !important;
  transition: all 0.2s ease !important;
  pointer-events: none !important;
}

body[data-page="home"] .squad-dropdown.open .squad-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

body[data-page="home"] .squad-dropdown.open .squad-current svg {
  transform: rotate(180deg) !important;
}

body[data-page="home"] .squad-menu button {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 11px 14px !important;
  background: #ffffff !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important; /* Letras oscuras como en el resto */
  transition: 0.18s !important;
}

body[data-page="home"] .squad-menu button:hover {
  background: #EAFBF3 !important;
  color: var(--active-primary) !important;
}

body[data-page="home"] .squad-menu img {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain !important;
}


/* ═══════════════════════════════════════════════
   CORRECCIÓN: FOTOS MÁS GRANDES EN 425px (MÓVIL)
═════════════════════════════════════════════ */
@container roster (max-width: 520px) {
  
  /* 1. Aumentamos la altura de la fila de jugadores PERO MENOS QUE ANTES */
  .hero-roster-container {
    grid-template-rows: max-content clamp(15rem, 50cqw, 18rem) max-content !important;
    gap: 0.75rem;
  }

  /* 2. Hacemos que los jugadores sean anchos y altos */
  .hero-roster-player {
    width: clamp(5.5rem, 28cqw, 7.5rem) !important; 
    height: 100% !important;
    /* 3. Ajustamos el solapamiento para que quepan los 6 */
    margin-left: clamp(-4.5rem, -14cqw, -3.5rem) !important;
  }

  /* El primero no debe tener margen negativo */
  .hero-roster-player:first-child {
    margin-left: 0 !important;
  }
  
  /* El jugador central (MVP) un poco más grande */
  .hero-roster-mvp {
    width: clamp(6.5rem, 32cqw, 8.5rem) !important;
  }
}