/* ==========================================================================
   tournament.css — IDENTIDAD ESPECIAL DEL TORNEO
   Banner con 10 paneles, accesos, galería de equipos, detalle de equipo,
   cuadro eliminatorio y tarjetas de líderes.
   ========================================================================== */

/* ================================ BANNER ================================ */
.tp-banner {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
}
/* Zona del logotipo: fondo radial azul, foto de la cancha con su velo, rayos y resplandor encima */
.tp-banner__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(120% 110% at 50% 0%, #17244a 0%, #0b1330 45%, #05070f 100%);
}
.court-photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.court-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.court-photo__tint, .court-photo__veil { position: absolute; inset: 0; }
.court-photo__tint { background: #17244a; mix-blend-mode: multiply; opacity: 0.4; }
.court-photo__veil { background: linear-gradient(180deg, rgba(7, 11, 22, 0.55), rgba(5, 7, 15, 0.92)); }
.tp-banner__rays {
  position: absolute; z-index: -1;
  inset: -60% -20% 25% -20%;
  background: repeating-conic-gradient(from 0deg at 50% 62%, rgba(255, 204, 51, 0.077) 0deg 3deg, transparent 3deg 11deg);
  -webkit-mask-image: radial-gradient(circle at 50% 62%, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle at 50% 62%, #000 0%, transparent 62%);
  animation: tp-spin 90s linear infinite;
}
.tp-banner__glow {
  position: absolute; z-index: -1; left: 50%; top: 24%;
  width: 75%; aspect-ratio: 2.4 / 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 140, 30, 0.29), rgba(255, 80, 0, 0.084) 60%, transparent);
  filter: blur(8px);
}
@keyframes tp-spin { to { transform: rotate(360deg); } }

.tp-banner__logo { display: flex; justify-content: center; padding: clamp(14px, 3vw, 30px) clamp(10px, 3vw, 40px) clamp(8px, 1.6vw, 16px); }
.tp-logo { width: min(100%, 920px); height: auto; overflow: visible; filter: drop-shadow(0 7px 0 rgba(0, 0, 0, 0.35)) drop-shadow(0 0 26px rgba(255, 140, 0, 0.3)); }
.tp-burst, .tp-ball { transform-origin: 694px 120px; }

/* Entrada del banner: se reproduce cada vez que se abre la vista del torneo */
.tp-banner.is-entering .tp-panel { animation: tp-rise 0.45s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.tp-banner.is-entering .tp-ball { animation: tp-ball-spin 0.9s var(--ease) 0.15s backwards; }
.tp-banner.is-entering .tp-burst { animation: tp-breathe 1.4s ease-in-out 0.15s 1; }
@keyframes tp-rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes tp-ball-spin {
  0% { transform: rotate(0); }
  72% { transform: rotate(360deg); }
  86% { transform: translateY(-9px) rotate(360deg); }
  100% { transform: rotate(360deg); }
}
@keyframes tp-breathe { 50% { transform: scale(1.06) rotate(4deg); opacity: 0.8; } }

/* Relleno de equipo: color del panel con degradado, y franja o luz si los distingue de otro parecido */
.team-fill {
  background-color: var(--team-panel);
  background-image:
    linear-gradient(90deg, transparent 39%, var(--team-stripe, transparent) 39% 61%, transparent 61%),
    linear-gradient(180deg, color-mix(in srgb, var(--team-panel) 80%, white) 0%, var(--team-panel) 42%, var(--team-end, color-mix(in srgb, var(--team-panel) 58%, #05070f)) 100%);
  box-shadow: inset 0 3px 0 color-mix(in srgb, var(--team-edge, transparent) 60%, transparent);
}

/* Paneles verticales (uno por equipo) */
.tp-panels {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(10, 1fr);
  height: clamp(230px, 30vw, 380px);
  border-top: 4px solid #04050c;
  background: #04050c;
}
.tp-panel { min-width: 0; }
.tp-panel + .tp-panel a { border-left: 4px solid #04050c; }
.tp-panel a {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  height: 100%; padding: 14px 4px 0;
  color: #fff; text-decoration: none;
  transition: filter 0.22s var(--ease);
}
.tp-panel__lines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 14px),
              linear-gradient(90deg, rgba(0, 0, 0, 0.25), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.25));
  mix-blend-mode: overlay;
}
.tp-panel__logo { position: relative; z-index: 1; display: grid; place-items: center; }
.tp-panel__logo .emblem { width: clamp(46px, 5.6vw, 72px); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45)); }
.tp-panel__jersey { position: relative; z-index: 1; width: 84%; max-width: 112px; margin-top: auto; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.3)); transition: transform 0.22s var(--ease); }
.tp-jersey__body { stroke: color-mix(in srgb, var(--team-on) 55%, transparent); stroke-width: 2.5; }
.tp-jersey__trim { fill: none; stroke-width: 5; }
.tp-panel__jersey text { font-family: var(--font-display); font-weight: 900; font-size: 36px; letter-spacing: 0.02em; }
.tp-panel__name {
  position: relative; z-index: 1; align-self: stretch; display: grid; place-items: center; min-height: 3.1em; text-align: center;
  padding: 5px 3px; font-family: var(--font-display); font-weight: 800; font-size: clamp(0.82rem, 1.25vw, 1.08rem); line-height: 1.08;
  letter-spacing: 0.03em; text-transform: uppercase; background: rgba(4, 5, 12, 0.86);
}
.tp-panel a:hover, .tp-panel a:focus-visible { filter: brightness(1.12) saturate(1.1); outline-offset: -4px; }

