/* ============================================================
   BO2 ARENA — Design System "Dark Ops HUD"
   Ver design-system/MASTER.md para tokens y reglas.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Paleta Black Ops 2 / logo LAS: negro carbón + naranja + plata */
  --bg: #0A0A0B;
  --surface: #131316;
  --surface-2: #1C1C20;
  --border: #2A2A30;
  --border-strong: #3C3C44;

  --primary: #FF9C00;
  --primary-hover: #FFB133;
  --primary-dim: rgba(255, 156, 0, 0.10);
  --on-primary: #1A1000;

  --text: #F2F2F0;
  --text-2: #B4B6B4;
  --text-3: #85868C;
  --steel: #C4C8CE;

  --win: #3DDC84;
  --win-dim: rgba(61, 220, 132, 0.12);
  --loss: #FF6B6B;
  --loss-dim: rgba(255, 107, 107, 0.12);
  --accent-blue: #4DA3FF;
  --accent-blue-dim: rgba(77, 163, 255, 0.12);

  --font-display: "Rajdhani", "Arial Narrow", sans-serif;
  --font-stencil: "Black Ops One", "Rajdhani", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 4px;
  --nav-h: 64px;
  --container: 1160px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --glow: 0 0 0 1px rgba(255, 156, 0, 0.35), 0 6px 24px rgba(255, 156, 0, 0.08);

  --t-fast: 160ms ease-out;
  --t-med: 240ms ease-out;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

/* Titulares grandes en stencil Black Ops; UI y subtítulos en Rajdhani */
h1, h2 {
  font-family: var(--font-stencil);
  font-weight: 400;
  letter-spacing: 0.015em;
}
h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1em; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--primary-hover); }

button {
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: var(--primary); color: var(--on-primary); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Utilidades ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 16px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; color: var(--on-primary); }

.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.tnum { font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.section { padding-block: 72px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.section--tight { padding-block: 48px; }

.section-head { margin-bottom: 36px; }
.section-head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.section-head .kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--primary);
}
.section-head p { max-width: 62ch; color: var(--text-2); margin-bottom: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; }

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.btn--primary {
  position: relative;
  overflow: hidden;
}
/* Destello diagonal que cruza el botón al pasar el ratón */
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.btn--primary:hover::after { animation: btnShine 620ms ease-out; }
@keyframes btnShine {
  0%   { left: -60%; opacity: 0; }
  18%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}
.btn--primary:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
  box-shadow: var(--glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
}

.btn--sm { min-height: 38px; padding: 6px 16px; font-size: 0.9rem; }
.btn--block { width: 100%; }

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Orden en escritorio: marca · enlaces (a la derecha) · campana junto al CTA */
.navbar__inner > nav { margin-left: auto; order: 1; }
.nav-bell { position: relative; order: 2; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand svg { width: 28px; height: 28px; color: var(--primary); }
.brand img {
  /* Escudo ACL con transparencia: sin marco ni recorte */
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.brand span { color: var(--steel); letter-spacing: 0.16em; }
.brand span em { color: var(--primary); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  border-radius: var(--radius);
  position: relative;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
/* Subrayado que crece desde el centro al pasar el ratón */
.nav-links a::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover::before { transform: scaleX(1); }
.nav-links .nav-cta a::before { display: none; }
.nav-links a[aria-current="page"] { color: var(--primary); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--primary);
}
.nav-links .nav-cta { margin-left: 8px; position: relative; }

/* ---------- Desplegables del menú (Torneos / Competición) ---------- */
.nav-drop { position: relative; }
.nav-drop__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  background: none;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-drop__btn:hover { color: var(--text); background: var(--surface-2); }
.nav-drop__btn.is-active { color: var(--primary); }
.nav-drop__btn .nav-caret {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform var(--t-fast);
}
.nav-drop__btn[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.nav-drop__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 120;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.nav-drop__menu[hidden] { display: none; }
/* Puente invisible: evita que el menú se cierre al cruzar el hueco con el ratón */
.nav-drop__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.nav-drop__menu a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.nav-drop__menu a::before,
.nav-drop__menu a::after { display: none; }
.nav-drop__menu a:hover { background: var(--surface-2); color: var(--text); }
.nav-drop__menu a[aria-current="page"] { color: var(--primary); }

@media (max-width: 767px) {
  .nav-drop__btn { width: 100%; justify-content: space-between; min-height: 48px; }
  .nav-drop__menu {
    position: static;
    box-shadow: none;
    min-width: 0;
    margin: 4px 0 4px 12px;
    padding: 0;
    background: transparent;
    border: none;
    border-left: 2px solid var(--border-strong);
    border-radius: 0;
  }
  .nav-drop__menu a { min-height: 44px; padding-left: 14px; }
}

/* Flecha del botón de usuario: indica desplegable y gira al abrirlo */
#nav-account .um-caret {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform var(--t-fast);
}
#nav-account[aria-expanded="true"] .um-caret { transform: rotate(180deg); }

/* Menú desplegable del usuario */
.user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  z-index: 150;
}
.user-menu a,
.user-menu button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 500;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-2);
  background: none;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  min-height: 0;
}
.user-menu a:hover,
.user-menu button:hover { background: var(--surface-2); color: var(--text); }
.user-menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.user-menu .um-out { color: var(--loss); }
.user-menu .um-out:hover { background: var(--loss-dim); color: var(--loss); }
@media (max-width: 767px) {
  /* Dentro del menú hamburguesa el desplegable va en flujo, a lo ancho */
  .user-menu {
    position: static;
    box-shadow: none;
    margin-top: 6px;
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 767px) {
  .user-menu {
    position: static;
    box-shadow: none;
    margin-top: 6px;
    min-width: 0;
  }
}

/* El CTA (botón naranja) nunca hereda los colores de enlace del nav:
   texto siempre oscuro sobre naranja, sin subrayado de página activa.
   (Solo el hijo directo: los enlaces del menú desplegable no se ven afectados.) */
.nav-links .nav-cta > a,
.nav-links .nav-cta > a[aria-current="page"] { color: var(--on-primary); }
.nav-links .nav-cta > a:hover {
  color: var(--on-primary);
  background: var(--primary-hover);
}
.nav-links .nav-cta > a[aria-current="page"]::after { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }
  /* Móvil: la campana queda siempre visible en la barra, junto a la hamburguesa */
  .navbar__inner > nav { margin-left: 0; order: 0; }
  .nav-bell { order: 1; margin-left: auto; }
  .nav-toggle { order: 2; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { min-height: 48px; }
  .nav-links .nav-cta { margin: 8px 0 0; }
}

/* ---------- Notificaciones (campana + panel) ---------- */
.bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-2);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.bell-btn:hover,
.bell-btn[aria-expanded="true"] {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
}
.bell-btn svg { width: 20px; height: 20px; }
.bell-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--on-primary);
  background: var(--primary);
  border: 2px solid var(--bg);
  border-radius: 999px;
}

.notif-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(360px, calc(100vw - 24px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  z-index: 150;
  overflow: hidden;
}
.notif-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.notif-panel__head h4 { margin: 0; font-size: 0.95rem; }
.notif-mark {
  background: none;
  border: none;
  padding: 4px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
}
.notif-mark:hover { text-decoration: underline; }

.notif-list { max-height: 380px; overflow-y: auto; }
.notif {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.45;
  transition: background var(--t-fast);
}
.notif:last-child { border-bottom: none; }
.notif:hover { background: var(--surface-2); color: var(--text); }
.notif.is-unread {
  background: var(--primary-dim);
  box-shadow: inset 3px 0 0 var(--primary);
  color: var(--text);
}
.notif.is-unread:hover { background: rgba(255, 156, 0, 0.16); }
.notif__time {
  display: block;
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 3px;
}
@media (max-width: 767px) {
  /* En móvil el panel ancla al viewport, no a la campana: en Android se salía por la izquierda */
  .notif-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: calc(var(--nav-h) + 8px);
    width: auto;
    max-width: none;
  }
}
.notif-empty {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  color: var(--text-3);
  font-size: 0.9rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 900px 420px at 70% -10%, rgba(255, 156, 0, 0.13), transparent 60%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(180, 182, 180, 0.05) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(180, 182, 180, 0.05) 47px 48px);
  mask-image: radial-gradient(ellipse 80% 90% at 60% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 60% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 820px; }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-dim);
  border: 1px solid rgba(255, 156, 0, 0.3);
  border-radius: 999px;
}
.hero .eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--win);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.hero h1 em { color: var(--primary); font-style: normal; }
.hero .lead {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 56ch;
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero con arte de BO2 de fondo (degradado a la izquierda para el texto) */
/* La foto vive en su propia capa para poder animarla sin repintar el fondo */
.hero--photo { background: var(--bg); }
.hero--photo::before {
  content: "";
  position: absolute;
  inset: -2%;                    /* margen extra: el zoom nunca descubre los bordes */
  background: url("../assets/img/bo2-hero.jpg") right center / cover no-repeat;
  mask-image: none;
  -webkit-mask-image: none;
  transform-origin: 12% 50%;
  animation: heroZoom 30s ease-in-out infinite alternate;
  z-index: 0;
}
/* Velo oscuro por encima de la foto para que el texto siempre se lea */
.hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 11, 0.97) 0%, rgba(10, 10, 11, 0.88) 42%, rgba(10, 10, 11, 0.55) 72%, rgba(10, 10, 11, 0.4) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero--photo .hero__grid,
.hero--photo .container { position: relative; z-index: 2; }

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

