/* Liga de Legacy Murcia · estilo "Cristal noche"
   Tinta, carbón y papel con vidrio oscuro y un único acento (naranja).
   El arte de la carta insignia de cada mazo es la imagen de los jugadores.
   Para cambiar el acento basta con --accent-rgb (oro: 247 181 0 · carmín: 236 58 84 · turquesa: 45 212 191). */

:root {
    --accent-rgb: 255 122 26;
    --accent: rgb(var(--accent-rgb));
    --accent-2: color-mix(in srgb, var(--accent) 70%, #fff);
    --on-accent: #111113;
    --crimson: #9D1A31;
    --gold-rgb: 247 181 0;
    --gold-2: #FFDC85;
    --gold-ink: #3B2B00;
    --rara-ink: #F5CE6A;
    --field-bg: rgba(0, 0, 0, .28);

    --night: #0A0A0B;
    --coal: #17171A;
    --coal-2: #202024;
    --paper: #F2F2EF;
    --ink: #111113;
    --ink-2: #5E5E66;
    --text: #F4F4F1;
    --muted: rgba(244, 244, 241, .72);
    --soft: rgba(244, 244, 241, .55);
    --line: rgb(var(--tint-rgb) / .12);
    --win: #5FD08A;
    --on-win: #0C2A18;
    --loss: #FF7A6B;
    --vs-b-rgb: 63 169 245; /* el azul del segundo jugador en el cara a cara; el primero lleva el acento */
    --vs-b: rgb(var(--vs-b-rgb));

    --r-panel: 14px;
    --r-tile: 12px;
    --r-pill: 10px;
    --r-sm: 8px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --wrap: 1360px;
    --gutter: clamp(16px, 3vw, 36px);

    --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: var(--font);
    --display-case: none;
    --display-track: -.035em;

    /* Lo que cambia de un tema a otro, además de los colores de arriba:
       --tint-rgb es el velo de las superficies (blanco sobre fondo oscuro, tinta sobre papel),
       --pure el color de máximo contraste y --frame-bg el fondo de la página. */
    --tint-rgb: 255 255 255;
    --pure: #fff;
    --frame-bg: linear-gradient(170deg, var(--coal-2) 0%, var(--coal) 38%, #0F0F11 100%);
    --frame-texture: none;
    --glass-bg: linear-gradient(180deg, rgb(var(--tint-rgb) / .085), rgb(var(--tint-rgb) / .04));
    --glass-line: rgb(var(--tint-rgb) / .12);
    --glass-blur: blur(22px) saturate(140%);
    --glass-shadow: inset 0 1px 0 rgb(var(--tint-rgb) / .12), 0 26px 50px -30px rgba(0, 0, 0, .65);
    --art-filter: var(--art-filter);
    color-scheme: dark;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.45;
    color: var(--text);
    background: var(--night);
    overflow-x: hidden;
    font-variant-numeric: tabular-nums;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: rgb(var(--tint-rgb) / .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr, .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; z-index: 50; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); color: var(--ink); padding: 8px 12px; border-radius: var(--r-sm); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.accent { color: var(--accent); }
.strong { font-weight: 600; }

/* ───────── Marco a sangre ───────── */

.frame {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    padding: 22px max(var(--gutter), calc((100% - var(--wrap)) / 2)) 40px;
    background: var(--frame-bg);
}
.frame__fx { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; background-image: var(--frame-texture); }
.bloom { position: absolute; border-radius: 50%; filter: blur(80px); animation: drift 22s ease-in-out infinite alternate; }
.bloom--1 { width: 560px; height: 560px; left: -160px; top: -220px; background: var(--accent); opacity: .18; }
.bloom--2 { width: 520px; height: 520px; right: -160px; top: 30%; background: var(--crimson); opacity: .26; animation-delay: -11s; }
.bloom--3 { width: 680px; height: 680px; right: -120px; bottom: -260px; background: var(--accent); opacity: .12; animation-delay: -15s; }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-line);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
}
.panel { border-radius: var(--r-panel); padding: 24px; min-width: 0; }

/* ───────── Cabecera y pie ───────── */

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 56px; height: 56px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .45)); flex: none; }
.brand__name { font-family: var(--font-display); display: block; font-weight: 800; font-size: 19px; line-height: 1.05; letter-spacing: -.01em; }
.brand__sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.nav { position: relative; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: var(--r-pill); }
.nav::-webkit-scrollbar { display: none; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 5px; border-radius: var(--r-pill); width: max-content; }
.nav a { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14.5px; white-space: nowrap; transition: background .2s, color .2s; }
.nav a:hover { color: var(--pure); background: rgb(var(--tint-rgb) / .08); }
.nav a[aria-current="page"] { background: var(--paper); color: var(--ink); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); }
.nav a.nav__admin { color: var(--accent); }
.nav a.nav__admin[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.header-sponsor { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: var(--r-pill); text-decoration: none; transition: border-color .2s; }
.header-sponsor:hover { border-color: rgba(233, 184, 90, .5); }
.header-sponsor img { height: 30px; width: auto; flex: none; }
.header-sponsor__text { display: flex; flex-direction: column; font-size: 13.5px; font-weight: 600; line-height: 1.15; color: #E4B45F; white-space: nowrap; }
.header-sponsor__text small { font-size: 11px; font-weight: 500; color: var(--muted); }
@media (max-width: 1180px) {
    .header-sponsor { padding: 8px; }
    .header-sponsor__text { display: none; }
}
@media (max-width: 880px) {
    .site-header .brand { order: 1; }
    .header-right { order: 2; margin-left: auto; }
    .site-header .nav { order: 3; flex-basis: 100%; }
}
.ico, .nav svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.played { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.played li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: rgb(var(--tint-rgb) / .05); border: 1px solid var(--line); }
.played li.is-saved { opacity: .72; }
.fix { border-color: rgb(var(--accent-rgb) / .45); }
.fix__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.fix__head h2 { font-size: 21px; font-weight: 700; margin: 4px 0 6px; max-width: 40ch; text-wrap: balance; }
.fix__head .actions { flex: none; }
.fix__diff { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.fix__diff h3 { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fix__diff ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-variant-numeric: tabular-nums; }
.fix__diff li { padding: 4px 10px; border-radius: 6px; font-weight: 600; font-size: 14px; }
.fix__diff li.is-in { background: rgba(95, 208, 138, .14); color: var(--win); }
.fix__diff li.is-out { background: rgba(255, 122, 107, .12); color: var(--loss); }
.played__deck { display: flex; align-items: center; gap: 12px; min-width: 0; }
.played__deck strong { display: block; font-size: 15.5px; font-weight: 700; }
.played__deck small { display: block; font-size: 12.5px; color: var(--muted); }
.played--compact li { padding: 8px 12px; }

/* Cuenta: un solo botón con su desplegable, en vez de «Entrar» y «Panel» sueltos. */
.header-right { display: flex; align-items: center; gap: 10px; }
.account { position: relative; }
.account__button { display: flex; align-items: center; gap: 9px; padding: 7px 12px 7px 7px; border-radius: var(--r-pill); text-decoration: none; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; color: inherit; }
.account__button::-webkit-details-marker { display: none; }
.account__button:hover { border-color: rgb(var(--tint-rgb) / .28); }
.account__button--in { padding: 9px 14px; }
.account__button .ico { width: 16px; height: 16px; color: var(--muted); }
.account__avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; overflow: hidden; }
.account__avatar--photo { background: var(--coal-2); }
.account__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.account__name { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account[open] .account__button .ico:last-of-type { transform: rotate(180deg); }
.account__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 230px; padding: 8px; border-radius: 12px; display: grid; gap: 2px; }
.account__who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.account__who strong { display: block; font-size: 14.5px; }
.account__who small { color: var(--muted); font-size: 12px; }
.account__menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); }
.account__menu a:hover { background: rgb(var(--tint-rgb) / .1); color: var(--pure); }
.account__menu a .ico { width: 16px; height: 16px; }
.account__out { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px !important; padding-top: 12px !important; }
.check--inline { display: inline-flex; margin: 0 10px 0 0; font-size: 13px; }
.roles-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

@media (max-width: 620px) {
    .account__button .account__name { display: none; }
    .account__button--in .account__name { display: inline; }
    .account__menu { min-width: 210px; }
}

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer .brand img { width: 40px; height: 40px; }
.site-footer .brand__name { font-size: 15px; }
.site-footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer__legal { flex-basis: 100%; font-size: 12px; color: var(--soft); }

.main { padding-top: 8px; }

/* ───────── Patrocinador ───────── */

