/* 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;

    --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: rgba(255, 255, 255, .12);
    --win: #5FD08A;
    --loss: #FF7A6B;

    --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;
    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: rgba(255, 255, 255, .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: linear-gradient(170deg, var(--coal-2) 0%, var(--coal) 38%, #0F0F11 100%);
}
.frame__fx { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.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: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    backdrop-filter: blur(22px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 26px 50px -30px rgba(0, 0, 0, .65);
}
.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 { 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: #fff; background: rgba(255, 255, 255, .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-sponsor { 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; }

.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: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; }
.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: rgba(255, 255, 255, .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: #F5CE6A; box-shadow: inset 0 0 0 1px rgb(var(--gold-rgb) / .45); }
.tag--infrecuente { background: rgba(255, 255, 255, .14); color: #fff; }
.tag--comun { background: rgba(255, 255, 255, .08); color: var(--muted); }
.tag--line { background: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); color: #fff; }
.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: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); }
.btn--glass:hover, .button--ghost:hover { background: rgba(255, 255, 255, .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: rgba(255, 255, 255, .82); letter-spacing: .01em; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }

.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 rgba(255, 255, 255, .55), inset 0 -2px 3px rgba(0, 0, 0, .28), inset 0 2px 2px rgba(255, 255, 255, .28); }
.pip + .pip { margin-left: -2px; }
.pip--W { background: #F0E6C8; color: #3b3524; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .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; }
.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 rgba(255, 255, 255, .28); }
.cost { display: inline-flex; gap: 1px; }
.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: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.vd--E { background: rgba(255, 255, 255, .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-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-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; }
.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 { 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: #fff; }

.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: #fff; }
.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); }

/* ───────── 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; }
.pills td { padding: 10px 12px; background: rgba(255, 255, 255, .06); border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .02); white-space: nowrap; transition: background .2s; vertical-align: middle; }
.pills td:first-child { border-left: 1px solid rgba(255, 255, 255, .05); border-radius: 9px 0 0 9px; }
.pills td:last-child { border-right: 1px solid rgba(255, 255, 255, .05); border-radius: 0 9px 9px 0; }
.pills tbody tr:hover td { background: rgba(255, 255, 255, .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: rgba(255, 255, 255, .45); }
.pills td.is-absent { color: rgba(255, 255, 255, .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: rgba(255, 255, 255, .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; }

.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 { 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: rgba(255, 255, 255, .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: saturate(.72) contrast(1.08); }
.hero__art .credit { position: absolute; right: 26px; bottom: 20px; }
.hero__art--none { display: grid; place-items: center; }
.hero__art--none .pips .pip { width: 72px; height: 72px; }
.hero__art--none .pips .pip + .pip { margin-left: -14px; }
.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-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: #fff; 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: #fff; 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-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); }

.crumbs { font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.crumbs a { color: #fff; 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 { 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: rgba(255, 255, 255, .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: rgba(255, 255, 255, .045); border: 1px solid var(--line); }
.badge__medal { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .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), rgba(255, 255, 255, .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), rgba(255, 255, 255, .04) 70%); border-color: rgb(var(--gold-rgb) / .38); }
.badge--rara .badge__medal { background: linear-gradient(150deg, #FFDC85, rgb(var(--gold-rgb))); color: #3B2B00; 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: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.badges-more:hover { background: rgba(255, 255, 255, .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: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.scope:hover { background: rgba(255, 255, 255, .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: rgba(255, 255, 255, .14); stroke-width: 1; }
.radar .rg--outer { stroke: rgba(255, 255, 255, .3); }
.radar .ra { stroke: rgba(255, 255, 255, .18); stroke-width: 1; }
.radar .rp { fill: rgb(var(--accent-rgb) / .2); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.radar .rd { fill: #fff; stroke: var(--accent); stroke-width: 2.5; }
.radar .rn { fill: rgba(255, 255, 255, .78); font-size: 14px; font-family: var(--font); }
.radar .rv { fill: #fff; 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), rgba(255, 255, 255, .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: rgba(255, 255, 255, .08); gap: 2px; }
.seg i { display: block; height: 100%; }
.seg .sV { background: var(--accent); } .seg .sE { background: rgba(255, 255, 255, .85); } .seg .sD { background: rgba(255, 255, 255, .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: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .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 { display: flex; align-items: center; gap: 6px; font-size: 40px; font-weight: 800; line-height: 1; }
.score .l { color: rgba(255, 255, 255, .5); }
.score .dash { font-size: 24px; color: rgba(255, 255, 255, .4); font-weight: 400; }
.match--final { background: linear-gradient(135deg, rgb(var(--accent-rgb) / .26), rgba(255, 255, 255, .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 rgba(255, 255, 255, .4); color: #fff; }
.flag--won { background: var(--accent); color: var(--on-accent); }
.flag .ico { width: 13px; height: 13px; }
.pills tr.is-dropped td { color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .03); }
.pills tr.is-dropped .pts { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .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: rgba(255, 255, 255, .08); color: #fff; 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: rgba(255, 255, 255, .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: rgba(0, 0, 0, .28) !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: rgba(255, 255, 255, .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: rgba(255, 255, 255, .06); border-top: 1px solid rgba(255, 255, 255, .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); }

/* ───────── 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: saturate(.72) contrast(1.08); -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-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), rgba(255, 255, 255, .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-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: rgba(255, 255, 255, .06); border-top: 1px solid rgba(255, 255, 255, .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: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(255, 255, 255, .45), #fff); }
.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: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .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 rgba(255, 255, 255, .08); }
.bm__p .seed { font-size: 11px; font-weight: 600; text-align: center; border-radius: 5px; background: rgba(255, 255, 255, .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: #fff; font-weight: 600; }
.bm__p.is-win .sc { color: var(--accent); }
.bm--final { background: linear-gradient(135deg, rgb(var(--accent-rgb) / .24), rgba(255, 255, 255, .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: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .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; }

.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: rgba(255, 255, 255, .28); }
.jcard__n { position: absolute; right: -6px; top: -22px; font-size: 110px; font-weight: 900; line-height: 1; color: rgba(255, 255, 255, .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 ───────── */