/* Entrada escalonada del hero al cargar */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.hero--photo .eyebrow,
.hero--photo h1,
.hero--photo .lead,
.hero--photo .hero__actions,
.hero--photo .hero__announce,
.hero--photo .hero__stats {
  animation: heroIn 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero--photo .eyebrow       { animation-delay: 80ms; }
.hero--photo h1             { animation-delay: 180ms; }
.hero--photo .lead          { animation-delay: 300ms; }
.hero--photo .hero__actions { animation-delay: 420ms; }
.hero--photo .hero__announce{ animation-delay: 540ms; }
.hero--photo .hero__stats   { animation-delay: 640ms; }

/* Texto + panel de anuncios en dos columnas (una en móvil) */
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 48px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__announce { max-width: 440px; }
}

/* Panel de anuncios rotatorio */
.hero__announce {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 12px;
  background: rgba(16, 16, 19, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.ann-viewport { position: relative; flex: 1; padding-bottom: 6px; }
.ann-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
}
.ann-slide.is-on { opacity: 1; pointer-events: auto; }
.ann--sin-fundido .ann-slide { transition: none; }
.ann-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.ann-kicker::before { content: ""; width: 20px; height: 2px; background: var(--primary); }
.ann-slide h3 { margin: 0; font-size: 1.45rem; }
.ann-sub { margin: 0; color: var(--text-2); font-size: 0.95rem; }
/* Escudo fantasma de fondo en la diapositiva del torneo */
.ann-slide--torneo::before {
  content: "";
  position: absolute;
  right: -34px;
  bottom: 22px;
  width: 190px;
  height: 190px;
  background: url("../assets/img/acl-logo.png") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}
.ann-slide--torneo > * { position: relative; z-index: 1; }

.ann-slide--logo { align-items: center; text-align: center; }
.ann-slide--logo img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 6px 24px rgba(255, 156, 0, 0.25));
}
.ann-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.ann-dot {
  position: relative;
  width: 28px;
  height: 16px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}
.ann-dot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-strong);
  transition: background var(--t-fast);
}
.ann-dot:hover::after { background: var(--text-3); }
.ann-dot.is-on::after { background: var(--primary); }

@media (max-width: 900px) {
  /* En vertical la foto se ve arriba (el soldado encuadrado) y el texto
     queda por debajo sobre un velo oscuro: siempre legible. */
  .hero--photo::before {
    background-position: 62% 18%;
    background-size: 150% auto;
    background-repeat: no-repeat;
  }
  .hero--photo::after {
    background: linear-gradient(180deg,
      rgba(10, 10, 11, 0.35) 0%,
      rgba(10, 10, 11, 0.72) 32%,
      rgba(10, 10, 11, 0.95) 58%,
      rgba(10, 10, 11, 0.99) 100%);
  }
  .hero--photo { padding-top: 132px; }   /* aire para que se vea la foto */
}
@media (max-width: 560px) {
  .hero--photo::before { background-size: 190% auto; background-position: 60% 14%; }
  .hero--photo { padding-top: 112px; }
}

.hero__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  margin-top: 56px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--surface);
  padding: 18px 20px;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat span {
  font-size: 0.85rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.card--cut {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.card--hover:hover {
  border-color: rgba(255, 156, 0, 0.55);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.grid {
  display: grid;
  gap: 20px;
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid;
}
.badge svg { width: 13px; height: 13px; }
.badge--open   { color: var(--win); background: var(--win-dim); border-color: rgba(61, 220, 132, 0.35); }
.badge--soon   { color: var(--primary); background: var(--primary-dim); border-color: rgba(255, 156, 0, 0.35); }
.badge--closed { color: var(--text-3); background: var(--surface-2); border-color: var(--border-strong); }
.badge--blue   { color: var(--accent-blue); background: var(--accent-blue-dim); border-color: rgba(77, 163, 255, 0.35); }
.badge--live   { color: var(--loss); background: var(--loss-dim); border-color: rgba(255, 107, 107, 0.35); }

/* ---------- Torneo card ---------- */
.event-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.event-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.event-card__date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 0.92rem;
}
.event-card__date svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }
.event-card h3 { margin-bottom: 2px; }
.event-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.92rem;
  color: var(--text-2);
}
.event-card .meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  list-style: none;
}
.event-card .meta { padding: 0; margin: 0; }
.event-card .meta svg { width: 15px; height: 15px; color: var(--text-3); }
.event-card__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.slots { font-size: 0.9rem; color: var(--text-2); }
.slots b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- Tabla ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 640px;
}
caption {
  text-align: left;
  padding: 16px 20px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-2);
}
thead th {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background var(--t-fast); }
tbody tr:hover { background: var(--surface-2); }
td.team-cell { color: var(--text); font-weight: 600; white-space: nowrap; }
td .tag {
  display: inline-block;
  min-width: 46px;
  margin-right: 10px;
  padding: 2px 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--primary);
  background: var(--primary-dim);
  border: 1px solid rgba(255, 156, 0, 0.3);
  border-radius: 3px;
}
.pos { font-family: var(--font-display); font-weight: 700; color: var(--text-3); }
tr.is-top .pos { color: var(--primary); }
tr.is-top td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.pts { color: var(--text) !important; font-weight: 700; }
.diff-pos { color: var(--win) !important; }
.diff-neg { color: var(--loss) !important; }

.form-streak {
  display: inline-flex;
  gap: 4px;
}
.form-streak i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 3px;
}
.form-streak .w { background: var(--win-dim); color: var(--win); }
.form-streak .l { background: var(--loss-dim); color: var(--loss); }

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  overflow-x: auto;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.tab-btn {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  min-height: 48px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.tab-btn:hover { color: var(--text); }
.tab-btn[aria-selected="true"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab-panel[hidden] { display: none; }

/* ---------- Equipo card ---------- */
.team-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.team-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: var(--primary-dim);
  border: 1px solid rgba(255, 156, 0, 0.35);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.team-card__head h3 { margin: 0; font-size: 1.15rem; }
.team-card__head .record { font-size: 0.85rem; color: var(--text-3); }
.roster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.roster li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  font-size: 0.93rem;
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: 3px;
}
.roster li svg { width: 15px; height: 15px; color: var(--text-3); flex-shrink: 0; }
.roster .cap {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  border: 1px solid rgba(255, 156, 0, 0.4);
  border-radius: 3px;
  padding: 1px 6px;
}

/* ---------- Calendario / partidos ---------- */
.matchday { margin-bottom: 36px; }
.matchday__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.matchday__title h3 { margin: 0; }
.match-list { display: grid; gap: 10px; }
.match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.match .side {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  min-width: 0;
}
.match .side span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match .side:last-child { justify-content: flex-end; }
.match .score {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text);
  background: var(--surface-2);
  border-radius: 3px;
  padding: 4px 14px;
}
.match .score .vs { color: var(--text-3); font-size: 0.85rem; }
.match .side.winner span { color: var(--primary); }
.match--pending .score { color: var(--text-3); }