/* ============================ INFO Y ACCESOS ============================ */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.info-grid > div { padding: 16px 18px; background: var(--surface); }
.info-grid dt { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); }
.info-grid dd { margin: 6px 0 0; font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.info-grid dd small { color: var(--muted); font-size: 0.85rem; font-weight: 400; }

.access-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.access-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 196px; padding: 20px;
  border-radius: var(--radius); text-decoration: none; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line); transition: transform 0.22s var(--ease), border-color 0.22s, box-shadow 0.22s;
}
.access-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; color: #1a0d00; background: linear-gradient(180deg, var(--yellow), var(--orange)); margin-bottom: 10px; }
.access-card__icon .icon { width: 22px; height: 22px; }
.access-card__title { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-section); line-height: 1.02; letter-spacing: 0.02em; text-transform: uppercase; text-wrap: balance; }
.access-card__text { color: var(--muted); font-size: 0.9rem; }
.access-card__go { margin-top: auto; padding-top: 8px; color: var(--orange-2); transition: transform 0.2s var(--ease); }

/* =============================== EQUIPOS =============================== */
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.team-card {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; overflow: hidden;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.22s var(--ease), box-shadow 0.22s, border-color 0.22s;
}
.team-card:focus-visible { border-color: var(--team); }
.team-card__art { position: relative; display: grid; place-items: center; height: 170px; overflow: hidden; }
.team-card__art::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 14px); mix-blend-mode: overlay; }
.team-card__number { position: absolute; right: 4px; bottom: -14px; font-family: var(--font-display); font-weight: 900; font-size: 5.5rem; line-height: 1; color: color-mix(in srgb, var(--team-on) 18%, transparent); }
.team-card__emblem { position: relative; z-index: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4)); transition: transform 0.22s var(--ease); }
.team-card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px; flex: 1; }
.team-card__pos { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--muted); }
.team-card__pos .pos-badge { min-width: 26px; height: 26px; font-size: 1rem; }
.team-card__name { margin-top: 2px; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-section); line-height: 1.02; letter-spacing: 0.02em; text-transform: uppercase; }
.team-card__stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin: 10px 0 4px; padding: 8px 0; border-block: 1px solid var(--line); text-align: center; }
.team-card__stats b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.team-card__stats small { display: block; font-size: 0.68rem; color: var(--muted); }
.team-card__cta { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 0.86rem; color: var(--orange-2); }
.team-card__cta .icon { transition: transform 0.2s var(--ease); }

.team-hero { position: relative; padding: 22px 0 34px; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(115deg, color-mix(in srgb, var(--team) 30%, var(--bg)) 0%, var(--bg) 70%); }
.team-hero::after { content: ''; position: absolute; inset: 0 0 0 55%; background: repeating-linear-gradient(-65deg, transparent 0 22px, color-mix(in srgb, var(--team) 14%, transparent) 22px 26px); pointer-events: none; }
.team-hero .container { position: relative; z-index: 1; }
.breadcrumbs { margin-bottom: 16px; }
.team-hero__inner { display: flex; align-items: center; gap: 24px; }
.team-hero__emblem { flex: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)); }
.team-hero .eyebrow { color: var(--text); }

