/* ==========================================================================
   Torneos, rankings y jugadores (panel + sitio)
   Cuadros (4 formatos, 6 temas), grupos, calendario, perfil del jugador (temas y animaciones) y Mi cuenta.
   ========================================================================== */

/* ---------- Piezas comunes ---------- */
.tn-avatar { width: 1.7rem; height: 1.7rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-3); display: inline-block; vertical-align: middle; }
.tn-avatar-ini { display: inline-grid; place-items: center; background: hsl(var(--h, 200) 42% 42%); color: #fff; font-weight: 700; font-size: .62rem; letter-spacing: .02em; }
.tn-avatar-lg { width: 3rem; height: 3rem; font-size: 1rem; }
.tn-avatar-xl { width: 5rem; height: 5rem; font-size: 1.6rem; }
.tn-avatars { display: inline-flex; flex-shrink: 0; }
.tn-avatars .tn-avatar + .tn-avatar { margin-left: -.55rem; box-shadow: 0 0 0 2px var(--bk-card, var(--surface)); }
.tn-entry { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; max-width: 100%; }
.tn-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; }
a.tn-name:hover { text-decoration: underline; }
.tn-seed { font-size: .7em; font-weight: 700; color: var(--bk-muted, var(--text-muted)); font-variant-numeric: tabular-nums; }
.tn-tbd { color: var(--bk-muted, var(--text-muted)); font-style: italic; }
.tn-pos { display: inline-grid; place-items: center; min-width: 1.8rem; height: 1.8rem; border-radius: var(--radius); background: var(--surface-2); font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; }
.tn-pos-1 { background: linear-gradient(135deg, #fde68a, #d4a017); color: #3b2a00; }
.tn-pos-2 { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #1f2937; }
.tn-pos-3 { background: linear-gradient(135deg, #f5c6a5, #b8733f); color: #3b1d06; }
.tn-move { display: inline-flex; align-items: center; gap: .1rem; font-size: .78rem; font-weight: 700; color: var(--text-muted); }
.tn-move.is-up { color: var(--ok); } .tn-move.is-down { color: var(--danger); } .tn-move.is-new { color: var(--info); }
.surface-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; background: #9ca3af; vertical-align: middle; }
.surface-polvo { --surface-c: #c2562b; } .surface-cemento { --surface-c: #1f5fae; } .surface-cesped { --surface-c: #2f7d32; } .surface-sintetico { --surface-c: #0d9488; } .surface-carpeta { --surface-c: #7c3aed; }
.surface-dot[class*="surface-"] { background: var(--surface-c, #9ca3af); }
.tn-status-en_juego .icon { animation: tn-pulse 1.6s ease-in-out infinite; }
@keyframes tn-pulse { 50% { opacity: .35; } }
.tn-section-title { display: flex; align-items: center; gap: .5rem; font-size: 1.2rem; margin: 2rem 0 1rem; }
.tn-tier-table { list-style: none; margin: .5rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tn-tier-table li { display: grid; gap: .05rem; padding: .4rem .7rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); min-width: 5.2rem; }
.tn-tier-table span { font-size: .75rem; color: var(--text-muted); }
.tn-tier-table strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.tn-countdown { display: inline-flex; gap: .5rem; margin-top: 1.2rem; }
.tn-countdown > span { display: grid; place-items: center; min-width: 4rem; padding: .5rem .6rem; border-radius: var(--radius); background: color-mix(in srgb, currentColor 12%, transparent); backdrop-filter: blur(4px); }
.tn-countdown b { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tn-countdown small { font-size: .7rem; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }
.tn-countdown.is-small > span { min-width: 3rem; padding: .35rem; } .tn-countdown.is-small b { font-size: 1.2rem; }
.tn-progress { height: 6px; border-radius: var(--radius); background: var(--surface-3); overflow: hidden; margin: .6rem 0 .25rem; }
.tn-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: inherit; }

/* ==========================================================================
   Cuadro
   ========================================================================== */
.bk {
  --bk-board: transparent; --bk-card: var(--surface); --bk-ink: var(--text); --bk-muted: var(--text-muted);
  --bk-border: var(--border); --bk-line: var(--border-strong); --bk-accent: var(--primary); --bk-r: var(--radius);
  --bk-w: 220px; --bk-gx: 2.2rem; --bk-gy: .9rem; --bk-fs: .86rem;
  position: relative; color: var(--bk-ink); background: var(--bk-board); border-radius: var(--radius-lg); padding: .25rem 0 1rem;
}
.bk-theme-clay { --bk-accent: #c2562b; --bk-board: color-mix(in srgb, #c2562b 7%, var(--surface)); --bk-line: color-mix(in srgb, #c2562b 45%, var(--border)); }
.bk-theme-grass { --bk-accent: #2f7d32; --bk-board: color-mix(in srgb, #2f7d32 7%, var(--surface)); --bk-line: color-mix(in srgb, #2f7d32 45%, var(--border)); }
.bk-theme-hard { --bk-accent: #1f5fae; --bk-board: color-mix(in srgb, #1f5fae 7%, var(--surface)); --bk-line: color-mix(in srgb, #1f5fae 45%, var(--border)); }
.bk-theme-night { --bk-board: #0b1020; --bk-card: #141b33; --bk-ink: #e8ebf7; --bk-muted: #9aa3c7; --bk-border: #263055; --bk-line: #3a4675; --bk-accent: #c6ff00; }
.bk-theme-paper { --bk-board: #fff; --bk-card: #fff; --bk-ink: #111; --bk-muted: #555; --bk-border: #cfcfcf; --bk-line: #999; --bk-accent: #111; }
.bk:not(.bk-theme-brand) { padding: 1rem; }
.bk-density-compact { --bk-w: 175px; --bk-gx: 1.6rem; --bk-gy: .5rem; --bk-fs: .78rem; }
.bk-density-roomy { --bk-w: 270px; --bk-gx: 2.8rem; --bk-gy: 1.3rem; --bk-fs: .95rem; }
.bk-square { --bk-r: 0; }
.bk-scroll { overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: .5rem; scrollbar-width: thin; }
.bk-board { display: flex; gap: var(--bk-gx); align-items: stretch; width: max-content; min-width: 100%; font-size: var(--bk-fs); }
.bk-half { display: flex; gap: var(--bk-gx); align-items: stretch; }
.bk-round { display: flex; flex-direction: column; width: var(--bk-w); flex-shrink: 0; }
.bk-round-name { margin: 0 0 .4rem; height: 2.6rem; font-family: var(--font-body); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--bk-muted); text-align: center; display: flex; flex-direction: column; justify-content: flex-end; }
.bk-round-name small { font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .72rem; }
.bk-matches { flex: 1; display: flex; flex-direction: column; }
.bk-pair { flex: 1; display: flex; flex-direction: column; position: relative; }
.bk-slot { flex: 1; display: flex; align-items: center; position: relative; padding: calc(var(--bk-gy) / 2) 0; }
.bk-slot > .bk-match { width: 100%; }

/* líneas que unen: salen a la derecha, se juntan de a dos y entran al partido siguiente */
.bk-layout-classic .bk-slot::after, .bk-left .bk-slot::after,
.bk-layout-classic .bk-pair::after, .bk-left .bk-pair::after,
.bk-layout-classic .bk-round + .bk-round .bk-slot::before, .bk-left .bk-round + .bk-round .bk-slot::before,
.bk-right .bk-slot::after, .bk-right .bk-pair::after, .bk-right .bk-round:not(:last-child) .bk-slot::before,
.bk-center .bk-final .bk-slot::before, .bk-center .bk-final .bk-slot::after { content: ""; position: absolute; pointer-events: none; }
.bk-layout-classic .bk-slot::after, .bk-left .bk-slot::after { right: calc(var(--bk-gx) / -2); width: calc(var(--bk-gx) / 2); top: 50%; border-top: 2px solid var(--bk-line); }
.bk-layout-classic .bk-pair::after, .bk-left .bk-pair::after { right: calc(var(--bk-gx) / -2); top: 25%; bottom: 25%; border-right: 2px solid var(--bk-line); }
.bk-layout-classic .bk-round + .bk-round .bk-slot::before, .bk-left .bk-round + .bk-round .bk-slot::before { left: calc(var(--bk-gx) / -2); width: calc(var(--bk-gx) / 2); top: 50%; border-top: 2px solid var(--bk-line); }
.bk-right .bk-slot::after { left: calc(var(--bk-gx) / -2); width: calc(var(--bk-gx) / 2); top: 50%; border-top: 2px solid var(--bk-line); }
.bk-right .bk-pair::after { left: calc(var(--bk-gx) / -2); top: 25%; bottom: 25%; border-left: 2px solid var(--bk-line); }
.bk-right .bk-round:not(:last-child) .bk-slot::before { right: calc(var(--bk-gx) / -2); width: calc(var(--bk-gx) / 2); top: 50%; border-top: 2px solid var(--bk-line); }
.bk-center .bk-final .bk-slot::before { left: calc(var(--bk-gx) / -2); width: calc(var(--bk-gx) / 2); top: 50%; border-top: 2px solid var(--bk-line); }
.bk-center .bk-final .bk-slot::after { right: calc(var(--bk-gx) / -2); width: calc(var(--bk-gx) / 2); top: 50%; border-top: 2px solid var(--bk-line); }
.bk .bk-final .bk-pair::after, .bk-layout-classic .bk-final .bk-slot::after, .bk .bk-pair.is-single::after, .bk-third-col .bk-slot::before, .bk-third-col .bk-slot::after { display: none; }
.bk-no-lines .bk-slot::before, .bk-no-lines .bk-slot::after, .bk-no-lines .bk-pair::after { display: none !important; }
.bk-third-col .bk-matches { justify-content: center; }
.bk-center { display: flex; flex-direction: column; justify-content: center; width: calc(var(--bk-w) * 1.08); flex-shrink: 0; gap: 1rem; }
.bk-center .bk-round { width: 100%; flex: 0 0 auto; }
.bk-center .bk-final .bk-match { box-shadow: 0 6px 24px color-mix(in srgb, var(--bk-accent) 22%, transparent); border-color: var(--bk-accent); }
.bk-third .bk-round-name { height: auto; }

/* tarjeta del partido */
.bk-match { position: relative; background: var(--bk-card); border: 1px solid var(--bk-border); border-radius: var(--bk-r); overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); transition: box-shadow .2s, border-color .2s, transform .2s; }
.bk-match.is-ready { border-left: 3px solid var(--bk-accent); }
.bk-match.is-bye { opacity: .6; }
.bk-team { display: flex; align-items: center; gap: .4rem; padding: .34rem .55rem; min-height: 2.1rem; transition: background .2s; }
.bk-team + .bk-team { border-top: 1px solid var(--bk-border); }
.bk-team .tn-entry { flex: 1; }
.bk-team.is-winner { font-weight: 700; background: color-mix(in srgb, var(--bk-accent) 11%, var(--bk-card)); }
.bk-team.is-loser { color: var(--bk-muted); }
.bk-sets { margin-left: auto; display: inline-flex; gap: .32rem; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.bk-sets b { min-width: 1ch; text-align: center; font-weight: 500; }
.bk-sets b.set-won { font-weight: 800; color: var(--bk-accent); }
.bk-theme-night .bk-sets b.set-won { color: var(--bk-accent); }
.bk-sets b.set-super { opacity: .9; font-style: italic; }
.bk-sets sup { font-size: .62em; margin-left: 1px; }
.bk-sets small { font-size: .7em; color: var(--bk-muted); }
.bk-check { color: var(--bk-accent); display: inline-flex; flex-shrink: 0; }
.bk-meta { display: flex; align-items: center; gap: .3rem; font-size: .72rem; color: var(--bk-muted); padding: .22rem .55rem; border-top: 1px dashed var(--bk-border); }
.bk-admin .bk-match[data-edit] { cursor: pointer; }
.bk-admin .bk-match[data-edit]:hover, .bk-admin .bk-match[data-edit]:focus-visible { border-color: var(--bk-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bk-accent) 25%, transparent); outline: none; transform: translateY(-1px); }
.bk-hl .bk-match.is-path { border-color: var(--bk-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--bk-accent) 35%, transparent); }
.bk-hl .bk-team.is-path { background: color-mix(in srgb, var(--bk-accent) 22%, var(--bk-card)); }
.bk-champion { display: flex; align-items: center; gap: .9rem; margin: 1rem auto 0; padding: .8rem 1.2rem; width: max-content; max-width: 100%; border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, #eab308 22%, var(--bk-card)), var(--bk-card)); border: 1px solid color-mix(in srgb, #eab308 50%, var(--bk-border)); }
.bk-champion small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--bk-muted); }
.bk-trophy { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: linear-gradient(135deg, #fde68a, #ca8a04); color: #422006; }
.bk-switch { margin: 0 0 .75rem auto; display: flex; width: max-content; max-width: 100%; overflow-x: auto; }
.bk-rounds-tabs { display: none; gap: .3rem; overflow-x: auto; margin-bottom: .8rem; }
.bk-rounds-tabs button { border: 1px solid var(--bk-border); background: var(--bk-card); color: var(--bk-ink); border-radius: var(--radius); padding: .35rem .8rem; font: inherit; font-size: .82rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.bk-rounds-tabs button[aria-selected="true"] { background: var(--bk-accent); border-color: var(--bk-accent); color: var(--bk-card); }
.bk-hide-photos .tn-avatars, .bk-hide-photos .tn-avatar { display: none; }
.bk-hide-seeds .tn-seed { display: none; }
.bk-hide-scores .bk-sets { display: none; }
.bk-hide-meta .bk-meta { display: none; }

/* vertical y por rondas: tarjetas en grilla, sin líneas */
.bk-layout-vertical .bk-board, .bk-layout-rounds .bk-board { flex-direction: column; width: 100%; gap: 1.2rem; }
.bk-layout-vertical .bk-round, .bk-layout-rounds .bk-round { width: 100%; }
.bk-layout-vertical .bk-round-name, .bk-layout-rounds .bk-round-name { height: auto; text-align: left; flex-direction: row; align-items: baseline; gap: .6rem; font-size: .82rem; }
.bk-layout-vertical .bk-matches, .bk-layout-rounds .bk-matches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--bk-w)), 1fr)); gap: var(--bk-gy) 1rem; }
.bk-layout-vertical .bk-pair, .bk-layout-vertical .bk-slot, .bk-layout-rounds .bk-pair, .bk-layout-rounds .bk-slot { display: contents; }
.bk-layout-vertical .bk-round + .bk-round { position: relative; padding-top: 1.2rem; }
.bk-layout-vertical .bk-round + .bk-round::before { content: ""; position: absolute; top: 0; left: 50%; height: .9rem; border-left: 2px dashed var(--bk-line); }
.bk-layout-rounds .bk-rounds-tabs { display: flex; }
.bk-layout-rounds .bk-scroll { overflow: visible; }
.bk-layout-rounds[data-active-round="1"] .bk-round:not([data-round="1"]),
.bk-layout-rounds[data-active-round="2"] .bk-round:not([data-round="2"]),
.bk-layout-rounds[data-active-round="3"] .bk-round:not([data-round="3"]),
.bk-layout-rounds[data-active-round="4"] .bk-round:not([data-round="4"]),
.bk-layout-rounds[data-active-round="5"] .bk-round:not([data-round="5"]),
.bk-layout-rounds[data-active-round="6"] .bk-round:not([data-round="6"]),
.bk-layout-rounds[data-active-round="7"] .bk-round:not([data-round="7"]),
.bk-layout-rounds[data-active-round="8"] .bk-round:not([data-round="8"]) { display: none; }
.bk-layout-rounds .bk-third-col { display: flex !important; }
.bk-layout-rounds .bk-round .bk-round-name { display: none; }
@media (max-width: 640px) {
  .bk-layout-classic, .bk-layout-mirror { --bk-w: 190px; --bk-gx: 1.4rem; --bk-fs: .8rem; }
}

/* ---------- Grupos / liga ---------- */
.tn-groups { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); margin-bottom: 1.5rem; }
.tn-group { padding: 0; overflow: hidden; border-top: 4px solid var(--bk-accent, var(--primary)); }
.tn-group-head { display: flex; justify-content: space-between; align-items: baseline; padding: .9rem 1.1rem .4rem; }
.tn-group-head h3 { margin: 0; font-size: 1.1rem; }
.tn-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tn-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--border); }
.tn-table td { padding: .5rem; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.tn-table th:first-child, .tn-table td:first-child { padding-left: 1.1rem; width: 2.6rem; }
.tn-table tr.is-q td:first-child { box-shadow: inset 4px 0 0 var(--bk-accent, var(--primary)); }
.tn-table tr.is-q .tn-pos { background: var(--bk-accent, var(--primary)); color: #fff; }
.tn-table tr.is-path td { background: color-mix(in srgb, var(--bk-accent, var(--primary)) 12%, transparent); }
.tn-q-hint { display: flex; align-items: center; gap: .4rem; padding: .4rem 1.1rem 0; margin: 0; }
.tn-q-dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--bk-accent, var(--primary)); }
.tn-group-matches { padding: .5rem 1.1rem 1rem; }
.tn-group-matches summary { cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--primary); }
.tn-mini-matches { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .25rem; }
.tn-mini-matches li { display: grid; grid-template-columns: 3.2rem 1fr auto 1fr; gap: .5rem; align-items: center; font-size: .82rem; padding: .35rem .5rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.tn-mini-matches li > span:nth-child(4) { text-align: right; }
.tn-mini-matches .is-winner { font-weight: 700; }
.tn-mini-matches li[data-edit] { cursor: pointer; } .tn-mini-matches li[data-edit]:hover { outline: 2px solid var(--primary); }
.tn-mm-round { color: var(--text-muted); font-size: .72rem; }
.tn-mm-score { font-variant-numeric: tabular-nums; color: var(--text-muted); white-space: nowrap; }

/* ---------- Calendario ---------- */
.tn-schedule { display: grid; gap: 1.2rem; }
.tn-day { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.tn-day.is-today { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.tn-day-head { display: flex; align-items: center; gap: .8rem; margin: 0; padding: .8rem 1.1rem; font-family: var(--font-body); font-size: 1rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.tn-day-head small { display: block; font-weight: 500; color: var(--text-muted); font-size: .8rem; }
.tn-day-num { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: var(--radius); background: var(--primary); color: var(--on-primary); font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.tn-day-count { margin-left: auto; font-size: .82rem; font-weight: 500; }
.tn-sched-list { list-style: none; margin: 0; padding: 0; }
.tn-sched-row { display: grid; grid-template-columns: 4.2rem minmax(0, 9rem) minmax(0, 1fr); gap: .3rem 1rem; align-items: center; padding: .65rem 1.1rem; border-bottom: 1px solid var(--border); }
.tn-sched-row:last-child { border-bottom: 0; }
.tn-sched-row.is-mine { background: color-mix(in srgb, var(--accent) 9%, transparent); box-shadow: inset 4px 0 0 var(--accent); }
.tn-sched-row[data-edit] { cursor: pointer; } .tn-sched-row[data-edit]:hover { background: var(--surface-2); }
.tn-sched-time { font-weight: 700; font-variant-numeric: tabular-nums; display: grid; }
.tn-sched-time small, .tn-sched-round small { font-weight: 500; font-size: .74rem; color: var(--text-muted); }
.tn-sched-round { font-size: .82rem; color: var(--text-muted); display: grid; }
.tn-sched-players { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .6rem; align-items: center; }
.tn-sched-players > span:last-child { justify-self: end; text-align: right; }
.tn-sched-players .is-winner { font-weight: 700; }
.tn-sched-vs { font-size: .8rem; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.is-played .tn-sched-vs { color: var(--text); font-weight: 600; }
@media (max-width: 640px) {
  .tn-sched-row { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .tn-sched-round { grid-column: 2; }
  .tn-sched-players { grid-column: 1 / -1; }
}

/* ==========================================================================
   Panel
   ========================================================================== */
.tn-filter { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin-bottom: 1.25rem; }
.tn-filter .perm-search { margin: 0; flex: 1 1 260px; }
.tn-status-filter { overflow-x: auto; max-width: 100%; }
.tn-status-filter b { margin-left: .2rem; font-size: .75em; opacity: .7; }
.tn-admin-grid, .tn-rank-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.tn-admin-card { display: flex; flex-direction: column; gap: .45rem; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; border-top: 4px solid var(--primary); }
.tn-admin-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tn-admin-card h2 { margin: 0; font-size: 1.15rem; }
.tn-admin-meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .84rem; color: var(--text-muted); margin: 0; }
.tn-admin-meta span { display: inline-flex; align-items: center; gap: .25rem; }
.tn-empty { text-align: center; }
/* las etiquetas de arriba del título bajan de renglón cuando no entran (el ranking largo también parte su texto) */
.tn-head > :first-child { min-width: 0; max-width: 100%; }
.tn-head .kicker { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .3rem; max-width: 100%; letter-spacing: .06em; }
.tn-head .kicker .badge { max-width: 100%; min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.tn-head .kicker .badge .icon { flex-shrink: 0; }
.tn-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.tn-chips .chip { display: inline-flex; align-items: center; gap: .3rem; min-height: 30px; padding: .2rem .65rem; font-size: .82rem; }

/* pasos del torneo */
/* Pasos del torneo (Resumen): una fila conectada en pantallas medianas y grandes; línea de tiempo vertical en el celular */
.tn-pipeline { list-style: none; margin: 0 0 1.2rem; padding: .3rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.tn-pipeline li { position: relative; min-width: 0; }
.tn-pipeline li + li::before { content: ""; position: absolute; z-index: 1; top: calc(.55rem + 1.05rem - 1.5px); left: -50%; right: 50%; height: 3px; border-radius: 3px; background: var(--border); }
.tn-pipeline li.is-done::before, .tn-pipeline li.is-next::before { background: var(--ok); }
.tn-pipeline a { position: relative; display: flex; flex-direction: column; align-items: center; gap: .2rem; height: 100%; padding: .55rem .35rem .65rem; border-radius: var(--radius); color: inherit; text-align: center; text-decoration: none; transition: background .15s; }
.tn-pipeline a:hover, .tn-pipeline a:focus-visible { background: var(--surface-2); outline: 0; }
.tn-pipeline strong { font-size: .9rem; line-height: 1.2; }
.tn-pipeline small { font-size: .76rem; line-height: 1.25; color: var(--text-muted); overflow-wrap: anywhere; }
.tn-pipe-dot { position: relative; z-index: 2; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; margin-bottom: .2rem; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); color: var(--text-muted); flex: none; }
.tn-pipeline .is-done .tn-pipe-dot { border-color: var(--ok); background: var(--ok); color: #fff; }
.tn-pipeline .is-next a { background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.tn-pipeline .is-next strong { color: var(--primary); }
.tn-pipeline .is-next .tn-pipe-dot { border-color: var(--primary); background: var(--primary); color: var(--on-primary); animation: tn-glow 2s ease-in-out infinite; }
@media (max-width: 599px) {
  .tn-pipeline { grid-template-columns: 1fr; padding: .25rem; }
  .tn-pipeline li + li::before { top: -50%; bottom: 50%; left: calc(.7rem + 1.05rem - 1.5px); right: auto; width: 3px; height: auto; }
  .tn-pipeline a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: .75rem; row-gap: 0; min-height: 56px; padding: .45rem .7rem; text-align: left; }
  .tn-pipeline a::after { content: "›"; grid-column: 3; grid-row: 1 / span 2; font-size: 1.3rem; line-height: 1; color: var(--text-muted); }
  .tn-pipe-dot { grid-row: 1 / span 2; margin: 0; }
  .tn-pipeline strong { grid-column: 2; }
  .tn-pipeline small { grid-column: 2; font-size: .8rem; }
}
@keyframes tn-glow { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 25%, transparent); } }
/* «Siguiente paso» del torneo: qué hacer ahora, con su botón a mano */
.tn-next { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem 1rem; padding: 1rem 1.1rem; margin-bottom: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border)); background: linear-gradient(100deg, color-mix(in srgb, var(--primary) 10%, var(--surface)), var(--surface) 75%); }
.tn-next .perm-icon { width: 2.9rem; height: 2.9rem; border-radius: var(--radius); background: var(--primary); color: var(--on-primary); }
.tn-next .perm-icon .icon { width: 1.35rem; height: 1.35rem; }
.tn-next .grow { min-width: 0; }
.tn-next-k { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--primary); }
.tn-next strong { display: block; font-size: 1.08rem; line-height: 1.25; }
.tn-next p { margin: .2rem 0 0; font-size: .9rem; line-height: 1.4; }
.tn-next .btn { white-space: nowrap; min-height: 44px; }
.tn-next.is-done { grid-template-columns: auto minmax(0, 1fr); border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); background: linear-gradient(100deg, var(--ok-soft, #dcfce7), var(--surface) 75%); }
.tn-next.is-done .perm-icon { background: var(--ok); color: #fff; }
/* Ficha de un torneo cerrado (finalizado o cancelado): cartel con campeón y qué se puede hacer todavía */
.tn-next.tn-closed { grid-template-columns: auto minmax(0, 1fr) auto; }
.tn-next.tn-closed .tn-next-k { display: inline-flex; align-items: center; gap: .3rem; }
.tn-next.is-done .tn-next-k { color: var(--ok); }
.tn-next.is-cancel { border-color: var(--border); background: var(--surface-2); }
.tn-next.is-cancel .perm-icon { background: var(--surface-3, var(--border)); color: var(--text-muted); }
.tn-next.is-cancel .tn-next-k { color: var(--text-muted); }
.tn-next-acts { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.tn-next-acts:empty { display: none; }
.tn-next-acts form { margin: 0; }
@media (max-width: 720px) {
  .tn-next.tn-closed { grid-template-columns: auto minmax(0, 1fr); }
  .tn-next-acts { grid-column: 1 / -1; justify-content: stretch; }
  .tn-next-acts > *, .tn-next-acts .btn { flex: 1 1 auto; justify-content: center; }
}
/* panel lateral del resumen: datos arriba, acciones abajo separadas por una línea */
.tn-side { display: grid; gap: 1rem; align-content: start; }
.tn-side > * { margin: 0; }
.tn-side-acts { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.tn-side-acts form { margin: 0; }
.tn-side-note, .tn-locked-note { display: flex; gap: .5rem; align-items: flex-start; margin: 0; font-size: .88rem; line-height: 1.5; color: var(--text-muted); }
.tn-side-note > .icon, .tn-locked-note > .icon { flex: none; width: 1rem; height: 1rem; margin-top: .16rem; }
.tn-locked-note { padding: .7rem .9rem; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); color: var(--text); }
.tn-locked-note strong { font-weight: 700; }
.tn-locked-fields { border: 0; padding: 0; margin: 0; min-width: 0; opacity: .82; }
.tn-locked-fields :is(input, select, textarea, button):disabled { cursor: not-allowed; }
.tn-next.is-done .tn-next-k { color: var(--ok); }
@media (max-width: 640px) {
  .tn-next { grid-template-columns: auto minmax(0, 1fr); padding: .9rem; }
  .tn-next .perm-icon { width: 2.5rem; height: 2.5rem; }
  .tn-next .btn { grid-column: 1 / -1; justify-content: center; }
}
.tn-kpis { margin-bottom: 1.25rem; }
.tn-two { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.tn-two .tn-schedule { padding: 0; } .tn-two .tn-day { border: 0; border-radius: 0; }
.tn-share { display: flex; gap: .4rem; } .tn-share input { flex: 1; font-size: .85rem; }
.tn-add .form-grid { align-items: end; }
.tn-add input.is-picked { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 6%, var(--surface)); }
.tn-entries .tn-seed-form input { width: 4rem; padding: .3rem .4rem; text-align: center; }
.tn-dropped summary { cursor: pointer; }
.tn-dropped li { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; }
.tn-draw-cta { display: flex; gap: 2rem; align-items: center; padding: 2rem; flex-wrap: wrap; }
.tn-draw-cta h2 { margin-top: 0; }
.tn-draw-cta > div { flex: 1 1 320px; }
.tn-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.tn-toolbar .hint { margin: 0; }
/* «Calendario automático»: qué hace cada botón, con cuántos partidos, y el resultado de la última vez */
.tn-auto { margin-bottom: 1.25rem; }
.tn-auto-body { display: grid; gap: 1rem; }
.tn-auto-body > * { margin: 0; }
/* KPIs: una franja con divisiones (no cuatro cajas sueltas) */
.tn-auto-kpis { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); overflow: hidden; }
.tn-auto-kpis li { display: flex; flex-direction: column; gap: .15rem; padding: .7rem 1rem; min-width: 0; }
.tn-auto-kpis li + li { border-left: 1px solid var(--border); }
.tn-auto-kpis strong { font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tn-auto-kpis span { color: var(--text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.tn-auto-kpis .is-warn { background: var(--warn-soft); }
.tn-auto-kpis .is-warn strong { color: var(--warn); }
.tn-auto-kpis .is-live strong { color: var(--danger, #dc2626); }
.tn-auto-kpis .is-done strong { color: var(--ok); }
.tn-auto-rules { display: flex; gap: .5rem; align-items: flex-start; font-size: .86rem; line-height: 1.5; color: var(--text-muted); }
.tn-auto-rules > .icon { flex: none; width: 1rem; height: 1rem; margin-top: .14rem; }
/* acciones: una fila por acción (ícono · qué hace · botón), todas alineadas */
.tn-auto-acts { display: grid; border: 1px solid var(--border); border-radius: var(--radius); }
.tn-auto-acts > .tn-auto-act { margin: 0; }
.tn-auto-act { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .75rem .9rem; }
.tn-auto-act + .tn-auto-act { border-top: 1px solid var(--border); }
.tn-auto-ic { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: var(--radius); background: var(--surface-2); color: var(--text-muted); }
.tn-auto-ic .icon { width: 1.05rem; height: 1.05rem; }
.tn-auto-txt { display: grid; gap: .1rem; }
.tn-auto-txt strong { font-size: .92rem; }
.tn-auto-txt small { color: var(--text-muted); font-size: .82rem; line-height: 1.4; }
.tn-auto-act .btn { min-width: 8.5rem; justify-content: center; }
@media (max-width: 640px) {
  .tn-auto-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tn-auto-kpis li:nth-child(3) { border-left: 0; }
  .tn-auto-kpis li:nth-child(n+3) { border-top: 1px solid var(--border); }
  .tn-auto-act { grid-template-columns: auto minmax(0, 1fr); }
  .tn-auto-act .btn { grid-column: 1 / -1; width: 100%; }
}
.tn-auto-report { padding: .75rem .9rem; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--ok, #16a34a) 40%, var(--border)); background: color-mix(in srgb, var(--ok, #16a34a) 8%, var(--surface)); display: grid; gap: .5rem; }
.tn-auto-report.is-warn { border-color: color-mix(in srgb, var(--warn) 50%, var(--border)); background: color-mix(in srgb, var(--warn) 9%, var(--surface)); }
.tn-auto-report p { margin: 0; font-size: .9rem; }
.tn-auto-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .88rem; }
.tn-auto-list li { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.tn-auto-when { min-width: 9.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tn-danger { margin-top: 2rem; border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.tn-settings .tn-step { margin-bottom: 1.25rem; }

/* asistente */
.tn-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: .6rem; margin-bottom: 1.5rem; }
.tn-template { display: flex; gap: .7rem; align-items: flex-start; text-align: left; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: inherit; font: inherit; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tn-template:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.tn-template.is-picked { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.tn-template strong { display: block; font-size: .95rem; }
.tn-template small { color: var(--text-muted); font-size: .8rem; line-height: 1.35; }
.tn-steps { list-style: none; display: flex; gap: .4rem; margin: 0 0 1rem; padding: 0; overflow-x: auto; }
.tn-steps button { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); border-radius: var(--radius); padding: .4rem .9rem .4rem .45rem; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tn-steps button span { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--surface-2); }
.tn-steps button[aria-current="step"] { color: var(--text); border-color: var(--primary); }
.tn-steps button[aria-current="step"] span { background: var(--primary); color: var(--on-primary); }
.tn-steps .is-done button span { background: var(--ok); color: #fff; }
.tn-steps button:disabled, .tn-steps button.is-locked { opacity: .5; cursor: not-allowed; }
.tn-wizard-grid { display: grid; gap: 1.25rem; }
@media (min-width: 1100px) { .tn-wizard-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } .tn-wizard-summary { position: sticky; top: calc(var(--header-h) + 1rem); } }
.tn-step-n { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: .9rem; margin-right: .3rem; }
.tn-wizard-actions { display: flex; align-items: center; gap: .5rem; }
.tn-sum { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.tn-sum li { display: flex; gap: .6rem; align-items: flex-start; }
.tn-sum .icon { margin-top: .2rem; color: var(--primary); flex-shrink: 0; }
.tn-sum strong { display: block; font-size: .92rem; }
.tn-sum small { color: var(--text-muted); font-size: .8rem; }
.tn-format-cards, .tn-layout-cards { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 1rem; }
.tn-format-card, .tn-layout-card { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: 1rem; border: 2px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tn-format-card input, .tn-layout-card input { position: absolute; opacity: 0; }
.tn-format-card:has(input:checked), .tn-layout-card:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.tn-format-card:has(input:focus-visible), .tn-layout-card:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.tn-format-card small, .tn-layout-card small { color: var(--text-muted); font-size: .8rem; line-height: 1.35; }
/* dibujitos de cada formato */
.tn-format-art { position: relative; display: block; height: 54px; margin-bottom: .3rem; }
.tn-format-art i { position: absolute; display: block; background: var(--primary); border-radius: 2px; opacity: .85; }
.tn-art-ko i:nth-child(1) { left: 0; top: 4px; width: 26%; height: 6px; } .tn-art-ko i:nth-child(2) { left: 0; top: 18px; width: 26%; height: 6px; }
.tn-art-ko i:nth-child(3) { left: 0; top: 32px; width: 26%; height: 6px; } .tn-art-ko i:nth-child(4) { left: 0; top: 46px; width: 26%; height: 6px; }
.tn-art-ko i:nth-child(5) { left: 34%; top: 11px; width: 26%; height: 6px; opacity: .65; } .tn-art-ko i:nth-child(6) { left: 34%; top: 39px; width: 26%; height: 6px; opacity: .65; }
.tn-art-ko i:nth-child(7) { left: 68%; top: 25px; width: 30%; height: 6px; background: var(--accent); }
.tn-art-groups_ko i:nth-child(-n+4) { width: 22%; height: 22px; border-radius: 4px; opacity: .45; top: 2px; }
.tn-art-groups_ko i:nth-child(1) { left: 0; } .tn-art-groups_ko i:nth-child(2) { left: 25%; } .tn-art-groups_ko i:nth-child(3) { left: 50%; } .tn-art-groups_ko i:nth-child(4) { left: 75%; }
.tn-art-groups_ko i:nth-child(5) { left: 10%; top: 34px; width: 30%; height: 6px; } .tn-art-groups_ko i:nth-child(6) { left: 60%; top: 34px; width: 30%; height: 6px; }
.tn-art-groups_ko i:nth-child(7) { left: 35%; top: 46px; width: 30%; height: 6px; background: var(--accent); }
.tn-art-rr i { width: 14px; height: 14px; border-radius: 50%; }
.tn-art-rr i:nth-child(1) { left: 40%; top: 0; } .tn-art-rr i:nth-child(2) { left: 64%; top: 10px; } .tn-art-rr i:nth-child(3) { left: 70%; top: 34px; }
.tn-art-rr i:nth-child(4) { left: 40%; top: 40px; } .tn-art-rr i:nth-child(5) { left: 14%; top: 34px; } .tn-art-rr i:nth-child(6) { left: 20%; top: 10px; }
.tn-art-rr i:nth-child(7) { left: 25%; top: 22px; width: 50%; height: 2px; border-radius: 0; background: var(--accent); transform: rotate(-20deg); }
.tn-format-art.is-big { width: 140px; height: 90px; transform: scale(1.4); transform-origin: left center; margin: 0 2rem 0 0; }
.tn-preview-line { font-size: .88rem; color: var(--text-muted); margin: -.3rem 0 1.2rem; }
.tn-days { display: flex; gap: .3rem; flex-wrap: wrap; }
.tn-day-chip input { position: absolute; opacity: 0; }
.tn-day-chip span { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1px solid var(--border-strong); font-weight: 700; font-size: .85rem; cursor: pointer; }
.tn-day-chip input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.tn-day-chip input:focus-visible + span { box-shadow: var(--focus); }
.tn-venue-picks { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-bottom: .6rem; }
.tn-venue-pick { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.tn-venue-pick:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, var(--surface)); }
.tn-venue-pick strong { display: inline; margin-left: .3rem; } .tn-venue-pick small { display: block; color: var(--text-muted); font-size: .8rem; }
.tn-new-venue summary { cursor: pointer; font-weight: 600; color: var(--primary); font-size: .9rem; margin: .3rem 0 .6rem; }
.tn-points-preview { margin: -.4rem 0 1rem; }

/* diseño del cuadro */
.tn-style { display: grid; gap: 1.25rem; }
@media (min-width: 1200px) { .tn-style { grid-template-columns: 380px minmax(0, 1fr); align-items: start; } .tn-style-opts { position: sticky; top: calc(var(--header-h) + 1rem); } }
.tn-layout-cards { grid-template-columns: 1fr 1fr; }
.tn-layout-art { display: flex; gap: 4px; height: 34px; align-items: center; }
.tn-layout-art i { display: block; flex: 1; height: 100%; border-radius: 3px; background: linear-gradient(to bottom, var(--primary) 0 18%, transparent 18% 41%, var(--primary) 41% 59%, transparent 59% 82%, var(--primary) 82%); opacity: .55; }
.tn-la-mirror i:nth-child(2) { background: linear-gradient(to bottom, transparent 40%, var(--accent) 40% 60%, transparent 60%); opacity: .9; }
.tn-la-vertical { flex-direction: column; } .tn-la-vertical i { height: 6px; flex: 1; width: 100%; background: var(--primary); }
.tn-la-rounds i { background: var(--primary); opacity: .25; } .tn-la-rounds i:first-child { opacity: .8; }
.tn-theme-swatches { display: flex; flex-wrap: wrap; gap: .4rem; }
.tn-swatch input { position: absolute; opacity: 0; }
.tn-swatch span { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem .35rem .4rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .84rem; cursor: pointer; background: var(--surface); }
.tn-swatch span i { width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--bk-accent, var(--primary)); box-shadow: inset 0 0 0 3px var(--bk-board, var(--surface-2)); }
.tn-swatch input:checked + span { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); font-weight: 600; }
.tn-toggles { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tn-style-preview { min-width: 0; }

/* diálogo de resultado */
.tn-dialog { width: min(560px, calc(100% - 1.5rem)); border: 0; border-radius: var(--radius-lg); padding: 1.4rem 1.4rem 1rem; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.tn-dialog::backdrop { background: rgba(10, 15, 20, .55); backdrop-filter: blur(2px); }
.tn-dialog-x { position: absolute; top: .5rem; right: .5rem; }
.tn-dialog h2 { margin: 0 0 1rem; }
.tn-sets { display: grid; gap: .35rem; margin-bottom: 1rem; }
.tn-sets.is-off { opacity: .45; pointer-events: none; }
.tn-sets-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .35rem .5rem; border-radius: var(--radius); }
.tn-sets-row[data-side] { background: var(--surface-2); }
.tn-sets-row.is-winner { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); font-weight: 700; }
.tn-sets-row label { display: flex; gap: .5rem; align-items: center; min-width: 0; cursor: pointer; }
.tn-sets-row label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-set-inputs, [data-set-labels] { display: flex; gap: .3rem; }
.tn-set-inputs input { width: 2.8rem; padding: .35rem; text-align: center; font-size: 1.05rem; font-weight: 700; -moz-appearance: textfield; }
.tn-set-inputs input::-webkit-inner-spin-button { -webkit-appearance: none; }
[data-set-labels] b { width: 2.8rem; text-align: center; font-size: .72rem; color: var(--text-muted); }
.tn-sets-head { padding-top: 0; padding-bottom: 0; }
.tn-md-sched { margin: 1rem 0 .5rem; }
.tn-md-sched summary { cursor: pointer; font-weight: 600; color: var(--primary); margin-bottom: .6rem; }
.btn-danger-text { color: var(--danger); }

/* rankings en el panel */
.tn-rank-card { display: flex; flex-direction: column; gap: .5rem; text-decoration: none; color: inherit; border-top: 4px solid #d4a017; transition: transform .15s, box-shadow .15s; }
.tn-rank-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tn-rank-card.is-off { opacity: .6; }
.tn-rank-card h2, .tn-rank-new h2, .tn-rank-public h2 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: .4rem; }
.tn-rank-card p { margin: 0; font-size: .85rem; }
.tn-rank-new { border: 2px dashed var(--border-strong); }
.tn-podium-mini { list-style: none; margin: .2rem 0; padding: 0; display: grid; gap: .35rem; }
.tn-podium-mini li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; }
.tn-podium-mini li:nth-child(1) .tn-pos { background: linear-gradient(135deg, #fde68a, #d4a017); color: #3b2a00; }
.tn-podium-mini li:nth-child(2) .tn-pos { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #1f2937; }
.tn-podium-mini li:nth-child(3) .tn-pos { background: linear-gradient(135deg, #f5c6a5, #b8733f); color: #3b1d06; }
.tn-profiles { display: grid; }
.tn-profile { display: flex; align-items: center; gap: .6rem; padding: .8rem 1.2rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.tn-profile:first-child { border-top: 0; }
.tn-profile small { display: block; margin-top: .15rem; }
.tn-tier-edit input { width: 4.6rem; padding: .3rem .35rem; text-align: right; font-variant-numeric: tabular-nums; }
.tn-tier-edit td:first-child input { width: 12rem; text-align: left; }
.tn-tier-edit th { font-size: .72rem; white-space: nowrap; }
.tn-rk-tours li { display: flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.tn-rk-tours a { text-decoration: none; color: inherit; }

/* ==========================================================================
   Sitio público
   ========================================================================== */
.tn-hero-band { padding: clamp(2.2rem, 6vw, 4rem) 0 2rem; background: radial-gradient(1200px 300px at 20% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent), radial-gradient(800px 260px at 90% 10%, color-mix(in srgb, #d7f000 18%, transparent), transparent); }
.tn-hero-band h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: .2rem 0 .6rem; }
.tn-list-page { padding: 1.5rem 0 4rem; }
.tn-list-section { margin-bottom: 2.5rem; }
.tn-list-section h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.35rem; }
.tn-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
:where(.tn-card) { --bk-accent: var(--primary); } .tn-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.tn-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tn-card-top { position: relative; height: 110px; padding: .8rem; display: flex; align-items: flex-start; gap: .4rem; background: linear-gradient(135deg, var(--bk-accent), color-mix(in srgb, var(--bk-accent) 55%, #000)) center / cover; overflow: hidden; }
.tn-card-top::after { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; border: 3px solid rgba(255, 255, 255, .28); border-radius: 50%; }
.tn-card-ball { position: absolute; right: 1.1rem; bottom: 1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f4ff7a, #c7dd00 60%, #9db000); box-shadow: 0 6px 14px rgba(0, 0, 0, .25); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.tn-card-ball::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); clip-path: polygon(0 0, 55% 0, 35% 100%, 0 100%); }
.tn-card:hover .tn-card-ball { transform: translateY(-14px) rotate(160deg); }
.tn-card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.tn-card-body h3 { margin: 0; font-size: 1.15rem; }
.tn-card-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: 0; font-size: .85rem; color: var(--text-muted); }
.tn-card-meta span { display: inline-flex; align-items: center; gap: .25rem; }
.tn-card-foot { margin-top: auto; padding-top: .7rem; border-top: 1px dashed var(--border); display: flex; justify-content: space-between; align-items: center; font-size: .86rem; }
.tn-mine-badge { margin-left: auto; }
:where(.tn-card-mini) { --bk-accent: var(--primary); } .tn-card-mini { display: grid; gap: .25rem; padding: .9rem 1rem; border-radius: var(--radius-lg); background: linear-gradient(135deg, color-mix(in srgb, var(--bk-accent) 14%, var(--surface)), var(--surface)); border: 1px solid var(--border); border-left: 4px solid var(--bk-accent); text-decoration: none; color: inherit; transition: transform .15s; }
.tn-card-mini:hover { transform: translateX(3px); }
.tn-card-mini small { color: var(--text-muted); display: flex; align-items: center; gap: .25rem; }

/* página del torneo */
:where(.tn-t-hero) { --bk-accent: var(--primary); } .tn-t-hero { position: relative; color: #fff; padding: 1.5rem 0 2.5rem; background: linear-gradient(135deg, color-mix(in srgb, var(--bk-accent) 92%, #000), color-mix(in srgb, var(--bk-accent) 45%, #000)); overflow: hidden; }
.tn-t-hero::before { content: ""; position: absolute; inset: 0; background: var(--cover, none) center / cover; opacity: .3; mix-blend-mode: luminosity; }
.tn-t-hero::after { content: ""; position: absolute; right: -8%; top: -30%; width: 55%; aspect-ratio: 1; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); box-shadow: 0 0 0 40px rgba(255, 255, 255, .04); }
.tn-t-hero-in { position: relative; z-index: 1; }
.tn-t-hero .breadcrumb, .tn-t-hero .breadcrumb a { color: rgba(255, 255, 255, .8); }
.tn-t-hero-grid { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 900px) { .tn-t-hero-grid { grid-template-columns: minmax(0, 1fr) 360px; } }
.tn-t-kicker { display: flex; gap: .4rem; flex-wrap: wrap; }
.tn-t-kicker .chip { background: rgba(255, 255, 255, .15); color: #fff; border-color: rgba(255, 255, 255, .35); min-height: 28px; padding: .15rem .65rem; }
.tn-t-title { font-size: clamp(2.1rem, 6vw, 3.8rem); line-height: 1.05; margin: .4rem 0 .8rem; color: #fff; }
.tn-t-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0; opacity: .95; }
.tn-t-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.tn-t-meta a { color: #fff; }
.tn-t-cta { color: var(--text); display: grid; gap: .8rem; box-shadow: var(--shadow-lg); }
.tn-t-cta .btn-lg { width: 100%; justify-content: center; }
.tn-in { display: flex; align-items: center; gap: .4rem; color: var(--ok); margin: 0; font-size: 1.05rem; }
.tn-next-match { display: grid; gap: .15rem; padding: .8rem; border-radius: var(--radius); background: var(--surface-2); }
.tn-next-match small { color: var(--text-muted); }
.tn-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: .5rem; margin: 0; padding-top: .8rem; border-top: 1px solid var(--border); }
.tn-facts dt { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.tn-facts dd { margin: 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.tn-facts dd small { font-size: .8rem; color: var(--text-muted); }
.tn-champ-box { display: grid; justify-items: center; gap: .3rem; text-align: center; padding: .5rem 0; }
.tn-champ-box .bk-trophy { width: 3.4rem; height: 3.4rem; animation: tn-shine 3s ease-in-out infinite; }
.tn-champ-box small { text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); font-size: .72rem; }
.tn-champ-box strong { font-size: 1.2rem; }
@keyframes tn-shine { 0%, 100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, .5); } 50% { box-shadow: 0 0 0 12px rgba(234, 179, 8, 0); } }
.tn-t-body { padding: 0 0 4rem; }
.tn-ptabs { display: flex; gap: .25rem; overflow-x: auto; margin: -1.4rem 0 1.5rem; position: relative; z-index: 2; padding: .35rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); width: max-content; max-width: 100%; box-shadow: var(--shadow); scrollbar-width: none; }
.tn-ptabs button { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: none; color: var(--text-muted); font: inherit; font-weight: 600; font-size: .92rem; padding: .55rem 1rem; border-radius: var(--radius); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.tn-ptabs button:hover { color: var(--text); }
.tn-ptabs button[aria-selected="true"] { background: var(--primary); color: var(--on-primary); }
.tn-ptabs .tab-count { background: var(--accent); color: var(--on-accent); border-radius: var(--radius); font-size: .72rem; padding: 0 .4rem; }
.tn-info-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .tn-info-grid { grid-template-columns: minmax(0, 1fr) 380px; } }
.tn-rules h3, .tn-venue-card h3 { display: flex; align-items: center; gap: .4rem; margin-top: 0; font-size: 1.05rem; }
.tn-rules ul:not(.tn-tier-table) { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .45rem; font-size: .92rem; }
.tn-rules li { display: flex; gap: .45rem; align-items: flex-start; }
.tn-rules li .icon { margin-top: .2rem; color: var(--primary); flex-shrink: 0; }
.tn-panel-tools { margin-bottom: 1rem; gap: .5rem; flex-wrap: wrap; }
.tn-panel-tools .hint { margin: 0; }
.tn-only-mine { margin-bottom: 1rem; }
.tn-player-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.tn-player-card { display: flex; align-items: center; gap: .7rem; padding: .8rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.tn-player-card.is-mine { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tn-player-card > div { display: grid; min-width: 0; }
.tn-player-card small { color: var(--text-muted); }
.tn-avatar-pair { margin-left: -1.5rem; box-shadow: 0 0 0 3px var(--surface); }

/* ranking público */
.tn-rank-public { display: flex; flex-direction: column; gap: .6rem; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.tn-rank-public:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tn-rank-hero .filter-bar { margin-top: 1rem; }
.chip.is-active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.tn-podium { display: flex; justify-content: center; align-items: flex-end; gap: clamp(.5rem, 3vw, 2rem); margin: 1rem 0 2.5rem; }
.tn-podium-step { display: grid; justify-items: center; gap: .3rem; text-align: center; width: clamp(96px, 26vw, 190px); }
.tn-podium-step a { color: inherit; }
.tn-podium-pts { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.tn-podium-block { width: 100%; border-radius: var(--radius) var(--radius) 0 0; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.tn-podium-1 .tn-podium-block { height: 130px; background: linear-gradient(180deg, #eab308, #a16207); }
.tn-podium-2 .tn-podium-block { height: 95px; background: linear-gradient(180deg, #9ca3af, #4b5563); }
.tn-podium-3 .tn-podium-block { height: 70px; background: linear-gradient(180deg, #c27a44, #7c4a22); }
.tn-podium-1 .tn-avatar { box-shadow: 0 0 0 4px #eab308; }
.tn-rank-search { max-width: 380px; }
.tn-rank-table { width: 100%; border-collapse: collapse; }
.tn-rank-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding: .7rem .8rem; border-bottom: 1px solid var(--border); }
.tn-rank-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.tn-rank-table tr.is-me td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.tn-rank-table tbody tr { transition: background .15s; } .tn-rank-table tbody tr:hover td { background: var(--surface-2); }
.tn-rank-city { display: block; padding-left: 2.1rem; }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* pantalla completa / impresión */
.tn-full { padding: 1.2rem clamp(.8rem, 3vw, 2rem) 2rem; min-height: 100vh; background: var(--bk-board, var(--bg)); color: var(--bk-ink, var(--text)); }
.tn-full-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.tn-full-head h1 { margin: .1rem 0 0; font-size: clamp(1.6rem, 4vw, 2.6rem); }
.tn-full-head h1 small { font-size: .5em; color: var(--bk-muted, var(--text-muted)); }
.tn-full-foot { text-align: center; margin-top: 1.5rem; font-size: .8rem; }
.tn-full .bk { padding: 0; background: none; }
@media print {
  .site-header, .site-footer, .no-print, .bk-switch, .announce, .to-top, .wa-float { display: none !important; }
  .tn-full { padding: 0; min-height: 0; background: #fff; color: #000; }
  .bk-scroll { overflow: visible; } .bk-board { width: auto; }
  .bk-match { box-shadow: none; break-inside: avoid; }
}

/* ==========================================================================
   Perfil del jugador y Mi cuenta
   ========================================================================== */
.pp, .acc { --pp-accent: var(--primary); --pp-from: var(--primary); --pp-to: #14324a; }
.pp-hero, .acc-hero { position: relative; color: #fff; overflow: hidden; background: linear-gradient(130deg, var(--pp-from), var(--pp-to)); isolation: isolate; }
.pp-hero::before, .acc-hero::before { content: ""; position: absolute; inset: 0; background: var(--pp-cover, none) center / cover; z-index: -1; }
.pp-hero::after, .acc-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .45)); z-index: -1; }
.pp-theme-minimal .pp-hero, .pp-theme-minimal.acc .acc-hero, .pp-theme-pelota .pp-hero, .pp-theme-pelota.acc .acc-hero { color: #111; }
.pp-theme-minimal .pp-hero::after, .pp-theme-pelota .pp-hero::after, .pp-theme-minimal.acc .acc-hero::after, .pp-theme-pelota.acc .acc-hero::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .25)); }
.pp-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pp-lines { position: absolute; inset: 12% -10% -40% 40%; border: 3px solid rgba(255, 255, 255, .16); border-radius: 4px; transform: perspective(500px) rotateX(55deg); }
.pp-lines::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 3px solid rgba(255, 255, 255, .16); }
.pp-lines::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 3px solid rgba(255, 255, 255, .22); }
.pp-hero-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem 1.8rem; align-items: center; padding: clamp(2rem, 6vw, 4rem) 0 clamp(2.4rem, 6vw, 4rem); }
@media (min-width: 900px) { .pp-hero-in { grid-template-columns: auto minmax(0, 1fr) auto; } }
.pp-avatar-wrap { position: relative; }
.pp-avatar { width: clamp(6rem, 16vw, 9rem); height: clamp(6rem, 16vw, 9rem); font-size: clamp(2rem, 5vw, 3rem); border: 4px solid #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .3), 0 0 0 6px color-mix(in srgb, var(--pp-accent) 60%, transparent); }
.pp-crown { position: absolute; right: -.3rem; bottom: .2rem; display: inline-flex; align-items: center; gap: .2rem; padding: .2rem .5rem; border-radius: var(--radius); background: linear-gradient(135deg, #fde68a, #ca8a04); color: #422006; font-weight: 800; font-size: .8rem; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); }
.pp-handle { margin: 0; opacity: .85; font-weight: 600; letter-spacing: .02em; }
.pp-name { margin: .1rem 0 .3rem; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.02; color: inherit; }
.pp-tagline { margin: 0 0 .8rem; font-size: 1.1rem; opacity: .92; max-width: 50ch; }
.pp-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
.pp-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .7rem; border-radius: var(--radius); background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); font-size: .84rem; color: inherit; text-decoration: none; backdrop-filter: blur(6px); }
.pp-theme-minimal .pp-chip, .pp-theme-pelota .pp-chip { background: rgba(255, 255, 255, .6); border-color: rgba(0, 0, 0, .12); }
.pp-hero-side { grid-column: 1 / -1; display: flex; gap: .6rem; flex-wrap: wrap; align-items: stretch; }
@media (min-width: 900px) { .pp-hero-side { grid-column: auto; flex-direction: column; } }
.pp-rankbadge { display: grid; padding: .7rem 1rem; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); color: inherit; text-decoration: none; min-width: 170px; backdrop-filter: blur(8px); transition: transform .2s; }
.pp-rankbadge:hover { transform: translateY(-2px); }
.pp-rankbadge small { opacity: .85; font-size: .76rem; }
.pp-rankbadge strong { font-family: var(--font-display); font-size: 2.1rem; line-height: 1.05; }
.pp-rankbadge > span { font-size: .82rem; display: flex; align-items: center; gap: .3rem; }
.pp-rankbadge .tn-move { color: inherit; opacity: .9; }
.pp-edit { background: rgba(255, 255, 255, .92); color: #111; border-color: transparent; }
.pp-body { padding: 0 0 4rem; }
.pp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: -2rem 0 2rem; position: relative; z-index: 2; }
.pp-kpis > div { display: grid; justify-items: center; padding: 1rem .5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); text-align: center; }
.pp-kpis strong { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.3rem); line-height: 1.1; color: var(--pp-accent); font-variant-numeric: tabular-nums; }
.pp-kpis strong.is-up { color: var(--ok); } .pp-kpis strong.is-down { color: var(--danger); }
.pp-kpis span { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.pp-kpis.is-mini { margin: .8rem 0 0; grid-template-columns: repeat(3, 1fr); box-shadow: none; }
.pp-kpis.is-mini > div { box-shadow: none; padding: .5rem .2rem; }
.pp-kpis.is-mini strong { font-size: 1.2rem; }
@media (max-width: 560px) { .pp-kpis { grid-template-columns: repeat(2, 1fr); } }
.pp-sec { margin-bottom: 2.5rem; }
.pp-sec > h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.35rem; margin-bottom: 1rem; }
.pp-sec > h2 .icon { color: var(--pp-accent); }
.pp-sec h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 1.6rem 0 .7rem; font-family: var(--font-body); }
.pp-about .prose { font-size: 1.08rem; max-width: 70ch; }
.pp-stats-grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 720px) { .pp-stats-grid { grid-template-columns: 220px minmax(0, 1fr); } }
.tn-ring { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.tn-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tn-ring circle { fill: none; stroke-width: 10; }
.tn-ring-bg { stroke: var(--surface-3); }
.tn-ring-fg { stroke: var(--pp-accent, var(--primary)); stroke-linecap: round; stroke-dasharray: var(--dash); stroke-dashoffset: var(--off); }
.tn-ring figcaption { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.tn-ring strong { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.tn-ring span { font-size: .8rem; color: var(--text-muted); }
.tn-ring small { font-weight: 700; }
.pp-bars { display: grid; gap: .9rem; }
.tn-bar-head { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: .3rem; }
.tn-bar-head span { display: inline-flex; align-items: center; gap: .3rem; color: var(--text-muted); }
.tn-bar-head small { color: var(--text-muted); font-weight: 500; }
.tn-bar-track { height: 10px; border-radius: var(--radius); background: color-mix(in srgb, var(--danger) 22%, var(--surface-3)); overflow: hidden; }
.tn-bar-track span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--pp-accent, var(--primary)), color-mix(in srgb, var(--pp-accent, var(--primary)) 60%, #fff)); }
.pp-surfaces { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pp-surface .tn-bar-track span { background: var(--surface-c, var(--pp-accent)); }
.tn-monthly-wrap { position: relative; }
.tn-monthly { width: 100%; height: 150px; display: block; }
.tn-monthly rect.w { fill: var(--pp-accent, var(--primary)); }
.tn-monthly rect.l { fill: color-mix(in srgb, var(--danger) 55%, var(--surface-3)); }
.tn-monthly .axis { stroke: var(--border-strong); stroke-width: .3; }
.tn-monthly-labels { display: grid; grid-template-columns: repeat(var(--n), 1fr); text-align: center; font-size: .72rem; color: var(--text-muted); text-transform: capitalize; }
.tn-spark { width: 100%; height: 90px; display: block; overflow: visible; }
.tn-spark .line { fill: none; stroke: var(--pp-accent, var(--primary)); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.tn-spark .area { fill: color-mix(in srgb, var(--pp-accent, var(--primary)) 16%, transparent); }
.pp-spark { margin-top: 1rem; }
.pp-rivals { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.pp-rivals li { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.pp-h2h { font-weight: 800; font-variant-numeric: tabular-nums; }
.pp-h2h .w { color: var(--ok); } .pp-h2h .l { color: var(--danger); }
.pp-rank-cards { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.pp-rank-card { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: inherit; }
.pp-rank-card > span:nth-child(2) { display: grid; flex: 1; } .pp-rank-card small { color: var(--text-muted); }
.pp-rank-pos { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--pp-accent); min-width: 3.2rem; }
.pp-form-chips { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pp-wl { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; font-weight: 800; font-size: .82rem; color: #fff; flex-shrink: 0; }
.pp-wl.w { background: var(--ok); } .pp-wl.l { background: var(--danger); } .pp-wl.u { background: var(--info); }
:root[data-theme="dark"] .pp-wl { color: #0f1519; }
.pp-matches { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.pp-matches li { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.pp-matches li > .grow { display: grid; min-width: 0; }
.pp-matches small { color: var(--text-muted); }
.pp-matches small a { color: inherit; }
.pp-score { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-trophies { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.pp-trophy { display: grid; justify-items: center; text-align: center; gap: .3rem; padding: 1.2rem 1rem; border-radius: var(--radius-lg); text-decoration: none; color: inherit; border: 1px solid var(--border); background: var(--surface); transition: transform .2s; }
.pp-trophy:hover { transform: translateY(-3px) rotate(-1deg); }
.pp-trophy-ic { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; }
.pp-trophy.is-gold { background: linear-gradient(160deg, color-mix(in srgb, #eab308 18%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, #eab308 45%, var(--border)); }
.pp-trophy.is-gold .pp-trophy-ic { background: linear-gradient(135deg, #fde68a, #ca8a04); color: #422006; }
.pp-trophy.is-silver .pp-trophy-ic { background: linear-gradient(135deg, #f1f5f9, #94a3b8); color: #1e293b; }
.pp-trophy small { color: var(--text-muted); }
.pp-upcoming { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-bottom: 1rem; }
.pp-up { display: grid; gap: .15rem; padding: .9rem 1rem; border-radius: var(--radius-lg); border: 1px solid var(--border); border-left: 4px solid var(--pp-accent); background: var(--surface); text-decoration: none; color: inherit; }
.pp-up small { color: var(--text-muted); }
.pp-tour-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.pp-tour-list li { display: flex; align-items: center; gap: .6rem; justify-content: space-between; padding: .65rem .9rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.pp-tour-list a { display: grid; text-decoration: none; color: inherit; } .pp-tour-list small { color: var(--text-muted); }
.pp-facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .7rem; margin: 0; }
.pp-facts-grid > div { padding: .9rem 1rem; border-radius: var(--radius-lg); background: linear-gradient(150deg, color-mix(in srgb, var(--pp-accent) 10%, var(--surface)), var(--surface)); border: 1px solid var(--border); }
.pp-facts-grid dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.pp-facts-grid dd { margin: .2rem 0 0; font-size: 1.1rem; font-weight: 700; }

/* Mi cuenta */
.acc-hero-in { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding: clamp(1.8rem, 5vw, 3rem) 0 2.8rem; }
.acc-hero .pp-avatar { width: 5.5rem; height: 5.5rem; font-size: 1.8rem; }
.acc-hero .pp-name { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.acc-hero .pp-tagline { margin: 0; }
.acc-hero-actions { display: flex; gap: .4rem; }
/* las pestañas montan sobre el borde del encabezado: el encabezado no las recorta (solo su fondo) y quedan por encima del contenido */
.acc-hero { overflow: visible; z-index: 5; }
.acc .pp-hero-bg { overflow: hidden; }
.acc-tabs { margin: 0 auto -1.4rem; position: relative; z-index: 6; }
.acc-body { padding: 2.4rem 0 4rem; position: relative; z-index: 1; }
.acc-h { display: flex; align-items: center; gap: .45rem; font-size: 1.1rem; margin: 0 0 .8rem; }
.acc-h .icon { color: var(--pp-accent); }
.acc-h3 { font-size: .95rem; margin: 1.4rem 0 .6rem; }
.acc-dash { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .acc-dash { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.acc-dash .pp-kpis { margin: 0; }
.acc-next { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; text-decoration: none; color: inherit; border-left: 5px solid var(--pp-accent); background: linear-gradient(120deg, color-mix(in srgb, var(--pp-accent) 10%, var(--surface)), var(--surface)); }
.acc-next .grow { display: grid; gap: .15rem; } .acc-next small { color: var(--text-muted); } .acc-next strong { font-size: 1.25rem; }
.acc-next-ic { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--pp-accent); color: #fff; }
.acc-next .tn-countdown { margin: 0; color: var(--pp-accent); }
.acc-open { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.acc-nudge { display: grid; gap: .4rem; justify-items: start; background: linear-gradient(150deg, color-mix(in srgb, var(--pp-accent) 14%, var(--surface)), var(--surface)); }
.acc-nudge p { margin: 0; }
.acc-nudge-ic { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--pp-accent); color: #fff; }
.acc-tours { display: grid; gap: .6rem; margin-bottom: 1.5rem; }
.acc-tour { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; padding: .9rem 1rem; flex-wrap: wrap; transition: transform .15s; }
.acc-tour:hover { transform: translateX(3px); }
.acc-tour .grow { display: grid; } .acc-tour small { color: var(--text-muted); }
:where(.acc-tour-ic) { --bk-accent: var(--pp-accent); } .acc-tour-ic { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: var(--radius); background: color-mix(in srgb, var(--bk-accent) 16%, var(--surface)); color: var(--bk-accent); }
.acc-tour.is-champ { border-color: color-mix(in srgb, #eab308 50%, var(--border)); background: linear-gradient(120deg, color-mix(in srgb, #eab308 12%, var(--surface)), var(--surface)); }
.acc-tour.is-champ .acc-tour-ic { background: linear-gradient(135deg, #fde68a, #ca8a04); color: #422006; }
.acc-filter { margin-bottom: 1rem; }
.acc-matches li.is-up { border-left: 4px solid var(--info); }
.acc-profile { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) { .acc-profile { max-width: 920px; } }
.acc-images { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: center; }
.acc-photo, .acc-cover { display: grid; gap: .5rem; justify-items: start; }
.acc-photo .pp-avatar { width: 6rem; height: 6rem; font-size: 2rem; border-width: 3px; }
.acc-cover-prev { width: 100%; aspect-ratio: 3 / 1; border-radius: var(--radius); background: linear-gradient(130deg, var(--pp-from), var(--pp-to)) center / cover; }
@media (max-width: 560px) { .acc-images { grid-template-columns: 1fr; } }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: grid; place-items: center; padding: 0 .6rem; background: var(--surface-2); border: 1px solid var(--border-strong); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); font-size: .85rem; color: var(--text-muted); }
.input-prefix input { border-radius: 0 var(--radius) var(--radius) 0; flex: 1; min-width: 0; }
.acc-facts { display: grid; gap: .4rem; margin-bottom: .5rem; }
.acc-fact { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto; gap: .4rem; }
.acc-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; }
.acc-theme input { position: absolute; opacity: 0; }
.acc-theme span { display: grid; gap: .35rem; padding: .4rem; border: 2px solid var(--border); border-radius: var(--radius-lg); font-size: .8rem; font-weight: 600; cursor: pointer; text-align: center; }
.acc-theme span i { display: block; height: 42px; border-radius: var(--radius); background: linear-gradient(130deg, var(--from), var(--to)); }
.acc-theme input:checked + span { border-color: var(--pp-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pp-accent) 30%, transparent); }
.acc-theme input:focus-visible + span { box-shadow: var(--focus); }
.acc-shows { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .4rem; margin-top: .8rem; }
.acc-sections { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.acc-sections li { display: flex; align-items: center; gap: .4rem; padding: .35rem .5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.acc-sections li.sortable-ghost { opacity: .4; }
.acc-grip { cursor: grab; color: var(--text-muted); display: inline-flex; }
.acc-save { display: flex; gap: .6rem; flex-wrap: wrap; position: sticky; bottom: 0; padding: .8rem 0; background: linear-gradient(transparent, var(--bg) 35%); z-index: 3; }
.acc-preview-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.acc-preview-hero { position: relative; height: 110px; background: linear-gradient(130deg, var(--pp-from), var(--pp-to)); overflow: hidden; isolation: isolate; }
.acc-preview-hero::before { content: ""; position: absolute; inset: 0; background: var(--pp-cover, none) center / cover; z-index: -1; }
.acc-preview-body { display: grid; justify-items: center; text-align: center; gap: .2rem; padding: 0 1rem 1rem; margin-top: -2.6rem; position: relative; z-index: 1; }
.acc-preview-body .pp-avatar { width: 5rem; height: 5rem; font-size: 1.6rem; }
.acc-preview-body strong { font-size: 1.2rem; }
.acc-preview-body small { color: var(--text-muted); }
.acc-preview-body .pp-kpis strong { color: var(--pp-accent); }
/* Tu perfil › Cuenta: lista de secciones + una a la vez (mismo armado que «Editar perfil», clases .acc-ed de badges.css) */
.acc-set-sec { display: grid; gap: 1rem; min-width: 0; }
.acc-set-sec[hidden] { display: none; }
.acc-set-sec > .card { margin: 0; }
.acc-set-sec > .card > h2.acc-h:first-of-type { display: none; }   /* el título ya está arriba, en el encabezado de la sección */
.acc-set-sec .form-grid { margin: 0; }
.acc-set-act { display: flex; justify-content: flex-end; padding-top: .9rem; margin-top: .2rem; border-top: 1px solid var(--border); }
.acc-set-sec .push-optin { padding: 1.1rem 1.25rem; }
.acc-orgs { list-style: none; margin: 0; padding: 0; }
.acc-orgs li + li { border-top: 1px solid var(--border); }
.acc-orgs a { display: flex; align-items: center; gap: .8rem; padding: .85rem 1.1rem; color: inherit; text-decoration: none; }
.acc-orgs a:hover { background: var(--surface-2); }
.acc-orgs .grow { display: grid; min-width: 0; line-height: 1.3; }

/* ---------- Animaciones (respetan «reducir movimiento» y la preferencia del perfil) ---------- */
.tn-js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(14px); }
.tn-js [data-reveal] { transition: opacity .55s ease var(--d, 0ms), transform .55s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
[data-motion="full"] .tn-js [data-reveal]:not(.is-in), .tn-js [data-motion="full"] [data-reveal]:not(.is-in) { transform: translateY(26px) scale(.97); }
.tn-js .tn-ring:not(.is-in) .tn-ring-fg { stroke-dashoffset: var(--dash); }
.tn-ring-fg { transition: stroke-dashoffset 1.3s cubic-bezier(.3, .8, .3, 1) .15s; }
.tn-js .tn-bar:not(.is-in) .tn-bar-track span { width: 0; }
.tn-bar-track span { transition: width 1s cubic-bezier(.3, .8, .3, 1) .1s; }
.tn-spark .line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.tn-js [data-reveal]:not(.is-in) .tn-spark .line { stroke-dashoffset: 1; }
.tn-js [data-reveal] .tn-spark .line { transition: stroke-dashoffset 1.6s ease .2s; }
[data-motion="full"] .pp-avatar { animation: pp-float 5s ease-in-out infinite; }
[data-motion="full"] .pp-lines { animation: pp-court 12s ease-in-out infinite alternate; }
[data-motion="full"] .pp-wl { animation: pp-pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
[data-motion="full"] .pp-form-chips .pp-wl:nth-child(2) { animation-delay: .05s; } [data-motion="full"] .pp-form-chips .pp-wl:nth-child(3) { animation-delay: .1s; }
[data-motion="full"] .pp-form-chips .pp-wl:nth-child(4) { animation-delay: .15s; } [data-motion="full"] .pp-form-chips .pp-wl:nth-child(5) { animation-delay: .2s; }
[data-motion="full"] .pp-trophy.is-gold .pp-trophy-ic { animation: tn-shine 2.6s ease-in-out infinite; }
@keyframes pp-float { 50% { transform: translateY(-6px); } }
@keyframes pp-court { to { transform: perspective(500px) rotateX(50deg) translateX(-4%); } }
@keyframes pp-pop { from { transform: scale(.3); opacity: 0; } }
[data-motion="no"] *, [data-motion="no"] *::before, [data-motion="no"] *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .pp-avatar, .pp-lines, .pp-wl, .tn-pipe-dot, .tn-champ-box .bk-trophy, .tn-status-en_juego .icon { animation: none !important; }
  .tn-js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
  .tn-ring-fg, .tn-bar-track span, .tn-spark .line { transition: none !important; }
}

/* vertical y por rondas: el tablero ocupa el ancho disponible (sin desbordar en celulares) */
.bk-layout-vertical .bk-board, .bk-layout-rounds .bk-board { width: auto; min-width: 0; }
.bk-layout-vertical .bk-round-name, .bk-layout-rounds .bk-round-name { justify-content: flex-start; }
.bk-layout-vertical .bk-match, .bk-layout-rounds .bk-match { min-width: 0; }
.bk-switch { width: auto; }
@media (max-width: 640px) { .bk-switch { margin-left: 0; } .tn-full-head .row { flex-wrap: wrap; } }

/* ------------------------------------------------------------------ */
/* Disciplina y tipo de cancha (imagen del repositorio o ilustración)  */
/* ------------------------------------------------------------------ */
.kind-badge { --sf1: #3b6e8f; --sf2: #24485f; display: inline-flex; align-items: center; gap: .55rem; min-width: 0; vertical-align: middle; }
.kind-art { position: relative; flex-shrink: 0; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: var(--radius); overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--sf1), var(--sf2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.kind-art::after { content: ""; position: absolute; inset: 22% 14%; border: 2px solid rgba(255, 255, 255, .28); border-radius: 2px; pointer-events: none; }
.kind-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kind-art:has(img)::after { display: none; }
.kind-art .icon { width: 1.25rem; height: 1.25rem; position: relative; z-index: 1; }
.kind-txt { display: grid; line-height: 1.2; min-width: 0; }
.kind-txt strong { font-size: .92rem; }
.kind-txt small { display: inline-flex; align-items: center; gap: .3rem; color: var(--text-muted); font-size: .78rem; white-space: nowrap; }
.kind-sf-dot { width: .65rem; height: .65rem; border-radius: 3px; background: linear-gradient(135deg, var(--sf1), var(--sf2)); flex-shrink: 0; }
.kind-sf-img { width: 1rem; height: 1rem; border-radius: 3px; object-fit: cover; }
.kind-sm .kind-art { width: 1.9rem; height: 1.9rem; border-radius: 8px; }
.kind-sm .kind-art .icon { width: 1rem; height: 1rem; }
.kind-sm .kind-txt strong { font-size: .82rem; }
.kind-sm .kind-txt small { font-size: .72rem; }
.kind-lg .kind-art { width: 3.4rem; height: 3.4rem; }
.kind-lg .kind-txt strong { font-size: 1.05rem; }
.tn-t-hero .kind-txt small, .act-hero .kind-txt small { color: rgba(255, 255, 255, .85); }
.act-kind { margin: .4rem 0 .6rem; }
.tn-card-body .kind-badge, .cal-card-body .kind-badge { margin-bottom: .35rem; }

/* elegir disciplina y portada (panel) */
.tn-disc-picks { display: flex; flex-wrap: wrap; gap: .5rem; }
.tn-disc-pick { cursor: pointer; position: relative; }
.tn-disc-pick input { position: absolute; opacity: 0; pointer-events: none; }
.tn-disc-pick > span { display: inline-flex; padding: .4rem .7rem .4rem .45rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, background .15s; }
.tn-disc-pick input:checked + span { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent); }
.tn-disc-pick input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.tn-cover-picks { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); max-height: 260px; overflow: auto; padding: .15rem; }
.tn-cover-pick { cursor: pointer; position: relative; }
.tn-cover-pick input { position: absolute; opacity: 0; pointer-events: none; }
.tn-cover-pick > span { display: grid; gap: .25rem; padding: .3rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); height: 100%; }
.tn-cover-pick img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }
.tn-cover-pick small { font-size: .74rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-cover-auto { place-items: center; text-align: center; color: var(--text-muted); }
.tn-cover-auto .icon { width: 1.6rem; height: 1.6rem; margin-top: .9rem; }
.tn-cover-pick input:checked + span { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 30%, transparent); }

/* organizaciones involucradas y árbitros (panel y sitio) */
.tn-inline { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.tn-inline > input { flex: 1 1 200px; min-width: 0; }
.tn-inline > select { flex: 0 1 auto; max-width: 100%; }
.tn-inline .combo { flex: 1 1 220px; min-width: 0; }
.tn-sub { display: flex; align-items: center; gap: .4rem; font-size: 1rem; margin: 1.4rem 0 .3rem; }
.tn-team-builder { border-top: 1px dashed var(--border); margin-top: 1rem; padding-top: .3rem; }
.tn-team-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .4rem; }
.tn-team-list li { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.tn-team-list li .grow { min-width: 0; }
.tn-team-list.is-static li { background: transparent; }
.tn-team-ic, .tn-org-ic { display: grid; place-items: center; width: 2rem; height: 2rem; flex-shrink: 0; border-radius: 50%; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); }
.tn-team-note { margin-top: 1rem; }
.tn-new-org .tn-inline > input:first-child { flex-basis: 100%; }
.tn-org-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .55rem; }
.tn-org-list li { display: flex; align-items: center; gap: .6rem; }
.tn-org-list a { color: inherit; }
.tn-org-list a:hover strong { text-decoration: underline; }
.tn-org-card h3 { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: 1rem; }

/* ------------------------------------------------------------------ */
/* Calendario general y actividades                                    */
/* ------------------------------------------------------------------ */
.cal-open-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--text); font-weight: 600; font-size: .9rem; }
.cal-page { padding: 1rem 0 4rem; }
.cal-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.4rem; }
.cal-filters .seg a { display: inline-flex; align-items: center; padding: .35rem .85rem; border-radius: var(--radius); font-weight: 600; font-size: .86rem; color: var(--text-muted); text-decoration: none; white-space: nowrap; transition: background .18s, color .18s; }
.cal-filters .seg a:hover { color: var(--text); }
.cal-filters .seg a[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.cal-filters select { width: auto; max-width: 100%; }
.cal-layout { display: grid; gap: 1.5rem; }
@media (min-width: 960px) {
  .cal-layout { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
  .cal-month { position: sticky; top: calc(var(--header-h, 64px) + 1rem); }
}
.cal-month { padding: 1rem; display: grid; gap: .6rem; }
.cal-month-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-dow { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; padding: .2rem 0; }
.cal-day { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; font-size: .85rem; color: var(--text); text-decoration: none; }
.cal-day.has { font-weight: 700; background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }
.cal-day.has:hover { background: color-mix(in srgb, var(--primary) 18%, var(--surface)); }
.cal-day.is-past { opacity: .5; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--primary); }
.cal-dots { position: absolute; bottom: 3px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; }
.cal-dots i, .cal-legend i { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.cal-dot-torneo { background: var(--accent); }
.cal-dot-actividad { background: var(--primary); }
.cal-legend { display: flex; gap: 1rem; margin: 0; font-size: .78rem; color: var(--text-muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.cal-legend i { width: 8px; height: 8px; }
.cal-agenda { display: grid; gap: 1.6rem; min-width: 0; }
.cal-daygroup { scroll-margin-top: calc(var(--header-h, 64px) + 1rem); }
.cal-daygroup.is-past { opacity: .6; }
.cal-day-title { font-size: 1rem; margin: 0 0 .7rem; display: flex; align-items: center; gap: .5rem; }
.cal-day-title::first-letter { text-transform: uppercase; }
.cal-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.cal-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .2s, box-shadow .2s; min-width: 0; }
.cal-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cal-card-top { position: relative; height: 96px; display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; padding: .7rem; color: #fff; text-decoration: none;
  background: var(--cover, none) center / cover, linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 50%, #000)); }
.cal-torneo .cal-card-top { background: var(--cover, none) center / cover, linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #000)); }
.cal-card-top::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .45)); }
.cal-date, .cal-type { position: relative; z-index: 1; }
.cal-date { display: grid; place-items: center; min-width: 2.9rem; padding: .25rem .35rem; border-radius: 10px; background: rgba(255, 255, 255, .95); color: #111; line-height: 1; }
.cal-date b { font-size: 1.25rem; }
.cal-date small { font-size: .7rem; text-transform: uppercase; font-weight: 700; color: #555; margin-top: .1rem; }
.cal-type { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: var(--radius); background: rgba(0, 0, 0, .45); font-size: .76rem; font-weight: 600; max-width: 70%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-card-body { display: flex; flex-direction: column; gap: .35rem; padding: .85rem 1rem 1rem; flex: 1; min-width: 0; }
.cal-card-body h3 { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.cal-card-body h3 a { color: inherit; text-decoration: none; }
.cal-card-body h3 a:hover { text-decoration: underline; }
.cal-meta { display: grid; gap: .2rem; margin: 0; font-size: .84rem; color: var(--text-muted); }
.cal-meta span { display: flex; align-items: center; gap: .3rem; min-width: 0; }
.cal-meta a { color: inherit; }
.cal-card-foot { margin-top: auto; padding-top: .4rem; display: flex; gap: .5rem; }
.cal-continues { display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; border: 1px dashed var(--border); border-radius: var(--radius); color: inherit; text-decoration: none; font-size: .9rem; }
.cal-more { margin: 1.4rem 0 0; text-align: center; }
.cal-cards-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.cal-cards-compact .cal-card-top { height: 70px; }
.acc-tour.is-past { opacity: .6; }
.acc-h .link-more { margin-left: auto; font-size: .85rem; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .cal-card, .cal-card:hover { transition: none; transform: none; } }

/* Rankings del panel: datos completos de cada ranking y explicación del perfil de puntaje */
.tn-rank-card { position: relative; }
.tn-rank-link { color: inherit; text-decoration: none; }
.tn-rank-link:hover { text-decoration: underline; }
.tn-rank-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .9rem; margin: .2rem 0 0; padding: .7rem .8rem; border-radius: var(--radius); background: var(--surface-2); }
.tn-rank-facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.tn-rank-facts dd { margin: .1rem 0 0; font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: .3rem; min-width: 0; }
.tn-pf-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; color: var(--primary); font-weight: 600; text-decoration: underline dotted; text-underline-offset: 3px; overflow-wrap: anywhere; }
.tn-pf-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.tn-rank-rule { font-size: .8rem !important; color: var(--text-muted); display: flex; gap: .35rem; align-items: center; }
.tn-rank-card .role-meta { align-items: center; }
.pf-modal { width: min(860px, calc(100vw - 1.5rem)); }
.pf-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pf-rules li { display: flex; gap: .6rem; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: var(--radius); }
.pf-rules li > .icon { color: var(--primary); flex-shrink: 0; margin-top: .15rem; }
.pf-rules small { display: block; color: var(--text-muted); font-size: .8rem; margin-top: .15rem; }
.pf-table th, .pf-table td { white-space: nowrap; }
.pf-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.pf-table tbody th { font-weight: 600; text-align: left; }
.tn-rank-facts-wide { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-top: .6rem; max-width: 760px; }

/* Sponsors: logo (o iniciales), listas y niveles */
.sp-logo { display: inline-grid; place-items: center; width: 64px; height: 40px; object-fit: contain; border-radius: 8px; background: #fff; padding: 4px; border: 1px solid var(--border); flex-shrink: 0; }
.sp-logo-sm { width: 52px; height: 34px; }
.sp-logo-text { background: var(--surface-2); color: var(--text-muted); font-weight: 800; font-size: .85rem; letter-spacing: .04em; }
.sp-usage li { display: flex; align-items: center; gap: .6rem; padding: .6rem 1.1rem; border-bottom: 1px solid var(--border); }
.sp-usage li:last-child { border-bottom: 0; }

/* Premios y sorteos (asistente y ficha del torneo) */
.pz-list, .rf-list { list-style: none; margin: .5rem 0; padding: 0; display: grid; gap: .5rem; }
.pz-editor { container-type: inline-size; }
.pz-row { display: grid; grid-template-columns: auto minmax(140px, 180px) minmax(160px, 1fr) minmax(130px, 180px) auto; gap: .5rem; align-items: center; padding: .5rem .6rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.pz-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, #d4a017 18%, transparent); color: #b8860b; }
.pz-place { display: grid; gap: .35rem; min-width: 0; }
.pz-row input, .pz-row select { min-width: 0; width: 100%; }
.pz-empty { display: flex; align-items: center; gap: .35rem; font-size: .88rem; margin: .4rem 0; }
.pz-tools { gap: .4rem; flex-wrap: wrap; }
/* en columnas angostas (asistente con resumen al lado, celular): puesto arriba, premio y sponsor abajo */
@container (max-width: 700px) {
  .pz-row { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; }
  .pz-row .pz-place { grid-column: 2 / 4; }
  .pz-row [data-pz-remove] { grid-column: 4; grid-row: 1; }
  .pz-row .pz-title { grid-column: 1 / 3; }
  .pz-row [data-sponsor-select] { grid-column: 3 / 5; }
}
@container (max-width: 420px) {
  .pz-row .pz-title, .pz-row [data-sponsor-select] { grid-column: 1 / -1; }
}
.sp-picker .tn-inline > select, .tn-team-builder .tn-inline > select { flex: 0 0 auto; width: auto; }
.sp-picker { margin-top: .4rem; }
.sp-list li .grow { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.rf-row { padding: .8rem .9rem .5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.rf-row .field { margin-bottom: .7rem; }
.rf-row .field label { font-size: .85rem; }
.rf-remove { margin-bottom: .3rem; }
.tn-prize-grid { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 1200px) { .tn-prize-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.tn-prize-grid .tn-sub:first-child { margin-top: 0; }
.rf-card { border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem .9rem; display: grid; gap: .6rem; }
.rf-card.is-drawn { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); background: color-mix(in srgb, var(--ok) 6%, transparent); }
.rf-card-head { display: flex; align-items: center; gap: .6rem; }
.rf-card-head .grow { display: flex; flex-direction: column; min-width: 0; }
.rf-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--primary); flex-shrink: 0; }
.rf-winners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.rf-winners li { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: var(--radius); background: color-mix(in srgb, #d4a017 20%, transparent); }
.tn-prize-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.tn-prize-list li { display: flex; align-items: center; gap: .45rem; }
.rf-editor { container-type: inline-size; }
@container (max-width: 620px) {
  .rf-row .form-grid > .field { grid-column: span 6; }
  .rf-row .form-grid > .field:first-child, .rf-row .form-grid > .field:nth-child(2) { grid-column: span 12; }
}

/* Sitio: premios, sorteos y sponsors del torneo */
.tn-prizes h3, .tn-raffles h3, .tn-sponsors h3 { display: flex; align-items: center; gap: .4rem; margin: 0 0 .7rem; font-size: 1.05rem; }
.tn-prize-cards, .tn-raffle-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.tn-prize-card, .tn-raffle-list li { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border: 1px solid var(--border); border-radius: var(--radius); }
.tn-prize-card .grow, .tn-raffle-list .grow { display: flex; flex-direction: column; min-width: 0; }
.tn-prize-card small { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; }
.tn-prize-card.is-first { border-color: color-mix(in srgb, #d4a017 60%, var(--border)); background: color-mix(in srgb, #d4a017 10%, transparent); }
.tn-prize-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; background: color-mix(in srgb, #d4a017 18%, transparent); color: #b8860b; }
.tn-prize-by { font-style: normal; font-size: .8rem; color: var(--text-muted); }
.tn-raffle-list li.is-drawn { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.tn-raffle-win { margin-top: .25rem; display: inline-flex; align-items: center; gap: .3rem; font-size: .9rem; }
.tn-sp-tier + .tn-sp-tier { margin-top: .8rem; }
.tn-sp-tier > small { display: flex; align-items: center; gap: .3rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; margin-bottom: .4rem; }
.tn-sp-logos { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.tn-sp-logos .sp-logo { width: 96px; height: 56px; }
.tn-sp-principal .sp-logo { width: 150px; height: 80px; }
.tn-sp-logos a { display: inline-flex; border-radius: 10px; transition: transform .15s; }
.tn-sp-logos a:hover { transform: translateY(-2px); }

/* Página de una actividad: días y horarios como grilla semanal */
.act-hero + .tn-t-body { padding-top: 2rem; }
.act-main { min-width: 0; }
.act-sched { display: grid; gap: 1rem; }
.act-sched-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.act-sched-head h2 { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: 1.2rem; }
.act-next { margin: 0; display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: var(--radius); background: color-mix(in srgb, var(--primary) 14%, transparent); font-size: .9rem; }
.act-next span { color: var(--text-muted); }
.act-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .45rem; }
.act-day { display: flex; flex-direction: column; gap: .5rem; padding: .7rem .5rem; border: 1px solid var(--border); border-radius: var(--radius); min-height: 120px; text-align: center; }
.act-day:not(.is-on) { opacity: .45; border-style: dashed; }
.act-day.is-on { background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.act-day.is-today { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); opacity: 1; }
.act-day-name { font-weight: 700; font-size: .85rem; }
.act-day-name small { display: block; color: var(--primary); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.act-day-long { display: none; }
.act-day-times { display: grid; gap: .35rem; }
.act-time { display: flex; flex-direction: column; align-items: center; line-height: 1.15; padding: .35rem .2rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.act-time b { font-size: .95rem; }
.act-time small { font-size: .74rem; color: var(--text-muted); }
.act-time small::before { content: "a "; }
.act-day-off { color: var(--text-muted); margin-top: auto; margin-bottom: auto; }
.act-desc { min-width: 0; }
/* angosto: una fila por día (solo los días con clase y hoy), con los horarios al lado */
@media (max-width: 720px) {
  .act-days { grid-template-columns: 1fr; gap: .35rem; }
  .act-day { flex-direction: row; align-items: center; min-height: 0; text-align: left; padding: .55rem .7rem; }
  .act-day:not(.is-on):not(.is-today) { display: none; }
  .act-day-name { width: 92px; flex-shrink: 0; }
  .act-day-long { display: inline; } .act-day-short { display: none; }
  .act-day-times { display: flex; flex-wrap: wrap; gap: .35rem; }
  .act-time { flex-direction: row; gap: .2rem; padding: .25rem .55rem; }
  .act-time small::before { content: "– "; }
  .act-day-off { margin: 0; }
}

/* Perfil de profe: insignia, sección «Clases» y formulario en «Mi cuenta» */
.pp-coach-badge { display: inline-flex; align-items: center; gap: .25rem; margin-left: .4rem; padding: .1rem .55rem; border-radius: var(--radius); background: var(--pp-accent, var(--primary)); color: #fff; font-size: .78rem; font-weight: 700; vertical-align: middle; }
.pp-coach-grid { display: grid; gap: 1.2rem; }
@media (min-width: 860px) { .pp-coach-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.pp-coach-cta { gap: .5rem; flex-wrap: wrap; }
.pp-coach-h { display: flex; align-items: center; gap: .35rem; font-size: .95rem; margin: 0; }
.pp-coach-acts { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.pp-coach-acts a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: var(--radius); color: inherit; text-decoration: none; }
.pp-coach-acts a:hover { border-color: var(--pp-accent, var(--primary)); }
.pp-coach-acts .grow { display: flex; flex-direction: column; min-width: 0; }
.pp-coach-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--pp-accent, var(--primary)) 15%, transparent); color: var(--pp-accent, var(--primary)); flex-shrink: 0; }
.acc-coach:not(.is-on) .acc-coach-fields { display: none; }
/* Estado del pedido para ser profe (lo aprueba el equipo o la organización) */
.acc-coach-state { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; padding: .75rem .9rem; border-radius: var(--radius); background: var(--surface-2, rgba(127,127,127,.08)); border: 1px solid var(--border); }
.acc-coach-state > span { display: grid; gap: .1rem; flex: 1 1 220px; }
.acc-coach-state small { color: var(--muted, inherit); opacity: .85; }
.acc-coach-state.ok { border-color: color-mix(in srgb, var(--ok, #16a34a) 45%, transparent); }
.acc-coach-state.ok > svg { color: var(--ok, #16a34a); }
.acc-coach-state.warn { border-color: color-mix(in srgb, var(--warn, #d97706) 45%, transparent); }
.acc-coach-state.warn > svg { color: var(--warn, #d97706); }
.acc-coach-state.danger { border-color: color-mix(in srgb, var(--danger, #dc2626) 45%, transparent); }
.acc-coach-state.danger > svg { color: var(--danger, #dc2626); }

/* Ficha del torneo (panel): sub-pestañas de «Configuración» como selector de segmentos */
.tn-subtabs > .tabs { box-shadow: none; display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 1.25rem; }
.tn-subtabs > .tabs [role=tab] { border-radius: 10px; border-bottom: 0; padding: .45rem .8rem; min-height: 38px; }
.tn-subtabs > .tabs [role=tab][aria-selected="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.tn-subtabs > .tabs [role=tab]::after { display: none; }
.tn-facts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem 1rem; margin: 0; }
.tn-facts-list dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.tn-facts-list dd { margin: .1rem 0 0; font-weight: 600; font-size: .92rem; }
/* resumen del torneo: próximos partidos ancho + acciones al costado, misma altura (sin huecos raros) */
#resumen .tn-two { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: stretch; }
#resumen .tn-two > .panel { margin: 0; }
@media (max-width: 980px) { #resumen .tn-two { grid-template-columns: 1fr; } }
/* Jugadores recomendados para sumar al torneo */
.tn-suggest { border-top: 1px solid var(--border); padding: 1rem 1.25rem 1.1rem; }
.tn-suggest-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
.tn-suggest-head h3 { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: 1rem; }
.tn-suggest-head input { width: min(240px, 100%); min-height: 36px; }
.tn-suggest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); max-height: 360px; overflow-y: auto; }
.tn-suggest-item { display: flex; align-items: center; gap: .6rem; padding: .55rem .65rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.tn-suggest-item .grow { display: flex; flex-direction: column; min-width: 0; }
.tn-suggest-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-suggest-item small { color: var(--text-muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-suggest-item.is-busy { opacity: .7; }
.tn-suggest-item.is-picked { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.tn-suggest-busy { color: var(--warn) !important; display: inline-flex; gap: .25rem; align-items: center; }

/* Mi cuenta: encabezado siempre legible (velo oscuro suave detrás del texto, con cualquier tema o portada) */
.acc-hero-in { position: relative; margin-top: clamp(1rem, 3vw, 1.8rem); margin-bottom: 2.6rem; padding: clamp(1rem, 3vw, 1.4rem) clamp(1rem, 3vw, 1.6rem); border-radius: var(--radius-lg); background: rgba(0, 0, 0, .32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; }
.pp-theme-minimal.acc .acc-hero-in, .pp-theme-pelota.acc .acc-hero-in { color: #fff; }
.acc-hero-in .pp-handle, .acc-hero-in .pp-tagline { color: rgba(255, 255, 255, .85); }
@media (min-width: 720px) { .acc-hero-in { width: min(var(--container, 1200px), calc(100% - 3rem)); } }
/* Inicio: próximos partidos arriba de todo y destacados; números a todo el ancho */
.acc-up { margin-bottom: 1.25rem; }
.acc-up-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.acc-match { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; min-width: 0; }
.acc-match:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.acc-match.is-first { grid-column: 1 / -1; flex-wrap: wrap; padding: 1.3rem 1.4rem; border: 0; color: #fff; background: linear-gradient(120deg, var(--pp-from), var(--pp-to)); box-shadow: var(--shadow); }
.acc-match-when { display: grid; justify-items: center; min-width: 4.6rem; padding: .5rem .6rem; border-radius: 12px; background: color-mix(in srgb, var(--pp-accent) 14%, transparent); text-align: center; line-height: 1.15; }
.acc-match-when b { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.acc-match-when strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.acc-match.is-first .acc-match-when { background: rgba(0, 0, 0, .25); min-width: 5.6rem; }
.acc-match.is-first .acc-match-when strong { font-size: 1.8rem; }
.acc-match-body { display: grid; gap: .15rem; min-width: 0; flex: 1; }
.acc-match-body small { color: var(--text-muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-match-body strong { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; }
.acc-match-body span { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--text-muted); }
.acc-match.is-first .acc-match-body small, .acc-match.is-first .acc-match-body span { color: rgba(255, 255, 255, .82); }
.acc-match.is-first .acc-match-body strong { font-size: clamp(1.25rem, 3vw, 1.6rem); }
.acc-match.is-first .tn-countdown { margin: 0 0 0 auto; color: #fff; }
.pp-kpis.acc-kpis { margin: 0 0 1.5rem; }
.acc-tabs + * { }
.tn-add .field > .btn { width: auto; justify-self: start; }
.acc-hero { padding-top: clamp(1rem, 3vw, 1.6rem); }
.acc-hero-in { margin-top: 0; }
.acc-up-grid { display: flex; flex-wrap: wrap; }
.acc-up-grid > .acc-match { flex: 1 1 260px; }
.acc-up-grid > .acc-match.is-first { flex-basis: 100%; }
@media (max-width: 560px) {
  .acc-match.is-first .tn-countdown { flex-basis: 100%; margin: .3rem 0 0; justify-content: flex-start; }
  .acc-match { gap: .8rem; padding: .9rem; }
}

/* Sitio › Torneos: tarjetas anchas (portada, datos y acción en una fila) que ocupan todo el ancho */
.tn-rows { display: grid; gap: 1rem; }
.tn-row { display: grid; grid-template-columns: 260px minmax(0, 1fr) auto; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tn-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--bk-accent, var(--primary)) 50%, var(--border)); }
.tn-row-cover { position: relative; min-height: 160px; padding: .8rem; display: flex; flex-wrap: wrap; align-content: flex-start; gap: .4rem; background: linear-gradient(135deg, var(--bk-accent, var(--primary)), color-mix(in srgb, var(--bk-accent, var(--primary)) 55%, #000)) center / cover; overflow: hidden; }
.tn-row-cover::after { content: ""; position: absolute; inset: auto -10% -70% -10%; height: 120%; border: 3px solid rgba(255, 255, 255, .25); border-radius: 50%; }
.tn-row:hover .tn-card-ball { transform: translateY(-14px) rotate(160deg); }
.tn-row-body { display: flex; flex-direction: column; justify-content: center; gap: .45rem; padding: 1.1rem 1.4rem; min-width: 0; }
.tn-row-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.tn-row-body h3 { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.15; }
.tn-row-progress { height: 6px; border-radius: var(--radius); background: var(--surface-2); overflow: hidden; max-width: 420px; }
.tn-row-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--bk-accent, var(--primary)), var(--accent)); border-radius: inherit; }
.tn-row-side { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: .7rem; padding: 1.1rem 1.4rem; border-left: 1px solid var(--border); min-width: 190px; }
.tn-row-num { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.tn-row-num strong { font-family: var(--font-display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.tn-row-num strong small { font-size: .9rem; color: var(--text-muted); }
.tn-row-num span { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.tn-row-cta { justify-content: center; white-space: nowrap; }
@media (max-width: 860px) {
  .tn-row { grid-template-columns: 1fr; }
  .tn-row-cover { min-height: 110px; }
  .tn-row-side { border-left: 0; border-top: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; align-items: center; }
  .tn-row-num { flex-direction: column; align-items: flex-start; gap: 0; }
  .tn-row-cta { margin-left: auto; }
}
/* Sitio › ficha del torneo: la información en columnas a todo el ancho (sin columna vacía ni huecos) */
.tn-desc { margin-bottom: 1.25rem; }
.tn-info-cards { columns: 3 300px; column-gap: 1.25rem; }
.tn-info-cards > * { break-inside: avoid; margin: 0 0 1.25rem; display: block; width: 100%; }
.tn-info-cards > .hint { display: flex; }
.tn-info-cards { columns: auto; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: stretch; }
.tn-info-cards > * { margin: 0; }
.tn-info-cards > .card { display: flex; flex-direction: column; }
.tn-info-cards > .card > .mv { flex: 1; }
/* Panel › Torneos: una fila por torneo, a todo el ancho, con el siguiente paso a mano */
.tn-admin-rows { display: grid; gap: .7rem; }
.tn-arow { display: grid; grid-template-columns: minmax(0, 1fr) 260px auto; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.tn-arow:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--shadow); }
.tn-arow-main { display: flex; align-items: center; gap: .9rem; color: inherit; text-decoration: none; min-width: 0; }
.tn-arow-text { display: grid; gap: .25rem; min-width: 0; }
.tn-arow-top { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.tn-arow-text > strong { font-size: 1.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-arow .tn-admin-meta { display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin: 0; font-size: .84rem; color: var(--text-muted); }
.tn-arow .tn-admin-meta > span { display: inline-flex; align-items: center; gap: .3rem; }
.tn-arow-stats { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1rem; }
.tn-arow-stats > span:first-child { display: grid; text-align: center; }
.tn-arow-stats strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tn-arow-stats strong small { font-size: .8rem; color: var(--text-muted); }
.tn-arow-stats small { font-size: .74rem; color: var(--text-muted); }
.tn-arow-prog { display: grid; gap: .3rem; }
.tn-arow-actions { display: flex; gap: .3rem; align-items: center; justify-content: flex-end; }
@media (max-width: 900px) {
  .tn-arow { grid-template-columns: 1fr; gap: .7rem; }
  .tn-arow-actions { justify-content: flex-start; }
  .tn-arow-text > strong { white-space: normal; }
}
.tn-arow-badge .kind-txt { display: none; }
.tn-arow-badge { flex-shrink: 0; }
@media (max-width: 900px) { .tn-arow-stats { grid-template-columns: auto minmax(0, 1fr); } }
/* calendario de partidos: «Jugador A  vs  Jugador B» juntos y centrados, no en los extremos de la fila */
.tn-sched-players { grid-template-columns: minmax(0, 260px) auto minmax(0, 260px); justify-content: start; gap: .8rem; }
.tn-sched-players > span:first-child { justify-self: end; text-align: right; }
.tn-sched-players > span:last-child { justify-self: start; text-align: left; }
.tn-sched-vs { min-width: 2.2rem; text-align: center; padding: .15rem .45rem; border-radius: var(--radius); background: var(--surface-2); }
@media (max-width: 640px) {
  .tn-sched-row { grid-template-columns: 3.6rem minmax(0, 1fr); }
  .tn-sched-players { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
}

/* ---------- Grupos / liga (v2): a todo el ancho, posiciones + cruces + fechas, con el diseño del torneo ---------- */
.tn-groups { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.tn-groups.is-single { grid-template-columns: 1fr; }
.tn-group { display: flex; flex-direction: column; }
.tn-group-body { display: grid; gap: 1rem; padding-bottom: .4rem; }
.tn-groups.is-single .tn-group-body { padding: 0 0 .6rem; }
@media (min-width: 1100px) { .tn-groups.is-single .tn-group-body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.tn-group-sub { display: flex; align-items: center; gap: .35rem; margin: 0 1.1rem .4rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.tn-col-player { min-width: 180px; }
.tn-table td.is-up { color: var(--ok); font-weight: 600; } .tn-table td.is-down { color: var(--danger); }
.tn-col-form { white-space: nowrap; }
.tn-col-form .pp-wl { width: 1.35rem; height: 1.35rem; font-size: .66rem; margin-right: 2px; }
.tn-cross-wrap { padding: 0 1.1rem 0 0; }
.tn-groups:not(.is-single) .tn-cross-wrap { padding-left: 1.1rem; }
.tn-cross { border-collapse: separate; border-spacing: 3px; font-size: .78rem; width: 100%; }
.tn-cross th { font-size: .72rem; color: var(--text-muted); font-weight: 600; text-align: center; padding: .25rem; white-space: nowrap; }
.tn-cross tbody th { text-align: left; color: var(--text); max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.tn-cross tbody th .tn-pos { width: 1.3rem; height: 1.3rem; font-size: .7rem; }
.tn-cross td { text-align: center; padding: .3rem .25rem; border-radius: 6px; background: var(--surface-2); min-width: 3.4rem; vertical-align: middle; }
.tn-cross td.is-self { background: repeating-linear-gradient(45deg, transparent 0 5px, var(--border) 5px 6px); }
.tn-cross-res { display: block; font-variant-numeric: tabular-nums; white-space: nowrap; border-radius: 4px; }
.tn-cross-res + .tn-cross-res { margin-top: .2rem; border-top: 1px dashed var(--border); padding-top: .2rem; }
.tn-cross-res.w { color: var(--ok); font-weight: 700; } .tn-cross-res.l { color: var(--danger); }
.tn-cross-res.is-pending { color: var(--text-muted); font-size: .72rem; }
.tn-cross-res.is-live { color: #fff; background: var(--danger); font-weight: 700; font-size: .7rem; padding: .1rem; }
.tn-cross-res[data-edit] { cursor: pointer; } .tn-cross-res[data-edit]:hover { outline: 2px solid var(--primary); }
.tn-fixtures { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: .6rem; }
.tn-fixture h5 { margin: 0 0 .3rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.tn-fixture .tn-mini-matches { margin: 0; }
.tn-mini-matches li { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.tn-mini-matches li > span:first-child { text-align: right; }
.tn-mini-matches li > span:nth-child(3) { text-align: left; }
.tn-mm-score { display: grid; justify-items: center; text-align: center; min-width: 4.5rem; }
.tn-mm-score small { font-size: .68rem; color: var(--text-muted); }
.tn-mini-matches li.is-live { background: color-mix(in srgb, var(--danger) 12%, var(--surface-2)); }
/* densidad y bordes elegidos en «Diseño del cuadro» */
.tn-dens-compact .tn-table td { padding-block: .3rem; } .tn-dens-compact .tn-mini-matches li { padding-block: .2rem; }
.tn-dens-comfy .tn-table td { padding-block: .75rem; } .tn-dens-comfy .tn-mini-matches li { padding-block: .55rem; }
.tn-groups.is-square .tn-group, .tn-groups.is-square .tn-cross td, .tn-groups.is-square .tn-mini-matches li { border-radius: 0; }
.tn-groups.is-highlight tr[data-entry]:hover td, .tn-groups.is-highlight tr[data-entry]:hover th { background: color-mix(in srgb, var(--bk-accent, var(--primary)) 14%, transparent); }

/* ---------- En vivo ---------- */
.tn-live-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .08rem .45rem; border-radius: var(--radius); background: var(--danger, #dc2626); color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; }
.tn-live-pill::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: #fff; animation: live-blink 1.2s ease-in-out infinite; }
@keyframes live-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .tn-live-pill::before { animation: none; } }
.tn-live-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; background: var(--text-muted); }
.tn-live-dot.is-on { background: var(--danger, #dc2626); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger, #dc2626) 25%, transparent); animation: live-blink 1.2s ease-in-out infinite; }
.bk-match.is-live { box-shadow: 0 0 0 2px var(--danger, #dc2626), var(--shadow); }
.bk-match.is-featured { outline: 2px dashed #d4a017; outline-offset: 3px; }
.bk-live { color: var(--text); font-weight: 600; }
.tn-sched-row.is-live { background: color-mix(in srgb, var(--danger, #dc2626) 9%, transparent); box-shadow: inset 4px 0 0 var(--danger, #dc2626); }
.tn-sched-row.is-featured .tn-sched-players { font-weight: 600; }
/* panel: tablero de canchas */
.tn-live .panel-head h2 { display: flex; align-items: center; gap: .5rem; }
.tn-courts { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.tn-court { display: flex; flex-direction: column; gap: .55rem; padding: .85rem .95rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); min-height: 150px; }
.tn-court.is-live { background: var(--surface); border-color: color-mix(in srgb, var(--danger, #dc2626) 55%, var(--border)); }
.tn-court.is-featured { box-shadow: 0 0 0 2px #d4a017; }
.tn-court > header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.tn-court-match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .5rem; align-items: center; font-weight: 600; }
.tn-court-match > span:first-child { text-align: right; }
.tn-court-score { font-variant-numeric: tabular-nums; padding: .2rem .55rem; border-radius: 8px; background: var(--surface-2); font-size: .9rem; white-space: nowrap; }
.tn-court-form input { min-height: 34px; }
.tn-court-actions { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-top: auto; }
.tn-court-actions form { margin: 0; }
.tn-court-actions select { min-height: 34px; width: auto; }
.tn-court-next { margin: 0; font-size: .84rem; flex: 1; }
.tn-ready { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.tn-ready li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: var(--radius); }
.tn-ready li.is-featured { border-color: #d4a017; }
.tn-ready .grow { display: flex; flex-direction: column; min-width: 200px; }
.tn-ready form { margin: 0; }
.tn-ready select { width: auto; min-height: 34px; }
/* Sitio: «Se está jugando» */
.tn-onair { margin: 0 0 1.5rem; }
.tn-onair-title { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; margin: 0 0 .7rem; }
.tn-onair-grid { display: flex; flex-wrap: wrap; gap: .8rem; }
.tn-onair-card { flex: 1 1 300px; display: grid; gap: .7rem; padding: 1rem 1.1rem; border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--danger, #dc2626) 40%, var(--border)); background: var(--surface); }
.tn-onair-card.is-main { flex-basis: 100%; padding: 1.3rem 1.5rem; background: linear-gradient(120deg, color-mix(in srgb, var(--bk-accent, var(--primary)) 22%, var(--surface)), var(--surface)); }
.tn-onair-card.is-mine { box-shadow: 0 0 0 2px var(--accent); }
.tn-onair-card header { display: flex; align-items: flex-start; gap: .5rem .8rem; }
.tn-onair-hl { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .8rem; flex: 1 1 auto; min-width: 0; }
/* tiempo real de juego (TennisView::matchClock; corre solo con data-elapsed) */
.tn-clock { display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text-muted); font-size: .85rem; }
.tn-clock b { font-weight: 700; color: var(--text); }
.tn-clock.is-stopped b, .tn-clock.is-wait { color: var(--text-muted); }
.tn-onair-court { white-space: nowrap; }
.tn-onair-clock { margin-left: auto; flex: none; line-height: 1.6; }
.tn-onair-court { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; }
.tn-onair-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .8rem; }
.tn-onair-p:first-child { justify-self: end; text-align: right; }
.tn-onair-score { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: 1.15rem; padding: .3rem .8rem; border-radius: 10px; background: var(--surface-2); white-space: nowrap; }
.tn-onair-card.is-main .tn-onair-score { font-size: clamp(1.4rem, 3vw, 2rem); }
.tn-onair-card.is-main .tn-onair-p { font-size: 1.1rem; font-weight: 600; }
.tn-full .tn-onair { margin-top: 1rem; }
.tn-live-pill { white-space: nowrap; }
.tn-sched-row { grid-template-columns: 5.4rem minmax(0, 9rem) minmax(0, 1fr); }
.tn-ready li.is-busy { opacity: .75; }

/* Disciplinas al vuelo: botón «＋ Nueva», hoja de alta y aviso de parecidas (disciplines.js) */
.tn-disc-new { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.6rem; padding: .4rem .85rem; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: transparent; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; }
.tn-disc-new:hover, .tn-disc-new:focus-visible { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.disc-sheet-main { padding: .4rem 1rem 1rem; overflow: auto; overflow-x: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.disc-sheet-main > *, .disc-more > * { min-width: 0; max-width: 100%; }
.disc-sheet-main .field { margin: 0; }
.disc-sheet-main input { font-size: 1rem; }
.disc-more summary { cursor: pointer; font-weight: 600; padding: .35rem 0; }
.disc-more[open] summary { margin-bottom: .6rem; }
.disc-more .icon-pick { margin-top: .4rem; }
.disc-similar:empty { display: none; }
.disc-similar { border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--primary) 4%, var(--surface)); padding: .55rem .7rem; }
.disc-sim-t { display: flex; align-items: center; gap: .35rem; margin: 0 0 .35rem; font-weight: 600; font-size: .9rem; }
.disc-similar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.disc-similar li { display: flex; align-items: center; gap: .6rem; padding: .35rem .2rem; border-top: 1px solid var(--border); }
.disc-similar li:first-child { border-top: 0; }
.disc-similar li .grow { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .35rem; }
.disc-similar li small { flex-basis: 100%; color: var(--text-muted); font-size: .8rem; }
.disc-similar li.is-same strong { color: var(--primary); }
.disc-similar li .btn { min-height: 2.4rem; flex: none; }
.disc-sheet .sheet-foot .btn { min-height: 2.75rem; }
@media (max-width: 640px) { .disc-sheet .sheet-foot .btn-primary { flex: 1; justify-content: center; } }

/* ==========================================================================
   Consola del juez (punto a punto) · admin/tournaments/umpire.php + umpire.js
   ========================================================================== */
.ump { display: grid; gap: .8rem; max-width: 760px; margin: 0 auto; }
.ump.is-busy .ump-pad { opacity: .75; }
.ump-head { display: flex; align-items: center; gap: .5rem; }
.ump-title { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.ump-title strong { font-size: 1.05rem; }
.ump-title small { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ump-sync { width: .6rem; height: .6rem; border-radius: 50%; background: var(--border-strong); flex: none; }
.ump-sync.is-ok { background: var(--ok); }
.ump-sync.is-off { background: var(--danger); }
.ump-board { background: #0d1b24; color: #f4f7f9; border-radius: var(--radius-lg); padding: .7rem .8rem .8rem; box-shadow: var(--shadow); font-variant-numeric: tabular-nums; }
.ump-row-h, .ump-line { display: grid; grid-template-columns: minmax(0, 1fr) auto 3.4rem; align-items: center; gap: .6rem; }
.ump-row-h { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #8fa5b3; padding: 0 .1rem .25rem; }
.ump-sets-h, .ump-sets { display: flex; gap: .25rem; }
.ump-sets-h span, .ump-set { width: 2rem; text-align: center; }
.ump-pts-h { text-align: center; }
.ump-line { padding: .55rem .1rem; border-top: 1px solid rgb(255 255 255 / .08); }
.ump-name { display: flex; align-items: center; gap: .45rem; min-width: 0; font-weight: 700; font-size: 1.1rem; }
.ump-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ump-seed { font-size: .7rem; padding: 0 .3rem; border-radius: 4px; background: rgb(255 255 255 / .12); }
.ump-ball { width: .75rem; height: .75rem; border-radius: 50%; background: #d7f25a; box-shadow: 0 0 0 3px rgb(215 242 90 / .25); flex: none; }
.ump-ball.is-off { background: transparent; box-shadow: none; }
.ump-set { font-size: 1.25rem; color: #b8c7d0; }
.ump-set.is-won { color: #fff; font-weight: 700; }
.ump-set.is-now { color: #fff; font-weight: 800; background: rgb(255 255 255 / .1); border-radius: 6px; }
.ump-set sup { font-size: .6em; margin-left: 1px; }
.ump-pts { text-align: center; font-size: 1.6rem; font-weight: 800; color: #d7f25a; background: rgb(215 242 90 / .1); border-radius: 8px; padding: .1rem 0; min-height: 2.3rem; }
.ump-line.is-winner .ump-name { color: #d7f25a; }
.ump-result { margin: .5rem 0 0; color: #b8c7d0; }
.ump-flag { margin: 0; text-align: center; font-weight: 800; letter-spacing: .04em; padding: .45rem .7rem; border-radius: var(--radius); background: var(--surface-2); }
.ump-flag.is-break { background: #fde68a; color: #713f12; }
.ump-flag.is-set { background: #bfdbfe; color: #1e3a8a; }
.ump-flag.is-match { background: #fecaca; color: #7f1d1d; animation: ump-pulse 1.2s ease-in-out infinite; }
.ump-flag.is-tb { background: #ddd6fe; color: #4c1d95; }
@keyframes ump-pulse { 50% { transform: scale(1.03); } }
.ump-setup { display: grid; gap: .6rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.ump-setup h2 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; gap: .4rem; }
.ump-setup p { margin: 0; }
.ump-setup .field { margin: 0; display: grid; gap: .3rem; }
.ump-setup-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ump-big { min-height: 4.5rem; border-radius: var(--radius-lg); border: 2px solid var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); color: var(--text); font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .5rem; }
.ump-pads { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ump-pad { position: relative; min-height: clamp(9rem, 32vh, 15rem); border: 0; border-radius: var(--radius-lg); color: #fff; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: .8rem; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; transition: transform .08s, filter .15s; box-shadow: var(--shadow); }
.ump-pad[data-u-point="a"] { background: linear-gradient(160deg, #0b6e99, #075173); }
.ump-pad[data-u-point="b"] { background: linear-gradient(160deg, #b4532a, #8a3b1b); }
.ump-pad:active, .ump-pad.is-hit { transform: scale(.97); filter: brightness(1.15); }
.ump-pad strong { font-size: clamp(1.1rem, 4.5vw, 1.6rem); line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.ump-pad-k { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.ump-pad-srv { font-size: .85rem; font-weight: 700; color: #d7f25a; min-height: 1.1em; }
.ump-tags-t { margin: 0 0 .35rem; font-size: .9rem; font-weight: 600; }
.ump-tag-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.ump-tag { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.6rem; padding: .3rem .8rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.ump-tag.is-on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); font-weight: 700; }
.ump-done, .ump-saved { display: grid; gap: .6rem; justify-items: center; text-align: center; padding: 1.2rem; border-radius: var(--radius-lg); background: var(--surface); border: 2px solid var(--ok); }
.ump-done-t { margin: 0; font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: .4rem; }
.ump-done .btn-lg, .ump-saved .btn-lg { min-height: 3.2rem; padding-inline: 1.6rem; }
.ump-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.ump-bar button { display: flex; flex-direction: column; align-items: center; gap: .2rem; min-height: 3.6rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.ump-bar button:disabled { opacity: .45; cursor: default; }
.ump-stats { padding: 0 1rem 1rem; overflow: auto; }
.ump-stat-t td, .ump-stat-t thead th { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.ump-stat-t tbody th { text-align: center; font-weight: 500; color: var(--text-muted); font-size: .85rem; }
.umpire-body .admin-content > .page-help, .umpire-body .admin-content > .subnav, .umpire-body .page-back { display: none !important; }
@media (max-width: 1079px) { .umpire-body .bottom-nav { display: none; } .umpire-body .admin-content:has(> .bottom-nav) { padding-bottom: 1rem; } }
.ump-list { list-style: none; margin: 0; padding: 0; }
.ump-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; padding: .8rem 1.1rem; border-top: 1px solid var(--border); color: inherit; text-decoration: none; }
.ump-row:hover { background: var(--surface-2); }
.ump-row .grow { display: grid; min-width: 12rem; }
.ump-row-court { font-size: .82rem; font-weight: 700; color: var(--text-muted); min-width: 7rem; display: inline-flex; align-items: center; gap: .3rem; }
.ump-row-score { font-variant-numeric: tabular-nums; font-weight: 700; }
.ump-row.is-busy { opacity: .7; }

/* ---------- Terminados: torneos y actividades que ya pasaron se distinguen de un vistazo ---------- */
.tn-status-finalizado { background: #1f2937; color: #f9fafb; border-color: #1f2937; }
:root[data-theme="dark"] .tn-status-finalizado { background: #e5e7eb; color: #111827; border-color: #e5e7eb; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tn-status-finalizado { background: #e5e7eb; color: #111827; border-color: #e5e7eb; } }
.done-ribbon { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: var(--radius); background: rgb(17 24 39 / .85); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; position: relative; z-index: 1; }
.tn-row.is-finished .tn-row-cover, .cal-card.is-done .cal-card-top { filter: grayscale(.85) brightness(.85); }
.tn-row.is-finished .tn-row-cover .done-ribbon, .cal-card.is-done .done-ribbon { filter: none; }
.tn-row.is-finished, .cal-card.is-done { background: var(--surface-2); }
.cal-card.is-done h3 a { color: var(--text-muted); }
.tn-row-champ { display: inline-flex; align-items: center; gap: .3rem; margin: .1rem 0 .3rem; font-size: .9rem; color: #a16207; }
:root[data-theme="dark"] .tn-row-champ { color: #facc15; }
.tn-arow.is-finished { background: var(--surface-2); border-style: dashed; }
.tn-arow.is-finished .kind-badge { filter: grayscale(.8); }
.tn-admin-sec { margin: 1.4rem 0 .7rem; }
.tn-done-banner { display: inline-flex; align-items: center; gap: .5rem; margin: .4rem 0 .6rem; padding: .5rem .9rem; border-radius: var(--radius); background: rgb(17 24 39 / .82); color: #fff; font-size: .95rem; }
.tn-done-banner.is-cancel { background: #991b1b; }
.tn-live-btn { border-color: #dc2626; color: #dc2626; }

/* ==========================================================================
   Calendario público con FullCalendar (public/calendar.php + calendar.js): todo el espacio para el calendario
   ========================================================================== */
.cal-page { padding: 1rem 0 3rem; }
.cal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1.5rem; margin-bottom: 1rem; }
.cal-head-t { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.cal-head h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cal-head h1 small { font-size: .55em; color: var(--text-muted); font-weight: 500; }
.cal-head .cal-filters { margin: 0; }
.cal-head .cal-filters select { margin: 0; height: 2.55rem; min-height: 0; padding-block: 0; padding-left: .7rem; font-size: .88rem; background-color: var(--surface); }
.cal-head .cal-filters .seg a { padding: .3rem .75rem; }
.cal-clear { display: inline-flex; align-items: center; gap: .25rem; font-size: .86rem; color: var(--text-muted); }
.cal-shell { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 1000px) { .cal-shell { grid-template-columns: minmax(0, 1fr) 320px; } .cal-side { position: sticky; top: calc(var(--header-h, 64px) + 1rem); max-height: calc(100vh - var(--header-h, 64px) - 2rem); overflow: auto; } }
.cal-main { padding: .9rem; min-width: 0; }
.cal-legend { margin: .7rem 0 0; }
.cal-dot-done { background: #9ca3af; }
.cal-side { padding: .9rem; }
.cal-side-t { margin: 0 0 .5rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.cal-once { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.cal-once-empty { color: var(--text-muted); font-size: .9rem; }
.cal-once-it { display: flex; align-items: center; gap: .6rem; padding: .45rem .5rem; border-radius: 0 var(--radius) var(--radius) 0; background: transparent; color: inherit; text-decoration: none; border-left: 3px solid var(--primary); transition: background .15s; }
.cal-once-it:hover { background: var(--surface-2); }
.cal-once-it.ev-torneo { border-left-color: var(--accent); }
.cal-once-it.is-done { opacity: .55; border-left-color: var(--border-strong); }
.cal-once-date { display: grid; place-items: center; min-width: 2.5rem; line-height: 1.05; text-align: center; }
.cal-once-date b { font-size: 1.15rem; }
.cal-once-date small { font-size: .68rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.cal-once-txt { display: grid; gap: .05rem; min-width: 0; flex: 1; }
.cal-once-txt strong { font-size: .92rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal-once-txt small { font-size: .78rem; color: var(--text-muted); display: flex; align-items: center; gap: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-once-open { justify-self: start; margin-top: .15rem; padding: .1rem .5rem; border-radius: var(--radius); background: var(--ok-soft, #dcfce7); color: var(--ok, #15803d); font-size: .7rem; font-weight: 700; }
.cal-once-it .done-ribbon { justify-self: start; margin-top: .15rem; font-size: .62rem; }
.cal-day-list .cal-once-open { display: none; }

/* FullCalendar con los colores del sitio */
.cal-fc { --fc-border-color: var(--border); --fc-page-bg-color: var(--surface); --fc-neutral-bg-color: var(--surface-2); --fc-list-event-hover-bg-color: var(--surface-2);
  --fc-today-bg-color: color-mix(in srgb, var(--primary) 9%, transparent); --fc-now-indicator-color: var(--danger, #dc2626);
  --fc-button-bg-color: var(--surface); --fc-button-border-color: var(--border); --fc-button-text-color: var(--text);
  --fc-button-hover-bg-color: var(--surface-2); --fc-button-hover-border-color: var(--border-strong); --fc-button-active-bg-color: var(--primary); --fc-button-active-border-color: var(--primary);
  --fc-event-bg-color: var(--primary); --fc-event-border-color: var(--primary); --fc-small-font-size: .78rem; font-size: .9rem; }
.cal-fc.fc .fc-toolbar { gap: .5rem; flex-wrap: wrap; }
.cal-fc.fc .fc-toolbar-title { font-size: clamp(1.1rem, 2.2vw, 1.5rem); }
.cal-fc.fc .fc-toolbar-title::first-letter { text-transform: uppercase; }
.cal-fc.fc .fc-button { border-radius: 10px; font-weight: 600; padding: .4rem .8rem; box-shadow: none !important; text-transform: capitalize; }
.cal-fc.fc .fc-button-primary:not(:disabled).fc-button-active, .cal-fc.fc .fc-button-primary:not(:disabled):active { color: var(--on-primary, #fff); }
.cal-fc.fc .fc-button-primary:disabled { opacity: .5; background: var(--surface); color: var(--text); }
.cal-fc.fc-theme-standard .fc-scrollgrid { border-radius: 12px; overflow: hidden; }
.cal-fc.fc .fc-col-header-cell-cushion { padding: .45rem .2rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); text-decoration: none; }
.cal-fc.fc .fc-daygrid-day-number { font-size: .85rem; padding: .3rem .45rem; color: var(--text); text-decoration: none; font-weight: 600; }
.cal-fc.fc .fc-day-other .fc-daygrid-day-number { opacity: .4; }
.cal-fc.fc .fc-day-past:not(.fc-day-today) { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.cal-fc.fc .fc-day-today .fc-daygrid-day-number { background: var(--primary); color: var(--on-primary, #fff); border-radius: var(--radius); min-width: 1.7rem; text-align: center; margin: .15rem; padding: .15rem .4rem; }
.cal-fc.fc a.fc-event { cursor: pointer; }
.cal-fc.fc .fc-daygrid-event { border-radius: 6px; padding: 1px 4px; font-size: .78rem; margin-top: 2px; }
.cal-fc.fc .fc-daygrid-block-event .fc-event-title { font-weight: 700; }
.cal-fc.fc .fc-daygrid-dot-event .fc-event-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.cal-fc.fc .fc-daygrid-dot-event:hover { background: var(--surface-2); }
.cal-fc.fc .fc-daygrid-more-link { font-size: .76rem; font-weight: 700; color: var(--primary); }
.cal-fc.fc .ev-torneo { --fc-event-bg-color: var(--accent); --fc-event-border-color: var(--accent); background: var(--accent); border-color: var(--accent); }
.cal-fc.fc .ev-torneo .fc-event-main, .cal-fc.fc .ev-torneo.fc-daygrid-block-event .fc-event-title { color: var(--on-accent, #fff); }
.cal-fc.fc .ev-actividad.fc-daygrid-dot-event .fc-daygrid-event-dot { border-color: var(--primary); }
.cal-fc.fc .ev-actividad.fc-timegrid-event { background: var(--primary); border-color: var(--primary); }
.cal-fc.fc .is-done { opacity: .5; filter: grayscale(.8); }
.cal-fc.fc .fc-list-event-dot { border-color: var(--primary); }
.cal-fc.fc .ev-torneo .fc-list-event-dot { border-color: var(--accent); }
.cal-fc.fc .fc-list-day-cushion { background: var(--surface-2); text-transform: capitalize; }
.cal-fc.fc .fc-list-event-title a { color: var(--text); text-decoration: none; font-weight: 600; }
.cal-fc.fc .fc-list-event.ev-torneo, .cal-fc.fc .fc-list-event.ev-actividad { background: transparent; }
.cal-fc.fc .fc-popover { border-radius: 12px; box-shadow: var(--shadow-lg); background: var(--surface); }
.cal-fc.fc .fc-popover-header { background: var(--surface-2); border-radius: 12px 12px 0 0; text-transform: capitalize; }
.cal-fc.fc .fc-timegrid-slot { height: 2.2em; }
.cal-fc.is-error::after { content: "No se pudo cargar el calendario. Probá de nuevo."; display: block; padding: 1rem; color: var(--danger); }

/* ficha de un evento */
.cal-sheet .cal-ev-body { padding: 0 1rem calc(1rem + env(safe-area-inset-bottom)); display: grid; gap: .7rem; }
.cal-ev-cover { height: 120px; border-radius: 12px; background: center / cover var(--surface-2); }
.cal-ev-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; align-items: center; }
.cal-ev-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.cal-ev-facts li { display: flex; align-items: center; gap: .45rem; }
.cal-ev-actions { display: grid; gap: .5rem; }
.cal-ev-actions .btn { justify-content: center; min-height: 46px; }
.cal-ev-manage { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px dashed var(--border); }
.cal-ev-manage .btn { flex: 1 1 auto; justify-content: center; }
.cal-day-list .cal-once-date b { font-size: .9rem; }

/* celular: grilla compacta con barritas de color y la lista del día elegido debajo */
.cal-daypanel[hidden] { display: none; }
.cal-daypanel { margin-top: .6rem; padding: .6rem .4rem 0; border-top: 1px solid var(--border); }
.cal-dp-t { margin: 0 0 .5rem; font-size: 1rem; }
.cal-dp-empty { margin: 0 0 .4rem; }
.cal-bar-ev { display: block; height: 100%; min-height: 5px; }
@media (max-width: 719px) {
  .cal-fc.fc .fc-daygrid-day-frame { min-height: 3.4rem; }
  .cal-fc.fc .fc-daygrid-event-harness { margin-top: 1px; }
  .cal-fc.fc .fc-daygrid-block-event, .cal-fc.fc .fc-daygrid-event { height: 6px; padding: 0; margin: 1px 2px 0; border-radius: 3px; border: 0; }
  .cal-fc.fc .ev-actividad.fc-daygrid-event { background: var(--primary); }
  .cal-fc.fc .ev-torneo.fc-daygrid-event { background: var(--accent); }
  .cal-fc.fc .fc-daygrid-day-events { margin-bottom: 2px; min-height: 0; }
  .cal-fc.fc .fc-daygrid-more-link { font-size: .62rem; padding: 0 2px; }
  .cal-fc.fc .fc-daygrid-day { cursor: pointer; }
  .cal-fc.fc .fc-daygrid-day.is-picked .fc-daygrid-day-frame { box-shadow: inset 0 0 0 2px var(--primary); border-radius: 6px; }
  .cal-fc.fc .fc-daygrid-day-top { justify-content: center; }
  .cal-fc.fc .fc-daygrid-day-number { padding: .25rem .2rem; font-size: .8rem; }
  .cal-fc.fc .fc-day-today .fc-daygrid-day-number { padding: .1rem .35rem; }
  .cal-fc.fc .fc-popover { max-width: calc(100vw - 2rem); }
  .cal-fc.fc .fc-list-event-title, .cal-fc.fc .fc-list-event-time { font-size: .85rem; }
  .cal-fc.fc .fc-list-table td { padding: .5rem .55rem; }
}
@media (max-width: 719px) {
  .cal-page { padding-top: .6rem; }
  .cal-head .cal-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -1rem; padding: 0 1rem .2rem; }
  .cal-head .cal-filters::-webkit-scrollbar { display: none; }
  .cal-head .cal-filters > * { flex: none; }
  .cal-main { padding: .4rem; margin-inline: -.5rem; border-radius: 14px; }
  .cal-fc.fc .fc-toolbar.fc-header-toolbar { margin-bottom: .5rem; }
  .cal-fc.fc .fc-button { padding: .55rem .9rem; min-height: 44px; }
  .cal-fc.fc .fc-daygrid-day-frame { min-height: 3.4rem; }

  .cal-fc.fc .fc-daygrid-dot-event .fc-event-time { display: none; }
  .cal-fc.fc .fc-daygrid-dot-event .fc-daygrid-event-dot { margin: 0 2px 0 1px; border-width: 3px; }
  .cal-fc.fc .fc-col-header-cell-cushion { font-size: .68rem; }
  .cal-fc.fc .fc-footer-toolbar { margin-top: .5rem; }
  .cal-legend { font-size: .72rem; gap: .7rem; padding: 0 .4rem .3rem; }
}

/* ---------- Consola del juez v2: previa, saque, descanso, últimos puntos ---------- */
.ump-clock { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .55rem; border-radius: var(--radius); background: var(--surface-2); font-size: .82rem; font-variant-numeric: tabular-nums; }
.ump-clock[hidden] { display: none; }
.ump-av { width: 1.9rem; height: 1.9rem; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid rgb(255 255 255 / .15); }
.ump-av.is-ini { display: inline-grid; place-items: center; background: rgb(255 255 255 / .12); font-size: .7rem; font-weight: 800; color: #dce6ec; }
.ump-name .ump-ball { order: 0; }
.ump-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.ump-steps > li { display: flex; gap: .7rem; align-items: flex-start; }
.ump-step-n { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary, #fff); font-weight: 800; font-size: .85rem; margin-top: .1rem; }
.ump-steps .label { display: block; font-weight: 700; margin-bottom: .35rem; }
.ump-warm { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; }
.ump-warm-clock { font-size: 2rem; font-variant-numeric: tabular-nums; min-width: 5ch; line-height: 1; }
.ump-warm-clock.is-run { color: var(--primary); }
.ump-warm-clock.is-over { color: var(--danger); animation: ump-pulse 1s infinite; }
.ump-toss { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.ump-toss-r { font-size: .95rem; }
.ump-setup-btns .ump-big { flex-direction: column; gap: .35rem; }
.ump-setup-btns .ump-av { width: 2.6rem; height: 2.6rem; border-color: var(--border); }
.ump-setup-btns .ump-av.is-ini { background: var(--surface-2); color: var(--text); }
.ump-serve { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .45rem .5rem .45rem .8rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.ump-serve-who { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; min-width: 0; }
.ump-serve.is-second { border-color: var(--warn); background: var(--warn-soft); }
.ump-fault { min-height: 44px; min-width: 7.5rem; justify-content: center; font-weight: 800; }
.ump-fault.is-second { background: var(--danger); border-color: var(--danger); color: #fff; }
.ump-pads { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ump-padw { display: grid; gap: .4rem; align-content: start; }
.ump-pads.is-flipped .ump-padw[data-u-padw="a"] { order: 2; }
.ump-ace { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-height: 44px; border-radius: var(--radius); border: 2px solid #d7f25a; background: color-mix(in srgb, #d7f25a 15%, var(--surface)); color: var(--text); font: 800 .95rem var(--font-body); cursor: pointer; }
.ump-ace[hidden] { display: none; }
.ump-rest { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: var(--radius-lg); background: #1e3a5f; color: #fff; animation: fab-in .2s ease; }
.ump-rest[hidden] { display: none; }
.ump-rest .grow { display: grid; }
.ump-rest small { opacity: .8; }
.ump-rest-ic { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .15); flex: none; }
.ump-rest-clock { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.ump-rest.is-over { background: #991b1b; }
.ump-rest .btn { background: rgb(255 255 255 / .15); border-color: transparent; color: #fff; }
.ump-recent { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.ump-recent-t { font-size: .75rem; color: var(--text-muted); margin-right: .2rem; }
.ump-dot { min-width: 1.6rem; height: 1.6rem; padding: 0 .3rem; border-radius: var(--radius); display: inline-grid; place-items: center; font-size: .65rem; font-weight: 800; color: #fff; }
.ump-dot.side-a { background: #0b6e99; }
.ump-dot.side-b { background: #b4532a; }
.ump-bar { grid-template-columns: repeat(4, 1fr); }
.ump-bar button span { font-size: .74rem; text-align: center; line-height: 1.1; }


/* ---------- Consola del juez › «Más opciones»: lista de ajustes y acciones (sin estilos heredados de seg-card) ---------- */
#ump-more { width: min(520px, calc(100vw - 2rem)); overflow: hidden; }
#ump-more .sheet-body { max-height: min(88vh, calc(100vh - 3rem)); }
.ump-menu { display: block; padding: .2rem 1rem calc(1rem + env(safe-area-inset-bottom)); overflow: auto; }
.ump-menu-t { margin: .9rem 0 .45rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-family: var(--font-body); }
.ump-menu-t:first-child { margin-top: .2rem; }
.ump-menu-t small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.ump-opts { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.ump-opts > li + li { border-top: 1px solid var(--border); }
.ump-opt { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 60px; padding: .65rem .8rem; margin: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ump-opt:hover, .ump-opt:focus-visible { background: var(--surface-2); outline: 0; }
.ump-opt-ic { flex: none; width: 2.3rem; height: 2.3rem; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--primary); }
.ump-opt-ic .icon { width: 1.15rem; height: 1.15rem; }
.ump-opt-ic.is-warn { background: var(--warn-soft); color: var(--warn); }
.ump-opt-ic.is-danger { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--danger); }
.ump-opt-tx { flex: 1; min-width: 0; display: grid; gap: .1rem; line-height: 1.25; }
.ump-opt-tx strong { font-size: .95rem; font-weight: 700; }
.ump-opt-tx strong b { font-weight: 700; color: var(--primary); }
.ump-opt-tx small { font-size: .8rem; color: var(--text-muted); font-weight: 400; }
.ump-opt.is-danger .ump-opt-tx strong { color: var(--danger); }
.ump-opt .switch { flex: none; }
.ump-opt-go { flex: none; width: 1rem; height: 1rem; color: var(--text-muted); }
.ump-keys { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: .9rem 0 0; }
@media (max-width: 640px) { #ump-more { width: 100vw; } }
.ump-keys kbd { padding: .05rem .4rem; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; font-size: .78em; background: var(--surface); }
/* pestañas del torneo (sitio): en pantallas medianas y chicas ocupan todo el ancho; lo que no entra va a «Más» */
@media (max-width: 899px) {
  .tn-ptabs { width: 100%; margin-top: -1rem; box-sizing: border-box; }
  .tn-ptabs button { padding: .55rem .75rem; }
  .tn-ptabs .tabs-more { margin-left: auto; }
}
/* sub-pestañas (ej. Configuración del torneo): compactas, pero nunca más anchas que la pantalla (lo que no entra va a «Más») */
.tn-subtabs > .tabs.has-more { display: flex; width: fit-content; max-width: 100%; box-sizing: border-box; }

/* Listos para jugar y canchas: todos los controles de una fila a la misma altura y alineados */
.tn-ready li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .6rem 1rem; }
.tn-ready .grow { min-width: 0; gap: .1rem; }
.tn-ready-acts, .tn-court-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem; }
.tn-ready-acts form, .tn-court-actions form { display: flex; align-items: center; gap: .4rem; margin: 0; }
.tn-ready-acts .btn, .tn-ready-acts select, .tn-court-actions .btn, .tn-court-actions select, .tn-court-form input, .tn-court-form .btn { height: 38px; min-height: 38px; box-sizing: border-box; }
.tn-ready-acts select, .tn-court-actions select { width: auto; padding-block: 0; font-size: .875rem; margin: 0; }
.tn-ready-acts .btn, .tn-court-actions .btn { margin: 0; }
/* (el espaciado vertical global de los formularios no aplica a estas filas de botones) */
.tn-ready-acts form > *, .tn-court-actions form > *, .tn-court-form > * { margin-top: 0 !important; }
.tn-ready-acts .btn-icon, .tn-court-actions .btn-icon { width: 38px; }
.tn-court-actions { justify-content: flex-start; }
@media (max-width: 719px) {
  .tn-ready li { grid-template-columns: minmax(0, 1fr); }
  .tn-ready-acts { flex-wrap: wrap; justify-content: stretch; }
  .tn-ready-acts form.tn-inline { display: contents; }
  .tn-ready-acts form.tn-inline > select { flex: 1 1 7rem; min-width: 6rem; width: auto; }
  .tn-ready-acts form.tn-inline > .btn { flex: 1 1 100%; }
  .tn-ready-acts .btn, .tn-ready-acts select, .tn-court-actions .btn, .tn-court-actions select { height: 44px; min-height: 44px; }
  .tn-ready-acts .btn-icon, .tn-court-actions .btn-icon { width: 44px; }
}
.tn-md-sched > .btn { margin-top: .8rem; }

/* Calentando (antes del primer punto): se ve en lugar del marcador, con la cuenta regresiva */
.tn-warm { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; color: #c2410c; white-space: nowrap; font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .tn-warm { color: #fb923c; }
.tn-warm b { font-weight: 800; }
.tn-warm small { font-weight: 500; opacity: .8; }
.tn-warm.is-on .icon { animation: tn-flame 1.2s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes tn-flame { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.15) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .tn-warm.is-on .icon { animation: none; } }

/* ==========================================================================
   En Vivo · tennis/live-tv.php + live-tv.js
   Con el diseño del sitio (colores, tipografías, tarjetas). Cada lado tiene su color: el primario y el de acento.
   «Modo TV» (body.ltv-tv): sin encabezado ni pie, todo más grande, para el televisor del club.
   ========================================================================== */
.ltv { --ltv-a: var(--primary); --ltv-b: var(--accent); padding-bottom: 3rem; }
.ltv-hero { padding: 1.4rem 0 1.2rem; background: radial-gradient(1100px 280px at 15% 0%, color-mix(in srgb, var(--primary) 22%, transparent), transparent), radial-gradient(700px 240px at 95% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent); border-bottom: 1px solid var(--border); }
.ltv-crumbs { margin-bottom: .8rem; }
.ltv-hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; }
.ltv-hero-id { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.ltv-tv-logo { display: none; width: 3.2rem; height: 3.2rem; object-fit: contain; border-radius: var(--radius); }
.ltv-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .3rem; font-size: .9rem; }
.ltv-title { margin: 0; font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.05; }
.ltv-onair { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .6rem; border-radius: var(--radius); background: var(--danger, #dc2626); color: #fff; font-weight: 800; font-size: .75rem; letter-spacing: .08em; }
.ltv-onair[hidden] { display: none; }
.ltv-onair i, .ltv-dot { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; animation: ltv-pulse 1.4s ease-in-out infinite; display: inline-block; }
@keyframes ltv-pulse { 50% { opacity: .3; } }
.ltv-sync { width: .55rem; height: .55rem; border-radius: 50%; background: var(--border-strong); transition: background .3s; }
.ltv-sync.is-ok { background: var(--ok, #16a34a); }
.ltv-sync.is-off { background: var(--danger, #dc2626); }
.ltv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ltv-clock { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-right: .3rem; }
.ltv-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin-top: 1.2rem; }
.ltv-kpis:empty { display: none; }
.ltv-kpi { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
.ltv-kpi > .icon { flex: none; width: 2.2rem; height: 2.2rem; padding: .5rem; border-radius: var(--radius); background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--primary); }
.ltv-kpi.is-live > .icon { background: color-mix(in srgb, var(--danger, #dc2626) 14%, var(--surface)); color: var(--danger, #dc2626); }
.ltv-kpi.is-warm > .icon { background: color-mix(in srgb, #f97316 16%, var(--surface)); color: #ea580c; }
.ltv-kpi > span { display: grid; min-width: 0; flex: 1; }
.ltv-kpi strong { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ltv-kpi strong small { font-size: .6em; color: var(--text-muted); font-weight: 600; }
.ltv-kpi > span > small { color: var(--text-muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ltv-prog { display: block; height: 5px; margin-top: .35rem; border-radius: 3px; background: var(--surface-3, var(--surface-2)); overflow: hidden; }
.ltv-prog i { display: block; height: 100%; background: var(--primary); border-radius: 3px; transition: width .6s; }

.ltv-body { padding-top: 1.2rem; }
.ltv-courtbar { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; margin-bottom: 1rem; scrollbar-width: thin; align-items: stretch; }
.ltv-courtbar[hidden] { display: none; }
.ltv-cb-t { flex: none; align-self: center; font-weight: 700; font-size: .8rem; color: var(--text-muted); padding-left: .3rem; }
.ltv-cb { flex: none; display: grid; gap: .1rem; max-width: 15rem; padding: .45rem .75rem; border: 1px solid var(--border); border-left: 4px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); color: inherit; font: inherit; text-align: left; }
button.ltv-cb { cursor: pointer; }
button.ltv-cb:hover { background: var(--surface-2); }
.ltv-cb b { font-size: .88rem; }
.ltv-cb small { font-size: .76rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ltv-cb.is-live { border-left-color: var(--danger, #dc2626); }
.ltv-cb.is-warm { border-left-color: #f97316; }
.ltv-cb.is-free { border-left-color: var(--ok, #16a34a); }

.ltv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.2rem; align-items: start; }
.ltv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 1rem; }
.ltv-grid.is-one { grid-template-columns: minmax(0, 1fr); }

/* tarjeta de un partido */
.ltv-m { display: grid; gap: .8rem; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm, none); transition: box-shadow .3s, border-color .3s; min-width: 0; }
.ltv-m.is-featured { grid-column: 1 / -1; border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 9%, var(--surface)), var(--surface) 60%); }
.ltv-m.is-warm { border-style: dashed; border-color: color-mix(in srgb, #f97316 50%, var(--border)); }
.ltv-m.is-bump { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 35%, transparent); }
.ltv-m-h { display: flex; align-items: center; gap: .35rem .6rem; font-size: .85rem; }
/* izquierda: cancha y ronda (pueden partirse en dos renglones); derecha: estado + tiempo de juego, siempre arriba a la derecha */
.ltv-m-hl { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; min-width: 0; flex: 1 1 auto; }
.ltv-m-hr { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; flex: none; white-space: nowrap; }
.ltv-court { display: inline-flex; align-items: center; gap: .25rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); }
.ltv-round { color: var(--text-muted); min-width: 0; }
.ltv-star { color: #d4a017; display: inline-flex; }
.ltv-time { display: inline-flex; align-items: center; gap: .25rem; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ltv-time b { font-weight: 700; color: var(--text); min-width: 4ch; }
.ltv-time.is-wait b { font-weight: 600; color: var(--text-muted); min-width: 0; }
.ltv-time.is-stopped b { color: var(--text-muted); }
.ltv-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: var(--radius); font-weight: 700; font-size: .75rem; letter-spacing: .02em; background: var(--surface-2); }
.ltv-pill.is-live { background: color-mix(in srgb, var(--danger, #dc2626) 14%, var(--surface)); color: var(--danger, #dc2626); }
.ltv-pill.is-warm { background: color-mix(in srgb, #f97316 15%, var(--surface)); color: #c2410c; font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .ltv-pill.is-warm { color: #fb923c; }
.ltv-pill.is-warm .icon { animation: tn-flame 1.2s ease-in-out infinite; }
.ltv-pill.is-break { background: color-mix(in srgb, #f59e0b 18%, var(--surface)); color: #b45309; }
.ltv-pill.is-set { background: color-mix(in srgb, #8b5cf6 16%, var(--surface)); color: #7c3aed; }
.ltv-pill.is-match { background: var(--danger, #dc2626); color: #fff; animation: ltv-pulse 1.2s ease-in-out infinite; }
.ltv-pill.is-tb { background: color-mix(in srgb, var(--primary) 16%, var(--surface)); color: var(--primary); }
.ltv-pill.is-done { background: color-mix(in srgb, var(--ok, #16a34a) 16%, var(--surface)); color: var(--ok, #16a34a); }
:root[data-theme="dark"] .ltv-pill.is-break { color: #fbbf24; }
:root[data-theme="dark"] .ltv-pill.is-set { color: #a78bfa; }

/* marcador */
.ltv-sb { display: grid; gap: .3rem; }
.ltv-r { display: grid; grid-template-columns: .35rem auto minmax(0, 1fr) auto auto; align-items: center; gap: .65rem; padding: .45rem .6rem .45rem 0; border-radius: var(--radius); background: var(--surface-2); position: relative; transition: background .4s; }
.ltv-r-h { background: none; padding-block: 0; font-size: .7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.ltv-r-h .ltv-sets span { width: 2.1em; text-align: center; }
.ltv-pts-h { min-width: 2.6em; text-align: center; }
.ltv-srv { align-self: stretch; border-radius: var(--radius) 0 0 var(--radius); background: transparent; }
.ltv-r.side-a .ltv-srv { background: color-mix(in srgb, var(--ltv-a) 35%, transparent); }
.ltv-r.side-b .ltv-srv { background: color-mix(in srgb, var(--ltv-b) 35%, transparent); }
.ltv-r.is-srv.side-a .ltv-srv { background: var(--ltv-a); }
.ltv-r.is-srv.side-b .ltv-srv { background: var(--ltv-b); }
.ltv-r.is-srv .ltv-name::after { content: "saca"; margin-left: .45rem; padding: .05rem .35rem; border-radius: 4px; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: .15em; background: var(--text); color: var(--surface); }
.ltv-r.is-win { background: color-mix(in srgb, var(--ok, #16a34a) 14%, var(--surface)); }
.ltv-r.is-point { animation: ltv-point 1.4s ease-out; }
@keyframes ltv-point { 0% { background: color-mix(in srgb, var(--primary) 30%, var(--surface)); } 100% { background: var(--surface-2); } }
.ltv-face { flex: none; display: inline-flex; width: 2.6rem; height: 2.6rem; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--primary) 18%, var(--surface)); color: var(--primary); font-weight: 800; font-size: .85rem; align-items: center; justify-content: center; }
.ltv-face img { width: 100%; height: 100%; object-fit: cover; }
.ltv-face.is-pair img { width: 50%; }
.ltv-face.is-sm { width: 2rem; height: 2rem; font-size: .7rem; }
.ltv-who { display: grid; min-width: 0; gap: .15rem; }
.ltv-name { font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ltv-seed { color: var(--text-muted); font-weight: 600; }
.ltv-meta { display: flex; flex-wrap: wrap; gap: .3rem; }
.ltv-meta:empty { display: none; }
.ltv-chip { padding: .05rem .4rem; border-radius: 4px; font-size: .7rem; font-weight: 700; background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--primary); }
.ltv-chip.is-soft { background: var(--surface); color: var(--text-muted); }
.ltv-sets { display: flex; gap: .2rem; font-variant-numeric: tabular-nums; }
.ltv-set { width: 2.1em; text-align: center; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--text-muted); }
.ltv-set.is-won { color: var(--text); font-weight: 800; }
.ltv-set.is-now { color: var(--text); font-weight: 800; border-radius: 6px; background: var(--surface); }
.ltv-set sup { font-size: .55em; }
.ltv-pts { min-width: 2.6em; padding: .1rem .3rem; border-radius: 8px; text-align: center; font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--text); color: var(--surface); }
.ltv-pts.is-empty { background: none; }
.ltv-pts.is-tb { background: var(--primary); color: var(--on-primary, #fff); }
.ltv-pts.is-last { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 40%, transparent); }
.ltv-m.is-featured .ltv-face { width: 3.4rem; height: 3.4rem; }
.ltv-m.is-featured .ltv-name { font-size: clamp(1.15rem, 2.2vw, 1.6rem); }
.ltv-m.is-featured .ltv-set { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.ltv-m.is-featured .ltv-pts { font-size: clamp(1.5rem, 2.8vw, 2.3rem); }
.ltv-plain { margin: 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }

.ltv-recent { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.ltv-recent-t { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-right: .3rem; }
.ltv-pt { min-width: 1.5rem; height: 1.5rem; padding: 0 .2rem; border-radius: 5px; display: inline-grid; place-items: center; font-size: .65rem; font-weight: 800; color: #fff; }
.ltv-pt.side-a { background: var(--ltv-a); }
.ltv-pt.side-b { background: var(--ltv-b); }
.ltv-pt:last-child { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px currentColor; }

.ltv-stats { display: grid; gap: .45rem; padding: .7rem .8rem; border-radius: var(--radius); background: var(--surface-2); }
.ltv-m.is-featured .ltv-stats { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .5rem 1.4rem; }
.ltv-stat { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) 3.4rem; align-items: center; gap: .1rem .4rem; font-size: .82rem; }
.ltv-stat > span:not(.ltv-bar) { text-align: center; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ltv-stat b { font-variant-numeric: tabular-nums; }
.ltv-stat b:last-of-type { text-align: right; }
.ltv-stat b.is-more { color: var(--text); }
.ltv-stat b:not(.is-more) { color: var(--text-muted); font-weight: 600; }
.ltv-bar { grid-column: 1 / -1; display: flex; gap: 2px; height: 5px; }
.ltv-bar i { display: block; height: 100%; border-radius: 3px; transition: width .6s; }
.ltv-bar i.side-a { background: var(--ltv-a); }
.ltv-bar i.side-b { background: var(--ltv-b); }
.ltv-more { justify-self: start; display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .1rem; border: 0; background: none; color: var(--primary); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.ltv-m-f { display: flex; flex-wrap: wrap; gap: .3rem 1rem; padding-top: .7rem; border-top: 1px solid var(--border); font-size: .82rem; color: var(--text-muted); }
.ltv-m-f span { display: inline-flex; align-items: center; gap: .3rem; }
.ltv-m-f b { color: var(--text); }

/* sin partidos */
.ltv-idle { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; padding: 1.6rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); }
.ltv-idle strong { font-size: 1.2rem; }
.ltv-idle p { margin: .3rem 0 0; }
.ltv-idle-ic, .ltv-champ-ic { flex: none; width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--primary); }
.ltv-champ { display: flex; align-items: center; gap: 1rem; }
.ltv-champ img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #d4a017; }
.ltv-champ small { display: block; color: var(--text-muted); }
.ltv-champ strong { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); }
.ltv-champ-ic { background: color-mix(in srgb, #d4a017 18%, var(--surface)); color: #b8860b; }

/* columna: lo que sigue, resultados, torneos */
.ltv-side { display: grid; gap: 1rem; position: sticky; top: 5rem; }
.ltv-box { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.ltv-box[hidden] { display: none; }
.ltv-box-h { display: flex; align-items: center; gap: .45rem; margin: 0; padding: .8rem 1rem; font-size: 1rem; border-bottom: 1px solid var(--border); }
.ltv-list { list-style: none; margin: 0; padding: 0; max-height: 26rem; overflow: auto; }
.ltv-li { display: flex; align-items: center; gap: .65rem; padding: .6rem 1rem; border-top: 1px solid var(--border); font-size: .88rem; }
.ltv-li:first-child { border-top: 0; }
.ltv-li .grow { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.ltv-li small { font-size: .76rem; display: block; }
.ltv-li-at { flex: none; display: grid; text-align: center; min-width: 3.4rem; }
.ltv-li-at b { font-family: var(--font-display); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.ltv-li-at small { color: var(--text-muted); white-space: nowrap; }
.ltv-li-at small.is-soon { color: var(--accent); font-weight: 700; }
.ltv-li-vs { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.ltv-li-vs > span { display: grid; min-width: 0; }
.ltv-li-vs em { font-style: normal; color: var(--text-muted); font-size: .85em; }
.ltv-li-sc { flex: none; font-variant-numeric: tabular-nums; padding: .15rem .45rem; border-radius: 6px; background: var(--surface-2); font-size: .82rem; }
.ltv-li a { color: inherit; }
.ltv-status { margin: 1rem 0 0; text-align: center; color: var(--danger, #dc2626); }
.ltv-status:empty { display: none; }
.ltv-exit { display: none; }

@media (max-width: 1100px) {
  .ltv-layout { grid-template-columns: minmax(0, 1fr); }
  .ltv-side { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
}
@media (max-width: 600px) {
  .ltv-hero-row { align-items: flex-start; }
  .ltv-clock { display: none; }
  .ltv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ltv-kpi { padding: .6rem .7rem; gap: .5rem; }
  .ltv-kpi > .icon { width: 1.9rem; height: 1.9rem; padding: .4rem; }
  .ltv-kpi strong { font-size: 1.25rem; }
  .ltv-m { padding: .85rem .8rem; }
  .ltv-r { grid-template-columns: .3rem auto minmax(0, 1fr) auto; gap: .5rem; }
  .ltv-r .ltv-sets { grid-column: 3; grid-row: 2; }
  .ltv-r .ltv-pts { grid-column: 4; grid-row: 1 / span 2; }
  .ltv-r .ltv-srv { grid-row: 1 / span 2; }
  .ltv-r .ltv-face { grid-row: 1 / span 2; }
  .ltv-r-h { display: none; }
  .ltv-set { font-size: 1.1rem; width: 1.8em; }
  .ltv-meta { display: none; }
  .ltv-m-h { align-items: flex-start; }
  .ltv-m-hr { flex-direction: column; align-items: flex-end; gap: .2rem; }
  .ltv-stat { grid-template-columns: 2.8rem minmax(0, 1fr) 2.8rem; }
}

/* ---------- Modo TV: solo los partidos, a pantalla completa y más grande ---------- */
body.ltv-tv .site-header, body.ltv-tv .site-footer, body.ltv-tv .announce, body.ltv-tv .wa-float, body.ltv-tv .to-top, body.ltv-tv .ltv-crumbs, body.ltv-tv .ltv-hide-tv, body.ltv-tv .scroll-progress { display: none !important; }
body.ltv-tv { overflow-x: hidden; }
body.ltv-tv .ltv { font-size: clamp(16px, 1.15vw, 26px); padding-bottom: 1rem; }
body.ltv-tv .container { width: auto; max-width: none; padding-inline: clamp(1rem, 2vw, 2.5rem); }
body.ltv-tv .ltv-hero { padding: .9rem 0 .8rem; }
body.ltv-tv .ltv-tv-logo { display: block; }
body.ltv-tv .ltv-title { font-size: clamp(1.6rem, 2.6vw, 3rem); }
body.ltv-tv .ltv-clock { font-size: clamp(1.6rem, 2.4vw, 3rem); }
body.ltv-tv .ltv-kpis { margin-top: .8rem; }
body.ltv-tv .ltv-layout { grid-template-columns: minmax(0, 1fr) clamp(300px, 24vw, 460px); }
body.ltv-tv .ltv-side { position: static; grid-template-columns: minmax(0, 1fr); }
body.ltv-tv .ltv-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 30em), 1fr)); }
body.ltv-tv .ltv-name { font-size: 1.2em; }
body.ltv-tv .ltv-set { font-size: 1.5em; }
body.ltv-tv .ltv-pts { font-size: 1.7em; }
body.ltv-tv .ltv-face { width: 3em; height: 3em; }
body.ltv-tv .ltv-more { display: none; }
body.ltv-tv .ltv-exit { display: grid; place-items: center; position: fixed; top: .8rem; right: .8rem; z-index: 50; width: 2.6rem; height: 2.6rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; opacity: .7; transition: opacity .3s; }
body.ltv-tv.is-idle { cursor: none; }
body.ltv-tv.is-idle .ltv-exit, body.ltv-tv.is-idle [data-ltv-tv]:not(.ltv-exit) { opacity: 0; }
@media (max-width: 1100px) { body.ltv-tv .ltv-layout { grid-template-columns: minmax(0, 1fr); } body.ltv-tv .ltv-side { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .ltv-onair i, .ltv-dot, .ltv-pill.is-match, .ltv-pill.is-warm .icon, .ltv-r.is-point { animation: none; } }
.ltv-li .grow { display: block; }
.ltv-li .grow > small { margin-top: .1rem; }
.ltv-plain { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
body.ltv-tv .ltv-actions [data-ltv-tv] { display: none; }
/* tablero de canchas: «Calentando · 3:12» va en su propia línea, debajo de los nombres */
.tn-court-match:has(.tn-warm) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tn-court-match:has(.tn-warm) > span:last-child { text-align: left; }
.tn-court-match:has(.tn-warm) .tn-court-score { grid-column: 1 / -1; grid-row: 2; justify-self: center; font-size: .85rem; }
.tn-onair-score .tn-warm, .tn-sched-vs .tn-warm, .ump-row-score .tn-warm { font-size: .85rem; }


/* ---------- Sorteo en vivo (raffle-live.js): ruleta sincronizada en el panel, el sitio y la pantalla En Vivo ---------- */
.rfl { position: fixed; inset: 0; z-index: 9990; display: grid; place-items: center; padding: 1rem; background: radial-gradient(circle at 50% 40%, rgb(30 27 75 / .92), rgb(2 6 23 / .96)); color: #fff; animation: rfl-in .35s ease both; }
.rfl.is-out { animation: rfl-in .3s ease reverse both; }
@keyframes rfl-in { from { opacity: 0; } to { opacity: 1; } }
.rfl-box { position: relative; width: min(640px, 100%); display: grid; justify-items: center; gap: .6rem; text-align: center; }
.rfl-box::before { content: ""; position: absolute; left: 50%; top: 45%; width: 46rem; height: 46rem; margin: -23rem 0 0 -23rem; background: repeating-conic-gradient(from 0deg, rgb(250 204 21 / .09) 0 9deg, transparent 9deg 24deg); border-radius: 50%; animation: bdg-spin 18s linear infinite; z-index: -1; pointer-events: none; }
.rfl-x { position: absolute; top: -.5rem; right: 0; width: 2.6rem; height: 2.6rem; border: 0; border-radius: var(--radius); background: rgb(255 255 255 / .12); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.rfl-k { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fde047; }
.rfl-t { margin: 0; font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1.15; }
.rfl-p { margin: 0; opacity: .85; font-size: 1.05rem; }
.rfl-reel { width: 100%; margin: .8rem 0 .2rem; padding: 1.4rem 1rem; border-radius: calc(var(--radius) * 2); background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .14), rgb(255 255 255 / .06)); border: 2px solid rgb(253 224 71 / .5); box-shadow: 0 0 60px -10px rgb(250 204 21 / .45), inset 0 0 30px rgb(0 0 0 / .4); overflow: hidden; }
.rfl-name { display: block; font-size: clamp(1.8rem, 6vw, 3.4rem); font-weight: 900; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rfl-name.is-tick { animation: rfl-tick .12s ease-out; }
@keyframes rfl-tick { from { transform: translateY(-40%); opacity: .3; filter: blur(2px); } to { transform: none; opacity: 1; filter: none; } }
.rfl-name.is-win { color: #fde047; text-shadow: 0 0 30px rgb(250 204 21 / .8); animation: rfl-win .9s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes rfl-win { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.rfl-count { margin: 0; min-height: 1.5em; font-size: 1.1rem; font-weight: 700; opacity: .9; }
.rfl.is-done .rfl-count { font-size: 1.5rem; color: #fde047; }
.rfl-win { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: 1.2rem; font-weight: 700; }
.rfl-win li { animation: bdg-rise .5s ease both; }
.rfl-bit { position: fixed; z-index: 9999; width: 10px; height: 14px; border-radius: 2px; pointer-events: none; animation: rfl-bit 1.7s cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes rfl-bit { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 260px)) rotate(var(--r)); opacity: 0; } }
@keyframes bdg-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rfl-box::before, .rfl-name.is-tick, .rfl-name.is-win { animation: none; } }


/* ---------- Tablero de canchas (rediseño): estado claro, marcador grande y lo principal a mano ---------- */
.tn-courts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 1rem; }
.tn-court { padding: 0; gap: 0; overflow: hidden; background: var(--surface); min-height: 0; border-width: 1px; }
.tn-court-top { position: relative; display: flex; align-items: center; gap: .55rem; padding: .7rem .9rem; color: #fff; background: linear-gradient(135deg, #2f6f4e, #1f4d36); isolation: isolate; }
.tn-court.is-live .tn-court-top { background: linear-gradient(135deg, #b91c1c, #7f1d1d); }
.tn-court.is-warm .tn-court-top { background: linear-gradient(135deg, #d97706, #92400e); }
.tn-court.is-free .tn-court-top { background: linear-gradient(135deg, color-mix(in srgb, #2f6f4e 70%, var(--surface-2)), color-mix(in srgb, #1f4d36 70%, var(--surface-2))); }
.tn-court-net { position: absolute; inset: 0; z-index: -1; opacity: .18; background:
  linear-gradient(90deg, transparent calc(50% - 1px), #fff calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
  linear-gradient(transparent 18%, #fff 18% calc(18% + 1px), transparent calc(18% + 1px) calc(82% - 1px), #fff calc(82% - 1px) 82%, transparent 82%); }
.tn-court-name { font-size: 1.08rem; letter-spacing: .01em; }
.tn-court-state { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .55rem; border-radius: var(--radius); background: rgb(255 255 255 / .2); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.tn-court-state .tn-live-dot { width: .5rem; height: .5rem; background: #fff; }
.tn-court-star { color: #fde047; display: inline-flex; }
.tn-court.is-featured { box-shadow: 0 0 0 2px #d4a017, 0 10px 26px -18px #d4a017; }
.tn-court-body { display: grid; gap: .5rem; padding: .85rem .95rem .3rem; }
.tn-court-players { display: grid; gap: .1rem; }
.tn-court-p { font-weight: 700; font-size: 1rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-court-vs { font-size: .7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.tn-court .tn-court-score { justify-self: start; font-size: 1.15rem; font-weight: 800; padding: .3rem .7rem; border-radius: var(--radius); background: var(--surface-2); }
.tn-court-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; color: var(--text-muted); font-size: .8rem; }
.tn-court-actions { display: grid; grid-template-columns: 1fr auto; gap: .45rem; padding: .6rem .95rem .3rem; margin-top: auto; }
.tn-court-actions .tn-court-go { justify-content: center; }
.tn-court-more { margin: .2rem .95rem .85rem; border-top: 1px dashed var(--border); padding-top: .4rem; }
.tn-court-more > summary { cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--text-muted); list-style: none; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem 0; }
.tn-court-more > summary::-webkit-details-marker { display: none; }
.tn-court-more[open] > summary { color: var(--text); }
.tn-court-more-in { display: grid; gap: .45rem; padding-top: .3rem; }
.tn-court-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0; }
.tn-court-row > label { font-size: .8rem; font-weight: 600; color: var(--text-muted); display: inline-flex; align-items: center; gap: .3rem; min-width: 7.5rem; }
.tn-court-row input, .tn-court-row select { flex: 1 1 8rem; min-width: 0; width: auto; min-height: 36px; margin: 0; }
.tn-court-row form { margin: 0; }
.tn-court.is-free { border-style: dashed; }
.tn-court-next { margin: 0; display: flex; gap: .4rem; align-items: flex-start; font-size: .88rem; }
.tn-court-call { display: grid; gap: .45rem; padding: .5rem .95rem .9rem; margin: 0; }
.tn-court-call select { width: 100%; min-height: 40px; margin: 0; }
.tn-court-call .btn { justify-content: center; }
.tn-court-call { min-width: 0; }
.tn-court-call select { box-sizing: border-box; max-width: 100%; min-width: 0; }
.tn-court-call-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); gap: .4rem; min-width: 0; }
.tn-court-call-acts .btn { margin: 0; min-width: 0; white-space: normal; }
/* partidos en juego que quedaron sin cancha: arriba del tablero, para ubicarlos */
.tn-orphans { display: grid; gap: .55rem; padding: .8rem .95rem; border: 1px solid color-mix(in srgb, var(--warn) 55%, var(--border)); border-radius: var(--radius); background: var(--warn-soft); }
.tn-orphans-t { margin: 0; display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; }
.tn-orphans-t strong { color: var(--warn); }
.tn-orphans-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.tn-orphans-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem .6rem; border-radius: var(--radius); background: var(--surface); }
.tn-orphans-list .grow { display: grid; min-width: 12rem; }
.tn-orphans-list form { display: flex; gap: .4rem; margin: 0; flex-wrap: wrap; }
.tn-orphans-list select { width: auto; min-width: 10rem; margin: 0; }
.tn-court-hint { margin: 0; padding: 0 .95rem .9rem; }
@media (max-width: 720px) { .tn-court-actions { grid-template-columns: 1fr; } .tn-court-actions .btn { min-height: 44px; } }


/* ---------- Tarjeta del calendario: tipo y «Terminada» apilados, sin pisarse; lo terminado en gris sin apagar el cartel ---------- */
.cal-card-top { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.cal-top-r { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; min-width: 0; }
.cal-top-r .cal-type { max-width: 100%; }
.cal-top-r .done-ribbon { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #111827; box-shadow: 0 2px 8px rgb(0 0 0 / .35); }
.cal-card.is-done .cal-card-top { filter: none; }
.cal-card.is-done .cal-card-top::before { background: rgb(17 24 39 / .45); -webkit-backdrop-filter: grayscale(1) brightness(.85); backdrop-filter: grayscale(1) brightness(.85); }
.cal-card.is-done .cal-date { opacity: .8; }
.cal-card.is-done, .cal-card.is-done.is-in { opacity: 1; }
.cal-cards-compact .cal-top-r { gap: .2rem; }
.cal-cards-compact .cal-top-r .cal-type, .cal-cards-compact .cal-top-r .done-ribbon { font-size: .68rem; padding: .15rem .45rem; }

.rfl { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rfl-box::before { background: repeating-conic-gradient(from 0deg, rgb(250 204 21 / .05) 0 9deg, transparent 9deg 24deg); -webkit-mask: radial-gradient(circle, #000 15%, transparent 65%); mask: radial-gradient(circle, #000 15%, transparent 65%); }

/* ajustes del tablero de canchas */
.tn-court-net { background: linear-gradient(transparent 22%, #fff 22% calc(22% + 1px), transparent calc(22% + 1px) calc(78% - 1px), #fff calc(78% - 1px) 78%, transparent 78%); opacity: .12; }
.tn-court-actions { display: flex; flex-wrap: wrap; }
.tn-court-actions > * { flex: 1 1 auto; justify-content: center; margin: 0 !important; }
.tn-court-actions .tn-court-go { flex-basis: 100%; }
.tn-court .tn-court-score { white-space: normal; max-width: 100%; }
.tn-court .tn-court-score.is-warm { font-size: .95rem; }
.tn-court .tn-court-score .tn-warm { white-space: normal; }
.tn-court-row { display: grid; gap: .3rem; }
.tn-court-row > * + * { margin-top: 0 !important; }
.tn-court-row > label { min-width: 0; }
.tn-court-inline { display: flex; gap: .4rem; }
.tn-court-inline input { flex: 1 1 auto; min-width: 0; margin: 0; min-height: 36px; }
.tn-court-more-in > .tn-court-row:last-child { display: flex; flex-wrap: wrap; gap: .4rem; }
.tn-court-more-in form { margin: 0; }
.tn-court-more-in form > * + * { margin-top: 0 !important; }
.tn-court .tn-court-score .muted { font-size: .85rem; font-weight: 600; }
.tn-court .tn-court-score .tn-warm, .tn-court .tn-court-score .tn-warm * { display: inline; }
.tn-court-more, .tn-court-more-in, .tn-court-row { min-width: 0; }
.tn-court-row select, .tn-court-row > input { width: 100%; max-width: 100%; box-sizing: border-box; }
.tn-court-inline input { width: auto; }
.tn-court-inline .btn { flex-shrink: 0; }
.tn-court-inline input { flex: 1 1 0; width: 0 !important; min-width: 0; }

/* calendario más tranquilo: una línea por clase y por día (×N), lo terminado plegado */
.cal-fc.fc .fc-daygrid-dot-event { display: flex; align-items: center; min-width: 0; }
.cal-fc.fc .fc-daygrid-dot-event .fc-event-title { min-width: 0; white-space: nowrap; }
.cal-fc.fc .fc-day-past:not(.fc-day-today) .fc-daygrid-event { opacity: .45; filter: grayscale(.8); }
.cal-once { gap: .15rem; }
.cal-once-txt small { gap: 0; }
.cal-past { margin-top: .7rem; padding-top: .55rem; border-top: 1px solid var(--border); }
.cal-past summary { cursor: pointer; font-size: .84rem; color: var(--text-muted); padding: .15rem 0; }
.cal-past summary:hover { color: var(--text); }
.cal-past .cal-once { margin-top: .4rem; }
.cal-day-list .cal-once-it { border-left-width: 3px; }
@media (max-width: 719px) { .cal-head .cal-filters { flex: 1 0 calc(100% + 2rem); } }
.cal-side .cal-once-txt small { white-space: normal; }

/* Portada destacada diseñada en las tarjetas del calendario y la lista de torneos: entera, 5:2 */
.cal-card-top.is-designed { height: auto; aspect-ratio: 5 / 2; background-size: cover; background-position: center; align-items: end; }
.cal-card-top.is-designed::before { background: linear-gradient(0deg, rgb(0 0 0 / .28), transparent 40%); }
/* las etiquetas van al pie: arriba está el texto del diseño */
.tn-row-cover.is-designed::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(0 0 0 / .3), transparent 38%); pointer-events: none; }
.tn-row-cover.is-designed > * { position: relative; }
/* en la lista de /torneos la portada diseñada llena la altura de la fila: se ve desde la izquierda, donde va el texto
   (el arte de la derecha puede quedar recortado); en el celular, entera */
.tn-row:has(> .tn-row-cover.is-designed) { grid-template-columns: minmax(300px, 36%) minmax(0, 1fr) auto; }
.tn-row-cover.is-designed { min-height: 170px; background-size: cover; background-position: left center; align-content: flex-end; }
.tn-row-cover.is-designed::after, .tn-row-cover.is-designed .tn-card-ball { display: none; }
@media (max-width: 860px) {
  .tn-row:has(> .tn-row-cover.is-designed) { grid-template-columns: 1fr; }
  .tn-row-cover.is-designed { min-height: 0; aspect-ratio: 5 / 2; background-position: center; }
}
.cal-ev-cover.is-designed { height: auto; aspect-ratio: 5 / 2; }

/* ---------- Partido detenido (lluvia, atención médica, baño, suspendido…): LiveScore::HALTS ---------- */
:root { --halt: #6366f1; --halt-soft: color-mix(in srgb, #6366f1 15%, var(--surface)); }
:root[data-theme="dark"] { --halt: #818cf8; }
.tn-halt { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; color: var(--halt); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tn-halt b { font-weight: 800; }
.tn-halt b.is-past { color: var(--danger, #dc2626); }
.tn-halt.is-suspendido { color: var(--text-muted); }
.tn-halt-score { font-variant-numeric: tabular-nums; opacity: .75; }
.tn-halt-note { margin: -.2rem 0 0; font-size: .85rem; color: var(--text-muted); display: flex; align-items: center; gap: .3rem; }
.tn-live-pill.is-halt { background: var(--halt); }
.tn-live-pill.is-halt::before { animation: none; opacity: .8; }
.tn-onair-card.is-halted { border-color: color-mix(in srgb, var(--halt) 45%, var(--border)); }
.tn-onair-card.is-halted .tn-onair-score { opacity: .7; }
/* tablero de canchas del panel */
.tn-court.is-halt .tn-court-top { background: linear-gradient(135deg, #4f46e5, #312e81); }
.tn-court-halt { display: grid; gap: .15rem; padding: .45rem .6rem; border-radius: var(--radius); background: var(--halt-soft); }
.tn-court-halt .tn-halt { white-space: normal; }
.tn-court-halt small { color: var(--text-muted); }
/* pantalla En Vivo */
.ltv-pill.is-halt { background: var(--halt-soft); color: var(--halt); font-variant-numeric: tabular-nums; }
.ltv-pill.is-halt.is-suspendido { background: var(--surface-2); color: var(--text-muted); }
.ltv-pill.is-halt b.is-past { color: var(--danger, #dc2626); }
.ltv-m.is-halted { border-color: color-mix(in srgb, var(--halt) 45%, var(--border)); }
.ltv-m.is-halted .ltv-sb { opacity: .6; filter: saturate(.6); }
.ltv-kpi.is-halt > .icon { background: var(--halt-soft); color: var(--halt); }
.ltv-cb.is-halt { border-left-color: var(--halt); }
/* consola del juez */
.ump-halted { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem .8rem; align-items: center; padding: 1rem; border-radius: var(--radius-lg); background: var(--halt-soft); border: 1px solid color-mix(in srgb, var(--halt) 40%, var(--border)); animation: fab-in .2s ease; }
.ump-halted-ic { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--radius); background: var(--halt); color: #fff; }
.ump-halted-ic .icon { width: 1.5rem; height: 1.5rem; }
.ump-halted-tx { display: grid; gap: .1rem; min-width: 0; }
.ump-halted-tx strong { font-size: 1.05rem; }
.ump-halted-tx small { color: var(--text-muted); }
.ump-halted-clock { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--halt); line-height: 1.1; }
.ump-halted-clock:empty { display: none; }
.ump-halted-clock.is-over { color: var(--danger, #dc2626); }
.ump-halted .ump-resume { grid-column: 1 / -1; width: 100%; justify-content: center; }
.ump-halted > .btn-ghost { grid-column: 1 / -1; justify-self: center; }
.ump.is-halted .ump-board { opacity: .65; }
/* diálogo «Detener el partido» */
.halt-dlg { width: min(640px, calc(100vw - 2rem)); }
.halt-match { margin: 0; font-weight: 700; }
.halt-match:empty { display: none; }
.halt-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 175px), 1fr)); gap: .45rem; }
.halt-kind { display: flex; gap: .55rem; align-items: flex-start; padding: .55rem .6rem; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s; }
.halt-kind:hover { border-color: color-mix(in srgb, var(--halt) 45%, var(--border)); }
.halt-kind input { position: absolute; opacity: 0; pointer-events: none; }
.halt-kind:has(input:checked) { border-color: var(--halt); background: var(--halt-soft); box-shadow: 0 0 0 1px var(--halt); }
.halt-kind:has(input:focus-visible) { outline: 2px solid var(--halt); outline-offset: 2px; }
.halt-kind-ic { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: var(--radius); background: var(--surface-2); color: var(--halt); }
.halt-kind-tx { display: grid; gap: .1rem; min-width: 0; }
.halt-kind-tx strong { font-size: .92rem; }
.halt-kind-tx small { font-size: .76rem; color: var(--text-muted); line-height: 1.3; }
.halt-kind[hidden] { display: none; }
/* detener en grupo: lista de partidos y barra «Todas las canchas» */
.halt-group { margin: 0; padding: .6rem .7rem; border: 1px solid var(--border); border-radius: var(--radius); }
.halt-group legend { padding: 0 .3rem; font-weight: 700; font-size: .9rem; }
.halt-group-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .35rem; max-height: 220px; overflow: auto; }
.halt-group-item { display: flex; gap: .5rem; align-items: flex-start; padding: .4rem .5rem; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.halt-group-item:has(input:checked) { border-color: var(--halt); background: var(--halt-soft); }
.halt-group-item span { display: grid; min-width: 0; }
.halt-group-item small { color: var(--text-muted); font-size: .76rem; }
.halt-all { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .55rem .75rem; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface-2); }
.halt-all.has-halted { border-style: solid; border-color: color-mix(in srgb, var(--halt) 50%, var(--border)); background: var(--halt-soft); }
.halt-all-t { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; }
.halt-all-acts { display: flex; flex-wrap: wrap; gap: .4rem; }
.halt-all-acts form { margin: 0; }
.halt-side { display: flex; gap: .4rem; flex-wrap: wrap; }
.halt-side label { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .65rem; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.halt-side label:has(input:checked) { border-color: var(--halt); background: var(--halt-soft); }

/* ---------- Portada destacada diseñada en la página del torneo y en la lista ---------- */
/* con portada diseñada: la portada es el fondo del encabezado, entera (5:2) y a todo el ancho; debajo, lo que no dice */
.tn-t-hero.is-feature { padding: 0 0 2rem; }
.tn-t-hero.is-feature::before { background: var(--feature) center / cover; opacity: .35; filter: blur(40px) saturate(1.3); inset: -60px; mix-blend-mode: normal; }
.tn-t-hero.is-feature::after { display: none; }
.tn-t-banner { position: relative; z-index: 1; aspect-ratio: 5 / 2; width: 100%; max-width: 1600px; margin-inline: auto; background: var(--feature) center / 100% 100% no-repeat; } /* siempre entera, nunca recortada */
.tn-t-banner::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, color-mix(in srgb, var(--bk-accent) 55%, #000)); pointer-events: none; opacity: .55; }
.tn-t-banner-in { padding-top: .8rem; max-width: none; padding-inline: 6.25%; } /* mismo margen que el texto de las portadas */
.tn-t-banner-in .breadcrumb { display: inline-flex; gap: .3rem; padding: .25rem .6rem; border-radius: var(--radius); background: rgb(0 0 0 / .35); backdrop-filter: blur(6px); font-size: .85rem; }
.tn-t-hero.is-feature .tn-t-hero-in { padding-top: 1.1rem; }
.tn-t-hero.is-feature .tn-t-hero-grid { align-items: start; }
.tn-t-hero.is-feature .tn-t-meta { margin-top: .6rem; }
.tn-t-crumb-m { display: none; }
@media (min-width: 900px) {
  /* la tarjeta de inscripción sube un poco sobre el borde inferior de la portada */
  .tn-t-hero.is-feature .tn-t-cta { margin-top: -4.5rem; position: relative; }
}
@media (max-width: 899px) {
  /* en el celular la portada va limpia: la ruta pasa abajo */
  .tn-t-banner-in { display: none; }
  .tn-t-crumb-m { display: block; margin-bottom: .6rem; }
}
.tn-row.is-finished .tn-row-cover.is-designed { filter: grayscale(.35) brightness(.95); }
.tn-court-actions form.tn-court-go { display: grid; } .tn-court-actions form.tn-court-go .btn { justify-content: center; }
.tn-ref-note { margin-bottom: 1rem; }

/* ---------- Consola del juez: que todo entre bien en cualquier pantalla ----------
   Celular: una columna (los botones grandes ocupan lo que sobra de alto).
   Pantallas anchas y celular apaisado: marcador y controles a la izquierda, los dos botones de punto a la derecha,
   bien grandes y siempre a la vista (sticky). */
.ump { grid-template-columns: minmax(0, 1fr); }
.ump > * { min-width: 0; }
.ump-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ump-head .btn-icon { flex: none; }
.ump-serve-who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ump-serve-who > span { overflow: hidden; text-overflow: ellipsis; }
.ump-pad { min-height: clamp(8rem, 30svh, 15rem); }
.ump-pad strong { font-size: clamp(1.1rem, 2.4vw + .6rem, 1.8rem); }
.ump-tag-row .ump-tag { flex: 1 1 auto; justify-content: center; }
/* barra de abajo: los cinco botones en una fila (con el texto en dos renglones si hace falta) */
.ump-bar { grid-template-columns: repeat(auto-fit, minmax(3.6rem, 1fr)); }
.ump-bar button { min-height: 3.4rem; padding: .4rem .25rem; justify-content: center; }
.ump-bar button[hidden] { display: none; }
@media (max-width: 400px) {
  .ump { gap: .6rem; }
  .ump-board { padding: .55rem .6rem .65rem; }
  .ump-name { font-size: 1rem; }
  /* el título en dos renglones antes que cortado */
  .ump-title strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .95rem; }
  .ump-head { gap: .25rem; }
  .ump-clock { padding: .2rem .4rem; }
  .ump-line, .ump-row-h { grid-template-columns: minmax(0, 1fr) auto 3rem; gap: .4rem; }
  .ump-pts { font-size: 1.4rem; }
  .ump-fault { min-width: 5.5rem; }
  .ump-pads { gap: .45rem; }
  .ump-pad { padding: .6rem .4rem; }
  .ump-tag { padding: .3rem .55rem; font-size: .85rem; }
  .ump-bar button span { font-size: .68rem; }
}
/* anchas (tablet apaisada, compu) y celular apaisado: dos columnas */
@media (min-width: 1000px) and (min-height: 560px), (orientation: landscape) and (max-height: 560px) and (min-width: 560px) {
  .ump { max-width: 1180px; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 1rem; align-items: start; }
  .ump > * { grid-column: 1; }
  .ump-head { grid-column: 1 / -1; }
  .ump-setup { grid-column: 1 / -1; }
  /* a la derecha: los botones de punto (o lo que va en su lugar: detenido, terminado, guardado) */
  .ump-pads, .ump-halted, .ump-done, .ump-saved { grid-column: 2; grid-row: 2 / span 20; position: sticky; top: calc(var(--topbar-h, 60px) + .75rem); }
  .ump-pads { align-self: start; }
  .ump-pad { min-height: clamp(12rem, calc(100svh - 14rem), 30rem); }
}
@media (orientation: landscape) and (max-height: 560px) and (min-width: 560px) {
  /* poco alto: sin la barra superior del panel (la flecha de la consola vuelve a la mesa) y todo más compacto */
  .umpire-body .admin-topbar { display: none; }
  .umpire-body .admin-content { padding-top: .6rem; }
  .ump { gap: .5rem; }
  .ump-pads, .ump-halted, .ump-done, .ump-saved { top: .5rem; }
  .ump-pad { min-height: calc(100svh - 10rem); }
  .ump-fault { min-width: 4.8rem; padding-inline: .6rem; }
  .ump-serve { padding: .35rem .4rem .35rem .6rem; }
  .ump-board { padding: .45rem .6rem .55rem; }
  .ump-line { padding: .35rem .1rem; }
  .ump-pts { font-size: 1.35rem; min-height: 2rem; }
  .ump-tags-t { display: none; }
}

/* ===================== Podio del torneo (Podium::of · partials/podium.php · podium.js) ===================== */
.pod { --gold: #facc15; --silver: #cbd5e1; --bronze: #d97706; --cons: #ec4899; position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--primary) 55%, #0b1220), #0b1220 70%); box-shadow: var(--shadow-lg); margin-bottom: 1.5rem; }
.pod-rays { position: absolute; inset: -50% -20% auto; height: 160%; z-index: -1; opacity: .22; background: repeating-conic-gradient(from 0deg at 50% 38%, rgb(250 204 21 / .55) 0 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(circle at 50% 38%, #000 0, transparent 55%); mask: radial-gradient(circle at 50% 38%, #000 0, transparent 55%); }
.pod.is-on .pod-rays { animation: pod-spin 40s linear infinite; }
@keyframes pod-spin { to { transform: rotate(360deg); } }
.pod-in { position: relative; display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.pod-head { display: grid; justify-items: center; text-align: center; gap: .35rem; }
.pod-trophy { display: grid; place-items: center; width: 4.6rem; height: 4.6rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff7c2, var(--gold) 45%, #a16207); color: #713f12; box-shadow: 0 0 0 6px rgb(250 204 21 / .18), 0 0 60px rgb(250 204 21 / .55); }
.pod-trophy .icon { width: 2.3rem; height: 2.3rem; }
.pod.is-on .pod-trophy { animation: pod-drop .9s cubic-bezier(.2, 1.4, .4, 1) both, pod-glow 3s 1s ease-in-out infinite; }
@keyframes pod-drop { from { transform: translateY(-120px) scale(.4) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pod-glow { 50% { box-shadow: 0 0 0 14px rgb(250 204 21 / 0), 0 0 90px rgb(250 204 21 / .8); } }
.pod-kicker { margin: .4rem 0 0; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: rgb(255 255 255 / .75); }
.pod-title { margin: 0; display: grid; gap: .1rem; font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 600; color: #fff; }
.pod-champ-name { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.05; font-weight: 900; background: linear-gradient(100deg, #fff7c2 0%, var(--gold) 30%, #fff 50%, var(--gold) 70%, #fde68a 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.pod.is-on .pod-champ-name { animation: pod-shimmer 4s 1.2s linear infinite; }
@keyframes pod-shimmer { to { background-position: -250% 0; } }
.pod-final { margin: .2rem 0 0; color: rgb(255 255 255 / .85); display: inline-flex; gap: .35rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.pod-final b { font-variant-numeric: tabular-nums; color: #fff; }

.pod-stage { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: clamp(.4rem, 1.5vw, 1rem); max-width: 860px; width: 100%; margin: 0 auto; }
.pod-step { display: grid; gap: .6rem; min-width: 0; }
.pod-step-who { display: grid; justify-items: center; text-align: center; gap: .35rem; }
.pod-person { display: grid; justify-items: center; gap: .3rem; }
.pod-person strong { font-size: clamp(.85rem, 1.6vw, 1.05rem); line-height: 1.2; }
.pod-person a { color: inherit; }
.pod-faces { display: inline-flex; }
.pod-face { width: clamp(3rem, 7vw, 4.4rem); height: clamp(3rem, 7vw, 4.4rem); font-size: 1.1rem; box-shadow: 0 0 0 3px var(--ring, var(--silver)); }
.pod-face.is-pair { margin-left: -1rem; }
.pod-step.is-1 .pod-face { --ring: var(--gold); width: clamp(4rem, 10vw, 6rem); height: clamp(4rem, 10vw, 6rem); font-size: 1.5rem; box-shadow: 0 0 0 4px var(--gold), 0 0 30px rgb(250 204 21 / .6); }
.pod-step.is-3 .pod-face { --ring: var(--bronze); }
.pod-step.is-1 .pod-person strong { font-size: clamp(1rem, 2vw, 1.3rem); }
.pod-step-label { display: inline-flex; align-items: center; gap: .3rem; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 700; color: rgb(255 255 255 / .8); }
.pod-note { color: rgb(255 255 255 / .7); font-size: .75rem; }
.pod-block { display: grid; place-items: start center; padding-top: .5rem; border-radius: var(--radius) var(--radius) 0 0; font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.6rem); color: rgb(0 0 0 / .35); transform-origin: bottom;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 92%, #fff), color-mix(in srgb, var(--c) 70%, #000)); box-shadow: inset 0 2px 0 rgb(255 255 255 / .5); }
.pod-step.is-1 .pod-block { --c: var(--gold); height: clamp(110px, 16vw, 170px); }
.pod-step.is-2 .pod-block { --c: var(--silver); height: clamp(80px, 11vw, 120px); }
.pod-step.is-3 .pod-block { --c: var(--bronze); height: clamp(60px, 8vw, 90px); }
.pod-step.is-empty { visibility: hidden; }
.pod.is-wait:not(.is-on) .pod-block, .pod.is-wait:not(.is-on) .pod-step-who { opacity: 0; }
.pod.is-on .pod-block { animation: pod-grow .8s cubic-bezier(.2, .9, .3, 1.2) both; }
.pod.is-on .pod-step-who { animation: pod-up .6s ease-out both; }
.pod.is-on .pod-step.is-2 .pod-block { animation-delay: .2s; } .pod.is-on .pod-step.is-2 .pod-step-who { animation-delay: .7s; }
.pod.is-on .pod-step.is-3 .pod-block { animation-delay: .45s; } .pod.is-on .pod-step.is-3 .pod-step-who { animation-delay: .95s; }
.pod.is-on .pod-step.is-1 .pod-block { animation-delay: .8s; } .pod.is-on .pod-step.is-1 .pod-step-who { animation-delay: 1.3s; }
@keyframes pod-grow { from { transform: scaleY(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pod-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.pod-prize { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; padding: .3rem .55rem; border-radius: var(--radius); background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18); font-size: .78rem; text-align: left; }
.pod-prize em { color: rgb(255 255 255 / .7); font-style: normal; }
.pod-prize .sp-logo { flex: none; background: #fff; border-radius: 6px; }

.pod-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.pod-card { display: grid; align-content: start; gap: .8rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); }
.pod-card h3 { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: 1rem; color: #fff; }
.pod-card h3 .icon { color: var(--gold); }
.pod-kpis, .pod-numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.pod-kpis div, .pod-numbers div { display: grid; gap: .1rem; padding: .5rem .55rem; border-radius: var(--radius); background: rgb(0 0 0 / .22); }
.pod-kpis b, .pod-numbers b { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pod-kpis small, .pod-numbers small { font-size: .7rem; color: rgb(255 255 255 / .7); text-transform: uppercase; letter-spacing: .06em; }
.pod-num-ic { color: var(--gold); }
.pod-path { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.pod-path li { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr) auto; gap: .5rem; align-items: center; padding: .35rem .5rem; border-radius: var(--radius); background: rgb(0 0 0 / .2); font-size: .85rem; }
.pod-path li small { color: rgb(255 255 255 / .65); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod-path li b { font-variant-numeric: tabular-nums; }
.pod-path li.is-won { box-shadow: inset 3px 0 0 #22c55e; }
.pod-path li.is-lost { box-shadow: inset 3px 0 0 #ef4444; opacity: .8; }
.pod-path.is-compact li { grid-template-columns: minmax(0, 1fr) auto; }
.pod-path.is-compact li small { grid-column: 1 / -1; }
.pod-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .86rem; color: rgb(255 255 255 / .88); }
.pod-facts li { display: flex; gap: .4rem; align-items: flex-start; }
.pod-facts .icon { color: var(--gold); margin-top: .15rem; flex: none; }
.pod-cons { position: relative; background: linear-gradient(150deg, rgb(236 72 153 / .28), rgb(255 255 255 / .06) 60%); border-color: rgb(236 72 153 / .45); }
.pod-cons-ribbon { justify-self: start; display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: var(--radius); background: var(--cons); color: #fff; font-weight: 800; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.pod-cons-who { display: flex; align-items: center; gap: .8rem; }
.pod-cons-who .pod-face { --ring: var(--cons); width: 4rem; height: 4rem; }
.pod-cons-who > div { display: grid; gap: .15rem; min-width: 0; }
.pod-cons-name { font-size: 1.35rem; line-height: 1.15; }
.pod-cons-name a { color: inherit; }
.pod-cons-who small { color: rgb(255 255 255 / .75); }
.pod-cons-msg { margin: 0; font-size: .85rem; color: rgb(255 255 255 / .8); font-style: italic; }
.pod.is-on .pod-cons-who .pod-face { animation: pod-heart 2.4s 2s ease-in-out infinite; }
@keyframes pod-heart { 0%, 100% { box-shadow: 0 0 0 3px var(--cons); } 50% { box-shadow: 0 0 0 3px var(--cons), 0 0 0 10px rgb(236 72 153 / .2); } }
.pod-bit { position: fixed; z-index: 9999; width: 9px; height: 13px; border-radius: 2px; pointer-events: none; animation: pod-fall 2.5s cubic-bezier(.25, .5, .45, 1) forwards; }
.pod-bit.is-ribbon { width: 5px; height: 20px; }
@keyframes pod-fall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }
.pod.is-still .pod-block, .pod.is-still .pod-step-who { opacity: 1; animation: none; }
@media (max-width: 560px) {
  .pod-stage { gap: .3rem; }
  .pod-prize { font-size: .7rem; flex-direction: column; text-align: center; }
  .pod-prize em { display: none; }
  .pod-path li { grid-template-columns: minmax(0, 1fr) auto; }
  .pod-path li small { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .pod *, .pod { animation: none !important; } .pod .pod-block, .pod .pod-step-who { opacity: 1 !important; } }
/* pantalla En Vivo: el podio arriba de todo */
.pod-tv { margin: 0 0 1.25rem; }
.ltv-tv .pod-tv .pod-champ-name { font-size: clamp(2.6rem, 7vw, 5rem); }

/* ===== Página del torneo: menú pegajoso con acciones, banda de sponsors y cuadro de consolación aparte ===== */
.tn-pbar { position: sticky; top: calc(var(--header-h, 64px) + .5rem); z-index: 20; display: flex; align-items: center; gap: .5rem; margin: -1.4rem 0 1.5rem; padding: .35rem; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.tn-pbar .tn-ptabs { margin: 0; padding: 0; border: 0; box-shadow: none; background: none; flex: 1 1 auto; min-width: 0; width: auto; }
.tn-pbar-acts { display: flex; gap: .3rem; flex: none; }
.tn-pbar-acts .btn { white-space: nowrap; }
.tn-ptabs button.is-podio:not([aria-selected="true"]) { color: #a16207; }
.tn-ptabs button.is-podio:not([aria-selected="true"]) .icon { color: #eab308; }
.tn-t-body.has-spband .tn-pbar { margin-top: 1.25rem; }
@media (max-width: 720px) {
  .tn-pbar { margin-top: -1rem; top: calc(var(--header-h, 56px) + .25rem); }
  .tn-pbar-acts .btn span:not(.sr-only) { display: none; }
}
.tn-pod-go { margin-top: .3rem; }

.tn-spband { position: relative; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 10px 30px -24px rgb(0 0 0 / .6); }
.tn-spband-in { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.tn-spband small { display: inline-flex; align-items: center; gap: .3rem; text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 700; color: var(--text-muted); }
.tn-spband-main, .tn-spband-rest { display: grid; gap: .45rem; }
.tn-spband-main { padding-right: 2.5rem; border-right: 1px solid var(--border); }
.tn-spband-rest { flex: 1 1 280px; }
.tn-spband-logos { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.tn-spband-logos a, .tn-spband-logos > span { display: inline-flex; align-items: center; gap: .6rem; border-radius: 10px; color: var(--text); text-decoration: none; transition: transform .15s; }
.tn-spband-logos a:hover { transform: translateY(-2px); }
.tn-spband .sp-logo { width: 110px; height: 56px; object-fit: contain; background: #fff; border-radius: 10px; padding: .3rem; border: 1px solid var(--border); }
.tn-spband-main .sp-logo { width: 190px; height: 90px; padding: .45rem; box-shadow: 0 6px 20px -12px rgb(0 0 0 / .5); }
.tn-spband-name { font-weight: 800; font-size: 1.1rem; }
.tn-spband:not(.has-main) .tn-spband-in { justify-content: center; }
@media (max-width: 720px) {
  .tn-spband-main { padding-right: 0; border-right: 0; }
  .tn-spband-main .sp-logo { width: 150px; height: 72px; }
  .tn-spband .sp-logo { width: 88px; height: 46px; }
  .tn-spband-name { display: none; }
}

.tn-cons-champ { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.25rem; padding: .9rem 1.1rem; border-radius: var(--radius); border: 1px solid rgb(236 72 153 / .45); background: linear-gradient(120deg, rgb(236 72 153 / .16), var(--surface) 65%); }
.tn-cons-ic { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: #ec4899; color: #fff; flex: none; }
.tn-cons-champ .grow { display: grid; gap: .15rem; }
.tn-cons-champ small { text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 700; color: #db2777; }
.tn-cons-champ strong { font-size: 1.15rem; }
.tn-cons-champ em { font-style: normal; color: var(--text-muted); font-size: .88rem; }

/* En Vivo: sponsors del torneo (cinta que se desliza si son muchos) y cartel «todos detenidos» */
.ltv-sponsors { display: flex; align-items: center; gap: 1rem; margin: 0 0 1rem; padding: .55rem .9rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.ltv-sponsors > small { display: inline-flex; align-items: center; gap: .3rem; flex: none; text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 700; color: var(--text-muted); }
.ltv-sp-track { display: flex; align-items: center; gap: 1.2rem; min-width: 0; flex: 1; }
.ltv-sp-track:has(> :nth-child(7)) { width: max-content; flex: none; animation: ltv-sp-run 40s linear infinite; }
@keyframes ltv-sp-run { to { transform: translateX(-50%); } }
.ltv-sp .sp-logo { width: 104px; height: 50px; object-fit: contain; background: #fff; border-radius: 8px; padding: .25rem; }
.ltv-sp.is-main .sp-logo { width: 150px; height: 64px; }
.ltv-tv .ltv-sponsors { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; border-radius: 0; border-width: 1px 0 0; }
.ltv-haltall { grid-column: 1 / -1; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--halt-soft, #fef3c7); border: 2px solid var(--halt, #d97706); }
.ltv-haltall > .icon { width: 2.2rem; height: 2.2rem; color: var(--halt, #d97706); flex: none; }
.ltv-haltall div { display: grid; gap: .15rem; }
.ltv-haltall strong { font-size: clamp(1.1rem, 2.2vw, 1.6rem); }
.ltv-haltall small { color: var(--text-muted); font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .ltv-sp-track { animation: none !important; flex-wrap: wrap; width: auto !important; } }

/* Actividad: la grilla de días y horarios usa todo el ancho; sin columna lateral, el contenido también */
.tn-t-body > .act-sched { margin-bottom: 2rem; }
.tn-info-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.act-coach-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.act-coach-list li { display: flex; align-items: center; gap: .7rem; }
.act-coach-list .grow { display: grid; min-width: 0; }
.act-coach-list a { color: inherit; }

/* Podio: el sponsor de cada premio, grande y a la vista */
.pod-prize { flex-direction: column; align-items: center; gap: .45rem; padding: .5rem .6rem .6rem; text-align: center; }
.pod-prize-t { display: inline-flex; align-items: baseline; gap: .3rem; }
.pod-prize-sp { display: grid; justify-items: center; gap: .2rem; color: inherit; text-decoration: none; }
.pod-prize-sp small { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: rgb(255 255 255 / .7); }
.pod-prize-sp strong { font-size: 1rem; }
.pod .pod-prize-sp .sp-logo { width: 150px; height: 70px; padding: .4rem; border-radius: 10px; border: 0; background: #fff; box-shadow: 0 8px 22px -10px rgb(0 0 0 / .7); transition: transform .2s; }
.pod .pod-step.is-1 .pod-prize-sp .sp-logo { width: 190px; height: 86px; }
.pod .pod-cons .pod-prize-sp .sp-logo { width: 170px; height: 78px; }
a.pod-prize-sp:hover .sp-logo { transform: translateY(-2px) scale(1.03); }
.pod-cons > .pod-prize { justify-self: start; }
@media (max-width: 560px) {
  .pod .pod-prize-sp .sp-logo { width: 96px; height: 48px; }
  .pod .pod-step.is-1 .pod-prize-sp .sp-logo { width: 116px; height: 56px; }
}

/* Perfil del jugador: premio y sponsor en cada título */
.pp-trophy-prize { display: inline-flex; align-items: baseline; gap: .3rem; font-size: .85rem; font-weight: 600; }
.pp-sp-big { display: grid; justify-items: center; gap: .2rem; margin-top: .2rem; }
.pp-sp-big small { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); }
.pp-sp-big .sp-logo { width: 140px; height: 64px; padding: .35rem; border-radius: 10px; }

/* En vivo con campeón: ya no hay partidos; se ocultan los números de canchas y partidos y el cartel viejo del campeón */
.ltv.is-over .ltv-kpis, .ltv.is-over .ltv-courtbar, .ltv.is-over .ltv-main, .ltv.is-over [data-ltv-next-box], .ltv.is-over [data-ltv-tours-box], .ltv.is-over [data-ltv-onair], .ltv.is-over .ltv-status { display: none !important; }
.ltv.is-over .ltv-layout { grid-template-columns: minmax(0, 1fr); }
.ltv.is-over .ltv-sp .sp-logo, .ltv-tv .ltv-sp .sp-logo { width: 150px; height: 68px; }
.ltv.is-over .ltv-sp.is-main .sp-logo { width: 200px; height: 88px; }
/* campeón arriba del cuadro principal (mismo formato que el de consolación, en dorado) */
.tn-main-champ { border-color: color-mix(in srgb, #eab308 55%, var(--border)); background: linear-gradient(120deg, rgb(234 179 8 / .2), var(--surface) 65%); }
.tn-main-champ .tn-cons-ic { background: linear-gradient(135deg, #fde68a, #ca8a04); color: #422006; box-shadow: 0 0 0 4px rgb(234 179 8 / .18); }
.tn-main-champ small { color: #ca8a04; }
.tn-cons-champ .btn { flex: none; }
@media (max-width: 560px) { .tn-cons-champ { flex-wrap: wrap; } .tn-cons-champ .btn { margin-left: 3.7rem; } }

/* ------------------------------------------------------------------ */
/* Página del torneo › Información: tarjetas en filas parejas            */
/* ------------------------------------------------------------------ */
/* de a dos por fila y con el mismo alto; las que traen mucho van a todo el ancho y la que queda sola se estira:
   así nunca quedan huecos, en ningún ancho */
.tn-info { --tn-gap: 1.25rem; display: flex; flex-wrap: wrap; gap: var(--tn-gap); align-items: stretch; }
.tn-info-prizes { display: contents; }
.tn-info > .card, .tn-info-prizes > .card { flex: 1 1 calc(50% - var(--tn-gap) / 2); min-width: min(100%, 300px); margin: 0; box-sizing: border-box; }
.tn-info > .tn-desc, .tn-info > .tn-when, .tn-info > .tn-rules:has(.tn-tier-table) { flex-basis: 100%; }
.tn-info .tn-desc { margin: 0; }
.tn-info h3 { display: flex; align-items: center; gap: .4rem; margin: 0 0 .9rem; font-size: 1.05rem; line-height: 1.3; }
.tn-info h3 .badge { margin-left: .15rem; }
/* listas de personas y organizaciones: se reparten en columnas cuando la tarjeta es ancha */
.tn-info .tn-org-list { margin: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: .7rem 1rem; }
.tn-info .tn-ed-list { margin: 0; }
/* cuándo y dónde: datos a la izquierda, mapa a la derecha, sedes debajo de los datos */
@media (min-width: 700px) {
  .tn-info > .tn-when:has(.mv) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 1.5rem; align-content: start; }
  .tn-info > .tn-when:has(.mv) > h3 { grid-column: 1 / -1; }
  .tn-info > .tn-when:has(.mv) > .mv { grid-column: 2; grid-row: 2 / span 20; align-self: start; margin: 0; }
  .tn-info > .tn-when:has(.mv) > :not(h3, .mv) { grid-column: 1; }
  .tn-info > .tn-when:not(:has(.mv)) .tn-kv { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 1.5rem; }
}
/* reglamento y puntos por ronda, lado a lado cuando entra */
.tn-rules { container-type: inline-size; }
.tn-rules-in { display: grid; gap: 1.25rem; }
.tn-rules-in ul:not(.tn-tier-table) { margin-bottom: 0; }
@container (min-width: 620px) { .tn-rules-in:has(> :nth-child(2):not(.tn-rules-people)) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 2rem; } }
/* quién organiza y los árbitros: franja a todo el ancho debajo del reglamento, cada lista en su columna cuando entra */
.tn-info > .tn-rules:has(.tn-rules-people) { flex-basis: 100%; }
.tn-rules-people { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.25rem 2rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.tn-rules-people .tn-org-list { gap: .7rem 1rem; }
.tn-rules-people li .icon { margin-top: 0; }
.tn-rules-people .tn-org-card { scroll-margin-top: 6rem; }
.tn-tier-table { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); }
.tn-tier-table li.is-w { border-color: color-mix(in srgb, #d4a017 55%, var(--border)); background: color-mix(in srgb, #d4a017 10%, var(--surface)); }
.tn-info-prizes .tn-prizes, .tn-info-prizes .tn-raffles { height: auto; }
/* cuándo y dónde */
.tn-kv { display: grid; gap: .55rem; margin: 0 0 1rem; }
.tn-kv > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .6rem; align-items: baseline; }
.tn-kv dt { display: flex; align-items: center; gap: .35rem; color: var(--text-muted); font-size: .82rem; }
.tn-kv dt .icon { color: var(--primary); }
.tn-kv dd { margin: 0; font-weight: 600; font-size: .92rem; }
.tn-kv dd small { display: block; font-weight: 400; color: var(--text-muted); font-size: .8rem; margin-top: .1rem; }
.tn-kv-ok { color: var(--ok); }
.tn-when .mv { margin-bottom: .2rem; }
.tn-when .mv-map { border-radius: var(--radius); overflow: hidden; }
.tn-when-venue { display: grid; gap: .3rem; padding-top: .8rem; margin-top: .8rem; border-top: 1px dashed var(--border); }
.tn-when-venue > strong { display: flex; align-items: center; gap: .4rem; }
.tn-when-venue p { margin: 0; font-size: .86rem; }
.tn-when-venue .btn { justify-self: start; }
.tn-when-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.tn-when-tags span { display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .5rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .78rem; color: var(--text-muted); }
@media (max-width: 420px) { .tn-kv > div { grid-template-columns: 1fr; gap: .1rem; } }

/* ------------------------------------------------------------------ */
/* Página del torneo › Jugadores: cómo le fue a cada uno                */
/* ------------------------------------------------------------------ */
.tn-runs-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.tn-runs-search { display: flex; align-items: center; gap: .4rem; flex: 1 1 220px; max-width: 360px; padding: 0 .7rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text-muted); }
.tn-runs-search input { flex: 1; min-width: 0; border: 0; background: none; padding: .55rem 0; font: inherit; color: var(--text); outline: none; }
.tn-runs-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.tn-runs-seg { display: inline-flex; gap: .2rem; padding: .2rem; border-radius: var(--radius); background: var(--surface-2); }
.tn-runs-seg button { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: none; padding: .4rem .75rem; border-radius: var(--radius); font: inherit; font-size: .86rem; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.tn-runs-seg button small { font-size: .72rem; opacity: .75; font-variant-numeric: tabular-nums; }
.tn-runs-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / .15); }
.tn-run-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); align-items: start; }
.tn-run { position: relative; display: grid; gap: .6rem; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
.tn-run.is-mine { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tn-run.is-champion { border-color: color-mix(in srgb, #d4a017 60%, var(--border)); background: linear-gradient(140deg, color-mix(in srgb, #d4a017 14%, var(--surface)), var(--surface) 65%); }
.tn-run.is-runner_up { border-color: color-mix(in srgb, #94a3b8 60%, var(--border)); }
.tn-run.is-third { border-color: color-mix(in srgb, #b45309 45%, var(--border)); }
.tn-run.is-out { background: color-mix(in srgb, var(--surface-2) 40%, var(--surface)); }
.tn-run-head { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.tn-run-av { display: flex; flex-shrink: 0; }
.tn-run-who { display: grid; min-width: 0; flex: 1; }
.tn-run-name { display: flex; align-items: baseline; gap: .35rem; font-weight: 700; min-width: 0; }
.tn-run-name a { color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-run-name a:hover { text-decoration: underline; }
.tn-run-name .tn-seed { flex: none; display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .25rem; border-radius: var(--radius); background: var(--surface-2); font-size: .7rem; color: var(--text-muted); }
.tn-run-who small { color: var(--text-muted); font-size: .8rem; }
.tn-run-medal { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; flex-shrink: 0; border-radius: 50%; }
.tn-run-medal.is-p1 { background: linear-gradient(135deg, #fde68a, #ca8a04); color: #422006; box-shadow: 0 0 0 4px rgb(234 179 8 / .18); }
.tn-run-medal.is-p2 { background: linear-gradient(135deg, #f1f5f9, #94a3b8); color: #1e293b; }
.tn-run-medal.is-p3 { background: linear-gradient(135deg, #fed7aa, #b45309); color: #431407; }
.tn-run-state { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: .92rem; }
.tn-run.is-alive .tn-run-state { color: var(--ok); }
.tn-run.is-champion .tn-run-state { color: #b8860b; }
.tn-run.is-out .tn-run-state { color: var(--text-muted); }
.tn-run.is-out .tn-run-state strong { color: var(--text); }
.tn-run-line { margin: 0; font-size: .86rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .35rem; }
.tn-run-line > span:first-child { color: var(--text-muted); }
.tn-run-line .tn-entry { display: inline; font-weight: 600; }
.tn-run-line .tn-name { color: inherit; }
.tn-run-line b { font-variant-numeric: tabular-nums; }
.tn-run-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(4.2rem, 1fr)); gap: .4rem; margin: 0; }
.tn-run-stats > div { padding: .35rem .5rem; border-radius: var(--radius); background: var(--surface-2); }
.tn-run-stats dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.tn-run-stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.tn-run-stats dd small { font-size: .7rem; font-weight: 600; color: var(--text-muted); margin-left: .05rem; }
.tn-run-stats .is-pts { background: color-mix(in srgb, var(--primary) 14%, var(--surface)); }
.tn-run-stats .is-pts dd { color: var(--primary); }
.tn-run-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tn-run-tags li { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: var(--radius); font-size: .8rem; font-weight: 600; border: 1px solid var(--border); }
.tn-run-tags .is-prize { border-color: color-mix(in srgb, #d4a017 50%, var(--border)); background: color-mix(in srgb, #d4a017 12%, transparent); }
.tn-run-tags .is-raffle { border-color: color-mix(in srgb, #ec4899 45%, var(--border)); background: color-mix(in srgb, #ec4899 10%, transparent); }
.tn-run-tags .is-cons.is-champ { border-color: color-mix(in srgb, var(--ok) 50%, var(--border)); color: var(--ok); }
.tn-run-path summary { cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; font-weight: 600; color: var(--text-muted); list-style: none; }
.tn-run-path summary::-webkit-details-marker { display: none; }
.tn-run-path summary:hover { color: var(--text); }
.tn-run-path ol { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .3rem; }
.tn-run-path li { display: flex; align-items: center; gap: .5rem; font-size: .84rem; }
.tn-run-path li .grow { display: grid; min-width: 0; }
.tn-run-path li small { font-size: .72rem; color: var(--text-muted); }
.tn-run-path li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tn-run-wl { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; flex-shrink: 0; border-radius: var(--radius); font-size: .72rem; font-weight: 800; }
.tn-run-path .is-w .tn-run-wl { background: var(--ok-soft); color: var(--ok); }
.tn-run-path .is-l .tn-run-wl { background: var(--surface-2); color: var(--text-muted); }

/* Portada destacada diseñada en la lista de /torneos: entera (5:2, nada recortado), sin oscurecer el pie
   (ahí suelen ir los logos de sponsors) y con las etiquetas arriba a la derecha */
@media (min-width: 861px) { .tn-row:has(> .tn-row-cover.is-designed) { grid-template-columns: minmax(300px, 38%) minmax(0, 1fr) auto; align-items: center; } }
.tn-row-cover.is-designed { min-height: 0; aspect-ratio: 5 / 2; align-self: center; background-size: cover; background-position: center; align-content: flex-start; justify-content: flex-end; }
.tn-row-cover.is-designed::before, .cal-card-top.is-designed::before { background: none; }
.cal-card-top.is-designed { align-items: start; }

/* Mi cuenta › Inicio: avisos como bandeja compacta (una fila por aviso, toda clickeable; «Ver más» despliega el resto) */
.acc-inbox { display: grid; gap: .5rem; padding: .9rem .6rem .5rem; border: 1px solid var(--border); border-radius: var(--radius-lg, var(--radius)); background: var(--surface); }
.acc-inbox-h { display: flex; align-items: center; gap: .5rem; padding: 0 .5rem; }
.acc-inbox-h .acc-h { margin: 0; flex: 1; }
.acc-inbox-n { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .45rem; border-radius: var(--radius); background: var(--pp-accent, var(--primary)); color: #fff; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.acc-inbox-all { gap: .3rem; }
.acc-inbox-f { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 0 .5rem .1rem; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.acc-inbox-f button { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 34px; border: 0; border-radius: var(--radius); background: none; color: var(--text-muted); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.acc-inbox-f button:hover { color: var(--text); }
.acc-inbox-f button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / .18); }
.acc-inbox-f small { min-width: 1.3rem; padding: 0 .35rem; border-radius: var(--radius); background: color-mix(in srgb, var(--text-muted) 18%, transparent); font-size: .74rem; font-variant-numeric: tabular-nums; }
.acc-inbox-f button[data-inbox-f="unread"] small { background: var(--pp-accent, var(--primary)); color: #fff; }
.acc-inbox-l { list-style: none; margin: 0; padding: 0 .1rem; display: grid; gap: 2px; max-height: 30rem; overflow: auto; overscroll-behavior: contain; }
.acc-inbox[data-filter="unread"] .acc-ib:not(.is-unread):not(.is-just-read) { display: none; }
.acc-ib-a { position: relative; display: grid; grid-template-columns: 2.1rem minmax(0, 1fr) .6rem; align-items: start; gap: .7rem; width: 100%; padding: .65rem .6rem; border: 0; border-radius: var(--radius); background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; }
a.acc-ib-a, button.acc-ib-a { cursor: pointer; transition: background .15s; }
a.acc-ib-a:hover, button.acc-ib-a:hover, a.acc-ib-a:focus-visible, button.acc-ib-a:focus-visible { background: var(--surface-2); outline: none; }
a.acc-ib-a:focus-visible, button.acc-ib-a:focus-visible { box-shadow: inset 0 0 0 2px var(--pp-accent, var(--primary)); }
.acc-ib.is-unread .acc-ib-a { background: color-mix(in srgb, var(--pp-accent, var(--primary)) 7%, transparent); }
.acc-ib.is-unread .acc-ib-a:hover { background: color-mix(in srgb, var(--pp-accent, var(--primary)) 12%, var(--surface-2)); }
.acc-ib-ic { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: var(--radius); background: var(--info-soft); color: var(--info); }
.acc-ib-ic .icon { width: 16px; height: 16px; }
.acc-ib-ok .acc-ib-ic { background: var(--ok-soft); color: var(--ok); }
.acc-ib-warn .acc-ib-ic { background: var(--warn-soft); color: var(--warn); }
.acc-ib-danger .acc-ib-ic { background: var(--danger-soft); color: var(--danger); }
.acc-ib-t { display: grid; gap: .15rem; min-width: 0; line-height: 1.3; }
.acc-ib-t strong { font-size: .9rem; font-weight: 600; color: var(--text-muted); }
.acc-ib.is-unread .acc-ib-t strong { color: var(--text); font-weight: 700; }
.acc-ib-b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .82rem; color: var(--text-muted); }
.acc-ib-m { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .4rem; font-size: .76rem; color: var(--text-muted); }
.acc-ib-m time { font-variant-numeric: tabular-nums; }
.acc-ib-go { display: inline-flex; align-items: center; gap: .2rem; margin-left: auto; font-weight: 600; color: var(--pp-accent, var(--primary)); white-space: nowrap; }
.acc-ib-go .icon { transition: transform .15s; }
a.acc-ib-a:hover .acc-ib-go .icon { transform: translateX(2px); }
.acc-ib-dot { width: .55rem; height: .55rem; margin-top: .4rem; border-radius: 50%; background: var(--pp-accent, var(--primary)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pp-accent, var(--primary)) 22%, transparent); }
.acc-ib.is-just-read .acc-ib-dot { opacity: 0; transition: opacity .3s; }
.acc-inbox-empty { display: none; align-items: center; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 1rem .6rem; color: var(--text-muted); font-size: .88rem; }
.acc-inbox-empty > .icon { color: var(--ok); }
.acc-inbox-empty.is-none > .icon { color: var(--text-muted); }
.acc-inbox:not(:has(.acc-ib)) .acc-inbox-empty.is-none { display: flex; }
.acc-inbox[data-filter="unread"]:has(.acc-ib):not(:has(.acc-ib.is-unread, .acc-ib.is-just-read)) .acc-inbox-empty.is-done { display: flex; }
.acc-inbox:not(:has(.acc-ib)) .acc-inbox-f { display: none; }
.acc-inbox-more { display: flex; align-items: center; justify-content: center; gap: .3rem; padding: .55rem; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .85rem; font-weight: 600; text-decoration: none; }
.acc-inbox-more:hover { color: var(--text); }

/* Mi cuenta › Inicio: proyectos (espacios con tus tareas y lo que tenés a cargo) */
.acc-pm { display: grid; gap: .8rem; margin: 0 0 1.75rem; }
.acc-sec-h { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.acc-sec-h .acc-h { margin: 0; }
.acc-sec-h .link-more { white-space: nowrap; }
.acc-pm-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.acc-pm-card { position: relative; display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .85rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-lg, var(--radius)); background: var(--surface); color: inherit; text-decoration: none; box-shadow: inset 3px 0 0 var(--pm); transition: border-color .15s, transform .15s, box-shadow .15s; }
.acc-pm-card:hover, .acc-pm-card:focus-visible { border-color: color-mix(in srgb, var(--pm) 55%, var(--border)); transform: translateY(-1px); box-shadow: inset 3px 0 0 var(--pm), 0 8px 20px rgba(0, 0, 0, .14); outline: none; }
.acc-pm-t { flex: 1; display: grid; min-width: 0; line-height: 1.3; }
.acc-pm-t strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-pm-t small { color: var(--text-muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-pm-mine { flex: none; padding: .15rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--pm) 16%, transparent); color: var(--pm); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.acc-pm-mine.is-late { background: var(--danger-soft); color: var(--danger); }
.acc-pm-go { flex: none; width: 16px; height: 16px; color: var(--text-muted); transition: transform .15s; }
.acc-pm-card:hover .acc-pm-go { transform: translateX(2px); color: var(--text); }
.acc-pm-tasks { display: grid; gap: .35rem; padding: .75rem .6rem .6rem; border: 1px solid var(--border); border-radius: var(--radius-lg, var(--radius)); background: var(--surface); }
.acc-pm-tasks h3 { margin: 0 .4rem .1rem; display: flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.acc-pm-tasks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.acc-pm-tasks li a { display: flex; align-items: center; gap: .7rem; padding: .45rem .4rem; border-radius: var(--radius); color: inherit; text-decoration: none; }
.acc-pm-tasks li a:hover { background: var(--surface-2); }
.acc-pm-due { flex: none; min-width: 5.2rem; text-align: center; padding: .15rem .45rem; border-radius: 999px; background: var(--surface-2); color: var(--text-muted); font-size: .74rem; font-weight: 600; white-space: nowrap; }
.acc-pm-due.is-late { background: var(--danger-soft); color: var(--danger); }
.acc-pm-due.is-today { background: var(--warn-soft); color: var(--warn); }
.acc-pm-tt { display: grid; min-width: 0; line-height: 1.3; }
.acc-pm-tt strong { font-size: .9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-pm-tt small { font-size: .76rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-pm-tasks > .link-more { justify-self: end; margin: 0 .4rem; font-size: .82rem; }

/* Perfil de profe: primero lo que enseña y organiza; los números y logros, después */
.pp-coach.is-first { margin-top: 2rem; }
.pp-coach.is-first ~ .pp-kpiw .pp-kpis { margin: 0 0 2rem; }
.pp-coach-empty { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 0 0 1.5rem; padding: .9rem 1rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg, var(--radius)); background: var(--surface); }
.pp-coach-empty > .icon { color: var(--pp-accent, var(--primary)); }
.pp-coach-empty p { flex: 1 1 18rem; margin: 0; color: var(--text-muted); }
.pp-coach-empty p strong { color: var(--text); }
.pp-coach.is-first .pp-coach-list { order: -1; }
@media (min-width: 860px) { .pp-coach-grid.is-single { grid-template-columns: minmax(0, 1fr); } }

/* Actividad sin portada ni imagen de su disciplina en el repositorio: el tema de fábrica de cada disciplina
   (su color y las líneas de su cancha). Con imagen en «Disciplinas» del repositorio, esa manda. */
.act-hero.is-themed { --th1: color-mix(in srgb, var(--primary) 85%, #000); --th2: color-mix(in srgb, var(--primary) 40%, #000);
  background: radial-gradient(120% 140% at 85% 20%, color-mix(in srgb, var(--th1) 70%, #fff 6%), transparent 60%), linear-gradient(135deg, var(--th1), var(--th2)); }
.act-hero.is-themed::before { opacity: .22; mix-blend-mode: normal; inset: 0 -10% 0 auto; width: 70%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 220' fill='none' stroke='%23fff' stroke-width='2.5'%3E%3Crect x='20' y='20' width='360' height='180'/%3E%3Cline x1='20' y1='45' x2='380' y2='45'/%3E%3Cline x1='20' y1='175' x2='380' y2='175'/%3E%3Cline x1='110' y1='45' x2='110' y2='175'/%3E%3Cline x1='290' y1='45' x2='290' y2='175'/%3E%3Cline x1='110' y1='110' x2='290' y2='110'/%3E%3Cline x1='200' y1='14' x2='200' y2='206' stroke-width='4' stroke-dasharray='3 4'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: perspective(700px) rotateX(38deg) rotateZ(-8deg); }
.act-hero.is-themed.act-d-tenis { --th1: #2f7a4f; --th2: #123d28; }
.act-hero.is-themed.act-d-padel { --th1: #2257c7; --th2: #0c2463; }
.act-hero.is-themed.act-d-padel::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 220' fill='none' stroke='%23fff' stroke-width='2.5'%3E%3Crect x='20' y='20' width='360' height='180' rx='4'/%3E%3Cline x1='200' y1='14' x2='200' y2='206' stroke-width='4' stroke-dasharray='3 4'/%3E%3Cline x1='90' y1='20' x2='90' y2='200'/%3E%3Cline x1='310' y1='20' x2='310' y2='200'/%3E%3Cline x1='90' y1='110' x2='310' y2='110'/%3E%3C/svg%3E"); }
.act-hero.is-themed.act-d-pickleball { --th1: #0f8a7e; --th2: #06463f; }
.act-hero.is-themed.act-d-pickleball::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 220' fill='none' stroke='%23fff' stroke-width='2.5'%3E%3Crect x='20' y='20' width='360' height='180'/%3E%3Cline x1='200' y1='14' x2='200' y2='206' stroke-width='4' stroke-dasharray='3 4'/%3E%3Crect x='160' y='20' width='80' height='180'/%3E%3Cline x1='20' y1='110' x2='160' y2='110'/%3E%3Cline x1='240' y1='110' x2='380' y2='110'/%3E%3C/svg%3E"); }
.act-hero.is-themed.act-d-beach { --th1: #c58b3c; --th2: #6b4214; }
.act-hero.is-themed.act-d-beach::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 220' fill='none' stroke='%23fff' stroke-width='3'%3E%3Crect x='20' y='20' width='360' height='180'/%3E%3Cline x1='200' y1='14' x2='200' y2='206' stroke-width='5'/%3E%3Cline x1='155' y1='20' x2='155' y2='200' stroke-dasharray='6 6'/%3E%3Cline x1='245' y1='20' x2='245' y2='200' stroke-dasharray='6 6'/%3E%3C/svg%3E"); }
.act-hero.is-themed.act-d-squash { --th1: #a3461f; --th2: #4a1a07; }
.act-hero.is-themed.act-d-squash::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 220' fill='none' stroke='%23fff' stroke-width='2.5'%3E%3Crect x='20' y='20' width='360' height='180'/%3E%3Cline x1='20' y1='120' x2='380' y2='120'/%3E%3Cline x1='200' y1='120' x2='200' y2='200'/%3E%3Crect x='20' y='120' width='70' height='45'/%3E%3Crect x='310' y='120' width='70' height='45'/%3E%3C/svg%3E"); }

/* Torneos (panel): buscador y filtro de estado con la misma altura */
.tn-filter .perm-search input { min-height: 0; height: 40px; }
.tn-filter .seg-sm { padding: 3px; }
.tn-filter .seg-sm span { min-height: 32px; box-sizing: border-box; }

/* Tarjetas de calendario: la actividad toma su color (o el de su disciplina) cuando no tiene portada; con portada, la portada */
.cal-actividad .cal-card-top { background: var(--cover, none) center / cover, linear-gradient(135deg, var(--cc, var(--primary)), color-mix(in srgb, var(--cc, var(--primary)) 45%, #000)); }
.cal-actividad .cal-card-body { box-shadow: inset 0 3px 0 color-mix(in srgb, var(--cc, var(--primary)) 70%, transparent); }
/* tipo largo («Clase · Todos los niveles»): se corta con «…» en una línea, sin empujar la fecha */
.cal-card-top { grid-template-columns: auto minmax(0, 1fr); }
.cal-top-r { align-items: flex-end; max-width: 100%; }
.cal-top-r .cal-type { display: inline-flex; max-width: 100%; min-width: 0; }
.cal-top-r .cal-type > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-top-r .cal-type > .icon { flex: none; }

/* ===== Rankings (público), con el mismo lenguaje que Desafíos ===== */
.rk-hero .chp-clocks a { display: inline-flex; align-items: center; gap: .35rem; color: inherit; text-decoration: none; }
.rk-hero .chp-clocks a:hover b { text-decoration: underline; }
.rk-me { display: grid; gap: .7rem; align-content: start; }
.rk-me-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.rk-me-list a { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem; border-radius: var(--radius); background: var(--surface-2); color: inherit; text-decoration: none; transition: background .15s; }
.rk-me-list a:hover { background: color-mix(in srgb, var(--primary) 14%, var(--surface-2)); }
.rk-me-pos { font-family: var(--font-display); font-size: 1.5rem; min-width: 2.6rem; color: var(--primary); }
.rk-me-list span { flex: 1; display: grid; min-width: 0; }
.rk-me-list small { color: var(--text-muted); }
.rk-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.2rem; }
.rk-q { position: relative; flex: 1 1 260px; display: block; }
.rk-q > .icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; z-index: 1; }
.rk-q input { padding-left: 2.2rem; min-height: 0; height: 40px; }
.rk-tools .seg-sm span { min-height: 32px; box-sizing: border-box; }
.rk-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.rk-card { display: flex; flex-direction: column; gap: .9rem; padding: 1.1rem 1.1rem .9rem; }
.rk-card[hidden] { display: none; }
.rk-card-h { display: flex; align-items: flex-start; gap: .7rem; }
.rk-ic { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.rk-card-h h2 { margin: 0; font-size: 1.12rem; line-height: 1.2; }
.rk-card-h h2 a { color: inherit; text-decoration: none; }
.rk-card-h h2 a:hover { text-decoration: underline; }
.rk-tags { margin: .3rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.rk-tags span { padding: .05rem .5rem; border-radius: 999px; background: var(--surface-2); color: var(--text-muted); font-size: .72rem; font-weight: 600; }
.rk-count { flex: none; display: inline-flex; align-items: center; gap: .25rem; font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.rk-podium { list-style: none; margin: 0; padding: .4rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: .4rem; }
.rk-p { display: grid; justify-items: center; gap: .25rem; text-align: center; min-width: 0; }
.rk-p strong { font-size: .85rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-p strong a, .rk-rows a { color: inherit; text-decoration: none; }
.rk-p strong a:hover, .rk-rows a:hover { text-decoration: underline; }
.rk-p small { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; color: var(--text-muted); }
.rk-p .tn-avatar, .rk-av { width: 3rem; height: 3rem; border-radius: 50%; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--rk-c, var(--border)); }
.rk-p1 .tn-avatar { width: 3.8rem; height: 3.8rem; }
.rk-step { width: 100%; display: grid; place-items: center; border-radius: 10px 10px 4px 4px; font-family: var(--font-display); font-weight: 800; color: #fff; background: linear-gradient(180deg, var(--rk-c), color-mix(in srgb, var(--rk-c) 60%, #000)); }
.rk-p1 { --rk-c: #d4a017; } .rk-p1 .rk-step { height: 3.4rem; font-size: 1.4rem; }
.rk-p2 { --rk-c: #94a3b8; } .rk-p2 .rk-step { height: 2.5rem; font-size: 1.15rem; }
.rk-p3 { --rk-c: #b0703a; } .rk-p3 .rk-step { height: 1.9rem; font-size: 1rem; }
.rk-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rk-rows li { display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem; border-radius: var(--radius); }
.rk-rows li:nth-child(odd) { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.rk-rows b { min-width: 1.6rem; text-align: center; color: var(--text-muted); }
.rk-rows .tn-avatar { width: 1.8rem; height: 1.8rem; }
.rk-rows strong { font-variant-numeric: tabular-nums; }
.rk-rows .rk-gap { justify-content: center; padding: 0; background: none !important; color: var(--text-muted); line-height: 1; }
.rk-rows .is-me, .rk-p.is-me strong { color: var(--primary); }
.rk-rows li.is-me { background: var(--primary-soft) !important; box-shadow: inset 3px 0 0 var(--primary); font-weight: 700; }
.rk-rows li.is-hit, .rk-p.is-hit { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: var(--radius); }
.rk-mv { display: inline-flex; align-items: center; gap: .05rem; font-size: .72rem; font-weight: 700; color: var(--text-muted); }
.rk-mv .icon { width: 12px; height: 12px; }
.rk-mv.is-up { color: var(--ok); } .rk-mv.is-down { color: var(--danger); } .rk-mv.is-new { color: var(--accent); }
.rk-empty { display: grid; justify-items: center; gap: .6rem; padding: .6rem 0 .2rem; text-align: center; }
.rk-empty p { margin: 0; color: var(--text-muted); font-size: .9rem; max-width: 34ch; }
.rk-empty p strong { color: var(--text); }
.rk-empty-pod { display: flex; align-items: flex-end; gap: .3rem; height: 3rem; }
.rk-empty-pod i { width: 2.4rem; border-radius: 8px 8px 3px 3px; background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 6px, transparent 6px, transparent 12px); border: 1px dashed var(--border-strong); }
.rk-empty-pod i:nth-child(1) { height: 70%; } .rk-empty-pod i:nth-child(2) { height: 100%; } .rk-empty-pod i:nth-child(3) { height: 50%; }
.rk-card-f { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .6rem; border-top: 1px solid var(--border); font-size: .85rem; }
.rk-next { display: inline-flex; align-items: center; gap: .3rem; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-muted); }
.rk-how { margin-top: 2.5rem; }
.rk-how h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.25rem; }
.rk-how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.rk-how li { display: flex; gap: .8rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.rk-how li > span { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.rk-how p { margin: .2rem 0 0; color: var(--text-muted); font-size: .9rem; }

/* Rankings agrupados por disciplina (panel y sitio) */
.tn-rank-group { margin-bottom: 1.6rem; }
.tn-rank-group-h { display: flex; align-items: center; gap: .7rem; margin: 0 0 .8rem; font-size: 1rem; }
.tn-rank-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.tn-rank-jump a { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .5rem .25rem .3rem; border: 1px solid var(--border); border-radius: var(--radius); color: inherit; text-decoration: none; }
.tn-rank-jump a:hover { border-color: var(--primary); }
.rk-group { display: grid; gap: .8rem; margin-bottom: 1.8rem; }
.rk-group[hidden] { display: none; }
.rk-group-h { display: flex; align-items: center; gap: .7rem; margin: 0; font-size: 1.05rem; }

/* Sitio › Torneos: la columna de la derecha (inscriptos, costo, botón) mide lo mismo en todas las filas,
   tengan portada diseñada o no, para que los números y botones queden alineados en columna */
@media (min-width: 861px) {
  .tn-rows { --tn-side: 244px; }
  .tn-row { grid-template-columns: 260px minmax(0, 1fr) var(--tn-side); }
  .tn-row:has(> .tn-row-cover.is-designed) { grid-template-columns: minmax(300px, 38%) minmax(0, 1fr) var(--tn-side); align-items: stretch; }
  .tn-row-side { min-width: 0; width: var(--tn-side); box-sizing: border-box; }
  .tn-row-cta { width: 100%; }
  /* Portada diseñada: ocupa todo el alto de la fila (sin franjas vacías arriba y abajo), como en la portada del sitio.
     Con versión compacta: se ve entera y lo que sobra toma el color de su borde; sin ella: la portada entera sobre
     la misma imagen desenfocada. Las etiquetas quedan encima. */
  .tn-row-cover.is-designed { align-self: stretch; aspect-ratio: auto; min-height: 170px; background-image: none !important; isolation: isolate; }
  .tn-row-cover.is-designed > * { z-index: 2; }
  .tn-row-cover.is-designed::after { display: block; content: ""; position: absolute; inset: 0; border: 0; border-radius: 0; height: auto;
    background: var(--cover) center / contain no-repeat; pointer-events: none; z-index: 1; }
  .tn-row-cover.is-designed:not(.has-sm)::before { inset: -24px; background: var(--cover) center / cover no-repeat; filter: blur(16px) brightness(.9); z-index: 0; }
  .tn-row-cover.is-designed.has-sm { container-type: size; background-image: linear-gradient(180deg, var(--sm-top, #0000) 50%, var(--sm-bot, #0000) 50%) !important; }
  .tn-row-cover.is-designed.has-sm::after { background: var(--cover-sm) center / min(108cqw, 100cqh) auto no-repeat; }
}
/* En pantallas grandes la portada diseñada se agranda (más ancha y más alta) para que se lea lo que tiene escrito */
@media (min-width: 1200px) {
  .tn-row:has(> .tn-row-cover.is-designed) { grid-template-columns: minmax(380px, 46%) minmax(0, 1fr) var(--tn-side); }
  .tn-row-cover.is-designed { min-height: clamp(220px, 17vw, 300px); }
}
@media (min-width: 861px) {
  .tn-row-num strong { white-space: nowrap; font-size: clamp(1.15rem, 1.6vw, 1.5rem); }
  .tn-row-num span { text-align: right; }
}

/* Rankings por disciplina con su color (--dc = disciplines.color): franja arriba de cada tarjeta, ícono y título del grupo */
.rk-group .rk-card { border-top: 4px solid var(--dc, var(--primary)); }
.rk-group .rk-ic { background: color-mix(in srgb, var(--dc, var(--primary)) 16%, var(--surface)); color: var(--dc, var(--primary)); }
.rk-group-h { border-left: 4px solid var(--dc, var(--primary)); padding-left: .6rem; }
.rk-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--dc, var(--primary)); margin-right: .35rem; vertical-align: middle; }
/* herramientas: en pantallas chicas cada fila apilada ocupa todo el ancho (el buscador y cada grupo de filtros) */
@media (max-width: 720px) {
  .rk-tools { flex-direction: column; align-items: stretch; }
  .rk-tools > * { width: 100%; flex: 1 1 auto; }
  .rk-tools .seg { display: flex; width: 100%; overflow-x: auto; }
  .rk-tools .seg > label { flex: 1 1 auto; }
  .rk-tools .seg span { justify-content: center; width: 100%; white-space: nowrap; }
}

/* Ediciones de un torneo (clonar = nueva edición) */
.tn-ed-badge { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; color: inherit; }
.tn-edition-note { display: flex; align-items: center; gap: .4rem; margin: 0 0 .8rem; padding: .55rem .8rem; border-radius: var(--radius); background: var(--primary-soft); font-size: .9rem; }
.tn-editions h3 { display: flex; align-items: center; gap: .4rem; }
.tn-ed-list { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .3rem; }
.tn-ed-list li { display: flex; align-items: center; gap: .6rem; padding: .45rem .55rem; border-radius: var(--radius); }
.tn-ed-list li.is-me { background: var(--primary-soft); }
.tn-ed-list .grow { display: grid; min-width: 0; }
.tn-ed-list .grow > .badge { justify-self: start; margin: .1rem 0; }
.tn-ed-list small { color: var(--text-muted); }
.tn-ed-list a { color: inherit; }
.tn-ed-n { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--surface-2); font-weight: 800; font-variant-numeric: tabular-nums; }
.tn-ed-list li.is-me .tn-ed-n { background: var(--primary); color: var(--on-primary); }
.tn-ed-list li > .icon { color: #d4a017; }

/* Fotos de premios y sorteos (casilla [data-pz-img]: tocar, arrastrar o pegar) */
.pz-row { grid-template-columns: auto auto minmax(140px, 180px) minmax(160px, 1fr) minmax(130px, 180px) auto; }
.pz-img { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1px dashed color-mix(in srgb, var(--text-muted) 55%, transparent); border-radius: var(--radius); background: var(--surface-2); color: var(--text-muted); cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s; flex: none; }
.pz-img:hover, .pz-img.is-drop { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.pz-img.is-drop { border-style: solid; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent); }
.pz-img > img { width: 100%; height: 100%; object-fit: cover; }
.pz-img:has(> img) { border-style: solid; }
.pz-img input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pz-img-x { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / .65); color: #fff; cursor: pointer; }
.pz-img-x[hidden] { display: none; }
.pz-img-x .icon { width: 12px; height: 12px; }
.pz-img.is-busy::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--surface) 70%, transparent) center / 18px no-repeat; }
.pz-img.is-busy::before { content: ""; position: absolute; z-index: 1; width: 18px; height: 18px; border: 2px solid var(--primary); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.rf-row-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; align-items: start; }
.rf-row-in > .pz-img { width: 72px; height: 72px; margin-top: 1.4rem; }
@container (max-width: 700px) {
  .pz-row { grid-template-columns: auto auto minmax(0, 1fr) minmax(0, 1fr) auto; }
  .pz-row .pz-place { grid-column: 3 / 5; }
  .pz-row [data-pz-remove] { grid-column: 5; grid-row: 1; }
  .pz-row .pz-title { grid-column: 1 / 4; }
  .pz-row [data-sponsor-select] { grid-column: 4 / 6; }
}
@container (max-width: 420px) {
  .pz-row .pz-title, .pz-row [data-sponsor-select] { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .rf-row-in { grid-template-columns: 1fr; } .rf-row-in > .pz-img { margin-top: 0; } }
/* sitio: la foto del premio o sorteo */
.tn-prize-img { flex: none; display: block; width: 56px; height: 56px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--border); }
.tn-prize-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.tn-prize-img:hover img { transform: scale(1.06); }

/* Sitio › torneo › Puntos por ronda: escalera del campeón a la primera ronda, con barra proporcional */
.tn-tier-table { list-style: none; margin: .2rem 0 0; padding: 0; display: grid !important; grid-template-columns: 1fr !important; gap: .3rem; }
.tn-tier-table li { display: grid; grid-template-columns: minmax(5.5rem, auto) minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .35rem .6rem; min-width: 0; border: 0; background: none; border-radius: var(--radius); }
.tn-tier-table li:nth-child(odd) { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.tn-tier-r { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.tn-tier-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.tn-tier-bar i { display: block; width: var(--p); height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 60%, transparent), var(--primary)); }
.tn-tier-table strong { font-size: 1rem; font-variant-numeric: tabular-nums; text-align: right; min-width: 3.2rem; }
.tn-tier-table li.is-w { background: color-mix(in srgb, #d4a017 12%, var(--surface)); border: 0; }
.tn-tier-table li.is-w .tn-tier-bar i { background: linear-gradient(90deg, #e9c46a, #d4a017); }
.tn-tier-table li.is-w .icon { color: #d4a017; }
.tn-tier-table li.is-far { opacity: .45; }
.tn-tier-extra { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 0; }
.tn-tier-extra span { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: var(--radius); background: var(--surface-2); font-size: .82rem; }
.tn-tier-rule { display: flex; gap: .35rem; align-items: flex-start; margin: .6rem 0 0; font-size: .82rem; color: var(--text-muted); }
.tn-tier-rule .icon { flex: none; margin-top: .15rem; }

/* ==========================================================================
   Pagos: piezas compartidas por el sitio y el panel (página de pago, estado del pago,
   bloque de precio, banda de modo pruebas). Ver app/Services/Payments.
   ========================================================================== */
.pay-test-band { display: flex; align-items: flex-start; gap: .5rem; padding: .6rem .9rem; margin: 0 0 1rem; border: 1px dashed var(--warn); border-radius: var(--radius); background: var(--warn-soft); color: var(--text); font-size: .9rem; }
.pay-test-band .icon { color: var(--warn); margin-top: .15rem; flex: none; }
.badge.pay-test { border: 1px dashed var(--warn); color: var(--warn); background: transparent; }

/* estado del pago junto a una inscripción */
.pay-chip { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: .5rem 0; padding: .55rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); font-size: .9rem; }
.pay-chip > span { flex: 1 1 10rem; min-width: 0; }
.pay-chip.is-ok { border-color: color-mix(in srgb, var(--ok) 35%, var(--border)); background: var(--ok-soft); }
.pay-chip.is-ok .icon { color: var(--ok); }
.pay-chip.is-warn { border-color: color-mix(in srgb, var(--warn) 40%, var(--border)); background: var(--warn-soft); }
.pay-chip.is-warn .icon { color: var(--warn); }
.pay-chip.is-info { background: var(--info-soft); }
.pay-chip-link { font-weight: 600; font-size: .86rem; }
.tn-in.is-hold { color: var(--warn); }

/* bloque «Cobro online» en los formularios */
.pricing-field { display: grid; gap: .9rem; padding: .9rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
/* en una columna angosta (ej. «Inscripción» al costado del formulario) los campos van uno abajo del otro */
.form-aside .pricing-field .form-grid > [class*="w-"] { grid-column: 1 / -1; }
.pricing-recur { display: grid; gap: .5rem; }
.pricing-recur .form-grid { margin-top: .25rem; padding-top: .75rem; border-top: 1px dashed var(--border); }
[data-pricing-recur-detail][hidden] { display: none !important; }
/* ---------- Tarjeta de inscripción de una actividad (elegir cómo pagar, débito) ---------- */
.tn-t-cta { min-width: 0; }
.tn-t-cta .btn { white-space: normal; text-align: center; max-width: 100%; }
/* En el celular la tarjeta no puede ser más ancha que la pantalla:
   - la grilla del encabezado tenía una sola columna implícita («auto»), que crece hasta el contenido más ancho que no se corta;
   - un <fieldset> (la lista de cuadros) por defecto no se achica por debajo de su contenido (min-inline-size: min-content). */
@media (max-width: 899px) { .tn-t-hero-grid { grid-template-columns: minmax(0, 1fr); } }
.tn-t-hero-grid > *, .tn-t-cta > *, .tn-t-cta form, .tn-mine, .tn-mine-i, .tn-mine-i form, .tn-more-div, .su-divs, .su-div, .su-div-b { min-width: 0; max-width: 100%; }
.su-divs { min-inline-size: 0; }
.su-div-b strong { flex-wrap: wrap; overflow-wrap: anywhere; }
.su-div-b small, .tn-t-cta .tn-in, .tn-t-cta .su-one, .tn-next-match { overflow-wrap: anywhere; }
.tn-t-cta .tn-in { flex-wrap: wrap; }
.pt-new-head { flex-wrap: wrap; }
.pt-new-head strong { white-space: normal; }
.tn-t-cta .pt-new-row { grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); }
.su-form { display: grid; gap: .75rem; min-width: 0; margin: 0; }
.su-form > * + * { margin-top: 0; }
.su-pay { display: grid; gap: .5rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.su-pay legend { padding: 0; margin-bottom: .5rem; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.su-opt { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'ic title amt' 'ic sub sub'; align-items: center; gap: .1rem .7rem; padding: .7rem .85rem; border: 1.5px solid var(--border); border-radius: var(--radius-lg, 12px); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.su-opt:hover { border-color: var(--border-strong, var(--text-muted)); }
.su-opt input { position: absolute; opacity: 0; pointer-events: none; }
.su-opt:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.su-opt:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.su-opt-ic, .su-sub-ic { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--surface); color: var(--text-muted); flex: none; }
.su-opt:has(input:checked) .su-opt-ic { background: var(--primary); color: var(--on-primary, #fff); }
.su-opt-main { display: contents; }
.su-opt-ic { grid-area: ic; }
.su-opt-main strong { grid-area: title; }
.su-opt-main small { grid-area: sub; }
.su-opt-amt { grid-area: amt; }
.su-sub-main { display: grid; gap: .1rem; min-width: 0; }
[data-su-unico][hidden] { display: none !important; }
.su-opt-main strong, .su-sub-main strong { font-size: .95rem; line-height: 1.25; }
.su-opt-main small, .su-sub-main small { font-size: .78rem; line-height: 1.35; color: var(--text-muted); }
.su-opt-amt, .su-sub-amt { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.su-opt-amt small, .su-sub-amt small { font-family: var(--font-body, inherit); font-weight: 500; font-size: .75rem; color: var(--text-muted); }
.su-go { margin-top: .15rem; }
.su-note { font-size: .85rem; }
.su-note summary { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; color: var(--text-muted); list-style: none; }
.su-note summary::-webkit-details-marker { display: none; }
.su-note summary:hover { color: var(--text); }
.su-note[open] summary { margin-bottom: .45rem; color: var(--text); }
.su-note input { width: 100%; }
.su-form .su-facts { margin-top: 0; }
/* estado del débito de quien ya está anotado */
.su-sub { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; margin: 0; padding: .75rem .85rem; border-radius: var(--radius-lg, 12px); background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.su-sub .su-sub-ic { background: var(--ok); color: var(--surface); }
.su-sub-main a { font-size: .8rem; font-weight: 600; width: fit-content; }
.su-sub.is-pending { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.su-sub.is-pending .su-sub-ic { background: var(--warn); }
.su-sub.is-paused, .su-sub.is-offer { background: var(--surface-2); border-color: var(--border); }
.su-sub.is-paused .su-sub-ic, .su-sub.is-offer .su-sub-ic { background: var(--surface); color: var(--text-muted); }
.su-sub.is-offer { border-style: dashed; }
.tn-fact-alt { display: flex; align-items: center; gap: .3rem; margin-top: .25rem; font-family: var(--font-body, inherit); font-weight: 500; font-size: .76rem; color: var(--text-muted); }
.tn-t-cta .tn-facts dd small.muted { display: block; font-family: var(--font-body, inherit); font-weight: 500; line-height: 1.35; margin-top: .15rem; }
.pricing-off { margin: 0; }
.pricing-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: .5rem; }
.pricing-mode { position: relative; display: flex; gap: .55rem; align-items: flex-start; padding: .65rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; }
.pricing-mode:hover { border-color: var(--border-strong); }
.pricing-mode:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.pricing-mode input { margin-top: .2rem; accent-color: var(--primary); }
.pricing-mode strong { display: block; font-size: .92rem; }
.pricing-mode small { display: block; color: var(--text-muted); font-size: .8rem; line-height: 1.35; }
.pricing-detail[hidden], [data-pricing-only][hidden] { display: none !important; }
.pricing-gws { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-check { display: inline-flex; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .65rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .86rem; cursor: pointer; color: var(--text-muted); }
.chip-check input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--text); }
.chip-check input:focus-visible + span { box-shadow: var(--focus); }
.input-suffix { display: flex; align-items: stretch; }
.input-suffix input { flex: 1; min-width: 0; border-radius: var(--radius) 0 0 var(--radius); }
.input-suffix span { display: flex; align-items: center; padding: 0 .7rem; border: 1px solid var(--border-strong); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface-2); color: var(--text-muted); font-size: .86rem; white-space: nowrap; }

/* página de pago (/pagos/{código}) y de planes */
.pay-wrap { padding-block: 1.5rem 3rem; }
.pay-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 1.5rem; align-items: start; }
@media (max-width: 820px) { .pay-shell { grid-template-columns: 1fr; } .pay-side { order: -1; } }
.pay-back { display: flex; width: fit-content; align-items: center; gap: .3rem; font-size: .88rem; margin-bottom: .6rem; }
.pay-title { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: .2rem 0 .3rem; overflow-wrap: anywhere; }
.pay-h2 { font-size: 1.1rem; margin: 1.6rem 0 .7rem; }
.pay-state { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.pay-state p { margin: .2rem 0 0; color: var(--text-muted); }
.pay-state-ic { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: var(--radius); background: var(--surface-2); }
.pay-state.is-ok { border-color: color-mix(in srgb, var(--ok) 40%, var(--border)); }
.pay-state.is-ok .pay-state-ic { background: var(--ok-soft); color: var(--ok); }
.pay-state.is-warn .pay-state-ic { background: var(--warn-soft); color: var(--warn); }
.pay-state.is-info .pay-state-ic { background: var(--info-soft); color: var(--info); }
.pay-state.is-danger .pay-state-ic { background: var(--danger-soft); color: var(--danger); }
.pay-countdown { font-variant-numeric: tabular-nums; color: var(--warn); font-weight: 600; }
.pay-reject { color: var(--danger) !important; display: flex; gap: .35rem; align-items: flex-start; }
.pay-methods { display: grid; gap: .6rem; }
.pay-method { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; padding: .95rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.pay-method.is-online { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.pay-method > .grow { flex: 1 1 14rem; min-width: 0; }
.pay-method strong { display: block; }
.pay-method small { display: block; color: var(--text-muted); font-size: .84rem; line-height: 1.4; }
.pay-method-ic { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary); }
details.pay-method { display: block; }
details.pay-method > summary { display: flex; gap: .8rem; align-items: center; cursor: pointer; list-style: none; }
details.pay-method > summary::-webkit-details-marker { display: none; }
details.pay-method[open] .pay-chev { transform: rotate(180deg); }
.pay-chev { transition: transform .2s; color: var(--text-muted); }
.pay-instr { margin: .9rem 0 .6rem; padding: .8rem .9rem; border-radius: var(--radius); background: var(--surface-2); white-space: normal; font-size: .93rem; }
.pay-report { display: grid; gap: .6rem; }
.pay-report .field { margin: 0; }
.pay-sim { margin-top: .9rem; padding: .7rem .9rem; border: 1px dashed var(--warn); border-radius: var(--radius); }
.pay-sim summary { cursor: pointer; font-weight: 600; color: var(--warn); }
.pay-sim .row { margin-top: .5rem; }
.pay-self { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.pay-self p { margin: 0; }
.pay-summary h2, .pay-hist h2 { font-size: 1rem; margin: 0 0 .7rem; }
.pay-summary dl { margin: 0; display: grid; gap: .45rem; }
.pay-summary dl > div { display: flex; justify-content: space-between; gap: 1rem; }
.pay-summary dt { color: var(--text-muted); min-width: 0; overflow-wrap: anywhere; }
.pay-summary dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-summary .pay-total { padding-top: .55rem; margin-top: .2rem; border-top: 1px solid var(--border); }
.pay-summary .pay-total dt { color: var(--text); font-weight: 700; }
.pay-summary .pay-total dd { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.pay-trust { list-style: none; margin: 1rem 0 0; padding: .8rem 0 0; border-top: 1px solid var(--border); display: grid; gap: .45rem; font-size: .84rem; color: var(--text-muted); }
.pay-trust li { display: flex; gap: .4rem; align-items: flex-start; }
.pay-trust .icon { flex: none; margin-top: .15rem; color: var(--ok); }
.pay-side { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 820px) { .pay-side { position: static; } }
.pay-hist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pay-hist li { display: flex; gap: .6rem; align-items: baseline; font-size: .9rem; }
.pay-hist small { display: block; color: var(--text-muted); font-size: .8rem; }
.pay-feats { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .35rem; }
.pay-feats li { display: flex; gap: .4rem; align-items: flex-start; }
.pay-feats .icon { color: var(--ok); margin-top: .2rem; flex: none; }

/* Mi cuenta › Pagos */
.acc-pay { display: grid; gap: .6rem; }
.acc-pay-empty { display: flex; gap: .8rem; align-items: center; color: var(--text-muted); }
.acc-pay-empty p { margin: 0; }
.acc-pay-list { list-style: none; margin: 0 0 .8rem; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.acc-pay-list li { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
.acc-pay-list li:last-child { border-bottom: 0; }
.acc-pay-list li.is-open { background: var(--warn-soft); }
.acc-pay-list .grow { flex: 1 1 12rem; min-width: 0; }
.acc-pay-list small { display: block; color: var(--text-muted); font-size: .84rem; }
.acc-pay-ic { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: var(--radius); background: var(--surface-2); }
.acc-pay-acts { display: flex; gap: .35rem; flex-wrap: wrap; }
.acc-pay-note { font-size: .84rem; display: flex; gap: .35rem; align-items: flex-start; }

/* Pagos en el sitio: aviso en Mi cuenta, estado en tarjetas y nota junto al botón de inscripción */
.acc-paydue { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; margin: 0 0 1rem; padding: .85rem 1rem; border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--border)); border-radius: var(--radius-lg); background: var(--warn-soft); }
.acc-paydue-ic { flex: none; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: var(--radius); background: var(--surface); color: var(--warn); }
.acc-paydue .grow { flex: 1 1 14rem; min-width: 0; }
.acc-paydue small { display: block; color: var(--text-muted); font-size: .86rem; }
.acc-tour .pay-badge { margin-top: .35rem; display: inline-flex; align-items: center; gap: .25rem; }
/* debajo del botón de inscribirse: cómo se paga, la devolución y cuánto falta para que cierre */
.su-facts { list-style: none; margin: .45rem 0 0; padding: 0; display: grid; gap: .45rem; font-size: .84rem; line-height: 1.4; color: var(--text-muted); }
.su-facts li { display: flex; gap: .5rem; align-items: flex-start; }
.su-facts li > .icon { flex: none; width: 1.55rem; height: 1.55rem; padding: .33rem; margin-top: -.12rem; border-radius: 50%; background: var(--surface-2); color: var(--text); box-sizing: border-box; }
.su-facts b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.su-facts li.is-urgent > .icon { background: color-mix(in srgb, var(--warning, #d97706) 18%, transparent); color: var(--warning, #d97706); }
.su-facts li.is-urgent b { color: var(--warning, #d97706); }
.pay-signup-note { display: flex; gap: .35rem; align-items: flex-start; margin: .2rem 0 0; font-size: .84rem; }
.pay-signup-note .icon { flex: none; margin-top: .15rem; color: var(--ok); }

/* ---------- Cuadros (categoría × modo) en el sitio ---------- */
.tn-pdivs { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .8rem; }
.tn-pdiv { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .88rem; }
.tn-pdiv span { color: var(--text-muted); }
.tn-pdiv:hover { border-color: var(--primary); }
.tn-pdiv.is-on { border-color: var(--primary); background: var(--primary-soft); }
.tn-pdiv.is-on span { color: var(--text); }
.tn-pdiv i { display: inline-flex; font-style: normal; }
.tn-pdiv-me { color: var(--ok); }
.tn-pdiv-champ { color: #ca8a04; }
.su-divs { border: 0; margin: 0; padding: 0; display: grid; gap: .35rem; }
.su-divs legend { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; padding: 0; }
.su-div { display: flex; align-items: flex-start; gap: .55rem; padding: .5rem .65rem; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.su-div:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.su-div input { margin-top: .2rem; accent-color: var(--primary); }
.su-div-b { display: grid; gap: .05rem; min-width: 0; }
.su-div-b strong { display: inline-flex; align-items: center; gap: .3rem; font-size: .92rem; }
.su-div-b small { color: var(--text-muted); font-size: .78rem; }
.su-one { display: flex; align-items: center; gap: .35rem; margin: 0; font-size: .9rem; }
.su-who { display: flex; align-items: center; gap: .35rem; margin: 0; font-size: .8rem; color: var(--text-muted); }
.su-gender { display: grid; gap: .3rem; }
.su-gender[hidden] { display: none; }
.su-gender small { font-size: .76rem; }
.tn-mine { display: grid; gap: .5rem; }
.tn-mine-i { display: grid; gap: .35rem; }
.tn-mine-i + .tn-mine-i { padding-top: .5rem; border-top: 1px dashed var(--border); }
.tn-in small { display: block; font-weight: 600; color: var(--text-muted); font-size: .82rem; margin-top: .1rem; }
.tn-more-div > summary { list-style: none; cursor: pointer; justify-content: center; width: 100%; }
.tn-more-div > summary::-webkit-details-marker { display: none; }
.tn-more-div[open] > summary { margin-bottom: .6rem; }
.tn-sched-div { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .02em; color: var(--primary); text-transform: uppercase; }

/* premios por cuadro: «para qué cuadro» arriba de cada premio, solo con «Distintos por cuadro» */
.pz-mode { display: grid; gap: .35rem; margin: 0 0 .7rem; }
.pz-mode .seg { justify-self: start; }
.pz-mode .hint { margin: 0; }
.pz-div { grid-column: 1 / -1; display: none; align-items: center; gap: .4rem; }
.pz-div::before { content: "Para"; font-size: .75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.pz-div select { width: auto; max-width: 100%; font-weight: 700; }
.is-per-div .pz-div { display: flex; }

/* Portada destacada: versión propia para el celular (Designs::VARIANT_SCREENS, hasta Designs::MOBILE_MAX) */
@media (max-width: 640px) {
  .has-m { --cover: var(--cover-m) !important; }
  .tn-row-cover.has-m { background-image: var(--cover-m) !important; }
  .tn-t-hero.has-m { --feature: var(--feature-m) !important; }
}