/* ---------- Bracket ---------- */
.bracket-wrap {
  overflow-x: auto;
  padding-bottom: 12px;
}
.bracket {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 32px;
  min-width: 820px;
}
.bracket__round > h4 {
  text-align: center;
  color: var(--text-3);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.bracket__matches {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 20px;
  height: 100%;
}
.b-match {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.b-match--final { border-color: rgba(255, 156, 0, 0.5); box-shadow: var(--glow); }
.b-match .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 0.93rem;
  color: var(--text-2);
}
.b-match .row + .row { border-top: 1px solid var(--border); }
.b-match .row.win {
  color: var(--text);
  font-weight: 600;
  background: linear-gradient(90deg, var(--primary-dim), transparent 70%);
  box-shadow: inset 3px 0 0 var(--primary);
}
.b-match .row b { font-variant-numeric: tabular-nums; font-weight: 700; }
.b-match .row.win b { color: var(--primary); }

/* Cruce clicable (modo admin): marcar ganador */
.b-match button.row {
  width: 100%;
  background: none;
  border: none;
  font: inherit;
  color: var(--text-2);
  text-align: left;
  cursor: pointer;
  transition: background var(--t-fast);
}
.b-match button.row:hover { background: var(--primary-dim); color: var(--text); }
.b-match button.row.win { color: var(--text); }

/* Mapas y hosts dentro de un cruce del cuadro */
.b-plan { border-top: 1px solid var(--border); }
.b-plan summary {
  cursor: pointer;
  padding: 6px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.b-plan summary:hover { color: var(--primary); }
.b-plan ol { margin: 0; padding: 0 14px 10px 30px; display: grid; gap: 4px; }
.b-plan li { font-size: 0.82rem; color: var(--text-2); }
.b-plan li b { color: var(--text); font-weight: 600; }
.b-plan li span { display: block; font-size: 0.76rem; color: var(--text-3); }

/* Estado y reporte de un cruce */
.b-status {
  padding: 6px 14px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-3);
  background: var(--primary-dim);
}
.b-status--disputa { color: var(--loss); background: var(--loss-dim); }
.b-report {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
}
.b-report .btn { flex: 1; min-height: 34px; padding: 4px 10px; font-size: 0.82rem; }

/* Nombre de equipo clicable (ranking → perfil de equipo) */
.team-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
}
.team-link:hover { color: var(--primary); }

/* Corte del top 32 en el ranking */
.rank-cut td {
  text-align: center !important;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary) !important;
  background: var(--primary-dim);
  border-top: 1px dashed rgba(255, 156, 0, 0.45);
  border-bottom: 1px dashed rgba(255, 156, 0, 0.45);
}

/* Clasificados provisionales del Major */
.qual-list {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}
.qual-list li .pos {
  min-width: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-3);
}
.qual-list li:nth-child(-n+8) .pos { color: var(--primary); }

/* ---------- Podio ---------- */
.podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.podium .card { text-align: center; }
.podium .place {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.podium h3 { margin: 6px 0 2px; }
.podium .prize { color: var(--primary); font-weight: 600; font-size: 0.95rem; }
.podium .card--gold { border-color: rgba(255, 156, 0, 0.55); box-shadow: var(--glow); }
.podium svg { width: 34px; height: 34px; margin: 0 auto 10px; }
.podium .card--gold svg { color: var(--primary); }
.podium .card:not(.card--gold) svg { color: var(--text-3); }

/* ---------- Steps (cómo funciona) ---------- */
.step { position: relative; }
.step .num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--primary);
  line-height: 1;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--text-2); margin: 0; font-size: 0.96rem; }

/* ---------- Reglas ---------- */
.rules-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.rules-nav {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.rules-nav h4 { color: var(--text-3); font-size: 0.85rem; letter-spacing: 0.12em; }
.rules-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rules-nav a {
  display: block;
  padding: 9px 14px;
  font-size: 0.95rem;
  color: var(--text-2);
  border-left: 2px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.rules-nav a:hover { color: var(--text); background: var(--surface-2); }
.rules-nav a.is-active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--primary-dim);
}
@media (max-width: 900px) {
  .rules-layout { grid-template-columns: 1fr; gap: 24px; }
  .rules-nav { position: static; }
  .rules-nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .rules-nav a { border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; }
  .rules-nav a.is-active { border-color: var(--primary); }
}