.record-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.record-grid > div { padding: 16px; background: var(--surface); }
.record-grid span { display: block; color: var(--muted); }
.record-grid b { display: block; margin-top: 4px; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-figure); line-height: 1; font-variant-numeric: tabular-nums; }
.leader-minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.leader-mini { padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.leader-mini__label { color: var(--orange-2); }
.leader-mini__value { margin-top: 4px; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-figure); line-height: 1; font-variant-numeric: tabular-nums; }
.leader-mini__value small { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.leader-mini__name { margin-top: 4px; font-weight: 600; }
.leader-mini__name span { color: var(--muted); font-weight: 400; }
.team-pager { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* =========================== CUADRO ELIMINATORIO =========================== */
.round-group + .round-group { margin-top: 26px; }
.round-group__title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font-size: var(--fs-h3); font-weight: 800; text-transform: uppercase; }
.round-group__title span { font-family: var(--font-body); font-size: 0.86rem; font-weight: 400; letter-spacing: 0; color: var(--muted); text-transform: none; }
.round-group__title span::first-letter { text-transform: uppercase; }

.bracket-scroll { overflow-x: auto; padding: 4px 2px 12px; border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.bracket { --gap: 34px; display: grid; grid-template-columns: repeat(var(--rounds), minmax(210px, 1fr)); gap: var(--gap); min-width: calc(var(--rounds) * 230px); }
.bk-round { display: flex; flex-direction: column; min-width: 0; }
.bk-round__head { display: flex; align-items: center; justify-content: space-between; gap: 4px 8px; flex-wrap: wrap; min-height: 64px; padding: 10px 12px; margin-bottom: 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.bk-round__head h3 { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.bk-state { display: inline-flex; align-items: center; gap: 5px; font-size: 0.7rem; color: var(--muted); }
.bk-state .icon { width: 14px; height: 14px; }
.bk-round--projection .bk-state { color: var(--yellow); }
.bk-round__body { flex: 1; display: flex; flex-direction: column; justify-content: space-around; min-height: calc(var(--slots) * 92px); }
.bk-pair { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.bk-pair::after { content: ''; position: absolute; right: calc(var(--gap) / -2); top: 25%; bottom: 25%; border-right: 2px solid var(--line-strong); }
.bk-match { position: relative; margin-block: 6px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); overflow: visible; }
.bk-pair .bk-match::after { content: ''; position: absolute; top: 50%; right: calc(var(--gap) / -2); width: calc(var(--gap) / 2); border-top: 2px solid var(--line-strong); }
.bk-round:not(:first-child) .bk-match::before { content: ''; position: absolute; top: 50%; left: calc(var(--gap) / -2 - 1px); width: calc(var(--gap) / 2 + 1px); border-top: 2px solid var(--line-strong); }
.bk-code { position: absolute; top: -10px; left: 10px; padding: 0 6px; font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); background: var(--bg); border-radius: 4px; }
.bk-slot { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; min-height: 38px; font-size: 0.88rem; font-weight: 600; }
.bk-slot + .bk-slot { border-top: 1px solid var(--line); }
.bk-slot[style] { box-shadow: inset 3px 0 0 var(--team); }
.bk-slot:first-of-type { border-radius: 10px 10px 0 0; }
.bk-seed { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--muted); text-align: center; }
.bk-name { display: flex; align-items: center; gap: 7px; min-width: 0; line-height: 1.12; }
.bk-score { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--muted); min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.bk-slot.is-winner .bk-score, .bk-slot.is-winner .bk-name { color: var(--yellow); }
.bk-slot--bye, .bk-slot--tbd { color: var(--muted); font-weight: 400; }
.bk-tied { padding: 6px 10px 8px; border-top: 1px solid var(--line); font-size: 0.78rem; font-weight: 600; color: var(--text); }
.bk-final-ball { display: inline-block; margin-left: 6px; vertical-align: -2px; }
.bk-final-ball svg { display: inline-block; }
.bk-match--bye { border-style: dashed; }
.bk-round--locked .bk-match { opacity: 0.55; background: repeating-linear-gradient(135deg, var(--surface) 0 10px, rgba(255, 255, 255, 0.015) 10px 20px); }
.bk-round--locked .bk-round__head { opacity: 0.75; }
.bk-round--champion .bk-round__body { justify-content: center; }
.bk-champion { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--gold); font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; line-height: 1.1; text-align: center; text-transform: uppercase; letter-spacing: 0.06em; }
.bk-champion__team { display: inline-flex; align-items: center; gap: 8px; }

/* Balón dorado: halo tenue fijo; el balón es lo que bota y flota */
.gold-ball { display: grid; place-items: center; width: 148px; height: 148px; background: radial-gradient(closest-side, rgba(245, 192, 58, 0.3), rgba(245, 192, 58, 0.09) 62%, transparent); }
.gold-ball__core { position: relative; display: block; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; transform-origin: 50% 100%; }
.gold-ball__core::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.8) 50%, transparent 68%); transform: translateX(-130%); }
.gold-ball.is-dropping .gold-ball__core { animation: ball-drop 0.9s linear 1; }
.gold-ball.is-floating .gold-ball__core { animation: ball-float 4s ease-in-out infinite; }
@keyframes ball-drop {
  0% { transform: translateY(-96px); opacity: 0; animation-timing-function: cubic-bezier(0.55, 0, 0.85, 0.4); }
  10% { opacity: 1; animation-timing-function: cubic-bezier(0.55, 0.2, 0.85, 0.6); }
  34% { transform: translateY(0) scale(1.05, 0.95); animation-timing-function: cubic-bezier(0.15, 0.6, 0.4, 1); }
  50% { transform: translateY(-32px); animation-timing-function: cubic-bezier(0.55, 0, 0.85, 0.4); }
  66% { transform: translateY(0) scale(1.03, 0.97); animation-timing-function: cubic-bezier(0.15, 0.6, 0.4, 1); }
  77% { transform: translateY(-12px); animation-timing-function: cubic-bezier(0.55, 0, 0.85, 0.4); }
  88% { transform: translateY(0) scale(1.015, 0.985); animation-timing-function: cubic-bezier(0.15, 0.6, 0.4, 1); }
  94% { transform: translateY(-4px); animation-timing-function: cubic-bezier(0.55, 0, 0.85, 0.4); }
  100% { transform: translateY(0); }
}
@keyframes ball-float { 50% { transform: translateY(-4px); } }
@keyframes ball-shine { to { transform: translateX(130%); } }