.sponsor { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px 28px; padding: 22px 28px; border-radius: var(--r-panel); text-decoration: none; color: inherit; transition: border-color .2s; }
.sponsor:hover { border-color: rgba(233, 184, 90, .45); }
.sponsor__label { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sponsor-logo { display: block; height: 52px; width: auto; max-width: 100%; }
.sponsor-logo--text { height: auto; font: 700 34px/1 Georgia, "Times New Roman", serif; letter-spacing: .01em; white-space: nowrap; background: linear-gradient(180deg, #F2C866, #C9872F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sponsor__text { color: var(--muted); font-size: 15px; }
.sponsor-foot { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.sponsor-foot .sponsor-logo { height: 26px; }
.sponsor-foot .sponsor-logo--text { font-size: 19px; }
.sponsor-foot span:first-child { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
    .sponsor { grid-template-columns: 1fr; justify-items: start; padding: 20px; }
    .sponsor-logo { height: 42px; }
}

/* ───────── Piezas comunes ───────── */

.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow--accent { color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 9px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; line-height: 1; text-decoration: none; }
.chip--accent { background: var(--accent); color: var(--on-accent); }
.chip--glass { background: rgb(var(--tint-rgb) / .1); border: 1px solid rgb(var(--tint-rgb) / .18); color: var(--pure); }
.chip--paper { background: var(--paper); color: var(--ink); }
.chip .ico { width: 16px; height: 16px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; line-height: 1.2; vertical-align: 2px; white-space: nowrap; background: rgb(var(--tint-rgb) / .1); color: var(--muted); }
.tag--accent { background: var(--accent); color: var(--on-accent); }
.tag .ico { width: 13px; height: 13px; }
.tag--mitica { background: var(--accent); color: var(--on-accent); }
.tag--rara { background: rgb(var(--gold-rgb) / .22); color: var(--rara-ink); box-shadow: inset 0 0 0 1px rgb(var(--gold-rgb) / .45); }
.tag--infrecuente { background: rgb(var(--tint-rgb) / .14); color: var(--pure); }
.tag--comun { background: rgb(var(--tint-rgb) / .08); color: var(--muted); }
.tag--line { background: none; box-shadow: inset 0 0 0 1.5px rgb(var(--tint-rgb) / .35); color: var(--pure); }
.tag--win { background: rgba(95, 208, 138, .16); color: var(--win); }

.btn, .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: var(--r-pill); font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; border: 0; transition: transform .2s var(--ease), background .2s; background: var(--paper); color: var(--ink); }
.btn:hover, .button:hover { transform: translateY(-1px); }
.btn--glass, .button--ghost { background: rgb(var(--tint-rgb) / .08); color: var(--pure); box-shadow: inset 0 0 0 1px rgb(var(--tint-rgb) / .24); }
.btn--glass:hover, .button--ghost:hover { background: rgb(var(--tint-rgb) / .16); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.button--small { padding: 8px 12px; font-size: 13.5px; }
.button--danger { background: none; color: var(--loss); box-shadow: inset 0 0 0 1px rgba(255, 122, 107, .5); }
.button--danger.is-armed { background: var(--loss); color: #111113; box-shadow: none; }
.confirm-note { flex-basis: 100%; margin: 8px 0 0; font-size: 13px; color: var(--loss); white-space: normal; text-align: left; }
.fieldset.danger { border-color: rgba(255, 122, 107, .35); }
.btn .ico, .button .ico { width: 17px; height: 17px; }

.credit { font-size: 11.5px; color: rgb(var(--tint-rgb) / .82); letter-spacing: .01em; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }

/* Símbolos de maná de verdad (assets/mana). El círculo .pip de debajo es el respaldo
   por si algún símbolo todavía no está descargado. */
.ms { display: inline-block; width: 15px; height: 15px; vertical-align: middle; flex: none; border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.pips .ms + .ms, .pips .ms + .pip, .pips .pip + .ms { margin-left: 2px; }
.pips--lg .ms { width: 22px; height: 22px; }
.cost .ms { width: 16px; height: 16px; box-shadow: none; }

.pips { display: inline-flex; align-items: center; vertical-align: middle; padding-left: 2px; flex: none; }
.pip { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; font: 700 8px/1 var(--font); font-style: normal; color: #fff; box-shadow: 0 0 0 1.5px rgb(var(--tint-rgb) / .55), inset 0 -2px 3px rgba(0, 0, 0, .28), inset 0 2px 2px rgb(var(--tint-rgb) / .28); }
.pip + .pip { margin-left: -2px; }
.pip--W { background: #F0E6C8; color: #3b3524; box-shadow: 0 0 0 1.5px rgb(var(--tint-rgb) / .55), inset 0 0 0 1.5px #A8915C; }
.pip--U { background: #2A67B0; }
.pip--B { background: #2B2727; }
.pip--R { background: #C43E28; }
.pip--G { background: #2E7A48; }
.pip--C { background: #A9A9A0; }
.pip--game { font-size: 8px; font-weight: 800; box-shadow: 0 0 0 1.5px rgb(var(--tint-rgb) / .45), inset 0 -2px 3px rgba(0, 0, 0, .22); }
.pips--lg .pip--game { font-size: 11px; }
.pips--lg .pip { width: 20px; height: 20px; }
.pips--lg .pip + .pip { margin-left: -3px; }
.on-light .pip { box-shadow: 0 0 0 1.5px rgba(17, 17, 19, .18), inset 0 -2px 3px rgba(0, 0, 0, .25), inset 0 2px 2px rgb(var(--tint-rgb) / .28); }
.cost { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.cost .pip { width: 16px; height: 16px; font-size: 9px; box-shadow: none; }
.cost .pip + .pip { margin-left: 0; }

.deck { display: inline-flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; white-space: nowrap; }
a.deck:hover span { text-decoration: underline; text-underline-offset: 3px; }
.player { font-weight: 600; text-decoration: none; }
a.player:hover { text-decoration: underline; text-underline-offset: 3px; }

.vd { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 5px; font-size: 12px; font-weight: 700; line-height: 1; flex: none; }
.vd--V { background: var(--accent); color: var(--on-accent); }
.vd--D { color: var(--pure); box-shadow: inset 0 0 0 1.5px rgb(var(--tint-rgb) / .55); }
.vd--E { background: rgb(var(--tint-rgb) / .85); color: var(--ink); }
.w { color: var(--accent); font-weight: 700; }
.l { color: var(--muted); }
.d { color: var(--muted); }

.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.phead h2 { font-family: var(--font-display); text-transform: var(--display-case); font-size: 26px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; margin-top: 4px; }
.phead__note, .phead > p { font-size: 13.5px; color: var(--muted); max-width: 46ch; }
.phead a { font-size: 14px; font-weight: 500; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.grid > * { min-width: 0; }
.s-4 { grid-column: span 4; } .s-5 { grid-column: span 5; } .s-6 { grid-column: span 6; } .s-7 { grid-column: span 7; } .s-8 { grid-column: span 8; } .s-12 { grid-column: span 12; }

.tile { border-radius: var(--r-tile); padding: 14px 16px; min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-width: 0; }
.tile__label { font-size: 13px; color: var(--muted); font-weight: 500; }
.tile__value { font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 38px); font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.tile__sub { font-size: 12.5px; color: var(--muted); }
.tile--paper { background: var(--paper); color: var(--ink); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .5); }
.tile--paper .tile__label, .tile--paper .tile__sub { color: var(--ink-2); }
.tile--accent { background: linear-gradient(145deg, var(--accent-2), var(--accent) 60%); color: var(--on-accent); box-shadow: 0 20px 44px -20px rgb(var(--accent-rgb) / .55); }
.tile--accent .tile__label, .tile--accent .tile__sub { color: color-mix(in srgb, var(--on-accent) 72%, transparent); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.facts--one { grid-template-columns: minmax(0, 240px); }
.facts--two { grid-template-columns: repeat(2, minmax(0, 260px)); }
/* Cuenta atrás para entregar las listas: una casilla más de la fila. */
.count--lists { border: 1px solid rgb(var(--accent-rgb) / .5); background: linear-gradient(135deg, rgb(var(--accent-rgb) / .16), rgb(var(--tint-rgb) / .04) 70%); }
.count__nums { display: flex; align-items: baseline; flex-wrap: wrap; font-variant-numeric: tabular-nums; line-height: 1; }
.count__nums b { font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 38px); font-weight: 700; letter-spacing: -.02em; }
.count__nums i { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 0 12px 0 4px; }
.count__done { display: none; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.count.is-done .count__nums { display: none; }
.count.is-done .count__done { display: block; }
.count.is-soon .count__nums b { color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile__of { font-size: .55em; font-weight: 600; color: var(--muted); }

.empty { padding: 28px 0; color: var(--muted); }
.empty strong { font-family: var(--font-display); display: block; color: var(--text); font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.note { font-size: 13.5px; color: var(--muted); border-left: 2px solid rgb(var(--accent-rgb) / .6); padding-left: 12px; }
.prose { max-width: 62ch; color: var(--muted); }
.prose p + p { margin-top: 10px; }
.prose strong { color: var(--pure); }

.flash { margin: 14px 0 0; padding: 12px 16px; border-radius: var(--r-tile); background: rgba(95, 208, 138, .12); border: 1px solid rgba(95, 208, 138, .35); color: var(--pure); }
.flash--error { background: rgba(255, 122, 107, .12); border-color: rgba(255, 122, 107, .4); }
.flash--warn { background: rgb(var(--accent-rgb) / .12); border-color: rgb(var(--accent-rgb) / .4); }
.flash--try { background: rgb(var(--accent-rgb) / .12); border-color: rgb(var(--accent-rgb) / .4); }
.flash--try a { font-weight: 600; }

/* Elegir el tema de la web (solo el superadmin). */
.themes { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.theme-card { border-radius: var(--r-panel); padding: 0 20px 20px; overflow: hidden; display: grid; gap: 10px; align-content: start; }
.theme-card.is-on { border-color: rgb(var(--accent-rgb) / .55); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / .35); }
.theme-card__swatch { display: flex; height: 58px; margin: 0 -20px 6px; }
.theme-card__swatch i { flex: 1; }
.theme-card__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.theme-card__head h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.theme-card p { font-size: 13.5px; line-height: 1.45; min-height: 3.6em; }
.theme-card .actions { margin-top: 2px; gap: 8px; flex-wrap: wrap; }

/* ───────── Tablas translúcidas ───────── */

.tablewrap { position: relative; overflow-x: auto; margin: 0 -6px; padding: 0 6px 4px; -webkit-overflow-scrolling: touch; }
table.pills { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.pills th { font-size: 12px; font-weight: 500; color: var(--muted); text-align: left; padding: 2px 12px; white-space: nowrap; }
.pills th a { text-decoration: none; }
[data-sortable] th[data-sort] { cursor: pointer; user-select: none; }
[data-sortable] th[data-sort]:hover { color: var(--pure); }
[data-sortable] th[data-sort]::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 6px; vertical-align: 2px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid rgb(var(--tint-rgb) / .3); }
[data-sortable] th[aria-sort="descending"] { color: var(--pure); }
[data-sortable] th[aria-sort="descending"]::after { border-top-color: var(--accent); }
[data-sortable] th[aria-sort="ascending"] { color: var(--pure); }
[data-sortable] th[aria-sort="ascending"]::after { border-top: 0; border-bottom: 5px solid var(--accent); }
.pills td { padding: 10px 12px; background: rgb(var(--tint-rgb) / .06); border-top: 1px solid rgb(var(--tint-rgb) / .08); border-bottom: 1px solid rgb(var(--tint-rgb) / .02); white-space: nowrap; transition: background .2s; vertical-align: middle; }
.pills td:first-child { border-left: 1px solid rgb(var(--tint-rgb) / .05); border-radius: 9px 0 0 9px; }
.pills td:last-child { border-right: 1px solid rgb(var(--tint-rgb) / .05); border-radius: 0 9px 9px 0; }
.pills tbody tr:hover td { background: rgb(var(--tint-rgb) / .1); }
.pills .num { text-align: right; }
.pills .pts { font-weight: 700; font-size: 15.5px; }
.pills tr.is-guest td { color: var(--muted); }
.pills tr.is-me td { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pills tr.is-me .muted { color: var(--ink-2); }
.pills td.is-dropped { color: var(--soft); text-decoration: line-through; text-decoration-color: rgb(var(--tint-rgb) / .45); }
.pills td.is-absent { color: rgb(var(--tint-rgb) / .3); }
.pills td.is-won-cell { color: var(--accent); font-weight: 700; }

.rank { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px; background: rgb(var(--tint-rgb) / .08); font-weight: 700; font-size: 14px; }
.rank--1 { background: var(--accent); color: var(--on-accent); }
.pills tr.is-me .rank { background: var(--accent); color: var(--on-accent); }
.pcell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pcell__deck { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.pcell__deck .deck { gap: 6px; }
.pcell--face { flex-direction: row; align-items: center; gap: 10px; }
.pro-name { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.subhead { font-size: 17px; font-weight: 700; margin: 22px 0 -10px; }

.cut td { background: none !important; border: 0 !important; padding: 4px 4px !important; }
.cut__line { display: flex; align-items: center; gap: 12px; color: var(--accent); font-size: 12.5px; font-weight: 600; }
.cut__line::before { content: ""; flex: 0 0 18px; border-top: 2px dashed rgb(var(--accent-rgb) / .8); }
.cut__line::after { content: ""; flex: 1; border-top: 2px dashed rgb(var(--accent-rgb) / .8); }
.cut .ico { width: 15px; height: 15px; }

/* ───────── Héroe ───────── */

.hero { position: relative; margin-top: 84px; border-radius: var(--r-panel); padding: 42px 42px 34px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 0 24px; }
.hero--flat { margin-top: 28px; }
.hero__fx { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.hero__glow { position: absolute; right: 10%; top: 10%; width: 55%; height: 80%; background: radial-gradient(closest-side, rgb(var(--accent-rgb) / .22), transparent); filter: blur(10px); }
.hero__mark { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 1; }
.watermark { font-family: var(--font-display); position: absolute; right: 6%; top: 50%; transform: translateY(-50%); font-size: clamp(280px, 40vw, 600px); font-weight: 900; line-height: .8; letter-spacing: -.06em; color: rgb(var(--tint-rgb) / .045); user-select: none; white-space: nowrap; }
.hero__art { position: relative; z-index: 1; grid-column: 2; grid-row: 1 / span 2; margin: -126px -20px -34px 0; min-height: 420px; }
.hero__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 82%, transparent 100%), linear-gradient(180deg, transparent 0, #000 17%, #000 64%, transparent 97%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 82%, transparent 100%), linear-gradient(180deg, transparent 0, #000 17%, #000 64%, transparent 97%);
    mask-composite: intersect;
    filter: var(--art-filter); }
.hero__art .credit { position: absolute; right: 26px; bottom: 20px; }
.hero__art--none { display: grid; place-items: center; }
.hero__art--none .pips .pip, .hero__art--none .pips .ms { width: 72px; height: 72px; }
.hero__art--none .pips .pip + .pip { margin-left: -14px; }
.hero__art--none .pips .ms + .ms { margin-left: 8px; }
.hero__body { position: relative; z-index: 2; grid-column: 1; min-width: 0; }
.hero__foot { position: relative; z-index: 2; grid-column: 1; margin-top: 26px; min-width: 0; }
.hero h1 { font-family: var(--font-display); text-transform: var(--display-case); font-size: clamp(40px, 6vw, 84px); font-weight: 800; line-height: .95; letter-spacing: -.035em; margin: 16px 0; max-width: 12ch; text-wrap: balance; }
.hero--flat h1 { max-width: 18ch; }
.lede { font-size: 18px; color: var(--muted); max-width: 46ch; line-height: 1.5; }
.lede strong { color: var(--pure); font-weight: 600; }
.hero__meta { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.hero__meta .deck { color: var(--pure); font-weight: 600; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.next { display: flex; align-items: center; gap: 16px; margin-top: 12px; padding: 12px 18px 12px 12px; border-radius: var(--r-tile); text-decoration: none; }
.next__date { flex: none; width: 66px; height: 70px; border-radius: 9px; background: var(--paper); color: var(--ink); display: grid; place-items: center; align-content: center; line-height: 1; text-align: center; }
.next__date span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.next__date strong { font-family: var(--font-display); font-size: 30px; font-weight: 800; margin: 2px 0; }
.next__title { font-size: 17px; font-weight: 700; margin-top: 3px; }
.next__meta { font-size: 14px; color: var(--muted); }

.champ-tag { position: absolute; left: 8%; bottom: 54px; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 10px; }
.champ-tag__rank { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 20px; }
.champ-tag strong { display: block; font-size: 15px; }
.champ-tag small { font-size: 12.5px; color: var(--muted); }
.hero-tag .champ-tag__rank .ico { width: 22px; height: 22px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.crumbs a { color: var(--pure); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Perfil */
.pro-hero h1 { font-size: clamp(54px, 9vw, 128px); font-weight: 900; line-height: .86; letter-spacing: -.045em; max-width: none; }
.pro-hero .watermark { color: rgb(var(--accent-rgb) / .09); }
.pro-deck { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 17px; }
.pro-deck .deck { font-weight: 700; }
.pro-deck > span:last-child { color: var(--muted); font-size: 14px; }
.kpis { display: flex; flex-wrap: wrap; gap: 12px; }
.kpi { border-radius: 10px; padding: 12px 18px; min-width: 120px; }
.kpi strong { font-family: var(--font-display); display: block; font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi--paper { background: var(--paper); color: var(--ink); }
.kpi--paper span { color: var(--ink-2); }
.seed-note { position: absolute; z-index: 2; left: 56%; bottom: 68px; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 10px; font-size: 13.5px; max-width: 280px; }
.seed-note b { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 8px; background: rgb(var(--tint-rgb) / .12); font-size: 17px; }
.seed-note b.a { background: var(--accent); color: var(--on-accent); }
.seed-note .ico { color: var(--accent); }

/* Logros */
.badges-block { display: grid; gap: 12px; justify-items: start; }
.badges { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); gap: 10px; margin: 0; padding: 0; width: 100%; align-content: start; }
.badges-block.is-clipped .badges { max-height: var(--badge-row, 106px); overflow: hidden; }
.badge { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 7px; min-height: 106px; padding: 12px 10px; border-radius: 12px; background: rgb(var(--tint-rgb) / .045); border: 1px solid var(--line); }
.badge__medal { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgb(var(--tint-rgb) / .09); border: 1px solid rgb(var(--tint-rgb) / .18); }
.badge__medal .ico { width: 18px; height: 18px; }
.badge strong { font-size: 13.5px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.badge small { font-size: 11px; color: var(--soft); }
.badge--mitica { background: linear-gradient(160deg, rgb(var(--accent-rgb) / .24), rgb(var(--tint-rgb) / .04) 70%); border-color: rgb(var(--accent-rgb) / .5); }
.badge--mitica .badge__medal { background: linear-gradient(150deg, var(--accent-2), var(--accent)); color: var(--on-accent); border-color: transparent; box-shadow: 0 8px 20px -10px rgb(var(--accent-rgb) / .9); }
.badge--rara { background: linear-gradient(160deg, rgb(var(--gold-rgb) / .15), rgb(var(--tint-rgb) / .04) 70%); border-color: rgb(var(--gold-rgb) / .38); }
.badge--rara .badge__medal { background: linear-gradient(150deg, var(--gold-2), rgb(var(--gold-rgb))); color: var(--gold-ink); border-color: transparent; }
.badge--infrecuente .badge__medal { background: linear-gradient(150deg, #EEF2F6, #AAB4C0); color: #1E222A; border-color: transparent; }
.badge--comun .badge__medal { color: var(--muted); }
.badge--comun strong { font-weight: 600; }
.badge--proximo { border-style: dashed; background: none; }
.badge--proximo .badge__medal { color: var(--soft); background: none; }
.badge--proximo strong { color: var(--muted); font-weight: 600; }
.badges-more { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-pill); background: rgb(var(--tint-rgb) / .06); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.badges-more:hover { background: rgb(var(--tint-rgb) / .12); }
.badges-more .ico { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.badges-more[aria-expanded="true"] .ico { transform: rotate(180deg); }

/* Ámbito de las estadísticas */
.scopes { display: flex; flex-wrap: wrap; gap: 8px; }
.scope { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: var(--r-pill); background: rgb(var(--tint-rgb) / .06); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.scope:hover { background: rgb(var(--tint-rgb) / .12); }
.scope[aria-current] { background: var(--paper); color: var(--ink); border-color: transparent; }
.scope .ico { width: 15px; height: 15px; }
.scope__live { font-size: 11px; font-weight: 700; color: var(--accent); }
.scope[aria-current] .scope__live { color: #B24C00; }

.radar { display: block; width: 100%; height: auto; max-width: 540px; margin: 0 auto; }
.radar .rg { fill: none; stroke: rgb(var(--tint-rgb) / .14); stroke-width: 1; }
.radar .rg--outer { stroke: rgb(var(--tint-rgb) / .3); }
.radar .ra { stroke: rgb(var(--tint-rgb) / .18); stroke-width: 1; }
.radar .rp { fill: rgb(var(--accent-rgb) / .2); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.radar .rd { fill: var(--pure); stroke: var(--accent); stroke-width: 2.5; }
.radar .rn { fill: rgb(var(--tint-rgb) / .78); font-size: 14px; font-family: var(--font); }
.radar .rv { fill: var(--pure); font-size: 18px; font-weight: 700; font-family: var(--font); }
.radar-legend { display: grid; gap: 8px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.radar-legend div { display: flex; justify-content: space-between; gap: 10px; }
.radar-legend dt { color: var(--muted); }
.radar-legend dd { margin: 0; text-align: right; font-weight: 600; }

.decks { display: grid; gap: 12px; }
.deckcard { border-radius: 12px; padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: center; }
.deckcard h3 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.deckcard h3 a { text-decoration: none; }
.deckcard__sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.deckcard__rec { text-align: right; }
.deckcard__rec strong { display: block; font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.deckcard__rec span { font-size: 12.5px; color: var(--muted); }
.deckcard--unknown { background: none; border: 1px dashed var(--line); }
.deckcard--unknown h3 { color: var(--muted); font-weight: 600; }
.deckcard--main { background: linear-gradient(135deg, rgb(var(--accent-rgb) / .2), rgb(var(--tint-rgb) / .04) 70%); border: 1px solid rgb(var(--accent-rgb) / .45); }
.seg { grid-column: 1 / -1; display: flex; height: 10px; border-radius: 3px; overflow: hidden; background: rgb(var(--tint-rgb) / .08); gap: 2px; }
.seg i { display: block; height: 100%; }
.seg .sV { background: var(--accent); } .seg .sE { background: rgb(var(--tint-rgb) / .85); } .seg .sD { background: rgb(var(--tint-rgb) / .24); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.path { display: grid; grid-template-columns: repeat(var(--rounds, 3), minmax(0, 1fr)); gap: 16px; }
.match { border-radius: 12px; padding: 16px 18px 20px; }
.match__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.match__vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.side { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-width: 0; }
.avatar { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; background: rgb(var(--tint-rgb) / .1); border: 1px solid rgb(var(--tint-rgb) / .22); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.side.is-win .avatar { background: var(--paper); color: var(--ink); border-color: var(--paper); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .55); }
.side strong { font-size: 16px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side strong a { text-decoration: none; }
.side:not(.is-win) strong { color: var(--muted); font-weight: 600; }
.side .sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.score { font-family: var(--font-display); display: flex; align-items: center; gap: 6px; font-size: 40px; font-weight: 800; line-height: 1; }
.score .l { color: rgb(var(--tint-rgb) / .5); }
.score .dash { font-size: 24px; color: rgb(var(--tint-rgb) / .4); font-weight: 400; }
.match--final { background: linear-gradient(135deg, rgb(var(--accent-rgb) / .26), rgb(var(--tint-rgb) / .04) 70%); border: 1px solid rgb(var(--accent-rgb) / .6); }
.match--final .score .w { color: var(--accent); }

.flag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.flag--drop { box-shadow: inset 0 0 0 1.5px rgb(var(--tint-rgb) / .4); color: var(--pure); }
.flag--won { background: var(--accent); color: var(--on-accent); }
.flag .ico { width: 13px; height: 13px; }
.pills tr.is-dropped td { color: rgb(var(--tint-rgb) / .7); background: rgb(var(--tint-rgb) / .03); }
.pills tr.is-dropped .pts { text-decoration: line-through; text-decoration-color: rgb(var(--tint-rgb) / .5); }
.pills tr.is-won td { background: rgb(var(--accent-rgb) / .14); border-top-color: rgb(var(--accent-rgb) / .38); }
.expand { appearance: none; border: 0; background: rgb(var(--tint-rgb) / .08); color: var(--pure); border-radius: 8px; padding: 7px 10px 7px 12px; font: 500 13px/1 var(--font); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.expand:hover { background: rgb(var(--tint-rgb) / .16); }
.expand .ico { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.expand[aria-expanded="true"] .ico { transform: rotate(180deg); }
.pills tr.rounds-row td { background: var(--field-bg) !important; padding: 10px !important; white-space: normal; }
.rounds__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.roundcard { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; background: rgb(var(--tint-rgb) / .07); }
.roundcard small { display: block; font-size: 11.5px; color: var(--muted); }
.roundcard strong { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roundcard strong a { text-decoration: none; }
.roundcard .sc { font-weight: 700; }

.h2h { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.h2h li { display: grid; grid-template-columns: minmax(0, 1fr) 92px 52px; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 9px; background: rgb(var(--tint-rgb) / .06); border-top: 1px solid rgb(var(--tint-rgb) / .08); }
.h2h .nm { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; font-size: 14.5px; }
.h2h .nm a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.h2h .seg { height: 8px; grid-column: auto; }
.h2h .rec { text-align: right; font-weight: 700; }
.h2h li.is-pos { background: rgb(var(--accent-rgb) / .1); border-top-color: rgb(var(--accent-rgb) / .3); }

/* El cartel de la jornada, para verlo y guardarlo. */
.cartel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 24px; align-items: center; }
.cartel .phead { margin-bottom: 14px; }
.cartel__img { display: block; border-radius: var(--r-tile); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .8); }
.cartel__img img { width: 100%; height: auto; }
.linkish { appearance: none; border: 0; background: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ───────── Caras de los jugadores ───────── */

.face { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; overflow: hidden; flex: none;
    background: rgb(var(--tint-rgb) / .1); border: 1px solid rgb(var(--tint-rgb) / .22); font-weight: 700; font-size: 14px; }
.face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.face--sm { width: 30px; height: 30px; border-radius: 9px; font-size: 11.5px; }
.face--lg { width: 64px; height: 64px; border-radius: 16px; font-size: 21px; }
.face--xl { width: 132px; height: 132px; border-radius: 20px; font-size: 40px; }

/* ───────── Portada: resumen de la última jornada ───────── */

.recap { position: relative; overflow: hidden; padding: 0; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.recap__art { position: relative; background: rgb(var(--tint-rgb) / .04); }
.recap__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; filter: var(--art-filter);
    -webkit-mask-image: linear-gradient(100deg, #000 55%, transparent); mask-image: linear-gradient(100deg, #000 55%, transparent); }
.recap__art--photo img { object-position: 50% 22%; filter: none; }
.recap__art .chip { position: absolute; left: 18px; top: 18px; z-index: 1; }
.recap__art .credit { position: absolute; left: 18px; bottom: 16px; z-index: 1; }
.recap__none { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; }
.recap__none b { font-size: 92px; font-weight: 900; line-height: 1; color: rgb(var(--tint-rgb) / .08); }
.recap__none .pip, .recap__none .ms { width: 34px; height: 34px; }
.recap__body { padding: 22px 24px 24px; display: grid; gap: 14px; align-content: start; }
.recap__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.recap__head h2 { font-family: var(--font-display); text-transform: var(--display-case); font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.recap__head h2 a { text-decoration: none; }

.champ { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 12px;
    background: linear-gradient(120deg, rgb(var(--accent-rgb) / .22), rgb(var(--tint-rgb) / .04) 68%); border: 1px solid rgb(var(--accent-rgb) / .45); }
.champ__face { position: relative; flex: none; }
.champ__cup { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
    background: var(--accent); color: var(--on-accent); border: 2px solid var(--coal); }
.champ__cup .ico { width: 16px; height: 16px; }
.champ__who { min-width: 0; display: grid; gap: 3px; }
.champ__who small { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.champ__who strong { font-family: var(--font-display); font-size: 27px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.champ__who strong a { text-decoration: none; }
.champ__nums { margin-left: auto; display: flex; gap: 20px; text-align: right; }
.champ__nums span { display: grid; }
.champ__nums b { font-size: 21px; font-weight: 700; line-height: 1.1; }
.champ__nums small { font-size: 11px; color: var(--muted); letter-spacing: .04em; }

/* ───────── Portada: última jornada, metajuego, cuadro, jornadas ───────── */

.lastday { position: relative; overflow: hidden; padding: 0; display: flex; flex-direction: column; align-self: start; }
.lastday__art { position: relative; height: 180px; }
.lastday__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: var(--art-filter); -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); mask-image: linear-gradient(180deg, #000 40%, transparent); }
.lastday__art .credit { position: absolute; right: 18px; top: 14px; }
.lastday__art .chip { position: absolute; left: 18px; top: 14px; }
.lastday__body { padding: 0 24px 24px; margin-top: -50px; position: relative; }
.lastday h2 { font-family: var(--font-display); text-transform: var(--display-case); font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.lastday h2 a { text-decoration: none; }
.winner { display: flex; align-items: center; gap: 16px; margin: 18px 0 14px; padding: 14px; border-radius: 12px; background: linear-gradient(135deg, rgb(var(--accent-rgb) / .2), rgb(var(--tint-rgb) / .04) 70%); border: 1px solid rgb(var(--accent-rgb) / .45); }
.winner__cup { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 10px; background: var(--accent); color: var(--on-accent); flex: none; }
.winner__cup .ico { width: 26px; height: 26px; }
.winner__name { font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 1; }
.winner__name a { text-decoration: none; }
.winner__sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.winner__rec { margin-left: auto; text-align: right; flex: none; }
.winner__rec strong { display: block; font-size: 22px; font-weight: 700; }
.winner__rec span { font-size: 12px; color: var(--muted); }
.top4 { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.top4 li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 9px; background: rgb(var(--tint-rgb) / .06); border-top: 1px solid rgb(var(--tint-rgb) / .08); }
.top4 .pos { font-weight: 700; color: var(--muted); }
.top4 .rec { font-weight: 600; }
.top4 .pts { min-width: 58px; text-align: right; color: var(--muted); font-size: 13.5px; }

.meta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.meta-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.meta-list .deck { font-weight: 600; font-size: 15px; }
.meta-list .deck span { overflow: hidden; text-overflow: ellipsis; }
.meta-list .share { font-weight: 700; font-size: 15px; }
.meta-list .share small { font-weight: 400; color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.bar { grid-column: 1 / -1; height: 9px; border-radius: 3px; background: rgb(var(--tint-rgb) / .08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgb(var(--tint-rgb) / .45), var(--pure)); }
.meta-list li:first-child .bar i { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.meta-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

.bracketwrap { position: relative; overflow-x: auto; margin: 0 -6px; padding: 0 6px 6px; }
.bracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 26px; }
.bcol { display: flex; flex-direction: column; min-width: 0; }
.bcol h3 { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.bstack { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 14px; }
.bm { position: relative; border-radius: 9px; display: grid; grid-template-rows: 1fr 1fr; background: rgb(var(--tint-rgb) / .06); border: 1px solid rgb(var(--tint-rgb) / .12); }
.bm__p { display: grid; grid-template-columns: 24px minmax(0, 1fr) 22px; align-items: center; gap: 10px; padding: 9px 12px; color: var(--soft); font-size: 14px; }
.bm__p + .bm__p { border-top: 1px solid rgb(var(--tint-rgb) / .08); }
.bm__p .seed { font-size: 11px; font-weight: 600; text-align: center; border-radius: 5px; background: rgb(var(--tint-rgb) / .1); padding: 2px 0; }
.bm__p .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm__p .nm a { text-decoration: none; }
.bm__p .sc { text-align: right; font-weight: 700; }
.bm__p.is-win { color: var(--pure); font-weight: 600; }
.bm__p.is-win .sc { color: var(--accent); }
.bm--final { background: linear-gradient(135deg, rgb(var(--accent-rgb) / .24), rgb(var(--tint-rgb) / .04) 70%); border-color: rgb(var(--accent-rgb) / .55); }
.bchamp { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; gap: 12px; }
.bchamp .ico { width: 26px; height: 26px; }
.bchamp small { display: block; font-size: 12px; font-weight: 600; opacity: .72; }
.bchamp strong { font-size: 19px; font-weight: 800; line-height: 1.1; }
.bchamp a { text-decoration: none; }
.prizes { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.prizes li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; background: rgb(var(--tint-rgb) / .06); border: 1px solid rgb(var(--tint-rgb) / .1); min-width: 0; }
.prizes .p { font-weight: 800; font-size: 15px; min-width: 24px; }
.prizes .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.prizes .n a { text-decoration: none; }
.prizes .e { font-weight: 700; font-size: 14px; }
.prizes .e--none { color: var(--soft); font-weight: 500; }
.prizes li.is-1 { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.prizes li.is-2 { background: var(--paper); color: var(--ink); border-color: transparent; }
.prizes--auto { grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); }

.jlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.jcard { position: relative; overflow: hidden; border-radius: var(--r-tile); padding: 16px 16px 14px; min-height: 164px; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s var(--ease), border-color .2s; }
a.jcard:hover { transform: translateY(-2px); border-color: rgb(var(--tint-rgb) / .28); }
.jcard__n { position: absolute; right: -6px; top: -22px; font-size: 110px; font-weight: 900; line-height: 1; color: rgb(var(--tint-rgb) / .05); letter-spacing: -.05em; pointer-events: none; }
.jcard__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jcard__title { font-size: 18px; font-weight: 700; }
.jcard__date { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.jcard__win { margin-top: auto; padding-top: 14px; }
.jcard__win small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.jcard__win .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.jcard__win strong { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jcard__players { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.jcard__players .ico { width: 14px; height: 14px; }
.jcard.is-next { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.jcard.is-next .jcard__date, .jcard.is-next .jcard__win small, .jcard.is-next .jcard__players { color: var(--ink-2); }
.jcard.is-next .jcard__n { color: rgba(17, 17, 19, .07); }

/* ───────── Jornada: rondas ───────── */

/* Mesa a mesa: una pestaña por ronda, verde el que gana y rojo el que pierde. */
.pairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pair { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 10px; background: rgb(var(--tint-rgb) / .05); border: 1px solid var(--line); font-size: 14.5px; }
.pair__table { font-size: 12px; font-weight: 700; color: var(--soft); text-align: right; font-variant-numeric: tabular-nums; }
.pair__side { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pair__side:last-child { text-align: right; }
.pair__side .player { text-decoration: none; }
.pair__side.is-win, .pair__side.is-win .player { color: var(--win); font-weight: 700; }
.pair__side.is-loss, .pair__side.is-loss .player { color: var(--loss); }
.pair__side.is-draw, .pair__side.is-draw .player { color: var(--muted); }
.pair__score { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 15px; min-width: 52px; justify-content: center; font-variant-numeric: tabular-nums; }
.pair__score i { font-style: normal; font-weight: 400; color: var(--soft); }
.pair__score b.is-win { color: var(--win); }
.pair__score b.is-loss { color: var(--loss); }
.pair__score b.is-draw { color: var(--muted); }
.pair__score--bye { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.pair--bye { background: none; border-style: dashed; }

/* ───────── Lista de mazo ───────── */

.decklist { display: grid; gap: 22px; }
@media (min-width: 900px) { .decklist { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(240px, .85fr); } }
.cardgroup + .cardgroup { margin-top: 20px; }
.cardgroup h3 { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.cardline { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 0; }
.cardline__qty { color: var(--muted); text-align: right; font-weight: 600; }
.cardline__name { text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cardline__name:hover { color: var(--accent); }
.card-preview { position: fixed; z-index: 60; width: 240px; pointer-events: none; border-radius: 4.75% / 3.5%; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.curve { display: flex; align-items: flex-end; gap: 6px; height: 110px; margin-top: 10px; }
.curve div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; font-size: 12px; color: var(--muted); }
.curve span { display: block; width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.visual { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.visual figure { margin: 0; position: relative; }
.visual img { width: 100%; height: auto; border-radius: 4.75% / 3.5%; aspect-ratio: 488 / 680; background: rgb(var(--tint-rgb) / .06); }
.visual figcaption { position: absolute; top: 12%; left: -6px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 6px; }
.visual__missing { aspect-ratio: 488 / 680; border: 1px dashed var(--line); border-radius: 4.75% / 3.5%; display: grid; place-items: center; padding: 12px; text-align: center; color: var(--muted); }
.visual__group + .visual__group { margin-top: 26px; }
.visual__group h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: var(--r-pill); margin-bottom: 16px; max-width: 100%; }
.tabs button { appearance: none; border: 0; background: none; color: var(--muted); font: 500 14.5px/1 var(--font); padding: 9px 14px; border-radius: 8px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); }

/* ───────── Calendario y listas ───────── */

.months { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.month { border-radius: var(--r-tile); padding: 16px; }
.month h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.month__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: 13px; }
.month__grid .dow { color: var(--soft); padding: 3px 0; font-size: 11.5px; }
.month__grid .day { padding: 6px 0; border-radius: 6px; color: var(--muted); text-decoration: none; }
.month__grid .day.is-today { box-shadow: inset 0 0 0 1.5px var(--paper); color: var(--pure); }
.month__grid .day.has-event { background: var(--paper); color: var(--ink); font-weight: 700; }
.month__grid .day.has-event.is-past { background: rgb(var(--tint-rgb) / .16); color: var(--pure); }
.month__grid .day.has-final { background: var(--accent); color: var(--on-accent); font-weight: 700; }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.list .row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 11px 14px; border-radius: 9px; background: rgb(var(--tint-rgb) / .06); border-top: 1px solid rgb(var(--tint-rgb) / .08); text-decoration: none; }
.list a.row:hover { background: rgb(var(--tint-rgb) / .1); }
.list .row__date { color: var(--muted); font-size: 13.5px; }
.list .row__title { font-weight: 700; font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .row__title { white-space: normal; }
.list .row__meta { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.list .row__side { color: var(--muted); font-size: 13.5px; text-align: right; }
.list .row__side .tag { white-space: nowrap; }
.list .row__date .pips { justify-content: flex-start; }
.list .row__side strong { display: block; color: var(--pure); font-weight: 600; }
.list .row.is-next { background: var(--paper); color: var(--ink); }
.list .row.is-next .row__date, .list .row.is-next .row__side { color: var(--ink-2); }
.list .row.is-next .row__side strong { color: var(--ink); }

/* ───────── Panel de organización ───────── */

.hero--admin { padding: 26px 30px; }
.hero--admin h1 { font-size: clamp(32px, 4.5vw, 52px); margin: 12px 0 0; }
.hero--admin .hero__cta { margin-top: 18px; }
.hero--admin + .wrap, .hero--admin + .wrap > .form:first-child { margin-top: 18px; }
.section { margin-top: 22px; }
.podium { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: place; }
.podium li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 14px; border-radius: 9px; background: rgb(var(--tint-rgb) / .06); }
.podium li::before { counter-increment: place; content: counter(place) "º"; font-weight: 700; color: var(--muted); }
.podium li:first-child::before { color: var(--accent); }

.form { display: grid; gap: 18px; max-width: 760px; }
.form--wide { max-width: none; }
.fieldset { border-radius: var(--r-panel); padding: 20px; margin: 0; display: grid; gap: 16px; min-width: 0; }
.fieldset legend { float: left; width: 100%; font-size: 20px; font-weight: 700; padding: 0; margin: 0 0 2px; }
.fieldset legend + * { clear: both; }
.fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field label, .field .label { font-size: 13.5px; font-weight: 600; }
.photo-field { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.photo-field .field { flex: 1; min-width: 240px; }
.field small, .hint { font-size: 12.5px; color: var(--muted); }
input[type="text"], input[type="number"], input[type="date"], input[type="time"], input[type="url"], input[type="password"], select, textarea {
    width: 100%; min-width: 0; font: 400 15px/1.3 var(--font); color: var(--text);
    background: var(--field-bg); border: 1px solid rgb(var(--tint-rgb) / .22); border-radius: var(--r-sm); padding: 10px 12px;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
select option { background: var(--coal-2); color: var(--text); }
textarea { min-height: 260px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
input::placeholder, textarea::placeholder { color: var(--soft); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.admin-grid { display: grid; gap: 22px; margin-top: 22px; }
.admin-grid > * { min-width: 0; }
@media (min-width: 1000px) { .admin-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 12px 14px; border-radius: 10px; background: rgb(var(--tint-rgb) / .06); border-top: 1px solid rgb(var(--tint-rgb) / .08); }
.steps > li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: rgb(var(--tint-rgb) / .1); font-weight: 700; }
.steps > li.is-done::before { content: "✓"; background: var(--accent); color: var(--on-accent); }
.steps__title { font-weight: 700; }
.steps__detail { font-size: 13.5px; color: var(--muted); }
.roster { display: grid; gap: 8px 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.entry-table input[type="text"] { min-width: 160px; }
.entry-table input[type="number"] { width: 76px; }
.pairings { display: grid; gap: 8px; }
.pairing-input { display: grid; grid-template-columns: 28px minmax(0, 1fr) 72px 72px minmax(0, 1fr); gap: 8px; align-items: center; }
.pairing-input .table-no { color: var(--muted); text-align: right; font-weight: 600; }
.pairing-input input[type="number"] { text-align: center; padding-inline: 4px; }
.pairing-input.is-duplicate select { outline: 2px solid var(--loss); }
.warning-list { margin: 0; padding-left: 18px; }
.poster { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin-top: 22px; }
.poster__preview canvas { width: 100%; max-width: 640px; height: auto; display: block; border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); background: var(--coal); }
.poster__preview p { margin-top: 10px; }
.poster__side { display: grid; gap: 16px; align-content: start; }
.poster__formats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.poster__formats--3 { grid-template-columns: 1fr 1fr 1fr; }
.poster__formats button { appearance: none; border: 0; cursor: pointer; text-align: left; padding: 12px 14px; border-radius: 10px; font-family: var(--font); color: var(--muted); background: rgb(var(--tint-rgb) / .06); box-shadow: inset 0 0 0 1px rgb(var(--tint-rgb) / .14); }
.poster__formats button strong { display: block; font-size: 15px; color: var(--pure); }
.poster__formats button small { display: block; font-size: 12px; margin-top: 2px; }
.poster__formats button[aria-pressed="true"] { background: var(--paper); color: var(--ink-2); box-shadow: none; }
.poster__formats button[aria-pressed="true"] strong { color: var(--ink); }
@media (max-width: 880px) { .poster { grid-template-columns: 1fr; } }

/* ───────── Movimiento ───────── */

.reveal { animation: rise .7s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* ───────── Tapetes de la edición ───────── */

.mats { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 12px 40px; margin-top: 22px; padding: 26px 34px; border-radius: var(--r-panel); }
.mats h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; max-width: 14ch; text-wrap: balance; }
.mats__lede { margin-top: 10px; color: var(--muted); max-width: 40ch; }
.mats__steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.mats__step { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; width: 100%; padding: 9px 14px 9px 9px; border-radius: 12px; border: 1px solid transparent; background: rgb(var(--tint-rgb) / .04); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .25s, border-color .25s; }
.mats__step:hover { background: rgb(var(--tint-rgb) / .08); }
.mats__step[aria-pressed="true"] { background: rgb(var(--tint-rgb) / .1); border-color: rgb(var(--tint-rgb) / .22); }
.mats__thumb { width: 64px; height: 34px; object-fit: cover; border-radius: 5px; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .7); opacity: .75; transition: opacity .25s; }
.mats__step[aria-pressed="true"] .mats__thumb { opacity: 1; }
.mats__text { display: grid; min-width: 0; line-height: 1.25; }
.mats__text small { font-size: 12px; font-weight: 600; color: var(--soft); }
.mats__text strong { font-size: 16px; font-weight: 700; }
.mats__text span { font-size: 13px; color: var(--muted); }
.mats__step[aria-pressed="true"] .mats__text small { color: var(--accent); }

/* La mesa: los tapetes quedan abiertos en abanico y el elegido pasa delante. */
/* Los tapetes asoman por encima del panel, como si estuvieran puestos sobre la página. */
.mats__table { position: relative; align-self: start; aspect-ratio: 16 / 9.4; perspective: 1600px; margin: -92px 0 -40px; }
.mat { position: absolute; left: 9%; top: 18%; width: 82%; margin: 0; aspect-ratio: 1600 / 843; border-radius: clamp(10px, 1.6vw, 18px); cursor: pointer;
    box-shadow: 0 2px 0 #09090a, 0 5px 0 -1px rgba(0, 0, 0, .55), 0 34px 50px -22px rgba(0, 0, 0, .85), 0 12px 22px -12px rgba(0, 0, 0, .6);
    transition: transform .55s var(--ease), filter .55s var(--ease), box-shadow .55s var(--ease); }
.mat img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* Borde cosido y el brillo suave de la tela del tapete. */
.mat::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .5), inset 0 0 0 3.5px rgb(var(--tint-rgb) / .16), inset 0 0 18px rgba(0, 0, 0, .25);
    background: linear-gradient(125deg, rgb(var(--tint-rgb) / .13), transparent 38%, transparent 70%, rgba(0, 0, 0, .12)); }
.mat[data-slot="front"] { z-index: 3; transform: translate3d(0, 12%, 0) rotateX(10deg) rotate(-2deg); cursor: default; }
.mat[data-slot="mid"] { z-index: 2; transform: translate3d(-10%, -8%, 0) rotateX(10deg) rotate(-9deg) scale(.88); filter: brightness(.7) saturate(.85); }
.mat[data-slot="back"] { z-index: 1; transform: translate3d(11%, -15%, 0) rotateX(10deg) rotate(7deg) scale(.82); filter: brightness(.55) saturate(.8); }
.mat[data-slot="mid"]:hover, .mat[data-slot="back"]:hover { filter: brightness(.9); }

@media (max-width: 880px) {
    .mats { grid-template-columns: 1fr; padding: 22px 20px; margin-top: 40px; }
    .mats__table { order: -1; margin: -46px -6px 4px; }
}

/* ───────── Inscripciones y emisión ───────── */

.signups { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.signups li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 10px; background: rgb(var(--tint-rgb) / .05); border: 1px solid var(--line); }
.signups li.is-ready { border-color: rgb(95 208 138 / .35); }
.signups .avatar { width: 34px; height: 34px; border-radius: 9px; font-size: 13px; }
.signups__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.signups__name a { text-decoration: none; }

.stream-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 22px; padding: 22px 26px; border-radius: var(--r-panel); }
.stream-head h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-top: 6px; }
.stream-head__deck { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 18px; font-weight: 600; }
.stream-grid { display: grid; gap: 22px; margin-top: 22px; }
.stream-group h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.stream-group h2 span { color: var(--pure); font-size: 18px; letter-spacing: 0; }

/* ───────── Cara a cara para la emisión ───────── */

.vs-pick { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px 16px; align-items: end; margin-top: 22px; padding: 22px 26px 24px; border-radius: var(--r-panel); }
.vs-pick__head { grid-column: 1 / -1; }
.vs-pick__head h1 { font-family: var(--font-display); text-transform: var(--display-case); font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 6px 0 8px; }
.vs-pick__go .btn { height: 42px; }
.vs-pick__warn { grid-column: 1 / -1; margin: 0; }
.vs-tables { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.vs-tables__label { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.vs-table { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; text-decoration: none; background: rgb(var(--tint-rgb) / .08); box-shadow: inset 0 0 0 1px rgb(var(--tint-rgb) / .16); }
.vs-table i { font-style: italic; font-weight: 800; font-size: 11px; color: var(--accent); }
.vs-table:hover { background: rgb(var(--tint-rgb) / .16); }
.vs-table.is-on { background: var(--paper); color: var(--ink); box-shadow: none; }
.vs-table.is-on i { color: var(--ink-2); }

.vs { position: relative; margin-top: 22px; padding: 20px 24px 24px; border-radius: var(--r-panel); overflow: hidden; }
/* Modo emisión: sin cabecera ni pie, a lo ancho de la captura de OBS y con todo un punto más grande. */
.is-bare .frame { --wrap: 1780px; padding-top: 14px; }
.vs--bare { margin-top: 0; padding: 6px 0 0; }
.vs--bare .vs__side { min-height: 470px; padding: 26px 26px 24px; }
.vs--bare .vs__name { font-size: clamp(40px, 4.8vw, 88px); }
.vs--bare .vs__deck { font-size: 21px; }
.vs--bare .vs__num strong { font-size: 30px; }
.vs--bare .vs__num span { font-size: 13px; }
.vs--bare .vs__word { font-size: 84px; }
.vs--bare .vs__h2h { font-size: 72px; }
.vs--bare .vs__note { font-size: 15px; max-width: 26ch; }
.vs--bare .tug__row { grid-template-columns: 110px minmax(0, 1fr) 200px minmax(0, 1fr) 110px; padding: 6px 0; }
.vs--bare .tug__val { font-size: 30px; }
.vs--bare .tug__label { font-size: 14px; }
.vs--bare .tug__label small { font-size: 12.5px; }
.vs--bare .tug__bar { height: 16px; }
.vs__top { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.vs__brand { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vs__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, auto) minmax(0, 1fr); gap: 18px; align-items: stretch; }

.vs__side { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; min-height: 380px; padding: 22px 22px 20px; border-radius: 18px;
    background: linear-gradient(180deg, rgb(var(--tint-rgb) / .06), rgb(var(--tint-rgb) / .03)); border: 1px solid rgb(var(--tint-rgb) / .12); --side: var(--accent); --side-rgb: var(--accent-rgb); }
.vs__side--b { --side: var(--vs-b); --side-rgb: var(--vs-b-rgb); text-align: right; }
.vs__side::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--side); z-index: 2; }
.vs__side::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70% 60% at 50% 100%, rgb(var(--side-rgb) / .22), transparent 70%); }
.vs__side.is-hot::after { background: radial-gradient(70% 60% at 50% 100%, rgb(var(--side-rgb) / .34), transparent 70%); }
.vs__art { position: absolute; inset: 0; z-index: -2; }
.vs__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; filter: var(--art-filter); opacity: .9;
    -webkit-mask-image: linear-gradient(180deg, #000 18%, rgba(0, 0, 0, .55) 55%, transparent 96%); mask-image: linear-gradient(180deg, #000 18%, rgba(0, 0, 0, .55) 55%, transparent 96%); }
.vs__credit { position: absolute; top: 14px; right: 16px; z-index: 2; font-size: 11px; color: rgb(var(--tint-rgb) / .6); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.vs__side--b .vs__credit { right: auto; left: 16px; }
.vs__id { display: flex; align-items: flex-end; gap: 16px; }
.vs__side--b .vs__id { flex-direction: row-reverse; }
.vs__face { box-shadow: 0 0 0 3px var(--side), 0 14px 30px -12px rgba(0, 0, 0, .8); background: var(--coal-2); }
.vs__who { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vs__side--b .vs__who { align-items: flex-end; }
.vs__badge { align-self: flex-start; }
.vs__side--b .vs__badge { align-self: flex-end; }
.vs__name { font-family: var(--font-display); text-transform: var(--display-case); font-size: clamp(34px, 4vw, 62px); font-weight: 900; line-height: .9; letter-spacing: -.045em; text-shadow: 0 2px 24px rgba(0, 0, 0, .55); text-wrap: balance; }
.vs__deck { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.vs__side--b .vs__deck { flex-direction: row-reverse; }
.vs__hint { font-size: 12.5px; color: var(--muted); }
.vs__nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.vs__num { padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .28); border: 1px solid rgb(var(--tint-rgb) / .1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-align: left; }
.vs__side--b .vs__num { text-align: right; }
.vs__num strong { font-family: var(--font-display); display: block; font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.vs__num span { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.vs__foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 22px; }
.vs__side--b .vs__foot { flex-direction: row-reverse; }
.vs__form { display: inline-flex; gap: 4px; }
.vs__side--b .vs__form { flex-direction: row-reverse; }
.vs__form .vd { min-width: 24px; height: 22px; font-size: 11.5px; }
.vs__foot .tag .ico { width: 13px; height: 13px; }

.vs__center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 10px 6px; }
.vs__word { font-family: var(--font-display); font-size: 62px; font-weight: 900; font-style: italic; letter-spacing: -.06em; line-height: 1;
    background: linear-gradient(100deg, var(--accent) 30%, var(--vs-b) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vs__h2h { font-family: var(--font-display); display: flex; align-items: baseline; justify-content: center; font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.vs__h2h .a { color: var(--accent); }
.vs__h2h .b { color: var(--vs-b); }
.vs__h2h .dash { font-size: 30px; font-weight: 400; color: rgb(var(--tint-rgb) / .4); padding: 0 8px; }
.vs__note { font-size: 13px; line-height: 1.35; color: var(--muted); max-width: 22ch; }
.vs__note--deck { padding-top: 10px; border-top: 1px solid var(--line); }
.vs__note b { color: var(--pure); }

.tug { display: grid; gap: 6px; margin-top: 18px; }
.tug__row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 150px minmax(0, 1fr) 84px; align-items: center; gap: 12px; padding: 4px 0; }
.tug__val { font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--muted); }
.tug__val--a { text-align: right; }
.tug__row.lead-a .tug__val--a { color: var(--accent); }
.tug__row.lead-b .tug__val--b { color: var(--vs-b); }
.tug__label { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--pure); }
.tug__label small { font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.tug__bar { display: flex; height: 12px; border-radius: 4px; overflow: hidden; background: rgb(var(--tint-rgb) / .07); }
.tug__bar--a { justify-content: flex-end; }
.tug__bar i { display: block; height: 100%; border-radius: inherit; min-width: 3px; transform-origin: right center; }
.tug__bar--a i { background: linear-gradient(270deg, var(--accent), rgb(var(--accent-rgb) / .55)); }
.tug__bar--b i { background: linear-gradient(90deg, var(--vs-b), rgb(var(--vs-b-rgb) / .55)); transform-origin: left center; }
.tug__row.lead-a .tug__bar--b i, .tug__row.lead-b .tug__bar--a i { opacity: .55; }

.vs-legend { display: flex; justify-content: center; gap: 18px; font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.vs-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.vs-legend__a::before { background: var(--accent); }
.vs-legend__b::before { background: var(--vs-b); }
.radar .rp--b { fill: rgb(var(--vs-b-rgb) / .16); stroke: var(--vs-b); }
.radar .rd--b { stroke: var(--vs-b); }
.radar .rv--a { fill: var(--accent); }
.radar .rv--b { fill: var(--vs-b); }
.radar .rv--sep { fill: rgb(var(--tint-rgb) / .4); font-weight: 400; }

.deckvs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.deckvs__side { display: grid; gap: 14px; align-content: start; padding: 16px 18px; border-radius: 12px; background: rgb(var(--tint-rgb) / .05); border-top: 3px solid var(--accent); }
.deckvs__side--b { border-top-color: var(--vs-b); }
.deckvs__side h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.01em; min-width: 0; }
.deckvs__side h3 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deckvs__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.deckvs__facts div { padding: 8px 10px; border-radius: 8px; background: rgb(var(--tint-rgb) / .05); }
.deckvs__facts dt { font-size: 11.5px; color: var(--muted); }
.deckvs__facts dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 1; }
.deckvs__facts dd small { display: block; margin-top: 3px; font-family: var(--font); font-size: 11.5px; font-weight: 500; color: var(--muted); }
.deckvs__pilot { font-size: 13.5px; color: var(--muted); }
.deckvs__pilot b { color: var(--pure); }
.deckvs__cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.deckvs__cards figure { position: relative; margin: 0; }
.deckvs__cards img { width: 100%; height: auto; border-radius: 4.75% / 3.5%; aspect-ratio: 488 / 680; background: rgb(var(--tint-rgb) / .06); }
.deckvs__cards figcaption { position: absolute; top: 10%; left: -4px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 11px; padding: 1px 6px; border-radius: 5px; }
.deckvs__vs { grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; padding: 14px 18px; border-radius: 12px; background: rgb(var(--tint-rgb) / .04); border: 1px dashed var(--line); text-align: center; }
.deckvs__vs .vs__h2h { font-size: 40px; }
.deckvs__vs .seg { width: min(100%, 320px); }
.deckvs__vs .seg .sD { background: var(--vs-b); }

.duels { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.duels li { display: grid; grid-template-columns: 150px minmax(0, 1fr) 90px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 14px; border-radius: 9px; background: rgb(var(--tint-rgb) / .06); border-top: 1px solid rgb(var(--tint-rgb) / .08); }
.duels li.won-a { box-shadow: inset 4px 0 0 var(--accent); }
.duels li.won-b { box-shadow: inset -4px 0 0 var(--vs-b); }
.duels__when strong { display: block; font-size: 14.5px; font-weight: 700; }
.duels__when small { display: block; font-size: 12px; color: var(--muted); }
.duels__deck { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; font-size: 14.5px; }
.duels__deck span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duels__deck--b { justify-content: flex-end; text-align: right; }
.duels__score { font-family: var(--font-display); display: flex; align-items: baseline; justify-content: center; font-size: 24px; font-weight: 800; line-height: 1; }
.duels__score .a { color: var(--accent); }
.duels__score .b { color: var(--vs-b); }
.duels__score .dash { font-size: 15px; font-weight: 400; color: rgb(var(--tint-rgb) / .4); padding: 0 5px; }
.duels li.won-b .a, .duels li.won-a .b { color: var(--muted); }

@media (max-width: 1040px) {
    .vs-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vs__stage { grid-template-columns: 1fr; }
    .vs__center { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; padding: 4px 0; }
    .vs__center .vs__note { max-width: none; }
    .vs__note--deck { flex-basis: 100%; padding-top: 6px; }
    .vs__side { min-height: 300px; }
}
@media (max-width: 760px) {
    .vs-pick { grid-template-columns: 1fr; }
    .vs { padding: 16px; }
    .vs__nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vs__id { align-items: center; }
    .vs__face { width: 84px; height: 84px; font-size: 28px; }
    .tug__row { grid-template-columns: 60px minmax(0, 1fr) 96px minmax(0, 1fr) 60px; gap: 8px; }
    .tug__val { font-size: 17px; }
    .tug__label { font-size: 10.5px; }
    .tug__label small { display: none; }
    .deckvs { grid-template-columns: 1fr; }
    .duels li { grid-template-columns: minmax(0, 1fr) 80px; }
    .duels__when { grid-column: 1 / -1; }
    .duels__deck--b { grid-column: 1; justify-content: flex-start; text-align: left; flex-direction: row-reverse; }
    .duels__score { grid-column: 2; grid-row: 2 / span 2; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ───────── Responsive ───────── */

@media (max-width: 1180px) {
    .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .jlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rounds__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1040px) {
    .s-4, .s-5, .s-6, .s-7, .s-8 { grid-column: span 12; }
    .path { grid-template-columns: 1fr; }
    .match__vs { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 880px) {
    .cartel { grid-template-columns: 1fr; }
    .recap { grid-template-columns: 1fr; }
    .recap__art { height: 230px; }
    .recap__art img { -webkit-mask-image: linear-gradient(180deg, #000 34%, transparent 94%); mask-image: linear-gradient(180deg, #000 34%, transparent 94%); }
    .recap__art .credit { left: auto; right: 18px; top: 18px; bottom: auto; }
    .recap__body { padding: 0 18px 20px; margin-top: -34px; position: relative; }
    .recap__head { align-items: flex-start; }
    .frame { padding: 16px 16px 28px; }
    .site-header { justify-content: flex-start; }
    .hero { grid-template-columns: 1fr; padding: 0 20px 22px; margin-top: 36px; }
    .hero--flat { padding-top: 24px; }
    .hero__art { grid-column: 1; grid-row: 1; margin: -36px -20px 4px; min-height: 0; height: 280px; }
    .hero__art img { -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 46%, #000 50%, transparent 100%); mask-image: radial-gradient(ellipse 70% 62% at 50% 46%, #000 50%, transparent 100%); }
    .hero__body { grid-row: 2; }
    .hero__foot { grid-row: 3; }
    .hero__mark { display: none; }
    .champ-tag { left: 12px; bottom: 12px; }
    .seed-note { position: relative; left: auto; bottom: auto; grid-row: 3; margin: 16px 0 0; max-width: none; }
    .pro-hero .hero__foot { grid-row: 4; }
    .hero__art .credit { right: 20px; bottom: 8px; }
    .hero-tag { bottom: 34px; }
    .prizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panel { padding: 18px; }
    .pairing-input { grid-template-columns: minmax(0, 1fr) 64px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
    .pairing-input .table-no, .pairing-head { display: none; }
    .pairing-input > :nth-child(2) { grid-column: 1; }
    .pairing-input > :nth-child(3) { grid-column: 2; grid-row: 1; }
    .pairing-input > :nth-child(5) { grid-column: 1; }
    .pairing-input > :nth-child(4) { grid-column: 2; grid-row: 2; }
}
@media (max-width: 600px) {
    .facts { gap: 8px; }
    .facts .tile { padding: 12px; min-height: 92px; }
    .tiles, .tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .jlist { grid-template-columns: 1fr; }
    .rounds__grid { grid-template-columns: 1fr; }
    .winner { flex-wrap: wrap; }
    .champ { flex-wrap: wrap; }
    .champ__nums { margin-left: 0; width: 100%; justify-content: space-between; text-align: left; gap: 12px; }
    .champ__nums span { justify-items: start; }
    .champ__who strong { font-size: 24px; }
    .lede { font-size: 16px; }
    .score { font-size: 32px; }
    .avatar { width: 46px; height: 46px; font-size: 15px; }
    .phead h2 { font-size: 23px; }
    .brand__name { font-size: 17px; }
    .brand img { width: 48px; height: 48px; }
    .top4 li { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; }
    .top4 .pts { display: none; }
    .list .row { grid-template-columns: 60px minmax(0, 1fr); }
    .list .row__side { grid-column: 2; text-align: left; }
}
@media (max-width: 420px) {
    .facts { grid-template-columns: 1fr 1fr; }
    .facts .tile:last-child { grid-column: span 2; }
    .prizes { grid-template-columns: 1fr; }
    .h2h li { grid-template-columns: minmax(0, 1fr) 64px 46px; gap: 8px; }
    .kpis .kpi { flex: 1; min-width: 0; }
}

/* ───────── Plataforma: tarjetas de liga y mis ligas ───────── */

.lcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.lcard { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--r-tile); text-decoration: none; color: inherit; min-height: 190px; transition: transform .2s var(--ease), border-color .2s; }
.lcard:hover { transform: translateY(-2px); border-color: rgb(var(--accent-rgb) / .5); }
.lcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lcard__name { font-family: var(--font-display); font-size: 23px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.lcard__desc { font-size: 13.5px; color: var(--muted); }
.lcard__nums { display: flex; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--muted); }
.lcard__nums b { color: var(--pure); font-size: 16px; font-weight: 700; }
.lcard__next { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); padding-top: 8px; border-top: 1px solid var(--line); }
.lcard__next .ico { width: 15px; height: 15px; }

.mleagues { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mleagues > li { display: grid; gap: 14px; padding: 18px 20px; border-radius: var(--r-tile); }
.mleagues > li.is-off { opacity: .6; }
.mleagues__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.mleagues h3 { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 2px 0 6px; }
.mleagues h3 a { text-decoration: none; }
.mleagues__nums { display: flex; gap: 10px 26px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.mleagues__nums span { display: grid; font-size: 12.5px; color: var(--muted); }
.mleagues__nums b { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--pure); line-height: 1.1; }
.is-platform .hero--flat h1 { max-width: 20ch; }

/* ───────── Estado de la liga: ahora, después, te toca ───────── */

.status { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); margin-top: 22px; border-radius: var(--r-panel); overflow: hidden; }
.status__col { display: grid; gap: 4px; align-content: start; padding: 18px 22px; min-width: 0; border-left: 1px solid var(--line); }
.status__col:first-child { border-left: 0; }
.status__label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.status__col strong { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.status__col strong a { text-decoration: none; }
.status__col strong a:hover { text-decoration: underline; }
.status__col strong .ico { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; color: var(--win); }
.status__col small { font-size: 13px; color: var(--muted); }
.status__col--todo { background: linear-gradient(135deg, rgb(var(--accent-rgb) / .2), rgb(var(--accent-rgb) / .05)); }
.status__col--todo .status__label { color: var(--accent); }
.status__col--todo .btn { justify-self: start; margin-top: 8px; padding: 10px 16px; }
.status__col--todo.is-done { background: rgb(95 208 138 / .08); }
.status__col--todo.is-done .status__label { color: var(--win); }
.status + .hero { margin-top: 84px; }
.status + .hero.hero--flat { margin-top: 22px; }

/* Botones de cabecera: lo de cada uno, a la vista */
.header-action { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-action .ico { width: 17px; height: 17px; }
.header-action:hover { background: rgb(var(--tint-rgb) / .12); }
.header-action.is-on { background: var(--paper); color: var(--ink); }
.header-action--admin { color: var(--accent); }
.header-action--admin.is-on { background: var(--accent); color: var(--on-accent); }

/* Tu inscripción, dentro de la página de la jornada */
.mine { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: center; margin-top: 22px; padding: 20px 24px; border-radius: var(--r-panel); border-color: rgb(var(--accent-rgb) / .5); background: linear-gradient(135deg, rgb(var(--accent-rgb) / .16), rgb(var(--tint-rgb) / .04) 70%); scroll-margin-top: 20px; }
.mine.is-done { border-color: rgb(95 208 138 / .45); background: linear-gradient(135deg, rgb(95 208 138 / .12), rgb(var(--tint-rgb) / .04) 70%); }
.mine h2 { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0 6px; text-wrap: balance; }
.mine h2 .ico { width: 22px; height: 22px; vertical-align: -3px; margin-right: 8px; color: var(--win); }
.mine__decks { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mine__decks select { width: auto; min-width: 220px; max-width: 100%; }
.mine__more { grid-column: 1 / -1; display: flex; gap: 8px 20px; flex-wrap: wrap; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.mine__more details { flex-basis: 100%; order: 9; }
.mine__more summary { cursor: pointer; color: var(--muted); }
.mine__sent { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 24px; margin-top: 10px; }
.linkish { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: var(--loss); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish.is-armed { font-weight: 700; }

/* Cómo se puntúa, en pasos */
.howto { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.howto li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 16px; border-radius: var(--r-tile); background: rgb(var(--tint-rgb) / .05); border: 1px solid var(--line); }
.howto b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.howto strong { display: block; font-size: 16px; margin-bottom: 4px; }
.howto span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.howto__example { margin-top: 16px; font-size: 14.5px; color: var(--text); }

/* Gestionar: barra, pestañas, jornadas y ajustes avanzados */
.manage { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin-top: 18px; padding: 6px 8px 6px 16px; border-radius: var(--r-pill); border-color: rgb(var(--accent-rgb) / .35); }
.manage__title { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.manage__title .ico { width: 15px; height: 15px; }
.manage ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; flex: 1; }
.manage li a { display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.manage li a .ico { width: 16px; height: 16px; }
.manage li a:hover { color: var(--pure); background: rgb(var(--tint-rgb) / .08); }
.manage li a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.manage__n { display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: 800; }
.manage li a[aria-current="page"] .manage__n { background: var(--on-accent); color: var(--accent); }
.manage__out { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; font-size: 13.5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.manage__out .ico { width: 15px; height: 15px; }
.manage__out:hover { color: var(--pure); }
.subtabs { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 10px; padding: 0 6px; border-bottom: 1px solid var(--line); }
.subtabs a { padding: 9px 12px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs a:hover { color: var(--pure); }
.subtabs a[aria-current="page"] { color: var(--pure); font-weight: 700; border-bottom-color: var(--accent); }
.manage ~ .hero--admin { margin-top: 18px; }
.ejobs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ejobs > li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px 14px 14px; border-radius: var(--r-tile); }
.ejobs > li.is-live { border-color: rgb(var(--accent-rgb) / .6); background: linear-gradient(135deg, rgb(var(--accent-rgb) / .18), rgb(var(--tint-rgb) / .04) 70%); }
.ejobs > li.is-late { border-color: rgba(255, 122, 107, .5); }
.ejobs__date { display: grid; place-items: center; align-content: center; width: 64px; height: 64px; border-radius: 10px; background: var(--paper); color: var(--ink-2); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; line-height: 1.1; }
.ejobs__date strong { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.ejobs h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 19px; font-weight: 700; }
.ejobs p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.ejobs__nums { display: flex; gap: 4px 16px; flex-wrap: wrap; }
.ejobs__nums b { color: var(--pure); }
.advanced { border-radius: var(--r-panel); }
.advanced > summary { display: grid; gap: 2px; padding: 16px 20px; border-radius: var(--r-panel); background: rgb(var(--tint-rgb) / .05); border: 1px dashed var(--line); cursor: pointer; list-style: none; }
.advanced > summary::-webkit-details-marker { display: none; }
.advanced > summary strong::after { content: " +"; color: var(--accent); }
.advanced[open] > summary strong::after { content: " −"; }
.advanced > summary span { font-size: 13.5px; color: var(--muted); }
.advanced[open] > summary { margin-bottom: 18px; }
.advanced > fieldset + fieldset { margin-top: 18px; }
.share { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--r-tile); }
.share__url { font-family: var(--font-display); font-size: 19px; font-weight: 700; word-break: break-all; }
.mleagues__todo { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 14px 16px; border-radius: 10px; text-decoration: none; background: linear-gradient(135deg, rgb(var(--accent-rgb) / .18), rgb(var(--accent-rgb) / .05)); border: 1px solid rgb(var(--accent-rgb) / .4); }
.mleagues__todo.is-done { background: rgb(95 208 138 / .08); border-color: rgb(95 208 138 / .35); }
.mleagues__todo > span:first-child { display: grid; gap: 2px; }
.mleagues__todo strong { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.mleagues__todo small { font-size: 13px; color: var(--muted); }
.mleagues__todo .status__label { color: var(--accent); }
.mleagues__todo.is-done .status__label { color: var(--win); }

@media (max-width: 880px) {
    .status { grid-template-columns: 1fr; }
    .status__col { border-left: 0; border-top: 1px solid var(--line); padding: 14px 18px; }
    .status__col:first-child { border-top: 0; }
    .status + .hero { margin-top: 36px; }
    .header-action span { display: none; }
    .header-action { padding: 0 13px; }
    .mine { grid-template-columns: 1fr; padding: 18px; }
    .howto { grid-template-columns: 1fr 1fr; }
    .manage { border-radius: var(--r-panel); padding: 10px; }
    .manage ul { flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .manage__out { margin-left: auto; }
    .ejobs > li { grid-template-columns: 52px minmax(0, 1fr); }
    .ejobs__date { width: 52px; height: 52px; }
    .ejobs > li .actions { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .howto { grid-template-columns: 1fr; } }

/* Cabecera en una sola línea: cuando falta sitio, el patrocinador se queda en su marca y los botones en su icono. */
@media (max-width: 1500px) { .header-sponsor__text { display: none; } .header-sponsor { padding: 6px 10px; } }
@media (max-width: 1400px) { .header-action span { display: none; } .header-action { padding: 0 13px; } .account__name { display: none; } .nav a { padding: 9px 11px; } }

/* ───────── La jornada paso a paso, mesas y resultados ───────── */

.nextstep { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; padding: 22px 24px; border-radius: var(--r-panel); border-color: rgb(var(--accent-rgb) / .5); background: linear-gradient(135deg, rgb(var(--accent-rgb) / .16), rgb(var(--tint-rgb) / .04) 70%); margin-bottom: 26px; }
.nextstep h2 { font-family: var(--font-display); font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0 6px; text-wrap: balance; }
.nextstep h2 .ico { width: 24px; height: 24px; vertical-align: -3px; margin-right: 8px; color: var(--win); }
.nextstep__do { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.nextstep__finish { display: flex; gap: 8px; flex-wrap: wrap; }
.nextstep__finish select { width: auto; max-width: 260px; }
.nextstep__rounds { grid-column: 1 / -1; display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.nextstep__rounds input { width: 70px; }
.nextstep button[disabled] { opacity: .45; cursor: not-allowed; }
.tables { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 6px; }
.tables li { display: grid; grid-template-columns: 62px minmax(0, 1fr) 70px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 12px; border-radius: 9px; background: rgba(0, 0, 0, .22); font-size: 14px; }
.tables li.is-pendiente { box-shadow: inset 3px 0 0 var(--accent); }
.tables li.is-informada { box-shadow: inset 3px 0 0 rgb(var(--gold-rgb)); }
.tables li.is-disputada { box-shadow: inset 3px 0 0 var(--danger, #e5484d); }
.tables__settle { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.tables__n { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tables__p { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tables__p:nth-of-type(4) { text-align: right; }
.tables__s { text-align: center; font-weight: 800; font-family: var(--font-display); }
.tables li.is-pendiente .tables__s { font-family: var(--font); font-weight: 500; font-size: 12px; color: var(--muted); }
.tables__st { font-size: 11.5px; color: var(--rara-ink); }
.pair--live .pair__score--bye { color: var(--accent); }

.mine--table { grid-template-columns: 1fr; }
.results { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.results__label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 6px; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results__b { appearance: none; border: 0; cursor: pointer; min-width: 64px; padding: 14px 10px; border-radius: 10px; font: 800 19px/1 var(--font-display); color: var(--pure); background: rgb(var(--tint-rgb) / .1); box-shadow: inset 0 0 0 1px rgb(var(--tint-rgb) / .2); transition: transform .15s var(--ease), background .15s; }
.results__b:hover { transform: translateY(-2px); }
.results__b.is-win { background: rgb(95 208 138 / .18); box-shadow: inset 0 0 0 1px rgb(95 208 138 / .5); }
.results__b.is-loss { background: rgb(255 122 107 / .14); box-shadow: inset 0 0 0 1px rgb(255 122 107 / .45); }

/* Código y QR para unirse, y liga en borrador */
.invite { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px; align-items: center; padding: 18px; border-radius: var(--r-tile); }
.invite__qr .qr { display: block; width: 100%; height: auto; border-radius: 10px; }
.invite__code { font-family: var(--font-display); font-size: 46px; font-weight: 900; letter-spacing: .14em; line-height: 1; margin: 4px 0 10px; color: var(--accent); }
.invite__url { font-size: 14px; font-weight: 600; word-break: break-all; margin: 10px 0 12px; }
.draft { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding: 18px 22px; border-radius: var(--r-panel); border: 1px dashed rgb(var(--accent-rgb) / .6); margin-bottom: 4px; scroll-margin-top: 20px; }
.draft h2 { font-family: var(--font-display); font-size: 22px; font-weight: 800; margin: 2px 0 4px; }

/* Pantalla del local */
.screen { padding: 8px 0 0; }
.screen__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 30px; flex-wrap: wrap; margin-bottom: 22px; }
.screen__head h1 { font-family: var(--font-display); font-size: clamp(38px, 5vw, 76px); font-weight: 900; letter-spacing: -.04em; line-height: .95; margin-top: 6px; }
.screen__state .tag { font-size: 18px; padding: 8px 16px; border-radius: 10px; }
.screen__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 26px; align-items: start; }
.screen__tables { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.screen__tables li { display: grid; grid-template-columns: 70px minmax(0, 1fr) 110px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 20px; border-radius: 14px; background: rgb(var(--tint-rgb) / .06); border: 1px solid rgb(var(--tint-rgb) / .1); font-size: clamp(20px, 2.1vw, 32px); }
.screen__tables li.is-live { border-color: rgb(var(--accent-rgb) / .55); background: linear-gradient(90deg, rgb(var(--accent-rgb) / .16), rgb(var(--tint-rgb) / .04)); }
.screen__n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--paper); color: var(--ink); font-family: var(--font-display); font-weight: 900; font-size: 28px; }
.screen__p { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.screen__tables li.is-live .screen__p, .screen__p.is-win { color: var(--pure); }
.screen__p:last-child { text-align: right; }
.screen__s { text-align: center; font-family: var(--font-display); font-weight: 900; }
.screen__tables li.is-live .screen__s { font-size: .6em; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.screen__rank { padding: 20px 22px; border-radius: 16px; background: rgb(var(--tint-rgb) / .05); border: 1px solid rgb(var(--tint-rgb) / .1); }
.screen__rank h2 { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.screen__rank ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.screen__rank li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: clamp(16px, 1.4vw, 21px); }
.screen__rank li span { color: var(--muted); font-weight: 700; }
.screen__rank li strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen__rank li small { display: block; font-size: .68em; font-weight: 500; color: var(--muted); }
.screen__rank li b { font-family: var(--font-display); font-weight: 800; }
.screen__foot { margin-top: 22px; font-size: 16px; color: var(--muted); text-align: center; }

@media (max-width: 880px) {
    .nextstep { grid-template-columns: 1fr; padding: 18px; }
    .nextstep__do { justify-content: flex-start; }
    .tables { grid-template-columns: 1fr; }
    .tables li { grid-template-columns: 52px minmax(0, 1fr) 54px minmax(0, 1fr); }
    .tables__st { grid-column: 1 / -1; }
    .results__b { min-width: 0; flex: 1 1 22%; padding: 16px 6px; }
    .results__label { flex-basis: 100%; max-width: none; }
    .invite { grid-template-columns: 1fr; }
    .invite__qr { max-width: 200px; }
    .screen__grid { grid-template-columns: 1fr; }
    .screen__tables li { grid-template-columns: 48px minmax(0, 1fr) 70px minmax(0, 1fr); gap: 8px; padding: 12px; }
    .screen__n { width: 40px; height: 40px; font-size: 20px; }
}


/* ---------- El día de la jornada: pasar lista, mesas que piden ayuda, reloj ---------- */
.attend__list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.attend__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, .22); }
.attend__list li.is-in { box-shadow: inset 3px 0 0 var(--win); }
.attend__list li.is-out { opacity: .55; }
.attend__name { font-weight: 600; min-width: 0; }
.attend__walkin { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgb(var(--tint-rgb) / .05); font-size: 13.5px; }
.attend__walkin label:first-child { flex-basis: 100%; font-weight: 600; }
.attend__walkin input[type=text] { width: auto; min-width: 12rem; flex: 1 1 12rem; }
.tables li.is-help { box-shadow: inset 3px 0 0 var(--loss); background: rgb(var(--loss-rgb, 220 60 60) / .12); }
.tables li.is-help .tables__st { grid-column: 1 / -1; justify-self: end; }
.tables li.is-help .tables__st form { display: inline; }
.nextstep__clock, .mine__clock, .screen__clock { grid-column: 1 / -1; margin: 6px 0 0; }
.nextstep__swap { grid-column: 1 / -1; margin-top: 10px; }
.nextstep__swap select { width: auto; }
.mine__more .linkish { color: var(--muted); }
.mine__more form:last-child .linkish { color: var(--loss); }
.flash--invite { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; border-color: rgb(var(--accent-rgb) / .6); background: linear-gradient(135deg, rgb(var(--accent-rgb) / .18), rgb(var(--tint-rgb) / .04) 70%); }
.flash--invite .btn { margin-left: auto; }
.screen__clock .tile { max-width: 380px; }
@media (max-width: 640px) {
    .attend__list li { grid-template-columns: minmax(0, 1fr) auto; }
    .attend__list li form:last-child { grid-column: 2; }
}

.prose { padding: 26px 28px; }
.prose h2 { font-family: var(--font-display); font-size: 20px; font-weight: 800; margin: 20px 0 6px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 10px; line-height: 1.55; }
/* ---------- Cartel: temas, búsqueda de cartas, foto propia ---------- */
.poster__themes { grid-template-columns: 1fr 1fr; max-height: 300px; overflow: auto; padding-right: 4px; }
.poster__themes button small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster__search { position: relative; margin-top: 8px; }
.poster__results { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); display: grid; gap: 4px; padding: 6px; border-radius: 12px; background: var(--coal, #17171a); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .8), inset 0 0 0 1px rgb(var(--tint-rgb) / .14); max-height: 320px; overflow: auto; }
.poster__results button { appearance: none; border: 0; cursor: pointer; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px; border-radius: 8px; background: none; color: var(--pure); text-align: left; font-family: var(--font); }
.poster__results button:hover { background: rgb(var(--tint-rgb) / .08); }
.poster__results img { width: 64px; height: 46px; object-fit: cover; border-radius: 6px; }
.poster__results small { display: block; color: var(--muted); font-size: 12px; }
.poster__results p { margin: 0; padding: 8px; color: var(--muted); font-size: 13px; }
.poster__upload { margin-top: 8px; cursor: pointer; }

/* ---------- Página de la liga: enlaces, reglas, galería ---------- */
.links__row { display: flex; gap: 8px; flex-wrap: wrap; }
.prose--rules h3 { font-family: var(--font-display); font-size: 18px; font-weight: 800; margin: 16px 0 4px; }
.prose--rules p, .prose--rules ul { margin: 0 0 10px; line-height: 1.55; }
.prose--rules ul { padding-left: 20px; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery li { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.gallery--admin form { display: flex; justify-content: space-between; gap: 8px; }