.rule-block { margin-bottom: 48px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.rule-block h2 {
  font-size: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.rule-block h2 svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.rule-block ol, .rule-block ul { color: var(--text-2); padding-left: 22px; }
.rule-block li { margin-bottom: 8px; }
.rule-block li::marker { color: var(--primary); font-weight: 600; }

.allow-deny { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.allow-deny .card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.allow-deny .card h4 svg { width: 18px; height: 18px; }
.allow-deny .ok h4 { color: var(--win); }
.allow-deny .no h4 { color: var(--loss); }
.allow-deny ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.allow-deny li {
  font-size: 0.94rem;
  color: var(--text-2);
  padding: 6px 10px;
  background: var(--surface-2);
  border-radius: 3px;
}

/* ---------- Configuración de modos (reglas) ---------- */
.cfg {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 12px;
}
.cfg summary {
  cursor: pointer;
  padding: 14px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  list-style-position: inside;
}
.cfg summary:hover { color: var(--primary); }
.cfg[open] summary {
  border-bottom: 1px solid var(--border);
  color: var(--primary);
}
/* Los grupos se empaquetan en columnas tipo mosaico: sin huecos verticales */
.cfg__body {
  padding: 16px 18px;
  columns: 2 320px;
  column-gap: 20px;
}
.cfg__body > div {
  break-inside: avoid;
  margin-bottom: 20px;
}
.cfg__body > div:last-child { margin-bottom: 0; }
.cfg__body h4 {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 10px;
}
.cfg-list { margin: 0; display: grid; gap: 5px; }
.cfg-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 9px;
  font-size: 0.88rem;
  background: var(--surface-2);
  border-radius: 3px;
}
.cfg-list dt { color: var(--text-3); }
.cfg-list dd { margin: 0; color: var(--text); font-weight: 500; text-align: right; }

/* ---------- Mapas ---------- */
.map-card { padding: 0; overflow: hidden; }
.map-card__img {
  /* Las fotos de mapa son 16:9 — con esta proporción encajan sin recorte */
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(255, 156, 0, 0.22), transparent 60%),
    repeating-linear-gradient(45deg, var(--surface-2) 0 10px, var(--surface) 10px 20px);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.map-card__img::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 2px;
}
/* Con foto real (style inline): sin marco punteado de relleno */
.map-card__img[style]::after { display: none; }
.map-card__body { padding: 16px 18px 18px; }
.map-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.map-card .modes { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Selector de fecha/hora con chips ---------- */
.pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.pick-chip {
  appearance: none;
  min-height: 38px;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.pick-chip:hover { border-color: var(--primary); color: var(--text); }
.pick-chip.is-sel {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.pick-chip--hora {
  font-variant-numeric: tabular-nums;
  padding: 6px 11px;
  font-size: 0.85rem;
}
#pick-resumen { color: var(--primary); font-weight: 600; }

/* Desplegables de día y hora (los chips viven dentro del panel) */
.pick-dd { position: relative; }
.pick-dd__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.pick-dd__btn:hover { border-color: var(--primary); }
.pick-dd__btn[aria-expanded="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 156, 0, 0.18);
}
.pick-dd__lbl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.pick-dd__btn b { font-weight: 600; }
.pick-caret {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform var(--t-fast);
}
.pick-dd__btn[aria-expanded="true"] .pick-caret { transform: rotate(180deg); }
.pick-dd__panel {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  width: max-content;
  max-width: min(340px, 82vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
/* Panel de horas: lista vertical compacta con scroll, como un select de verdad */
.pick-dd__panel--horas {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 6px;
  width: 170px;
  max-height: 264px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pick-dd__panel[hidden] { display: none; }
.pick-opt {
  appearance: none;
  width: 100%;
  padding: 8px 14px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  background: none;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.pick-opt:hover { background: var(--surface-2); color: var(--text); }
.pick-opt.is-sel {
  background: var(--primary-dim);
  color: var(--primary);
  box-shadow: inset 3px 0 0 var(--primary);
  font-weight: 600;
}
.pick-chip[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- Formularios ---------- */
.form-card { max-width: 760px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px 20px;
}
.form-grid .span-2 { grid-column: 1 / -1; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.field .req { color: var(--primary); }
.field .hint {
  display: block;
  font-size: 0.82rem;
  color: var(--text-3);
  margin-top: 5px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 90px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B4B6B4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 156, 0, 0.18);
}
.field.has-error input, .field.has-error select {
  border-color: var(--loss);
}
.field .error-msg {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--loss);
}
.field .error-msg svg { width: 14px; height: 14px; flex-shrink: 0; }
.field.has-error .error-msg { display: flex; }

.fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0;
}
.fieldset legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 0 8px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.check-row label { font-size: 0.94rem; color: var(--text-2); font-weight: 400; }

.form-success {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid rgba(61, 220, 132, 0.4);
  background: var(--win-dim);
  border-radius: var(--radius);
}
.form-success svg { width: 22px; height: 22px; color: var(--win); flex-shrink: 0; margin-top: 2px; }
.form-success h3 { color: var(--win); font-size: 1.05rem; margin-bottom: 4px; }
.form-success p { margin: 0; color: var(--text-2); font-size: 0.95rem; }

/* ---------- Info banner ---------- */
.banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--accent-blue-dim);
  border: 1px solid rgba(77, 163, 255, 0.35);
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 0.95rem;
}
.banner svg { width: 20px; height: 20px; color: var(--accent-blue); flex-shrink: 0; margin-top: 2px; }
.banner b { color: var(--text); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 64px 24px;
  background:
    radial-gradient(ellipse 600px 300px at 50% 120%, rgba(255, 156, 0, 0.18), transparent 65%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
/* Escudo ACL como marca de agua sutil en la banda de CTA */
.cta-band::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 360px;
  height: 360px;
  background: url("../assets/img/acl-logo.png") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--text-2); max-width: 52ch; margin: 0 auto 28px; }

/* ---------- Page header ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 700px 300px at 80% -20%, rgba(255, 156, 0, 0.1), transparent 60%),
    var(--bg);
}
/* Escudo ACL fantasma en la cabecera de todas las páginas interiores */
.page-head::after {
  content: "";
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-46%);
  width: 300px;
  height: 300px;
  background: url("../assets/img/acl-logo.png") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }
.page-head .kicker,
.page-head h1,
.page-head > .container > p {
  animation: heroIn 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.page-head .kicker { animation-delay: 60ms; }
.page-head h1 { animation-delay: 150ms; }
.page-head > .container > p { animation-delay: 250ms; }
@media (max-width: 700px) {
  .page-head::after { width: 210px; right: -40px; opacity: 0.05; }
}
.page-head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.page-head .kicker::before { content: ""; width: 24px; height: 2px; background: var(--primary); }
.page-head h1 { margin-bottom: 8px; }
.page-head p { color: var(--text-2); max-width: 64ch; margin: 0; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 96px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 48px 0 32px;
  font-size: 0.93rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer h4 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--text-2); }
.footer ul a:hover { color: var(--primary); }
.footer .about p { color: var(--text-2); max-width: 40ch; }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-3);
  font-size: 0.85rem;
}
.footer__legal a { color: var(--text-2); }
.footer__legal a:hover { color: var(--primary); }
@media (max-width: 767px) {
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   XP MATCHES · CUENTAS · EQUIPOS
   ============================================================ */

/* ---------- Banner variantes ---------- */
.banner--warn {
  background: var(--primary-dim);
  border-color: rgba(255, 156, 0, 0.35);
}
.banner--warn svg { color: var(--primary); }

/* ---------- Píldora de XP ---------- */
.xp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  padding: 4px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  white-space: nowrap;
}
.xp-pill .up { color: var(--win); }
.xp-pill .down { color: var(--loss); }
.xp-pill .sep { color: var(--text-3); font-weight: 400; }

.xp-big {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.xp-big span { font-size: 0.8rem; color: var(--text-3); letter-spacing: 0.1em; }

/* ---------- Rival oculto ---------- */
.mystery-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

/* ---------- Tarjeta de reto ---------- */
.challenge-card { display: flex; flex-direction: column; gap: 12px; }
.challenge-card__head { display: flex; align-items: center; gap: 14px; }
.challenge-card__head h3 { margin: 0; font-size: 1.1rem; }
.challenge-card__head .sub { font-size: 0.85rem; color: var(--text-3); }
.challenge-card .meta-rows {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.93rem;
  color: var(--text-2);
}
.challenge-card .meta-rows li { display: flex; align-items: center; gap: 9px; }
.challenge-card .meta-rows svg { width: 15px; height: 15px; color: var(--text-3); flex-shrink: 0; }
.challenge-card .note {
  font-size: 0.88rem;
  color: var(--text-3);
  font-style: italic;
  background: var(--surface-2);
  padding: 8px 12px;
  border-radius: 3px;
  margin: 0;
}
.challenge-card__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.challenge-card .why-no { font-size: 0.83rem; color: var(--text-3); }

/* ---------- Estado vacío ---------- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-3);
}
.empty-state svg { width: 36px; height: 36px; margin: 0 auto 12px; color: var(--text-3); }
.empty-state p { margin: 0; }
.empty-state b { color: var(--text-2); }

/* ---------- Miembros de equipo ---------- */
.member-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.member-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.member-list li svg { width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; }
.member-list .cap {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  border: 1px solid rgba(255, 156, 0, 0.4);
  border-radius: 3px;
  padding: 1px 6px;
}
.member-list .end { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ---------- Botones extra ---------- */
.btn--danger {
  background: transparent;
  color: var(--loss);
  border-color: rgba(255, 107, 107, 0.45);
}
.btn--danger:hover { background: var(--loss-dim); border-color: var(--loss); color: var(--loss); }
.btn--win {
  background: transparent;
  color: var(--win);
  border-color: rgba(61, 220, 132, 0.45);
}
.btn--win:hover { background: var(--win-dim); border-color: var(--win); color: var(--win); }

.action-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Bloques de cuenta ---------- */
.account-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .account-grid { grid-template-columns: 1fr; } }
.profile-rows { display: grid; gap: 10px; margin: 0; }
.profile-rows div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; }
.profile-rows dt { color: var(--text-3); }
.profile-rows dd { margin: 0; color: var(--text); font-weight: 500; text-align: right; overflow-wrap: anywhere; }

/* ---------- Partido propio (mis partidos) ---------- */
.my-match {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
}
.my-match__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.my-match__head h3 { margin: 0; font-size: 1.05rem; }
.my-match .sub { font-size: 0.88rem; color: var(--text-3); }
.my-match .delta-w { color: var(--win); font-weight: 700; }
.my-match .delta-l { color: var(--loss); font-weight: 700; }

/* ---------- Detalle del reto (reto.html) ---------- */
.ms-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-dim);
  border: 1px solid rgba(255, 156, 0, 0.3);
  border-radius: 3px;
  padding: 2px 8px;
  white-space: nowrap;
}
.ms-hint { margin: 0; font-size: 0.82rem; color: var(--text-3); }

.reto-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.reto-head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 4px;
}
.reto-head .kicker::before { content: ""; width: 24px; height: 2px; background: var(--primary); }
.reto-head h1 { margin: 4px 0 8px; }
.reto-head .vs-mini { color: var(--text-3); font-size: 0.55em; }
.reto-head .sub {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-2);
  margin: 0;
}

/* Banners de mapa (referencia CMG adaptada) */
.map-banners { display: grid; gap: 10px; }
.map-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(10, 10, 11, 0.94) 0%, rgba(10, 10, 11, 0.6) 55%, rgba(255, 156, 0, 0.12) 100%),
    repeating-linear-gradient(45deg, var(--surface-2) 0 14px, var(--surface) 14px 28px);
  background-size: cover;
  background-position: center;
  box-shadow: inset 3px 0 0 var(--primary);
  min-height: 112px;
  display: flex;
  align-items: center;
}
.map-banner__body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
}
.map-banner h3 { margin: 2px 0 0; font-size: 1.15rem; }
.map-banner p { margin: 0; font-size: 0.88rem; color: var(--text-3); }
.map-banner p b { color: var(--text-2); }

/* Panel de equipo con roster */
.team-panel { margin-top: 8px; }
.team-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
}
.team-panel__head h2 {
  margin: 0 0 2px;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.team-panel__head .sub { font-size: 0.88rem; color: var(--text-3); }
.team-panel .table-wrap { border-radius: 0 0 var(--radius) var(--radius); }
.roster-table { min-width: 520px; }

.res-win, .res-loss {
  font-family: var(--font-display);
  font-size: 0.62em;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.res-win { color: var(--win); }
.res-loss { color: var(--loss); }

.psn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  /* Azul PlayStation con texto blanco (como las pastillas de gamertag de CMG) */
  background: #0059C1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}
.psn-pill svg { width: 16px; height: 16px; flex-shrink: 0; }
.cap-chip {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  border: 1px solid rgba(255, 156, 0, 0.4);
  border-radius: 3px;
  padding: 0 5px;
  vertical-align: 2px;
}

/* Separador VS */
.vs-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}
.vs-divider::before,
.vs-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); }
.vs-divider span {
  font-family: var(--font-stencil);
  font-size: 1.3rem;
  color: var(--primary);
  letter-spacing: 0.1em;
}