/* ============================ ESTADÍSTICAS ============================ */
.spotlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.spotlight {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'label label' 'emb name' 'emb team' 'value value';
  column-gap: 12px; padding: 18px; border-radius: var(--radius); text-decoration: none; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--team) 30%, var(--surface)) 0%, var(--surface) 65%);
  border: 1px solid var(--line); transition: transform 0.22s var(--ease), border-color 0.22s, box-shadow 0.22s;
}
.spotlight__label { grid-area: label; color: var(--text); margin-bottom: 10px; }
.spotlight .emblem { grid-area: emb; align-self: center; }
.spotlight__name { grid-area: name; font-weight: 700; font-size: 1.08rem; align-self: end; }
.spotlight__team { grid-area: team; font-size: 0.82rem; color: var(--muted); }
.spotlight__value { grid-area: value; margin-top: 12px; font-family: var(--font-display); font-weight: 900; font-size: var(--fs-page); line-height: 1; font-variant-numeric: tabular-nums; }
.spotlight__value small { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-left: 6px; }

.leader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.leader-card { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.leader-card__head { display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'icon title' 'icon unit'; column-gap: 10px; margin-bottom: 12px; }
.leader-card__icon { grid-area: icon; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 122, 26, 0.12); color: var(--orange-2); }
.leader-card__head h3 { grid-area: title; font-size: var(--fs-h3); font-weight: 800; text-transform: uppercase; }
.leader-card__unit { grid-area: unit; margin-top: 2px; font-size: 0.7rem; color: var(--muted); }
.leader-card .state { padding: 22px 12px; }
.leader-card--neutral .leader-card__icon { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.leader-card--neutral .bar__fill { background: var(--muted); }
.leader-card--neutral .bar-list li:first-child .bar-list__rank { color: var(--muted); }
.bar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bar-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-areas: 'rank who value' '. bar bar'; column-gap: 8px; row-gap: 5px; align-items: center; }
.bar-list__rank { grid-area: rank; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--muted); }
.bar-list li:first-child .bar-list__rank { color: var(--gold); }
.bar-list__who { grid-area: who; display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.bar-list__who > span { min-width: 0; }
.bar-list__name { display: block; font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.18s; }
.bar-list__team { display: block; font-size: 0.76rem; color: var(--muted); }
.bar-list__who:hover .bar-list__name { color: var(--yellow); }
.bar-list__value { grid-area: value; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h3); font-variant-numeric: tabular-nums; }
.bar { grid-area: bar; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--team); transform-origin: left; animation: bar-grow 0.7s var(--ease) both; }
.bars-seen .bar__fill { animation: none; }
@keyframes bar-grow { from { transform: scaleX(0); } }