.rounds { display: grid; gap: 18px 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.round h3 { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pairing { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 9px 12px; margin-bottom: 6px; border-radius: 9px; background: rgba(255, 255, 255, .06); border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.pairing > :last-child { text-align: right; }
.pairing > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pairing__score { font-weight: 700; min-width: 42px; text-align: center; color: var(--muted); }
.pairing .is-win .player { color: #fff; }
.pairing .is-loss, .pairing .is-loss .player { color: var(--soft); font-weight: 500; }

/* ───────── 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: rgba(255, 255, 255, .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; gap: 4px; padding: 5px; border-radius: var(--r-pill); margin-bottom: 20px; }
.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: #fff; }
.month__grid .day.has-event { background: var(--paper); color: var(--ink); font-weight: 700; }
.month__grid .day.has-event.is-past { background: rgba(255, 255, 255, .16); color: #fff; }
.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: rgba(255, 255, 255, .06); border-top: 1px solid rgba(255, 255, 255, .08); text-decoration: none; }
.list a.row:hover { background: rgba(255, 255, 255, .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__side { color: var(--muted); font-size: 13.5px; text-align: right; }
.list .row__side strong { display: block; color: #fff; 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: rgba(255, 255, 255, .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; }
.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: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; 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: rgba(255, 255, 255, .06); border-top: 1px solid rgba(255, 255, 255, .08); }
.steps > li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(255, 255, 255, .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; }

/* ───────── 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: rgba(255, 255, 255, .04); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .25s, border-color .25s; }
.mats__step:hover { background: rgba(255, 255, 255, .08); }
.mats__step[aria-pressed="true"] { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .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 rgba(255, 255, 255, .16), inset 0 0 18px rgba(0, 0, 0, .25);
    background: linear-gradient(125deg, rgba(255, 255, 255, .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; }
}

@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) {
    .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; }
    .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; }
    .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; }
}