/* Popup "reto aceptado" */
.reto-popup {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.reto-popup[hidden] { display: none; }
.reto-popup__card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid rgba(255, 156, 0, 0.5);
  border-radius: var(--radius);
  box-shadow: var(--glow), 0 24px 64px rgba(0, 0, 0, 0.5);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  padding: 28px 26px;
  text-align: center;
}
.reto-popup__card .rp-icon { width: 38px; height: 38px; margin: 0 auto 10px; color: var(--primary); }
.reto-popup__card .kicker {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.reto-popup__card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.reto-popup__card .sub { color: var(--text-3); font-size: 0.9rem; margin-bottom: 20px; }
.reto-popup__card .action-row { justify-content: center; }
@media (prefers-reduced-motion: no-preference) {
  .reto-popup__card { animation: rp-in 240ms ease-out; }
  @keyframes rp-in {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Buscadores de la comunidad ---------- */
.buscador {
  position: relative;
  margin-bottom: 24px;
  max-width: 460px;
}
.buscador svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-3);
  pointer-events: none;
}
.buscador input {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px 10px 44px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.buscador input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 156, 0, 0.18);
}

.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 22px;
}
.filtro-chip {
  min-height: 38px;
  padding: 7px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.filtro-chip:hover { color: var(--text); border-color: var(--primary); }
.filtro-chip.is-on {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

/* Tarjetas de redes sociales */
.red-card { display: block; color: inherit; }
.red-card:hover { color: inherit; }
.red-card svg { width: 34px; height: 34px; color: var(--primary); margin-bottom: 12px; }
.red-card h3 { margin: 0 0 6px; }
.red-card p { font-size: 0.93rem; margin: 0 0 14px; }
.red-cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ---------- Calendario ---------- */
.cal-list { display: grid; gap: 10px; }
.cal-list--pasado { opacity: 0.72; }
.cal-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.cal-item:hover {
  border-color: rgba(255, 156, 0, 0.5);
  transform: translateX(3px);
  box-shadow: var(--glow);
  color: inherit;
}
.cal-item--mio { box-shadow: inset 3px 0 0 var(--primary); }
.cal-date {
  flex-shrink: 0;
  width: 58px;
  text-align: center;
  line-height: 1.1;
}
.cal-date b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.cal-date span {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.cal-body { flex: 1; min-width: 0; }
.cal-tipo {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.cal-body h3 { margin: 2px 0; font-size: 1.05rem; }
.cal-body .sub { font-size: 0.85rem; color: var(--text-3); }
@media (max-width: 560px) {
  .cal-item { flex-wrap: wrap; gap: 12px; }
  .cal-body { flex: 1 1 60%; }
}

/* ---------- Chat lateral del partido ---------- */
.chat-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100vw);
  z-index: 300;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 240ms ease-out, visibility 0s linear 240ms;
}
.chat-drawer.is-open {
  transform: none;
  visibility: visible;
  transition: transform 240ms ease-out;
}
.chat-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.chat-drawer__head h3 { margin: 0 0 2px; font-size: 1.05rem; }
.chat-drawer__head .sub { font-size: 0.82rem; color: var(--text-3); display: block; }
.chat-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-2);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.chat-close:hover { border-color: var(--primary); color: var(--primary); }
.chat-close svg { width: 18px; height: 18px; }

.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.chat-msg .who {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-3);
  margin-bottom: 3px;
}
.chat-msg .who b { color: var(--text-2); }
.chat-msg .who .chip {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0 5px;
  border-radius: 3px;
  border: 1px solid rgba(255, 156, 0, 0.4);
  color: var(--primary);
}
.chat-msg--own {
  align-self: flex-end;
  background: var(--primary-dim);
  border-color: rgba(255, 156, 0, 0.3);
  color: var(--text);
}
.chat-msg--admin {
  background: var(--accent-blue-dim);
  border-color: rgba(77, 163, 255, 0.4);
  color: var(--text);
}
.chat-msg--admin .who .chip {
  border-color: rgba(77, 163, 255, 0.5);
  color: var(--accent-blue);
}
.chat-msg--system {
  align-self: center;
  max-width: 100%;
  background: none;
  border: none;
  text-align: center;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-3);
  padding: 2px 8px;
}

.chat-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--text-2);
}
.chat-tools span { display: inline-flex; align-items: center; gap: 8px; }
.chat-tools svg { width: 15px; height: 15px; color: var(--primary); flex-shrink: 0; }
.chat-tools .btn svg { color: currentColor; }

/* Imagen adjunta en el chat (pruebas) */
.chat-img {
  display: block;
  max-width: 100%;
  border-radius: 4px;
  margin-top: 4px;
  border: 1px solid var(--border);
}

/* Botón de adjuntar imagen en la barra del chat */
.chat-attach {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-2);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.chat-attach:hover { border-color: var(--primary); color: var(--primary); }
.chat-attach svg { width: 18px; height: 18px; }

/* Panel "Disputar reto" */
.chat-dispute {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--loss-dim);
}
.chat-dispute p {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--text-2);
}
.chat-dispute .action-row { gap: 8px; align-items: center; }
.chat-dispute #dispute-count { font-size: 0.82rem; color: var(--text-3); }
.dispute-select {
  flex: 1;
  min-width: 200px;
  min-height: 40px;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.chat-admin {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--accent-blue-dim);
}
.chat-admin p {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--text-2);
}
.chat-admin .action-row { gap: 8px; }

.chat-cerrado {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.88rem;
  color: var(--text-3);
  text-align: center;
}
.chat-cerrado span { display: inline-flex; align-items: center; gap: 8px; }
.chat-cerrado svg { width: 15px; height: 15px; flex-shrink: 0; }

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.chat-form input {
  flex: 1;
  min-height: 44px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.chat-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 156, 0, 0.18);
}
.chat-form button svg { width: 18px; height: 18px; }

/* ---------- Animación de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Responsive ajustes ---------- */
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .hero { padding: 64px 0 56px; }
  .section { padding-block: 48px; }
  .match { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .match .side, .match .side:last-child { justify-content: center; }
}