/* ============================ PLATAFORMA ============================ */
.platform-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 36px 0 0; border-top: 1px solid var(--line-strong); }
.platform-stats::before { content: ''; position: absolute; left: 0; top: -3.5px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.platform-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 16px 16px 0 0; }
.platform-stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.platform-stats dt { color: var(--muted); }
.platform-stats dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-page); line-height: 1; font-variant-numeric: tabular-nums; }

/* ========================= SELECTOR DE TORNEOS ========================= */
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.t-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease); }
.t-card.is-selected { border-color: rgba(245, 192, 58, 0.65); }
/* Con una sola edición registrada, la tarjeta se presenta en horizontal. */
.t-card:only-child { grid-column: 1 / -1; flex-direction: row; }
.t-card:only-child .t-card__art { flex: 1.25; min-height: 280px; }
.t-card:only-child .t-card__body { flex: 1; }
.t-card:only-child .t-art__word { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.t-card__art { position: relative; min-height: 190px; display: flex; }
.t-card__art > * { flex: 1; }
.t-card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px; min-width: 0; }
.t-card__body .btn { align-self: flex-start; margin-top: auto; }
.t-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.t-card__current { color: var(--gold); }
.t-card__name { font-size: var(--fs-section); font-weight: 800; text-transform: uppercase; }
.t-card__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 26px; margin: 0; }
.t-card__facts dt { color: var(--muted); }
.t-card__facts dd { margin: 2px 0 0; font-weight: 600; }