/* ---------- Captcha (Turnstile) ---------- */
.captcha-box { display: flex; justify-content: center; margin-bottom: 14px; }
.captcha-box:empty { display: none; margin: 0; }
.captcha-fallo { margin: 8px 0 0; font-size: 0.85rem; color: var(--danger, #E5484D); text-align: center; }

/* ============================================================
   HISTORIAL: racha de últimas partidas, proporción G/P y copas
   ============================================================ */

/* --- Racha: V / D con sus puntos --- */
.racha-wrap {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
}
.racha {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.racha-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 52px;
  padding: 8px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(255, 255, 255, .02);
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease;
}
.racha-item:hover { transform: translateY(-2px); }
.racha-item b {
  font-family: "Rajdhani", system-ui, sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: .5px;
}
.racha-item i {
  display: block;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
}
.racha-item span {
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
  white-space: nowrap;
}
.racha-item.is-v { border-color: rgba(74, 222, 128, .35); }
.racha-item.is-v b { color: #4ADE80; }
.racha-item.is-v i { background: #4ADE80; }
.racha-item.is-v:hover { border-color: #4ADE80; }
.racha-item.is-d { border-color: rgba(229, 72, 77, .35); }
.racha-item.is-d b { color: #E5484D; }
.racha-item.is-d i { background: #E5484D; }
.racha-item.is-d:hover { border-color: #E5484D; }
.racha-vacia {
  margin: 0;
  font-size: .85rem;
  color: var(--text-3);
}
/* Dentro de una tarjeta de equipo la racha va más compacta */
.team-card .racha { margin: 12px 0 4px; gap: 6px; }
.team-card .racha-item { min-width: 42px; padding: 6px 4px; }
.team-card .racha-item b { font-size: 1.05rem; }
.team-card .racha-item span { font-size: .65rem; }
.team-card .racha-vacia { margin: 12px 0 4px; }

/* --- Proporción G/P (ej. 20/12 · 62%) --- */
.ratio {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}
.ratio-v { color: #4ADE80; }
.ratio-d { color: #E5484D; }
.ratio-sep { color: var(--text-3); margin: 0 1px; }
.ratio em {
  font-style: normal;
  font-size: .72em;
  color: var(--text-3);
  margin-left: 5px;
}

/* --- Copas: Minor plateada, Major dorada --- */
.copas {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.copa {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.copa svg { width: 18px; height: 18px; display: block; }
.copa span {
  font-size: .78rem;
  font-weight: 600;
}

/* --- Equipos disueltos --- */
.disuelto { color: var(--text-3); font-style: italic; }
.team-panel--disuelto { opacity: .82; }
.team-panel--disuelto .team-card__logo { color: var(--text-3); }

/* --- Avatar del perfil de jugador --- */
.jug-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, .03);
  color: var(--primary);
}
.jug-avatar svg { width: 32px; height: 32px; }
.jug-rec { margin-left: 10px; font-size: .85rem; }

/* Una tarjeta que es un enlace debe comportarse como bloque: suelta (fuera
   de una rejilla) el navegador la trata como texto en línea y la parte en
   varias cajas. Pasaba en el perfil de jugador, en "Dónde juega". */
a.card { display: block; }

/* Rótulo de la racha, con el mismo aire que los kickers de sección */
.racha-titulo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.racha-titulo::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--primary);
}

/* Dentro de la caja de estadísticas, el G/P conserva sus colores
   (si no, .stat b lo pinta todo naranja y se pierde la lectura) */
.stat b .ratio-v { color: #4ADE80; }
.stat b .ratio-d { color: #E5484D; }
.stat b .ratio-sep,
.stat b .ratio em { color: var(--text-3); }
.stat b .ratio { font-size: 1.5rem; }
/* Dentro de una tarjeta-enlace, el texto auxiliar no debe pintarse
   como si fuera otro enlace */
.team-card .why-no { color: var(--text-3); }

/* ============================================================
   MODERACIÓN: sellos, roles y sanciones
   ============================================================ */
.sello-ok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
  margin-left: 6px;
  padding: 2px 8px 2px 6px;
  border: 1px solid rgba(74, 222, 128, .45);
  border-radius: 999px;
  background: rgba(74, 222, 128, .12);
  color: #4ADE80;
  font-family: var(--font-display);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
}
.sello-ok svg { width: 11px; height: 11px; }
.sello-ok--mini { padding: 2px; border-radius: 50%; margin-left: 5px; }
.sello-ok--mini svg { width: 10px; height: 10px; }

.badge--arbitro {
  border-color: rgba(167, 139, 250, .5);
  background: rgba(167, 139, 250, .14);
  color: #A78BFA;
}
.badge--ban {
  border-color: rgba(229, 72, 77, .55);
  background: rgba(229, 72, 77, .14);
  color: #E5484D;
}
.badge--ranking {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: rgba(229, 72, 77, .55);
  background: rgba(229, 72, 77, .12);
  color: #E5484D;
}
.badge--ranking svg { width: 12px; height: 12px; }

.card--ban {
  border-color: rgba(229, 72, 77, .5);
  background: linear-gradient(180deg, rgba(229, 72, 77, .1), transparent 60%), var(--surface);
}

.aviso-ranking {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(229, 72, 77, .4);
  border-left-width: 3px;
  border-radius: 5px;
  background: rgba(229, 72, 77, .07);
  color: var(--text-2);
  font-size: .92rem;
}
.aviso-ranking svg { width: 20px; height: 20px; flex: none; color: #E5484D; margin-top: 2px; }
.aviso-ranking b { color: var(--text); }

.admin-fila .action-row { flex: none; }
@media (max-width: 640px) {
  .admin-fila { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* --- Copas por torneo: mismo trofeo, distinto color --- */
.copa { position: relative; }
.copa-num {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  place-items: center;
  min-width: 12px;
  height: 12px;
  padding: 0 2px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid currentColor;
  font-family: var(--font-display);
  font-size: .55rem;
  font-style: normal;
  line-height: 1;
}

/* --- Tarjeta de calendario con el póster del Minor de fondo --- */
.cal-item--banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.cal-item--banner::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(38%, 290px);
  z-index: -2;
  background-image: var(--cal-banner);
  background-size: cover;
  background-position: center 27%;   /* el escudo, no las letras */
  opacity: .38;
  /* Se funde con la tarjeta por la izquierda en vez de cortarse en seco */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%);
          mask-image: linear-gradient(90deg, transparent, #000 55%);
  transition: opacity var(--t-fast);
}
.cal-item--banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--surface) 30%, rgba(10, 10, 11, .55) 70%, transparent);
}
.cal-item--banner:hover::before { opacity: .55; }

.cal-item--major { border-left: 3px solid rgba(229, 72, 77, .6); }

/* Lema de la comunidad en el pie */
.footer__lema {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ============================================================
   Cabeceras con brillo naranja BO2 en Torneos y Comunidad
   El degradado arranca justo bajo la línea que cierra la descripción.
   ============================================================ */
.page-head--torneos,
.page-head--comunidad { border-bottom-color: rgba(255, 156, 0, .4); }

.section--glow {
  position: relative;
  isolation: isolate;
}
.section--glow::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 260px;
  z-index: -1;
  background:
    radial-gradient(ellipse 760px 190px at 50% 0%, rgba(255, 156, 0, .22), transparent 72%),
    linear-gradient(180deg, rgba(255, 156, 0, .085), transparent 78%);
  pointer-events: none;
}
.section--glow::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, var(--primary) 25%, var(--primary) 75%, transparent);
  opacity: .55;
}

/* ============================================================
   TROFEOS
   Oro = campeón de Minor · Morado = campeón del Major
   Plata = subcampeón de cualquier torneo. Misma copa, otro metal.
   ============================================================ */
.trofeos { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; margin-left: 8px; }
.trofeo { display: inline-flex; align-items: center; gap: 5px; }
.trofeo img { width: 22px; height: auto; display: block; }
.trofeo__t { font-size: .78rem; font-weight: 600; }

.trofeo--oro img { filter: drop-shadow(0 0 5px rgba(245, 196, 58, .45)); }
.trofeo--plata img { filter: drop-shadow(0 0 5px rgba(210, 215, 222, .40)); }
.trofeo--morado img { filter: drop-shadow(0 0 5px rgba(196, 69, 240, .50)); }

/* Tamaño mayor cuando el trofeo va en una vitrina, no junto a un nombre */
.vitrina .trofeo img { width: 56px; }
.vitrina { display: flex; flex-wrap: wrap; gap: 18px; }
.vitrina .trofeo { flex-direction: column; gap: 6px; text-align: center; max-width: 120px; }

/* Leyenda de los tres metales */
.tr-oro    { color: #F5C43A; }
.tr-plata  { color: #D2D7DE; }
.tr-morado { color: #C445F0; }

/* ---------- Estrella: clasificado al Major (top 16, provisional) ---------- */
.estrella-major {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  color: #E5232B;
  filter: drop-shadow(0 0 5px rgba(229, 35, 43, .6));
  vertical-align: middle;
}
.estrella-major svg { width: 17px; height: 17px; display: block; }
.rank-table .estrella-major svg { width: 15px; height: 15px; }
.team-panel__head .estrella-major svg { width: 24px; height: 24px; }

/* ============================================================
   PREGUNTAS FRECUENTES
   ============================================================ */
.faq-lema {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 6px;
  text-shadow: 0 0 18px rgba(255, 156, 0, .35);
}
.faq-layout { display: grid; grid-template-columns: 230px 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: 24px; } }

.faq-nav { position: sticky; top: 90px; }
@media (max-width: 900px) { .faq-nav { position: static; } }
.faq-nav__t {
  font-family: var(--font-ui);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 10px;
}
.faq-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.faq-nav a {
  display: block;
  padding: 9px 12px;
  border-left: 2px solid var(--border);
  color: var(--text-2);
  font-size: .92rem;
  text-decoration: none;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.faq-nav a:hover { color: var(--text); border-left-color: var(--primary); background: rgba(255, 156, 0, .06); }

.faq-block { margin-bottom: 44px; }
.faq-block h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  margin: 0 0 6px;
}
.faq-num {
  font-family: var(--font-display);
  font-size: .82rem;
  color: var(--primary);
  border: 1px solid rgba(255, 156, 0, .4);
  padding: 3px 8px;
  background: var(--primary-dim);
}
.faq-intro { color: var(--text-2); margin: 0 0 16px; max-width: 66ch; }

.faq-q {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 10px;
  transition: border-color var(--t-fast);
}
.faq-q[open] { border-color: rgba(255, 156, 0, .45); }
.faq-q summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 46px 15px 18px;
  position: relative;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  transition: transform var(--t-fast);
}
.faq-q[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-q summary:hover { color: var(--primary); }
.faq-a { padding: 0 18px 16px; color: var(--text-2); line-height: 1.65; }
.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child, .faq-a ul:last-child, .faq-a ol:last-child { margin-bottom: 0; }
.faq-a ul, .faq-a ol { margin: 0 0 10px; padding-left: 22px; }
.faq-a li { margin-bottom: 5px; }

/* ============================================================
   FONDO GENERAL
   Cuatro capas muy finas en vez de negro plano. Ninguna se nota
   por separado; juntas dan profundidad y quitan el aire de "folio
   negro". Es CSS puro: no añade ni un byte de descarga.
     1 · grano fino  → rompe el plano y evita el bandeado
     2 · trama diagonal → textura de material técnico
     3 · dos focos naranjas anclados en esquinas opuestas
     4 · viñeta → oscurece los bordes y centra la mirada
   ============================================================ */
body { position: relative; }

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"),
    repeating-linear-gradient(45deg,  rgba(255, 255, 255, .008) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .12)        0 1px, transparent 1px 5px);
  opacity: .32;
}

body::after {
  background:
    radial-gradient(ellipse 780px 560px at 8% 2%,   rgba(255, 156, 0, .06), transparent 66%),
    radial-gradient(ellipse 680px 520px at 92% 96%, rgba(255, 156, 0, .04), transparent 68%),
    radial-gradient(ellipse 95% 85% at 50% 45%, transparent 48%, rgba(0, 0, 0, .35));
}

/* ---------- Cuadro de torneo: entrar en el equipo desde el cruce ---------- */
.b-team {
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--t-fast);
}
.b-team:hover,
.b-team:focus-visible { color: var(--primary); text-decoration: underline; }

/* Botón de admin para marcar ganador, separado del nombre */
.b-win {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  margin-left: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--text-3);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--t-fast);
}
.b-win:hover { border-color: var(--primary); color: var(--primary); }
.row.win .b-win { border-color: var(--win); color: var(--win); }

/* ============================================================
   TARJETA DE TORNEO (componente TournamentCard)
   Bloque de fecha tipo billete · perforación punteada · marca de agua.
   Valores traducidos uno a uno desde la referencia en Tailwind.
   ============================================================ */
.t-card {
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: 12px;                    /* rounded-xl */
  border: 1px solid #262626;              /* neutral-800 */
  background: #171717;                    /* neutral-900 */
  margin-bottom: 24px;
}

/* --- Bloque de fecha --- */
.t-card__date {
  display: flex;
  width: 96px;                            /* w-24 */
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 8px;                      /* py-5 px-2 */
  text-align: center;
}
.t-card--upcoming .t-card__date { background: #F97316; color: #431407; }  /* orange-500 / orange-950 */
.t-card--open     .t-card__date { background: #22C55E; color: #052E16; }  /* green-500 / green-950 */
.t-card--closed   .t-card__date { background: #404040; color: #D4D4D4; }  /* neutral-700 / neutral-300 */

.t-card__month { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; }
.t-card__days  { font-size: 34px; font-weight: 700; line-height: 1.25; letter-spacing: -0.025em; }
.t-card__wd    { margin-top: 4px; font-size: 11px; opacity: 0.7; }

/* --- Perforación del billete --- */
.t-card__perf {
  margin: 12px 0;                         /* my-3 */
  border-left: 1px dashed #404040;        /* neutral-700 */
}

/* --- Marca de agua --- */
.t-card__logo {
  pointer-events: none;
  user-select: none;
  position: absolute;
  bottom: -32px;
  right: -32px;
  width: 176px;                           /* w-44 */
  height: auto;
  opacity: 0.05;
}

/* --- Contenido --- */
.t-card__body { position: relative; flex: 1; min-width: 0; padding: 20px 24px; }
.t-card__series {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #737373;                         /* neutral-500 */
}
.t-card__title { margin: 0 0 8px; font-size: 1.125rem; font-weight: 500; color: #FAFAFA; }
.t-card__meta  { margin: 0 0 16px; font-size: 13px; color: #A3A3A3; }
.t-card__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.t-card__actions:empty { display: none; }
.t-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.t-card__champ { margin: 14px 0 0; font-weight: 600; }

/* Los tags de equipo inscrito llevan a su ficha */
.tag--link { text-decoration: none; transition: border-color var(--t-fast), color var(--t-fast); }
.tag--link:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 560px) {
  .t-card__date { width: 74px; padding: 14px 6px; }
  .t-card__days { font-size: 26px; }
  .t-card__body { padding: 16px; }
  .t-card__logo { width: 130px; }
}

/* La tarjeta como enlace (calendario) */
.t-card--link { text-decoration: none; color: inherit; transition: border-color var(--t-fast), transform var(--t-fast); }
.t-card--link:hover { border-color: #525252; transform: translateY(-2px); }
.t-card--mio { box-shadow: inset 3px 0 0 var(--primary); }
.t-card__badge { margin-bottom: 12px; }
.t-card__badge:empty { display: none; }
/* Un rango de días (15–16) no cabe a 34px en un bloque de 96px */
.t-card__days { white-space: nowrap; }
.t-card__days--rango { font-size: 25px; letter-spacing: -0.03em; }
@media (max-width: 560px) { .t-card__days--rango { font-size: 19px; } }

/* ============================================================
   PORTADA — REDISEÑO DE SECCIONES
   Todo va dentro de .rd a propósito: .kicker, .btn y .section-head
   ya existen en el resto de la web, y sin acotar cambiarían todas
   las páginas. El fondo global y el pie no se tocan.
   ============================================================ */
.rd {
  --naranja: #ff6a00;
  --naranja-claro: #ff8a2a;
  --texto: #f2efe9;
  --texto-suave: #a39c90;
  --texto-mute: #8a8378;
  --borde: rgba(255, 255, 255, .09);
  --card-bg: linear-gradient(170deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  font-family: "Barlow", system-ui, sans-serif;
}

/* ---------- Cinta de estado ---------- */
.rd .ticker {
  overflow: hidden;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 106, 0, .35);
  border-bottom: 1px solid rgba(255, 106, 0, .35);
  background: rgba(255, 106, 0, .05);
}
.rd .ticker-track { display: flex; width: max-content; animation: ticker 30s linear infinite; }
.rd .ticker-group {
  display: flex;
  gap: 48px;
  padding-right: 48px;
  white-space: nowrap;
  font-family: "Chakra Petch", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #d9d2c6;
}
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .rd .ticker-track { animation: none; } }

/* ---------- Cabecera de sección ---------- */
.rd .section-head { margin-bottom: 64px; }
.rd .kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: "Chakra Petch", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--naranja-claro);
}
.rd .kicker::before { content: none; }
.rd .kicker-bar { width: 30px; height: 3px; background: var(--naranja); flex-shrink: 0; }
.rd .section-head h2 {
  margin: 0;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--texto);
}
.rd .rd-lead { margin: 18px 0 0; max-width: 60ch; color: var(--texto-suave); font-size: 15px; }

/* ---------- Fases del circuito ---------- */
.rd .fases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .rd .fases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .rd .fases { grid-template-columns: 1fr; } }

.rd .fase-card {
  position: relative;
  border: 1px solid var(--borde);
  background: var(--card-bg);
  padding: 28px 24px 30px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.rd .fase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 106, 0, .55);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
}
.rd .fase-badge {
  font-family: "Chakra Petch", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 5px 10px;
  border: 1px solid;
  display: inline-block;
  margin-bottom: 20px;
}
.rd .fase-badge--verde   { border-color: rgba(74, 222, 128, .4); color: #4ade80; }
.rd .fase-badge--naranja { border-color: rgba(255, 106, 0, .45); color: var(--naranja-claro); }
.rd .fase-badge--gris    { border-color: rgba(255, 255, 255, .18); color: var(--texto-mute); }
.rd .fase-badge--solido  { border-color: var(--naranja); background: var(--naranja); color: #0b0a09; }

.rd .fase-card h3 {
  margin: 0 0 12px;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--texto);
}
.rd .fase-card p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--texto-suave); }
.rd .fase-card b { color: var(--texto); }

.rd .fase-card--destacada {
  border: 1px solid rgba(255, 106, 0, .45);
  background: linear-gradient(170deg, rgba(255, 106, 0, .1), rgba(255, 106, 0, .02));
}
.rd .fase-card--destacada::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 3px;
  background: var(--naranja);
}

/* ---------- Pasos ---------- */
.rd .pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.rd .pasos::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 0, .5), rgba(255, 106, 0, .5), transparent);
}
@media (max-width: 860px) {
  .rd .pasos { grid-template-columns: 1fr; gap: 40px; }
  .rd .pasos::before { display: none; }
}
.rd .paso-num {
  position: relative;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid rgba(255, 106, 0, .5);
  transform: rotate(45deg);
  margin-bottom: 30px;
}
.rd .paso-num span {
  transform: rotate(-45deg);
  font-family: "Saira Condensed", sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: var(--naranja);
}
.rd .paso h3 {
  margin: 0 0 10px;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 800;
  font-size: 21px;
  text-transform: uppercase;
  color: var(--texto);
}
.rd .paso p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--texto-suave); }
.rd .paso a { color: var(--naranja-claro); }

/* ---------- Estadísticas con contador ---------- */
.rd .rd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--borde);
  border: 1px solid var(--borde);
  margin-bottom: 28px;
}
@media (max-width: 640px) { .rd .rd-stats { grid-template-columns: repeat(2, 1fr); } }
.rd .rd-stat { background: #0e0d0c; padding: 20px 22px; }
.rd .rd-stat b {
  display: block;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  color: var(--naranja-claro);
  font-variant-numeric: tabular-nums;
}
.rd .rd-stat span {
  display: block;
  margin-top: 6px;
  font-family: "Chakra Petch", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--texto-mute);
}