.t-status { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-stretch: 87.5%; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.t-status__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.t-status--in-progress { color: var(--win); background: rgba(70, 217, 155, 0.12); }
.t-status--finished { color: var(--gold); background: rgba(245, 192, 58, 0.12); }
.t-status--upcoming { color: var(--orange-2); background: rgba(255, 122, 26, 0.12); }
.info-sub { display: block; width: 100%; font-size: 0.86rem; color: var(--muted); font-weight: 400; margin-top: 4px; }

/* Arte de la edición 2026 (identidad propia de esa edición) */
.t-art { position: relative; overflow: hidden; display: flex; flex-direction: column; isolation: isolate; }
.t-art--power { background: radial-gradient(120% 80% at 50% 0%, #17244a, #0b1330 50%, #05070f); }
.t-art__rays { position: absolute; z-index: -1; inset: -60% -20% 20%; background: repeating-conic-gradient(from 0deg at 50% 55%, rgba(255, 204, 51, 0.084) 0deg 3deg, transparent 3deg 11deg); -webkit-mask-image: radial-gradient(circle at 50% 55%, #000, transparent 65%); mask-image: radial-gradient(circle at 50% 55%, #000, transparent 65%); }
.t-art__word { margin-block: auto; padding: 22px 12px 10px; text-align: center; white-space: nowrap; font-family: var(--font-impact); font-weight: 400; font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1; }
.t-art__text { color: var(--yellow); background: linear-gradient(180deg, #fff7c2, #ffd23a 35%, #ff8a00 70%, #e2430c); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 3px 0 #06040f); }
.t-art__word small { display: block; margin-top: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: 0.3em; color: #cfe0ff; }
.t-art__ball { display: inline-block; vertical-align: -0.04em; width: 0.74em; height: 0.74em; margin: 0 0.04em; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #ffb46b, #f26a10 55%, #9c3500); box-shadow: inset 0 0 0 0.04em #2a1000, 0 0 0 0.06em #06040f; position: relative; }
.t-art__ball::before, .t-art__ball::after { content: ''; position: absolute; background: #2a1000; }
.t-art__ball::before { left: 0; right: 0; top: 50%; height: 0.04em; }
.t-art__ball::after { top: 0; bottom: 0; left: 50%; width: 0.04em; }
.t-art__stripes { display: flex; height: 74px; flex: none; border-top: 3px solid #04050c; }
.t-art__stripes i { flex: 1; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; border-left: 3px solid #04050c; font-style: normal; }
.t-art__stripes i:first-child { border-left: 0; }
.t-art__stripes b { font-family: var(--font-display); font-weight: 900; font-size: 1rem; line-height: 1; padding: 2px 3px; border-radius: 3px; color: #fff; background: rgba(4, 5, 12, 0.72); }
.t-art--generic { align-items: center; justify-content: center; background: linear-gradient(135deg, var(--surface-2), var(--bg-2)); }
.t-art--generic .t-art__word { color: var(--muted); }
.t-art__img { width: 100%; height: 100%; object-fit: cover; }

/* Banner general para ediciones sin identidad propia */
.gen-banner { padding: 28px; border-radius: 18px; border: 1px solid var(--line-strong); background: linear-gradient(135deg, var(--surface-2), var(--bg-2)); }
.gen-banner__title { font-family: var(--font-display); font-weight: 900; font-size: var(--fs-page); text-transform: uppercase; line-height: 1.02; letter-spacing: 0.02em; }
.gen-banner__teams { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gen-banner__teams a { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; }
.gen-banner--image img { width: 100%; border-radius: 12px; }

/* =============================== MVP =============================== */
.mvp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.mvp-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, var(--surface-2), var(--surface) 40%); border: 1px solid rgba(245, 192, 58, 0.28); }
.mvp-card__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; min-height: 100px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(245, 192, 58, 0.1), transparent 70%); }
.mvp-card__head .eyebrow { color: var(--gold); }
.mvp-card__head .eyebrow .icon { width: 14px; height: 14px; }
.mvp-card__title { font-size: var(--fs-section); font-weight: 900; text-transform: uppercase; }
.mvp-card__scope { text-align: right; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h3); letter-spacing: 0.02em; line-height: 1.1; text-transform: uppercase; }
.mvp-card__scope small { display: block; margin-top: 2px; font-family: var(--font-body); font-weight: 400; font-size: 0.82rem; letter-spacing: 0; color: var(--muted); text-transform: none; }
.mvp-round .select { min-width: 220px; }
.mvp-card__body { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; }
.mvp-main { display: flex; align-items: center; gap: 22px; }
.mvp-photo { position: relative; flex: none; display: grid; place-items: center; width: 104px; height: 124px; border-radius: 14px; border: 2px solid var(--team); }
.mvp-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.mvp-photo__logo { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4)); }
.mvp-photo__emblem { position: absolute; right: -14px; bottom: -12px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); }
.mvp-who { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.mvp-badge { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-stretch: 87.5%; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.mvp-badge .icon { width: 14px; height: 14px; }
.mvp-badge--winner { color: #2b1d00; background: var(--gold); }
/* Destello: un brillo diagonal cruza la insignia una sola vez */
.mvp-badge--winner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.85) 50%, transparent 72%); transform: translateX(-120%); }
.mvp-badge.is-flash::after { animation: mvp-flash 0.8s var(--ease) 1; }
@keyframes mvp-flash { to { transform: translateX(120%); } }
.mvp-badge--inconclusive { color: #ffd27a; background: rgba(255, 179, 64, 0.12); border: 1px solid rgba(255, 179, 64, 0.4); }
.mvp-name { font-family: var(--font-impact); font-weight: 400; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.16; text-wrap: balance; }
.mvp-team { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 0.9rem; }
.mvp-team a { color: var(--text); font-weight: 600; text-decoration: none; transition: color 0.18s; }
.mvp-team a:hover { color: var(--yellow); }
.mvp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 1px; margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.mvp-stats > div { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 10px 12px; background: var(--bg-2); }
.mvp-stats dt { font-size: 0.68rem; letter-spacing: 0.06em; color: var(--muted); line-height: 1.2; }
.mvp-stats dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-figure); line-height: 1; font-variant-numeric: tabular-nums; }
.mvp-stats dd small { font-family: var(--font-body); font-size: 0.78rem; font-weight: 400; color: var(--muted); }
.mvp-explain { color: var(--text); font-size: 0.95rem; max-width: 65ch; }
.mvp-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 0.86rem; color: var(--muted); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.mvp-note .icon { margin-top: 2px; color: var(--orange-2); }
.mvp-note--warn { color: #f3dfbf; background: rgba(255, 179, 64, 0.07); border-color: rgba(255, 179, 64, 0.3); }
.mvp-note--warn .icon { color: var(--yellow); }
.mvp-note--done { color: #f6e2a8; background: rgba(245, 192, 58, 0.08); border-color: rgba(245, 192, 58, 0.35); }
.mvp-ranking__title { color: var(--muted); margin-bottom: 6px; }
.mvp-ranking ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.mvp-ranking li { display: list-item; padding-left: 4px; color: var(--muted); }
.mvp-ranking li > * { vertical-align: middle; }
.mvp-ranking a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 600; transition: color 0.18s; }
.mvp-ranking a:hover { color: var(--yellow); }
.mvp-ranking__pts { margin-left: 10px; color: var(--muted); font-size: 0.85rem; }
.mvp-ranking__score { margin-left: 10px; font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.mvp-method { font-size: 0.86rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.mvp-method summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--text); }
.mvp-method ul { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 4px; }
.mvp-method li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.mvp-method li b { font-variant-numeric: tabular-nums; color: var(--text); }
.mvp-method p + p { margin-top: 6px; }
.mvp-pending { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.mvp-pending__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(245, 192, 58, 0.1); color: var(--gold); }
.mvp-pending__icon .icon { width: 26px; height: 26px; }
.mvp-pending__title { font-weight: 700; color: var(--text); max-width: 42ch; }

/* ======================= ESTADÍSTICAS DE PARTIDO ======================= */
.vs { font-size: 0.55em; color: var(--muted); vertical-align: middle; }
.scoreline { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 16px 0 28px; }
.scoreline__state { display: inline-flex; align-items: center; gap: 6px; }
.scoreline > span { display: inline-flex; align-items: center; gap: 14px; }
.scoreline b { font-family: var(--font-display); font-weight: 900; font-size: var(--fs-page); line-height: 1; font-variant-numeric: tabular-nums; }
.scoreline .is-winner b { color: var(--yellow); }
.scoreline .is-loser { opacity: 0.62; }
.box-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px; }
.box-team { min-width: 0; }
.box-team__title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: var(--fs-section); font-weight: 800; text-transform: uppercase; }
.box-team__title a { text-decoration: none; transition: color 0.18s; }
.box-team__title a:hover { color: var(--yellow); }
.box tfoot th, .box tfoot td { font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--line-strong); }
.box-team__absent { margin-top: 8px; font-size: 0.82rem; color: var(--muted); }

/* ------------------------- Hover solo con cursor real ------------------------- */
@media (hover: hover) and (pointer: fine) {
  .tp-panel a:hover .tp-panel__jersey { transform: translateY(-6px); }
  .access-card:hover { transform: translateY(-3px); border-color: rgba(255, 204, 51, 0.45); box-shadow: var(--shadow); }
  .access-card:hover .access-card__go { transform: translateX(4px); }
  .team-card:hover { transform: translateY(-4px); border-color: var(--team); box-shadow: var(--shadow); }
  .team-card:hover .team-card__emblem { transform: rotate(-4deg); }
  .team-card:hover .team-card__cta .icon { transform: translateX(4px); }
  .gold-ball:hover .gold-ball__core::after { animation: ball-shine 0.7s var(--ease) 1; }
  .t-card:hover { border-color: rgba(255, 204, 51, 0.45); box-shadow: var(--shadow); transform: translateY(-2px); }
  .t-card.is-selected:hover { border-color: var(--gold); }
  .spotlight:hover { transform: translateY(-3px); border-color: var(--team); box-shadow: var(--shadow); }
}