/* ---------- Tabla de ranking ---------- */
.rd .rk-tabla { border: 1px solid var(--borde); background: var(--card-bg); }
.rd .rk-fila {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 64px 76px;
  gap: 10px;
  align-items: center;
  padding: 15px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  position: relative;
  transition: background .2s;
  text-decoration: none;
  color: inherit;
}
.rd .rk-fila:last-child { border-bottom: 0; }
.rd a.rk-fila:hover { background: rgba(255, 106, 0, .05); }
.rd .rk-head {
  padding: 14px 24px;
  font-family: "Chakra Petch", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--texto-mute);
}
.rd .rk-head span:nth-child(3),
.rd .rk-head span:nth-child(4) { text-align: right; }
.rd .rk-pos {
  font-family: "Saira Condensed", sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--texto);
}
.rd .rk-pos--lider { color: var(--naranja); }
.rd .rk-equipo { display: flex; align-items: center; min-width: 0; color: var(--texto); }
.rd .rk-nombre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd .rk-tag {
  font-family: "Chakra Petch", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #0b0a09;
  background: #b8b0a4;
  padding: 4px 8px;
  margin-right: 12px;
  flex-shrink: 0;
}
.rd .rk-fila--lider .rk-tag { background: var(--naranja); }
.rd .rk-record {
  text-align: right;
  font-family: "Chakra Petch", sans-serif;
  font-size: 13px;
  color: #b8b0a4;
}
.rd .rk-xp {
  text-align: right;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--naranja-claro);
}
.rd .rk-fila::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: var(--bar, 0%);
  background: linear-gradient(90deg, var(--naranja), rgba(255, 106, 0, 0));
}
.rd .rk-vacio { padding: 28px 24px; text-align: center; color: var(--texto-mute); }

/* ---------- Botones ---------- */
.rd .btn-liga {
  font-family: "Saira Condensed", sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 18px;
  padding: 15px 34px;
  display: inline-block;
  text-decoration: none;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: all .2s;
  border: 0;
  cursor: pointer;
}
.rd .btn-liga--pri { background: var(--naranja); color: #0b0a09; }
.rd .btn-liga--pri:hover { background: var(--naranja-claro); transform: translateY(-2px); }
.rd .btn-liga--sec {
  color: var(--texto);
  border: 1px solid rgba(255, 255, 255, .22);
  clip-path: none;
}
.rd .btn-liga--sec:hover { border-color: var(--naranja); background: rgba(255, 106, 0, .08); }

/* La banda final hereda la tipografía nueva */
.rd .cta-band h2 {
  font-family: "Saira Condensed", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.05;
}
.rd .cta-band p { color: var(--texto-suave); }

/* ---------- Ranking a dos columnas ---------- */
.rd .rk-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 940px) {
  .rd .rk-split { grid-template-columns: 1fr; gap: 36px; }
}
.rd .rk-texto h2 {
  margin: 0;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--texto);
}
.rd .rk-texto .rd-lead { margin: 18px 0 26px; }
.rd .rd-stats--2 {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 28px;
}
.rd .rd-stats--2 .rd-stat { padding: 16px 18px; }
.rd .rd-stats--2 .rd-stat b { font-size: 28px; }
.rd .rk-pie {
  margin: 0;
  padding: 13px 24px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  font-family: "Chakra Petch", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--texto-mute);
}

/* ---------- CTA final ---------- */
.rd .cta-final {
  text-align: center;
  padding: 72px 24px 78px;
  border: 1px solid var(--borde);
  background: var(--card-bg);
}
.rd .cta-kicker {
  margin: 0 0 22px;
  font-family: "Chakra Petch", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--naranja-claro);
}
.rd .cta-final h2 {
  margin: 0 0 22px;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(38px, 5vw, 68px);
  line-height: .98;
  text-transform: uppercase;
  color: var(--texto);
}
.rd .cta-final h2 em { font-style: normal; color: var(--naranja); }
.rd .cta-lead {
  margin: 0 auto 34px;
  max-width: 46ch;
  color: var(--texto-suave);
  font-size: 15px;
  line-height: 1.65;
}
.rd .cta-botones { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
@media (max-width: 480px) {
  .rd .cta-botones { flex-direction: column; }
  .rd .cta-botones .btn-liga { width: 100%; text-align: center; }
}

/* ---------- Marca de agua del CTA final ---------- */
.rd .cta-final { position: relative; overflow: hidden; isolation: isolate; }
.rd .cta-logo {
  pointer-events: none;
  user-select: none;
  position: absolute;
  right: -40px;
  bottom: -56px;
  width: 260px;
  height: auto;
  opacity: .06;
  z-index: -1;
}
@media (max-width: 640px) {
  .rd .cta-logo { width: 180px; right: -30px; bottom: -40px; }
}

/* ---------- Separación entre apartados ----------
   Los apartados alternan tono de fondo, que separa mucho mejor que una
   línea: cada sección se lee como un bloque propio. El filo superior e
   inferior remata el corte. */
.rd--alt {
  position: relative;
  background: rgba(255, 255, 255, .016);
  border-top: 1px solid rgba(255, 255, 255, .055);
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}

/* La última sección pega con el pie: sin hueco muerto entre medias */
.rd--ultima { padding-bottom: 0; border-bottom: 0; }
/* El pie trae margin-top: 96px, que en la portada deja un hueco muerto
   bajo el CTA. Lo anulamos SOLO en el inicio: el pie es hermano de <main>,
   así que no vale un selector de hermano adyacente. */
body[data-page="inicio"] .footer { margin-top: 0; }

/* ---------- Aire bajo el hero en la portada ----------
   El hero trae 80px de relleno inferior, pensados para separarlo de la
   siguiente sección. Con la cinta justo debajo quedaba un hueco muerto.
   Solo se toca en el inicio: el hero de otras páginas no cambia. */
body[data-page="inicio"] .hero { padding-bottom: 36px; }
@media (max-width: 720px) {
  body[data-page="inicio"] .hero { padding-bottom: 28px; }
}

/* ============================================================
   SISTEMA NUEVO EN TODA LA WEB
   La clase .rd va en el <body> de las 20 páginas. Redefiniendo aquí
   las variables de fuente, las ~50 reglas que ya usaban
   var(--font-display) y compañía adoptan la tipografía nueva sin
   tocarlas una por una.
   ============================================================ */
body.rd {
  --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-stencil: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-ui: "Chakra Petch", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, sans-serif;
}

/* Títulos: la condensada pide más peso y menos interlínea */
body.rd h1,
body.rd h2 {
  font-family: var(--font-stencil);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.02;
  text-transform: uppercase;
}
body.rd h3,
body.rd h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .01em;
}

/* Kicker: la barrita naranja en todas las páginas.
   En la portada ya viene como <span>, así que no la duplicamos. */
body.rd .kicker::before {
  content: "";
  width: 30px;
  height: 3px;
  background: var(--naranja, #ff6a00);
  flex-shrink: 0;
}
body.rd .kicker:has(.kicker-bar)::before { content: none; }
body.rd .section-head .kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Chakra Petch", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #ff8a2a;
  text-transform: uppercase;
}

/* Etiquetas y datos: Chakra Petch, como en la portada */
body.rd .badge,
body.rd .tag,
body.rd .psn-pill,
body.rd .kicker,
body.rd .cal-tipo,
body.rd th {
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: 1.5px;
}

/* Botones con el corte diagonal de la liga */
body.rd .btn {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 0;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
/* Los que no deben cortarse: los pequeños, los fantasma y los del chat */
body.rd .btn--sm,
body.rd .btn--ghost,
body.rd .btn--block,
body.rd .btn--icon { clip-path: none; }
body.rd .btn--ghost { border-radius: 3px; }

/* Números tabulares donde hay cifras */
body.rd .pts,
body.rd .tnum,
body.rd .stat b { font-variant-numeric: tabular-nums; }
