/* ════════════════════════════════════════════════════════════════════
   Mundial2026 · App styles — M26 Tournament OS
   Layout: utility bar, nav, hero, ribbon, bento, page, footer.
   Importa después de tokens.css y antes de fiesta.css + game-fx.css.
════════════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 14px;
  line-height: 1.45;
  min-height: 100vh; overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--amber); color: var(--ink); }

/* ─── Utilities (M26) ─────────────────────────────────── */
.mono   { font-family: var(--font-mono); font-feature-settings: 'tnum', 'zero'; font-variant-numeric: tabular-nums slashed-zero; }
.micro  { font-size: 10.5px; letter-spacing: 0.10em; text-transform: uppercase; font-weight: 500; }
.dim    { color: var(--ink-3); }
.accent { color: var(--red); }
.script { font-family: var(--font-body); font-style: italic; font-weight: 400; color: var(--ink-2); }
.pill {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 4px;
  background: var(--surface-sunk); color: var(--ink);
  font-size: 11px; letter-spacing: 0.06em;
  border: 1px solid var(--line);
}

/* ═══ UTILITY BAR (top status strip) ═══════════════════ */
.utility {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.utility-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 8px 32px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.util-left, .util-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 var(--green);
  animation: ping 2.4s ease-out infinite;
  flex-shrink: 0;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 var(--green-soft); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ═══ MAIN NAV ══════════════════════════════════════════ */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: var(--z-header);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: block; /* override Tricolor flex */
  height: auto; padding: 0;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
}
[data-theme="dark"] .nav.scrolled {
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; gap: 28px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo-stamp {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
}
.logo-stamp::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 4px, rgba(255,255,255,0.04) 4px 5px);
}
.logo-mark {
  font-family: var(--font-display);
  font-weight: 900; font-size: 22px; line-height: 1;
  color: var(--bg); letter-spacing: -0.02em;
  position: relative;
}
.logo-mark-num {
  font-family: var(--font-display);
  font-weight: 900; font-size: 22px; line-height: 1;
  color: var(--amber); letter-spacing: -0.04em;
  margin-left: -3px;
  position: relative;
}
.logo-stamp.small { width: 36px; height: 36px; border-radius: 8px; }
.logo-stamp.small .logo-mark,
.logo-stamp.small .logo-mark-num { font-size: 18px; }

.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 18px; line-height: 1;
  letter-spacing: -0.01em; color: var(--ink);
}
.brand-year { color: var(--red); }
.brand-tag { font-size: 9.5px; color: var(--ink-3); letter-spacing: 0.14em; }

.primary-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; flex-wrap: wrap; }
.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  color: var(--ink-2);
  transition: color 0.15s, background 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
  font-family: var(--font-body);
}
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link.is-active {
  color: var(--ink); background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav-link.is-active::after {
  content: ""; position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px; background: var(--red);
}
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 6px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--red); color: white;
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
}

.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.tool-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink-2); background: var(--surface);
  transition: all 0.15s;
  font-size: 12px;
  font-family: var(--font-body);
}
.tool-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.kbd {
  font-size: 10px; padding: 1px 5px;
  background: var(--surface-sunk); border-radius: 3px;
  color: var(--ink-3);
  font-family: var(--font-mono);
}

.theme-toggle {
  width: 36px; height: 36px; justify-content: center; padding: 0;
  font-size: 14px; position: relative;
}
.theme-toggle .sun,
.theme-toggle .moon {
  position: absolute;
  transition: opacity 0.25s, transform 0.4s;
}
[data-theme="light"] .moon { opacity: 0; transform: rotate(-45deg); }
[data-theme="dark"]  .sun  { opacity: 0; transform: rotate(45deg); }

/* Avatar M26 (reemplaza el picker-pill viejo en su lugar #hdr-auth) */
.m26-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--amber));
  color: white; font-weight: 800; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink);
  position: relative; cursor: pointer;
  font-family: var(--font-body);
}
.m26-avatar-dot {
  position: absolute; right: -1px; bottom: -1px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg);
}

/* ═══ AUTH (m16 · Google Sign-In) ══════════════════════ */

/* Full-page gate antes de bootstrap si no hay sesión */
.bb-auth-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  animation: fadeIn .3s ease;
}
.bb-auth-gate.hidden { display: none !important; }

.bb-auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 20px);
  padding: 2.5rem 2rem;
  max-width: 420px; width: 100%;
  text-align: center;
  box-shadow: var(--shadow-card, 0 8px 24px -16px rgba(0,0,0,.18));
}

.bb-auth-logo {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 2px;
  width: 64px; height: 64px;
  background: var(--ink);
  border-radius: 12px;
  margin: 0 auto 1.25rem;
  position: relative;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  overflow: hidden;
}
.bb-auth-logo::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg,
    rgba(255,255,255,.04) 0 1px,
    transparent 1px 8px);
  pointer-events: none;
}
.bb-auth-mark { color: var(--cream, #F4ECD3); font-size: 26px; line-height: 1; }
.bb-auth-num  { color: var(--amber); font-size: 26px; line-height: 1; }

.bb-auth-title {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 0.5px;
  color: var(--ink);
  margin: 0 0 .35rem;
}
.bb-auth-sub {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.875rem;
  color: var(--ink-3);
  margin: 0 0 1.5rem;
}

.bb-auth-divider {
  height: 1px;
  background: var(--line-soft, var(--line));
  margin: 0 0 1.5rem;
}

.bb-google-btn-wrap {
  display: flex; justify-content: center;
  min-height: 44px;
  margin-bottom: 1.25rem;
}

.bb-auth-invite-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--amber-soft, rgba(197,138,0,0.12));
  color: var(--amber, #C58A00);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(197,138,0,0.25);
  margin: 0 auto 1rem;
}
.bb-auth-invite-badge strong { color: var(--ink); }

.bb-auth-error {
  background: var(--red-soft, rgba(214,58,42,0.10));
  color: var(--red);
  font-size: 0.8rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  margin: 0 0 1rem;
  text-align: left;
  border: 1px solid rgba(214,58,42,0.2);
}

.bb-auth-help {
  font-size: 0.75rem;
  color: var(--ink-3);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.bb-auth-meta {
  font-size: 0.65rem;
  color: var(--ink-4, var(--ink-3));
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

/* Avatar pill en el header (post-login) */
.bb-auth-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--surface-2, var(--surface));
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px 3px 3px;
  cursor: pointer;
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.15s ease;
}
.bb-auth-pill:hover {
  border-color: var(--ink);
  background: var(--surface);
}
.bb-auth-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red), var(--amber));
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
}
.bb-auth-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.bb-auth-avatar-fb {
  color: white; font-weight: 800; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.bb-auth-name {
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 560px) {
  .bb-auth-name { display: none; }
  .bb-auth-pill { padding: 3px; }
}

@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* ═══ LAYOUT ═══════════════════════════════════════════ */
.main { max-width: var(--bb-max-w); margin: 0 auto; padding: 1.5rem; position: relative; }
.hidden { display: none !important; }

/* ═══ SECTION DIVIDER ══════════════════════════════════ */
.sdiv { display: flex; align-items: center; gap: .65rem; margin: 1.5rem 0 .85rem; }
.sdiv-txt {
  font-family: var(--bb-mono); font-size: .54rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(31,19,8,.38); white-space: nowrap;
}
.sdiv-line { flex: 1; height: 1.5px; background: rgba(31,19,8,.15); }

/* ═══ HERO (M26) ═══════════════════════════════════════ */
.hero {
  position: relative;
  padding: 56px 0 48px;
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
}
.hero::before { display: none; }
.hero-pattern {
  position: absolute; inset: -100px 0 -50px 0;
  color: var(--ink);
  opacity: 0.04;
  pointer-events: none;
}
[data-theme="dark"] .hero-pattern { opacity: 0.06; color: var(--amber); }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.hero-left { display: flex; flex-direction: column; gap: 28px; }

.eyebrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px;
}
.chip.ghost { background: transparent; }
.chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  animation: pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* Headline editorial — FALTA POCO. */
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  display: block;
  font-style: normal;
  text-shadow: none;
}
.title-word { display: block; }
.title-accent { display: block; position: relative; }
.t-strike {
  color: var(--ink-4);
  position: relative; display: inline-block;
  margin-right: 0.25em;
}
.t-strike::after {
  content: ''; position: absolute;
  left: -4%; right: -4%; top: 52%;
  height: 8px; background: var(--red);
  transform: rotate(-2deg);
}
.t-correction {
  color: var(--red);
  font-style: italic;
  position: relative;
}
.t-correction::before {
  content: '↑';
  font-size: 0.5em;
  position: relative;
  top: -0.6em;
  margin-right: 0.08em;
  font-style: normal;
  color: var(--red);
  font-weight: 700;
}

.hero-sub {
  display: inline-flex; align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 17px;
  color: var(--ink-2);
  font-family: var(--font-body);
}
.hero-sub .pill { font-size: 12px; padding: 4px 10px; }

/* Countdown grid */
.countdown {
  display: flex; align-items: flex-end; gap: 14px;
  flex-wrap: wrap;
}
.cd-cell {
  position: relative;
  flex: 1; min-width: 0; max-width: 140px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px 12px;
}
.cd-cell::before {
  content: ''; position: absolute; top: 8px; left: 10px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink-3);
}
.cd-cell.cd-secs {
  background: var(--ink);
  color: var(--bg);
}
.cd-cell.cd-secs::before { background: var(--red); }
.cd-cell.cd-secs .cd-num { color: var(--bg); }
.cd-cell.cd-secs .cd-lbl { color: rgba(255,255,255,0.6); }
[data-theme="dark"] .cd-cell.cd-secs .cd-lbl { color: var(--ink-3); }
.cd-num {
  font-family: var(--font-display);
  font-weight: 800; font-size: 58px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-feature-settings: 'tnum';
}
.cd-lbl {
  margin-top: 6px;
  color: var(--ink-3);
}
.cd-sep {
  font-family: var(--font-display);
  font-weight: 700; font-size: 48px;
  color: var(--ink-4);
  padding-bottom: 12px;
  align-self: flex-end;
}

/* CTA row */
.cta-row {
  display: flex; align-items: center;
  gap: 12px; flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700;
  font-family: var(--font-body);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--red); border-color: var(--red); color: white;
  transform: translateY(-1px);
}
.btn-primary .btn-arrow { transition: transform 0.2s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { display: flex; width: 100%; justify-content: center; }
.cta-meta { margin-left: auto; }

/* HERO RIGHT — opener card + pot strip */
.hero-right { display: flex; flex-direction: column; gap: 14px; }

.opener {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-lift);
  flex: 1;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  overflow: hidden;
}
.opener::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right,
    var(--c-mex) 0%, var(--c-mex) 33.33%,
    var(--cream) 33.33%, var(--cream) 66.66%,
    var(--c-usa) 66.66%, var(--c-usa) 100%);
}
.opener-head {
  display: flex; justify-content: space-between; align-items: center;
}
.opener-teams {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 14px;
  padding: 8px 0;
}
.team { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.flag {
  width: 64px; height: 44px; border-radius: 6px;
  display: flex; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2), inset 0 0 0 1px rgba(255,255,255,0.1);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.flag-band { flex: 1; }
.flag.flag-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.flag.flag-fallback {
  background: var(--surface-sunk);
}
.team-name {
  font-family: var(--font-display);
  font-weight: 900; font-size: 38px; line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.team-full { font-size: 10px; letter-spacing: 0.08em; }

.vs { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 80px; }
.vs-line { width: 24px; height: 1px; background: var(--line); }
.vs-text {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px; color: var(--ink-3);
}
.vs-time {
  font-family: var(--font-mono);
  font-weight: 600; font-size: 18px; color: var(--ink); margin-top: -2px;
}

.opener-foot {
  display: grid; grid-template-columns: 1fr 1.4fr 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.opener-foot-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cell-lbl { font-size: 9.5px; }
.cell-val {
  font-size: 14px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 6px;
}
.cell-val.pick { color: var(--red); }
.pick-flag {
  display: inline-block; width: 14px; height: 10px; border-radius: 2px;
}

.opener-consensus { display: flex; flex-direction: column; gap: 8px; }
.cons-row { display: flex; justify-content: space-between; align-items: center; }
.cons-bar {
  display: flex; height: 6px; border-radius: 3px; overflow: hidden;
  background: var(--surface-sunk);
}
.cons-fill { height: 100%; transition: width 0.4s ease; }
.cons-mex { background: var(--red); }
.cons-draw { background: var(--ink-4); }
.cons-mar { background: var(--amber); }
.cons-legend { display: flex; justify-content: space-between; }

.pot-strip {
  background: var(--ink); color: var(--bg);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 12px; align-items: center;
  border: 1px solid var(--ink);
}
.pot-val {
  font-family: var(--font-display);
  font-weight: 800; font-size: 32px; letter-spacing: -0.02em;
}
.pot-strip .cell-lbl { color: rgba(255,255,255,0.55); }
[data-theme="dark"] .pot-strip .cell-lbl { color: var(--ink-3); }
.pot-arrow { text-align: right; }

/* ═══ TRICOLOR RIBBON ══════════════════════════════════ */
.ribbon {
  margin: 12px 0 32px;
  position: relative;
  display: grid;
  grid-template-columns: 6px 6px 6px 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.ribbon-band { height: 36px; }
.band-mex { background: var(--c-mex); }
.band-can { background: var(--c-can); }
.band-usa { background: var(--c-usa); }
.ribbon-text {
  display: flex; align-items: center; gap: 18px;
  padding: 0 24px;
  white-space: nowrap;
  animation: scroll 80s linear infinite;
  color: var(--ink-3);
}
.ribbon-text span:nth-child(odd) { font-weight: 600; color: var(--ink-2); }
.ribbon:hover .ribbon-text { animation-play-state: paused; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══ PAGE WRAPPER ═════════════════════════════════════ */
.page { max-width: var(--max-w); margin: 0 auto; padding: 0 32px 64px; }

/* ═══ BENTO GRID (shell — cards en F5) ═════════════════ */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 8px;
}
.card-head-right { display: flex; align-items: center; gap: 10px; }
.card-eyebrow {
  color: var(--ink-3);
  margin-bottom: 4px;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 800; font-size: 26px; line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-style: normal;
}
.card-soon {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 8px;
  min-height: 120px;
  color: var(--ink-3);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 12px;
  flex: 1;
}
.card-soon-ico { font-size: 28px; }
.card-soon-msg { font-size: 12px; max-width: 240px; line-height: 1.4; }

.card-leaderboard { grid-column: span 5; grid-row: span 2; }
.card-picks      { grid-column: span 4; }
.card-next       { grid-column: span 3; grid-row: span 2; }
.card-bracket    { grid-column: span 4; }
.card-chat       { grid-column: span 5; }
.card-groups     { grid-column: span 7; }
.card-stats      { grid-column: span 12; }

/* ═══ BRACKET card (proyección Octavos → Final) ════════════════════ */
.bracket {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr;
  gap: 12px;
  align-items: stretch;
}
.br-col {
  display: flex; flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.br-lbl {
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.br-slot {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  color: var(--ink-2);
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}
.br-slot.won {
  background: var(--surface);
  border-color: var(--ink);
  color: var(--ink);
}
.br-slot.ghost {
  border-style: dashed;
  background: transparent;
}
.br-slot.big {
  background: var(--ink);
  color: var(--bg);
  padding: 14px 12px;
  font-family: var(--font-display);
  font-size: 16px;
  border-color: var(--ink);
}
.br-slot.champion {
  background: linear-gradient(135deg, var(--red), var(--amber));
  color: white;
  border: none;
  min-height: 100px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 14px;
  gap: 4px;
}
.champ-tag {
  background: rgba(0, 0, 0, 0.25);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.1em;
  font-size: 9px;
}
.champ-arg {
  font-family: var(--font-display);
  font-weight: 900; font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: white;
  max-width: 100%;
  overflow-wrap: break-word;
  hyphens: none;
  word-break: normal;
  text-transform: uppercase;
}
.br-slot.champion .accent { color: rgba(255,255,255,0.9); }
.champ-arg-empty {
  text-transform: none !important;
  font-style: italic;
  opacity: 0.85;
}

@media (max-width: 720px) {
  .bracket { grid-template-columns: 1fr 1fr; gap: 8px; }
  .br-slot.champion { min-height: 80px; }
  .champ-arg { font-size: 18px; }
}

/* ═══ GROUPS card (mini-grid de 12 grupos del Mundial) ════════════ */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.grp {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  position: relative;
  transition: border-color 0.15s;
}
.grp:hover { border-color: var(--ink-3); }
.grp-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; margin-bottom: 6px;
}
.grp-letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: var(--ink); color: var(--bg);
  border-radius: 4px;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.grp-pop {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-align: right;
  min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.grp-list {
  display: flex; flex-direction: column; gap: 3px;
}
.grp-row {
  display: flex; justify-content: space-between;
  font-size: 10.5px;
  color: var(--ink-2);
}
.grp-row.top {
  color: var(--ink);
  font-weight: 700;
}
.grp-row.dim { color: var(--ink-4); }

/* Grupo "locked" (>75% consensus) */
.grp.grp-locked .grp-letter { background: var(--green); }
.grp.grp-locked .grp-pop { color: var(--red); }

/* Grupo "unánime" (100%) */
.grp.grp-unanimous {
  border-color: var(--red);
}
.grp.grp-unanimous .grp-letter { background: var(--red); }
.grp.grp-unanimous .grp-pop { color: var(--red); }
.grp-tag {
  position: absolute;
  top: -7px; right: 8px;
  background: var(--red); color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 8px;
  letter-spacing: 0.1em;
}

@media (max-width: 720px) {
  .groups-grid { grid-template-columns: repeat(2, 1fr); }
}

.link {
  color: var(--ink-2);
  transition: color 0.15s;
}
.link:hover { color: var(--red); }
.card-foot { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.invite {
  display: block; padding: 8px 0; text-align: center;
  color: var(--ink-3);
  transition: color 0.15s;
}

/* ═══ LEADERBOARD card ════════════════════════════════════ */
.lb { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.lb-row {
  display: grid;
  grid-template-columns: 28px 28px 1fr auto auto;
  align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  position: relative;
  transition: background 0.15s;
}
.lb-row:hover { background: var(--surface-2); }
.lb-row.lb-self {
  background: linear-gradient(to right, var(--amber-soft), transparent 60%);
  padding: 10px;
}
.lb-row.lb-self .lb-fill { background: var(--amber); }
.lb-row.lb-warn .lb-fill { background: var(--red-soft); }
.lb-rank { color: var(--ink-3); font-size: 12px; font-weight: 700; }
.lb-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--c, var(--ink));
  color: white; font-weight: 800; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
}
.lb-name {
  font-weight: 600; color: var(--ink); font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lb-you {
  background: var(--ink); color: var(--bg);
  padding: 2px 6px; border-radius: 4px;
  font-size: 9px;
}
.lb-flag {
  background: var(--red-soft); color: var(--red);
  padding: 2px 6px; border-radius: 4px;
  font-size: 9px;
}
.lb-fav { font-size: 10px; }
.lb-pts {
  font-family: var(--font-display);
  font-weight: 800; font-size: 22px; line-height: 1;
  color: var(--ink);
  font-feature-settings: 'tnum';
}
.lb-bar {
  grid-column: 1 / -1;
  height: 2px;
  background: var(--line-soft);
  border-radius: 1px; overflow: hidden;
  margin-top: 2px;
}
.lb-fill {
  display: block; height: 100%;
  background: var(--ink-4);
  transition: width 0.6s var(--ease-out);
}

/* ═══ PICKS card ═══════════════════════════════════════════ */
.card-picks .card-title { font-size: 32px; }
.picks-ok { color: var(--green); }
.status-tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em;
}
.status-tag.status-ok   { background: var(--green-soft); color: var(--green); }
.status-tag.status-pend { background: var(--amber-soft); color: var(--amber); }

.champ-block {
  background: var(--surface-sunk);
  padding: 14px;
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; gap: 6px;
}
.champ-name {
  font-family: var(--font-display);
  font-weight: 900; font-size: 24px; line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.champ-placeholder {
  font-family: var(--font-body);
  font-weight: 500; font-size: 16px;
  letter-spacing: 0;
}
.champ-lock { color: var(--ink-3); }

/* ═══ NEXT MATCHES card ════════════════════════════════════ */
.next-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.next-row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center; gap: 12px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.next-row:hover { background: var(--surface-sunk); }
.next-row.featured { background: var(--red-soft); border-color: var(--red); }
.next-row.hot      { background: var(--amber-soft); border-color: var(--amber); }
.next-row.classic  { background: var(--surface-sunk); border-color: var(--ink-3); }

.next-date {
  font-size: 13px; font-weight: 700;
  color: var(--ink);
}
.next-teams {
  font-family: var(--font-display);
  font-weight: 800; font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.next-teams .dim { font-weight: 500; text-transform: lowercase; font-size: 14px; }
.next-pick { color: var(--red); }
.next-tag {
  padding: 3px 8px; border-radius: 4px;
  background: var(--ink); color: var(--bg);
}
.next-tag.hot-tag { background: var(--amber); color: var(--ink); }
.next-tag.dim { background: var(--surface-sunk); color: var(--ink-3); }

/* ═══ STATS card ═══════════════════════════════════════════ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  display: flex; flex-direction: column; gap: 4px;
  padding-left: 16px;
  border-left: 1px dashed var(--line);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-lbl { letter-spacing: 0.1em; }
.stat-val {
  font-family: var(--font-display);
  font-weight: 900; font-size: 54px; line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-feature-settings: 'tnum';
}
.stat-val sup { font-size: 0.4em; vertical-align: super; font-weight: 700; }
.stat-unit { font-size: 0.5em; opacity: 0.5; }
.stat-trend { color: var(--ink-3); }
.stat-trend.accent { color: var(--red); }

@media (max-width: 1100px) {
  .card-leaderboard, .card-picks, .card-next, .card-bracket,
  .card-chat, .card-groups, .card-stats { grid-column: span 12; grid-row: auto; }
}
@media (max-width: 720px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .stat-val { font-size: 40px; }
  .lb-row { grid-template-columns: 22px 24px 1fr auto auto; gap: 8px; padding: 6px 8px; }
  .lb-pts { font-size: 18px; }
  .hero-title { font-size: clamp(48px, 14vw, 110px) !important; line-height: 0.9; }
  .utility-inner { padding: 6px 16px; gap: 8px; font-size: 9px; }
  .nav-inner { padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
  .brand-tag { display: none; }
  .primary-nav { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; }
  .nav-link { padding: 6px 10px; font-size: 12px; flex-shrink: 0; }
  .nav-tools { gap: 6px; }
  .nav-tools .kbd { display: none; }
  .nav-tools .tool-btn { padding: 6px 10px; font-size: 11px; }
}
@media (max-width: 420px) {
  .countdown { gap: 6px; }
  .cd-cell { padding: 10px 8px 8px; min-width: 0; }
  .cd-num { font-size: 32px; }
  .cd-sep { font-size: 22px; padding-bottom: 4px; }
  .cd-lbl { font-size: 8px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .opener-foot { grid-template-columns: 1fr; gap: 8px; }
  .opener-teams { gap: 4px; }
  .team-name { font-size: 22px; }
  .flag { width: 36px; height: 24px; }
  .hero-sub { font-size: 14px; gap: 6px; }
  .hero-sub .pill { font-size: 11px; }
}

/* Legacy fiesta home — esconder en M26 (las cards Tricolor del medio) */
.legacy-fiesta-home { margin-top: 24px; }

/* ═══ FOOTER (M26) ═════════════════════════════════════ */
.foot {
  max-width: var(--max-w); margin: 0 auto;
  padding: 40px 32px 24px;
  border-top: 1px solid var(--line);
  margin-top: 48px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
}
.foot-cell { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.foot-tagline {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: 8px;
}
.foot-meta { margin-top: 8px; }
.foot-lbl { margin-bottom: 4px; }
.foot-link {
  color: var(--ink-2);
  font-size: 13px;
  transition: color 0.15s;
  padding: 2px 0;
}
.foot-link:hover { color: var(--red); }
.foot-link.dim { color: var(--ink-3); }
.foot-link.dim:hover { color: var(--ink-2); }

.sys-line {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink-2);
  padding: 2px 0;
}
.sys-dot {
  width: 6px; height: 6px; border-radius: 50%;
  flex-shrink: 0;
  background: var(--ink-4);
}
.sys-dot.ok    { background: var(--green); }
.sys-dot.warn  { background: var(--amber); }
.sys-dot.error { background: var(--red); }

.foot-rule {
  height: 1px; background: var(--line);
  margin: 32px 0 16px;
}
.foot-bottom {
  display: flex; align-items: center;
  gap: 8px; flex-wrap: wrap;
  color: var(--ink-3);
}

@media (max-width: 720px) {
  .foot { padding: 32px 16px 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-cell:first-child { grid-column: span 2; }
}

/* Responsive hero + bento */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .card { grid-column: span 12 !important; }
}
@media (max-width: 720px) {
  .page { padding: 0 16px 64px; }
  .hero { padding: 32px 0 24px; }
  .cd-num { font-size: 42px; }
  .cd-sep { font-size: 32px; padding-bottom: 8px; }
  .opener-teams { gap: 8px; }
  .team-name { font-size: 28px; }
  .flag { width: 48px; height: 32px; }
  .utility-inner, .nav-inner { padding-left: 16px; padding-right: 16px; }
}

/* ═══ STANDINGS TABLE ══════════════════════════════════ */
.standings {
  background: var(--bb-paper); border: var(--bb-border); border-radius: 4px;
  overflow: hidden; margin-bottom: 1.5rem; box-shadow: var(--bb-shadow);
}
.std-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .45rem 1rem; background: var(--bb-ink);
}
.std-head-l, .std-head-r {
  font-family: var(--bb-mono); font-size: .5rem; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase; color: color-mix(in srgb, var(--bb-cream) 38%, transparent);
}
.std-row {
  display: flex; align-items: center; padding: .65rem 1rem;
  border-bottom: 1px solid rgba(31,19,8,.09);
  transition: background var(--bb-fast); border-left: 4px solid transparent;
}
.std-row:last-child { border-bottom: none; }
.std-row:hover { background: rgba(31,19,8,.025); }
.std-pos {
  font-family: var(--bb-mono); font-size: .9rem; font-weight: 700;
  width: 22px; flex-shrink: 0; text-align: center; margin-right: .7rem;
  color: color-mix(in srgb, var(--bb-ink) 28%, transparent);
}
.std-pos.p1 { color: var(--bb-gold); font-size: 1.1rem; }
.std-pos.p2 { color: color-mix(in srgb, var(--bb-ink) 42%, transparent); }
.std-pos.p3 { color: var(--bb-maroon); }
.std-ava {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; margin-right: .75rem;
  border: 2px solid var(--bb-ink); background: var(--bb-cream);
}
.std-info { flex: 1; min-width: 0; }
.std-top {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 4px;
}
.std-name {
  font-family: var(--bb-display); font-style: normal;
  font-size: 1.05rem; letter-spacing: .2px; text-transform: uppercase;
}
.std-pts {
  font-family: var(--bb-display); font-style: normal;
  font-size: 1.4rem; font-weight: 700; line-height: 1; flex-shrink: 0;
}
.std-pts small {
  font-size: .5em; font-family: var(--bb-mono);
  letter-spacing: 1px; opacity: .5; margin-left: 2px;
}
.std-bar-wrap {
  position: relative; height: 6px; border-radius: 99px;
  background: rgba(31,19,8,.08); overflow: hidden; margin-bottom: 5px;
}
.std-bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 99px; opacity: .35;
  transition: width .8s cubic-bezier(.2,.8,.4,1);
}
.std-bar-pleno {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 99px;
  transition: width .8s cubic-bezier(.2,.8,.4,1);
}
.std-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.std-meta-stat {
  font-family: var(--bb-mono); font-size: .56rem; font-weight: 700;
  letter-spacing: .5px; opacity: .6;
}
.std-meta-pct {
  font-family: var(--bb-mono); font-size: .52rem;
  letter-spacing: .5px; opacity: .4;
}
.std-meta-gap {
  font-family: var(--bb-mono); font-size: .56rem; font-weight: 700;
  color: var(--bb-tomate); margin-left: auto;
}
.std-meta-lead {
  font-family: var(--bb-mono); font-size: .56rem; font-weight: 700;
  color: var(--bb-maroon); margin-left: auto;
}
.std-badges {
  display: flex; gap: 4px; margin-top: 4px;
}

/* ═══ TITLE RACE ═══════════════════════════════════════ */
.title-race {
  background: var(--bb-paper); border: var(--bb-border); border-radius: 4px;
  padding: 1rem 1.2rem; margin-bottom: 1.5rem; box-shadow: var(--bb-shadow-xs);
}
.tr-lbl { font-family: var(--bb-mono); font-size: .52rem; font-weight: 700;
          letter-spacing: 1.5px; text-transform: uppercase;
          color: rgba(31,19,8,.32); margin-bottom: .7rem; }
.tr-track {
  position: relative; height: 30px;
  background: var(--bb-cream); border: var(--bb-border-sm); border-radius: 3px;
  overflow: hidden; margin-bottom: .4rem;
}
.tr-seg {
  position: absolute; top: 0; bottom: 0;
  display: flex; align-items: center; gap: 4px; padding: 0 8px;
  font-family: var(--bb-ui); font-size: .6rem; font-weight: 700;
  white-space: nowrap; overflow: hidden;
  border-right: 1.5px solid var(--bb-ink);
  transition: all 1.2s var(--bb-ease-out);
}
.tr-seg img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1.5px solid var(--bb-ink); }
.tr-gaps { display: flex; justify-content: flex-end; gap: 1.25rem; }
.tr-gap-it { font-family: var(--bb-mono); font-size: .56rem; color: rgba(31,19,8,.42); font-weight: 700; }
.tr-gap-it strong { color: var(--bb-tomate); }

/* ═══ NARRATIVE FEED ═══════════════════════════════════ */
.narr { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.5rem; }
.ni {
  display: flex; align-items: flex-start; gap: .65rem;
  background: var(--bb-paper); border: var(--bb-border-sm); border-radius: 4px;
  border-color: rgba(31,19,8,.18);
  padding: .6rem .85rem; font-size: .74rem;
  color: rgba(31,19,8,.58); line-height: 1.45;
  box-shadow: var(--bb-shadow-xs);
}
.ni.hot  { border-color: rgba(210,35,42,.32);  background: rgba(210,35,42,.03); }
.ni.cool { border-color: rgba(30,79,184,.2); }
.ni.gold { border-color: rgba(244,196,48,.38); background: rgba(244,196,48,.05); }
.ni-ico  { font-size: .9rem; flex-shrink: 0; margin-top: .05rem; }
.ni strong { color: var(--bb-ink); }

/* ═══ FILTERS ══════════════════════════════════════════ */
.flt-row { display: flex; gap: .35rem; margin-bottom: .75rem; flex-wrap: wrap; align-items: center; }
.flt-lbl { font-family: var(--bb-mono); font-size: .55rem; font-weight: 700;
           letter-spacing: .8px; text-transform: uppercase;
           color: rgba(31,19,8,.38); margin-right: .1rem; }
.ft {
  background: var(--bb-paper); border: var(--bb-border-sm); border-color: rgba(31,19,8,.24);
  color: rgba(31,19,8,.52);
  font-family: var(--bb-ui); font-size: .7rem; font-weight: 700;
  padding: 4px 11px; border-radius: 3px; cursor: pointer; transition: all var(--bb-fast);
  white-space: nowrap; text-transform: uppercase; letter-spacing: .3px;
  box-shadow: var(--bb-shadow-xs);
}
.ft:hover { border-color: var(--bb-ink); color: var(--bb-ink); background: var(--bb-cream); }
.ft.on { background: var(--bb-ink); border-color: var(--bb-ink); color: var(--bb-cream); box-shadow: none; }

/* ═══ FIXTURE CARDS ════════════════════════════════════ */
.jornada-hdr {
  font-family: var(--bb-display); font-style: normal; font-size: .85rem;
  text-transform: uppercase; color: var(--bb-maroon);
  padding: .6rem 0 .3rem; border-top: 1.5px solid rgba(31,19,8,.12);
  margin-top: .25rem; display: flex; align-items: center; gap: .55rem;
}
.jornada-hdr:first-child { border-top: none; margin-top: 0; }
.jornada-hdr::after { content: ''; flex: 1; height: 1px; background: rgba(210,35,42,.2); }
.fcard {
  background: var(--bb-paper); border: var(--bb-border); border-radius: 4px;
  margin-bottom: .5rem; overflow: hidden; box-shadow: var(--bb-shadow-xs);
  transition: transform var(--bb-fast), box-shadow var(--bb-fast);
}
.fcard:hover { transform: translateY(-1px); box-shadow: var(--bb-shadow); }
.fcard.future { opacity: .55; box-shadow: none; }
.fcard.urgent { border-color: var(--bb-tomate); box-shadow: 3px 3px 0 var(--bb-tomate); }
.fcard-match {
  padding: .7rem .9rem .55rem; display: flex; align-items: center; gap: .7rem;
  border-bottom: 1px solid rgba(31,19,8,.09);
}
.fcard-date {
  font-family: var(--bb-mono); font-size: .62rem; color: rgba(31,19,8,.42);
  flex-shrink: 0; text-align: center; min-width: 34px;
  padding-right: .7rem; border-right: 1px solid rgba(31,19,8,.1);
}
.fcd-d { font-weight: 700; color: var(--bb-ink); font-size: .7rem; display: block; }
.fcard-sb { flex: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; min-width: 0; }
.fcard-home { text-align: right; font-weight: 700; font-size: .82rem; line-height: 1.2; }
.fcard-away { text-align: left;  font-size: .82rem; font-weight: 700; line-height: 1.2; color: rgba(31,19,8,.55); }
.score-cap {
  display: inline-block;
  background: var(--bb-gold); border: var(--bb-border);
  border-radius: 3px; padding: 2px 10px;
  font-family: var(--bb-mono); font-size: 1.15rem; font-weight: 700;
  color: var(--bb-ink); line-height: 1; white-space: nowrap; box-shadow: var(--bb-shadow-xs);
}
.score-cap.pending {
  background: var(--bb-cream); color: rgba(31,19,8,.32);
  font-size: .62rem; font-family: var(--bb-ui); font-weight: 600; padding: 3px 8px; box-shadow: none;
}
.score-sub {
  font-family: var(--bb-mono); font-size: .48rem; font-weight: 700;
  color: rgba(31,19,8,.28); text-align: center; margin-top: 2px;
  text-transform: uppercase; letter-spacing: .5px;
}
.fcard-meta { flex-shrink: 0; text-align: right; padding-left: .7rem; border-left: 1px solid rgba(31,19,8,.1); }
.fcard-fac { font-family: var(--bb-mono); font-size: .7rem; font-weight: 700; color: var(--bb-ink); }
.fcard-fac small {
  font-family: var(--bb-mono); font-size: .46rem; text-transform: uppercase;
  letter-spacing: .4px; color: rgba(31,19,8,.32); display: block;
}
.fcard-inds { padding: 0 .9rem .4rem; display: flex; gap: .3rem; flex-wrap: wrap; }
.ind {
  font-family: var(--bb-mono); font-size: .52rem; font-weight: 700;
  letter-spacing: .3px; text-transform: uppercase;
  padding: 1px 6px; border-radius: 2px;
  display: inline-flex; align-items: center; gap: 2px; border: 1.5px solid;
}
.ind-upset  { background: rgba(210,35,42,.07); color: var(--bb-tomate); border-color: rgba(210,35,42,.24); }
.ind-cons   { background: rgba(14,107,62,.07); color: var(--bb-pasto);  border-color: rgba(14,107,62,.22); }
.ind-solo   { background: rgba(210,35,42,.06); color: var(--bb-maroon); border-color: rgba(210,35,42,.22); }
.ind-urgent { background: rgba(210,35,42,.07); color: var(--bb-tomate); border-color: rgba(210,35,42,.22); }

/* Strip de cuotas grandes — la "firma" del juego (qa14) */
.fcard-odds {
  border-top: 1px dashed rgba(31,19,8,.2);
  display: grid; grid-template-columns: repeat(3,1fr);
  background: linear-gradient(180deg, rgba(210,35,42,.06) 0%, rgba(210,35,42,.02) 100%);
}
.fco-cell {
  padding: .55rem .4rem;
  text-align: center;
  border-right: 1px dashed rgba(31,19,8,.15);
  position: relative;
}
.fco-cell:last-child { border-right: none; }
.fco-lbl {
  font-family: var(--bb-mono); font-size: .52rem; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase;
  color: rgba(31,19,8,.55);
  margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fco-val {
  font-family: var(--bb-mono); font-size: 1.5rem; font-weight: 700;
  line-height: 1;
  color: var(--bb-maroon);
  letter-spacing: -.5px;
}
.fco-cell.win {
  background: rgba(244,196,48,.18);
}
.fco-cell.win .fco-val {
  color: var(--bb-tomate);
  text-shadow: 0 0 1px rgba(210,35,42,.2);
}
.fco-cell.win::after {
  content: '★';
  position: absolute; top: 2px; right: 4px;
  font-size: .55rem; color: var(--bb-tomate);
}
.fcard-odds.played .fco-cell:not(.win) {
  opacity: .5;
}
@media (max-width: 540px) {
  .fco-val { font-size: 1.25rem; }
  .fco-lbl { font-size: .48rem; }
}

/* Inline editor de cuotas faltantes (qa13) */
.fcard-factors {
  border-top: 1px dashed rgba(31,19,8,.2);
  background: rgba(244,196,48,.08);
  padding: .5rem .9rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
}
.fcf-lbl {
  font-family: var(--bb-mono); font-size: .58rem; font-weight: 700;
  letter-spacing: .3px; text-transform: uppercase;
  color: var(--bb-maroon);
}
.fcf-inputs { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; flex: 1; }
.fcf-i {
  width: 60px; padding: 3px 6px;
  font-family: var(--bb-mono); font-size: .7rem; font-weight: 700;
  border: 1.5px solid rgba(31,19,8,.25); border-radius: 3px;
  background: var(--bb-cream); color: var(--bb-ink);
  text-align: center;
}
.fcf-i:focus { outline: none; border-color: var(--bb-maroon); }
.fcf-save {
  font-family: var(--bb-mono); font-size: .58rem; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px; cursor: pointer;
  background: var(--bb-maroon); color: #fff; border: 1.5px solid var(--bb-maroon);
}
.fcf-save:hover { background: var(--bb-tomate); border-color: var(--bb-tomate); }
.fcf-save:disabled { opacity: .5; cursor: wait; }

.fcard-picks {
  border-top: 1px dashed rgba(31,19,8,.2);
  display: grid; grid-template-columns: repeat(4,1fr);
  background: var(--bb-cream);
}
.fpick {
  display: flex; flex-direction: column; align-items: center;
  padding: .5rem .3rem; border-right: 1px dashed rgba(31,19,8,.15); gap: 2px;
}
.fpick:last-child { border-right: none; }
.fpick-hd { display: flex; align-items: center; gap: 3px; margin-bottom: 1px; }
.fpick-hd img { width: 15px; height: 15px; border-radius: 50%; object-fit: cover;
                border: 1.5px solid var(--bb-ink); background: var(--bb-cream); }
.fpick-hd span { font-family: var(--bb-mono); font-size: .5rem; font-weight: 700; text-transform: uppercase; }
.fpick-score { font-family: var(--bb-mono); font-size: .9rem; font-weight: 700; line-height: 1; color: var(--bb-ink); }
.fpick-pts { font-family: var(--bb-mono); font-size: .54rem; font-weight: 700; line-height: 1; }
.fpick-pts.P    { color: var(--bb-pasto); }
.fpick-pts.Ac   { color: var(--bb-maroon); }
.fpick-pts.miss { color: rgba(31,19,8,.28); }
.fpick-pts.WO   { color: var(--bb-tomate); }
.fpick-pts.fut  { color: rgba(31,19,8,.22); }

/* ═══ PICKS PAGE ═══════════════════════════════════════ */
.pick-profile {
  background: var(--bb-paper); border: var(--bb-border); border-radius: 4px;
  padding: 1rem 1.2rem; margin-bottom: .85rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--bb-shadow-sm); position: relative; overflow: hidden;
}
.pick-profile::before {
  content: ''; position: absolute; inset: 4px;
  border: 1px dashed rgba(31,19,8,.2); border-radius: 3px; pointer-events: none;
}
.pp-ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
          border: var(--bb-border); background: var(--bb-cream); flex-shrink: 0; }
.pp-name { font-family: var(--bb-display); font-style: normal; font-size: 1.15rem;
           text-transform: uppercase; letter-spacing: .3px; }
.pp-sub { font-family: var(--bb-mono); font-size: .55rem; color: rgba(31,19,8,.42);
          margin-top: 2px; font-weight: 700; letter-spacing: .3px; }
.pp-pts-wrap { margin-left: auto; text-align: right; }
.pp-pts-n { font-family: var(--bb-mono); font-size: 1.3rem; font-weight: 700; line-height: 1; }
.pp-pts-l { font-family: var(--bb-mono); font-size: .48rem; font-weight: 700;
            text-transform: uppercase; color: rgba(31,19,8,.38); letter-spacing: .4px; }
.pick-section-lbl {
  font-family: var(--bb-mono); font-size: .54rem; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: rgba(31,19,8,.38); margin-bottom: .45rem; margin-top: .8rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1.5px solid rgba(31,19,8,.12); padding-bottom: .35rem;
}
.pcard {
  background: var(--bb-paper); border: var(--bb-border-sm);
  border-color: rgba(31,19,8,.2); border-radius: 4px;
  padding: .85rem; margin-bottom: .35rem;
  transition: all var(--bb-fast); box-shadow: var(--bb-shadow-xs);
  border-left: 4px solid transparent; position: relative;
}
.pcard::before {
  content: ''; position: absolute; left: -1px; top: 10px; bottom: 10px;
  border-left: 1.5px dashed rgba(31,19,8,.15);
}
.pcard:hover { border-color: var(--bb-ink); }
.pcard.urgent { border-left-color: var(--bb-tomate); background: rgba(210,35,42,.025); }
.pc-hdr { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .6rem; }
.pc-match {
  font-family: var(--bb-display); font-style: normal; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .3px;
}
.pc-meta {
  font-family: var(--bb-mono); font-size: .58rem; color: rgba(31,19,8,.42);
  text-align: right; line-height: 1.5; font-weight: 700;
}
.pc-deadline {
  font-family: var(--bb-mono); font-size: .54rem; font-weight: 700;
  color: var(--bb-tomate); letter-spacing: .3px; margin-top: 1px;
}
.pscores { display: grid; grid-template-columns: 1fr 18px 1fr; gap: .3rem; align-items: center; }
.sc-in {
  background: var(--bb-cream); border: var(--bb-border); color: var(--bb-ink);
  font-family: var(--bb-mono); font-size: 1.35rem; text-align: center;
  padding: 7px; border-radius: 3px; width: 100%; outline: none;
  transition: all var(--bb-medium); font-weight: 700;
}
.sc-in:focus { box-shadow: inset 0 0 0 2px var(--bb-ink); background: rgba(255,255,255,.7); }
.vsep { text-align: center; color: rgba(31,19,8,.28); font-size: .8rem; font-family: var(--bb-mono); }
.pc-fac {
  margin-top: .4rem; font-family: var(--bb-mono); font-size: .58rem;
  color: rgba(31,19,8,.32); display: flex; gap: .65rem; font-weight: 700;
}
.save-btn {
  background: var(--bb-gold); color: var(--bb-ink);
  border: var(--bb-border); border-radius: 3px;
  font-family: var(--bb-display); font-style: normal;
  font-size: .95rem; text-transform: uppercase; letter-spacing: .5px;
  padding: 10px; cursor: pointer; width: 100%; margin-top: .85rem;
  box-shadow: var(--bb-shadow); transition: all var(--bb-fast);
}
.save-btn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--bb-ink); }
.save-btn:active { transform: translate(1px,1px); box-shadow: var(--bb-shadow-xs); }

/* Contenedor flotante fijo del botón guardar */
#picks-float {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 50;
  padding: .5rem 1rem .75rem;
  background: linear-gradient(to top, var(--bb-cream) 55%, transparent);
  pointer-events: none;
  max-width: 600px;
  margin: 0 auto;
}
#picks-float:empty { display: none; }
#s-picks.hidden #picks-float { display: none; }
#picks-float .save-btn {
  pointer-events: all;
  margin-top: 0;
  box-shadow: 0 -2px 0 var(--bb-ink), var(--bb-shadow);
}
/* Espacio para que el último card no quede tapado por el botón */
#picks-body { padding-bottom: 5rem; }
.picker-btn {
  background: var(--bb-paper); border: var(--bb-border-sm);
  border-color: rgba(31,19,8,.24); color: rgba(31,19,8,.52);
  font-family: var(--bb-ui); font-size: .68rem; font-weight: 700;
  padding: 4px 10px 4px 5px; border-radius: 3px; cursor: pointer;
  transition: all var(--bb-fast);
  display: flex; align-items: center; gap: 5px;
  text-transform: uppercase; letter-spacing: .4px;
  box-shadow: var(--bb-shadow-xs);
}
.picker-btn img {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover;
  border: var(--bb-border); background: var(--bb-cream);
}
.picker-btn:hover { border-color: var(--bb-ink); color: var(--bb-ink); }
.picker-btn.on { background: var(--bb-ink); border-color: var(--bb-ink); color: var(--bb-cream); box-shadow: none; }
.picker-btn.on img { border-color: var(--bb-gold); }

/* ═══ STATS / WO ═══════════════════════════════════════ */
.wo-section {
  background: var(--bb-paper); border: var(--bb-border); border-radius: 4px;
  padding: 1rem 1.1rem; margin-bottom: 1.25rem; box-shadow: var(--bb-shadow-sm);
}
.wo-title {
  font-family: var(--bb-mono); font-size: .52rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(31,19,8,.38); margin-bottom: .85rem;
}
.wo-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .6rem; }
.wo-card { border-radius: 3px; padding: .85rem; text-align: center; border: 2px solid; position: relative; }
.wo-card::before {
  content: ''; position: absolute; top: -1px; left: 15%; right: 15%;
  border-top: 1.5px dashed rgba(31,19,8,.15);
}
.wo-ava-row { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-bottom: .3rem; }
.wo-ava { width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
          border: var(--bb-border); background: var(--bb-cream); }
.wo-name { font-family: var(--bb-display); font-style: normal; font-size: .85rem; text-transform: uppercase; }
.wo-n { font-family: var(--bb-mono); font-size: 2rem; font-weight: 700; line-height: 1; margin-bottom: .15rem; }
.wo-l { font-family: var(--bb-mono); font-size: .52rem; font-weight: 800;
        text-transform: uppercase; letter-spacing: .6px; opacity: .6; }
.wo-bw { background: rgba(31,19,8,.12); border-radius: 2px; height: 4px;
         margin-top: .65rem; overflow: hidden; border: 1px solid rgba(31,19,8,.1); }
.wo-bf { height: 100%; border-radius: 1px; transition: width 1.2s ease; }

.ins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: .65rem; }
.ic { background: var(--bb-paper); border: var(--bb-border); border-radius: 4px;
      padding: 1rem; transition: all var(--bb-fast); box-shadow: var(--bb-shadow-xs); }
.ic:hover { transform: translate(-1px,-1px); box-shadow: var(--bb-shadow); }
.ic-ico { font-size: 1.2rem; margin-bottom: .35rem; display: block; }
.ic-lbl { font-family: var(--bb-mono); font-size: .52rem; font-weight: 700;
          color: rgba(31,19,8,.32); text-transform: uppercase;
          letter-spacing: .6px; margin-bottom: .25rem; }
.ic-val { font-family: var(--bb-mono); font-size: 1.7rem; font-weight: 700;
          line-height: 1; margin-bottom: .15rem; }
.ic-sub { font-family: var(--bb-ui); font-size: .62rem; color: rgba(31,19,8,.48); }

/* ═══ ADMIN ════════════════════════════════════════════ */
.agrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.acard { background: var(--bb-paper); border: var(--bb-border); border-radius: 4px; padding: 1.1rem; box-shadow: var(--bb-shadow-sm); }
.atitle {
  font-family: var(--bb-display); font-style: normal; font-size: .9rem;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--bb-ink); margin-bottom: .9rem; padding-bottom: .65rem;
  border-bottom: var(--bb-border);
}
.fg  { margin-bottom: .65rem; }
.fl2 { font-family: var(--bb-mono); font-size: .56rem; font-weight: 700;
       color: rgba(31,19,8,.42); margin-bottom: .25rem; display: block;
       letter-spacing: .5px; text-transform: uppercase; }
.fi {
  width: 100%; background: var(--bb-cream); border: var(--bb-border-sm);
  border-color: rgba(31,19,8,.24);
  color: var(--bb-ink); font-family: var(--bb-ui); font-size: .78rem;
  padding: 7px 10px; border-radius: 3px; outline: none;
  transition: all var(--bb-medium);
}
.fi:focus { border-color: var(--bb-ink); box-shadow: inset 0 0 0 1px var(--bb-ink); }
select.fi { appearance: none; cursor: pointer; }
.frow2 { display: grid; grid-template-columns: 1fr auto 1fr; gap: .35rem; align-items: center; }
.vsep2 { color: rgba(31,19,8,.28); text-align: center; font-size: .8rem; font-family: var(--bb-mono); font-weight: 700; }
.btn-a {
  background: var(--bb-ink); color: var(--bb-cream); border: var(--bb-border);
  font-family: var(--bb-display); font-style: normal; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .5px;
  padding: 9px; border-radius: 3px; cursor: pointer; width: 100%;
  margin-top: .35rem; transition: all var(--bb-fast); box-shadow: var(--bb-shadow-xs);
}
.btn-a:hover { transform: translate(-1px,-1px); box-shadow: var(--bb-shadow-sm); }
.f3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .35rem; }
.sync-help {
  font-family: var(--bb-mono); font-size: .6rem; color: rgba(31,19,8,.42);
  margin-top: .5rem; line-height: 1.6; padding: .5rem .65rem;
  background: var(--bb-cream); border-radius: 3px; border: 1px solid rgba(31,19,8,.12);
}
.sync-help strong { color: var(--bb-ink); display: block; margin-bottom: .2rem; font-size: .63rem; }

/* Match-picker (lista clickeable de partidos por jornada) — qa14 */
.fl2-toggle {
  float: right; font-family: var(--bb-mono); font-size: .54rem;
  text-transform: none; letter-spacing: 0;
  display: inline-flex; align-items: center; gap: 4px;
  color: rgba(31,19,8,.55);
}
.fl2-toggle input { cursor: pointer; margin: 0; }
.fl2-toggle label { cursor: pointer; }
.match-picker {
  background: var(--bb-cream); border: var(--bb-border-sm);
  border-color: rgba(31,19,8,.24); border-radius: 3px;
  max-height: 260px; overflow-y: auto;
  padding: 3px;
}
.mp-empty {
  font-family: var(--bb-mono); font-size: .68rem; color: rgba(31,19,8,.45);
  padding: .75rem .5rem; text-align: center;
}
.mp-row {
  display: grid; grid-template-columns: 52px 1fr auto;
  align-items: center; gap: .5rem;
  padding: .4rem .5rem; border-radius: 2px;
  cursor: pointer;
  border-bottom: 1px dashed rgba(31,19,8,.1);
  transition: background var(--bb-fast);
}
.mp-row:last-child { border-bottom: none; }
.mp-row:hover { background: rgba(244,196,48,.12); }
.mp-row.on {
  background: rgba(210,35,42,.12);
  box-shadow: inset 2px 0 0 var(--bb-maroon);
}
.mp-date {
  font-family: var(--bb-mono); font-size: .58rem; font-weight: 700;
  color: rgba(31,19,8,.55); text-transform: uppercase; letter-spacing: .3px;
}
.mp-teams {
  font-family: var(--bb-ui); font-size: .74rem; font-weight: 600;
  color: var(--bb-ink); line-height: 1.2;
}
.mp-teams em { font-style: normal; color: rgba(31,19,8,.4); font-size: .62rem; margin: 0 4px; }
.mp-badge {
  font-family: var(--bb-mono); font-size: .54rem; font-weight: 700;
  padding: 2px 6px; border-radius: 2px; white-space: nowrap;
  letter-spacing: .3px;
}
.mp-badge-empty { background: rgba(210,35,42,.12); color: var(--bb-tomate); border: 1px solid rgba(210,35,42,.3); }
.mp-badge-f     { background: rgba(14,107,62,.1);   color: var(--bb-pasto);  border: 1px solid rgba(14,107,62,.25); }
.mp-badge-r     { background: rgba(31,19,8,.08);   color: var(--bb-ink);    border: 1px solid rgba(31,19,8,.18); }

/* ═══ TOAST ════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--bb-ink); border: 2px solid var(--bb-gold); color: var(--bb-cream);
  padding: 10px 16px; border-radius: 3px;
  font-family: var(--bb-mono); font-size: .72rem; font-weight: 700;
  z-index: var(--bb-z-toast);
  transform: translateX(130%); transition: all var(--bb-medium) var(--bb-ease-pop);
  box-shadow: var(--bb-shadow); letter-spacing: .3px;
}
.toast.show { transform: translateX(0); }
.toast.err { border-color: var(--bb-tomate); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fu { animation: fadeUp var(--bb-medium) ease both; }
.fu:nth-child(1) { animation-delay: .04s; } .fu:nth-child(2) { animation-delay: .09s; }
.fu:nth-child(3) { animation-delay: .14s; } .fu:nth-child(4) { animation-delay: .19s; }

/* ═══ Mobile ═══════════════════════════════════════════ */
@media (max-width: 900px) { .agrid, .wo-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .hdr { padding: 0 .75rem; height: auto; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
  .nav { order: 3; flex-basis: 100%; justify-content: center; }
  .main { padding: 1rem; }
  .std-pts { font-size: 1.2rem; }
  .std-ava { width: 32px; height: 32px; margin-right: .5rem; }
  .std-name { font-size: .9rem; }
  .hero { padding: 1.25rem 1.25rem; }
  .hero-title { font-size: 1.7rem; }
}
@media (max-width: 500px) {
  .fcard-picks { grid-template-columns: repeat(2,1fr); }
  .fcard-picks .fpick:nth-child(2) { border-right: none; }
  .fcard-picks .fpick:nth-child(3),
  .fcard-picks .fpick:nth-child(4) { border-top: 1px dashed rgba(31,19,8,.15); }
  .agrid { grid-template-columns: 1fr; }
  .wo-grid { grid-template-columns: 1fr 1fr; }
}


/* ═══ Escudos de equipos (qa16) ═══════════════════════════════════ */
.ts {
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: middle; flex-shrink: 0;
  background: transparent;
}
.ts-sm { width: 18px; height: 18px; margin: 0 4px; }
.ts-md { width: 24px; height: 24px; margin: 0 6px; }
.ts-lg { width: 44px; height: 44px; margin: 0 10px; }
.ts img { width: 100%; height: 100%; object-fit: contain; }
.ts-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  border-radius: 50%; color: #fff;
  font-family: var(--bb-mono); font-weight: 700;
  font-size: .55em; letter-spacing: -.3px;
  line-height: 1;
}
.ts-sm .ts-fallback { font-size: 9px; }
.ts-md .ts-fallback { font-size: 11px; }
.ts-lg .ts-fallback { font-size: 16px; }

/* alineación dentro de elementos existentes */
.fcard-home, .fcard-away { display: inline-flex; align-items: center; gap: 4px; }
.fcard-home { justify-content: flex-end; }
.fcard-away { justify-content: flex-start; }
.fco-lbl { display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.fco-lbl .ts-sm { width: 14px; height: 14px; margin: 0; }
.pc-match { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.hero-pick-teams { display: inline-flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }


/* qa21 — Propuestas de cuotas */
.prop-list { margin-top: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.prop-row {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr auto auto;
  gap: .75rem; align-items: center;
  padding: .6rem .8rem;
  background: var(--bb-cream); border: var(--bb-border-sm);
  border-color: rgba(31,19,8,.18); border-radius: 4px;
}
.prop-info { min-width: 0; }
.prop-date {
  font-family: var(--bb-mono); font-size: .56rem; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase;
  color: rgba(31,19,8,.5); margin-bottom: 2px;
}
.prop-teams { font-family: var(--bb-ui); font-size: .82rem; font-weight: 700; color: var(--bb-ink); line-height: 1.2; }
.prop-teams em { font-style: normal; color: rgba(31,19,8,.4); font-size: .68rem; margin: 0 4px; }
.prop-odds { display: grid; grid-template-columns: repeat(3, 56px); gap: .35rem; }
.prop-cell {
  text-align: center; padding: 5px 4px;
  background: rgba(210,35,42,.06); border: 1px solid rgba(210,35,42,.18); border-radius: 3px;
}
.prop-cell b { display: block; font-family: var(--bb-mono); font-size: 1rem; color: var(--bb-maroon); line-height: 1; }
.prop-cell small {
  display: block; font-family: var(--bb-mono); font-size: .48rem; font-weight: 700;
  letter-spacing: .3px; text-transform: uppercase; color: rgba(31,19,8,.42); margin-top: 2px;
}
.prop-current {
  font-family: var(--bb-mono); font-size: .58rem;
  color: rgba(31,19,8,.55); padding: 4px 6px;
  border-left: 2px solid rgba(31,19,8,.15); white-space: nowrap;
}
.prop-current.prop-empty { color: var(--bb-tomate); }
.prop-apply { width: auto; padding: 7px 14px; font-size: .68rem; margin-top: 0; }
@media (max-width: 720px) {
  .prop-row { grid-template-columns: 1fr; gap: .5rem; }
  .prop-odds { grid-template-columns: repeat(3, 1fr); }
}

/* ════════════════════════════════════════════════════════════════════
   M26 OVERRIDES — retokeniza clases legacy (.fcard, .ft, .acard, .fpick,
   .ind, etc.) con tokens y geometrías M26 sin tocar el render JS.
   Cargado al final → gana en specificity para reglas mismas.
════════════════════════════════════════════════════════════════════ */

/* ── Filter pills (.ft, .flt-row) ───────────────────────────────── */
.flt-row {
  display: flex; gap: 8px; margin-bottom: 14px;
  flex-wrap: wrap; align-items: center;
}
.flt-lbl {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-3); margin-right: 2px;
}
.ft {
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 8px;
  cursor: pointer; transition: all 0.15s;
  white-space: nowrap; text-transform: none; letter-spacing: 0;
  box-shadow: none;
}
.ft:hover { border-color: var(--ink-3); color: var(--ink); }
.ft.on {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}

/* ── Jornada date headers ───────────────────────────────────────── */
.jornada-hdr {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-3); padding: 16px 0 8px;
  border-top: 1px dashed var(--line); margin-top: 16px;
  display: flex; align-items: center; gap: 10px;
}
.jornada-hdr:first-child { border-top: none; margin-top: 0; padding-top: 4px; }
.jornada-hdr::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

/* ── Match card (.fcard) ────────────────────────────────────────── */
.fcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.fcard:hover {
  transform: none;
  border-color: var(--ink-3);
  background: var(--surface-sunk);
  box-shadow: var(--shadow-card);
}
.fcard.future { opacity: 0.5; box-shadow: none; }
.fcard.urgent {
  border-color: var(--red);
  background: var(--red-soft);
  box-shadow: var(--shadow-card);
}
.fcard-match {
  padding: 14px 16px 12px;
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.fcard.future .fcard-match,
.fcard.urgent .fcard-match { border-bottom-color: transparent; }
.fcard-date {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ink-3); flex-shrink: 0; text-align: center;
  min-width: 44px; padding-right: 12px;
  border-right: 1px solid var(--line);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.fcd-d {
  display: block; font-weight: 700; color: var(--ink); font-size: 13px;
  font-family: var(--font-body); letter-spacing: 0;
}
.fcard-sb {
  flex: 1; display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 12px; min-width: 0;
}
.fcard-home {
  text-align: right; font-weight: 700;
  font-family: var(--font-display); font-size: 18px; line-height: 1.1;
  letter-spacing: -0.01em; color: var(--ink);
  text-transform: uppercase;
}
.fcard-away {
  text-align: left; font-family: var(--font-display);
  font-size: 18px; font-weight: 700; line-height: 1.1;
  letter-spacing: -0.01em; color: var(--ink);
  text-transform: uppercase;
}
.score-cap {
  display: inline-block;
  background: var(--ink); color: var(--bg);
  border: none; border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-display); font-size: 20px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1;
  white-space: nowrap; box-shadow: none;
  font-feature-settings: 'tnum';
}
.score-cap.pending {
  background: var(--surface-sunk); color: var(--ink-3);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px;
}
.score-sub {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500;
  color: var(--ink-3); text-align: center; margin-top: 4px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.fcard-meta {
  flex-shrink: 0; text-align: right;
  padding-left: 12px; border-left: 1px solid var(--line);
}
.fcard-fac {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1;
  font-feature-settings: 'tnum';
}
.fcard-fac small {
  font-family: var(--font-mono); font-size: 9px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3); display: block; margin-top: 2px;
}

/* ── Indicators (.ind-cons, .ind-solo, .ind-upset, .ind-urgent) ── */
.fcard-inds { padding: 4px 16px 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.ind {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 4px; border: 1px solid;
}
.ind-upset  { background: var(--red-soft);   color: var(--red);   border-color: transparent; }
.ind-cons   { background: var(--green-soft); color: var(--green); border-color: transparent; }
.ind-solo   { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.ind-urgent { background: var(--red-soft);   color: var(--red);   border-color: var(--red); }

/* ── Strip de cuotas (.fcard-odds) ──────────────────────────────── */
.fcard-odds {
  border-top: 1px dashed var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface-sunk);
}
.fco-cell {
  padding: 12px 8px; text-align: center;
  border-right: 1px dashed var(--line);
  position: relative;
}
.fco-cell:last-child { border-right: none; }
.fco-lbl {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.fco-val {
  font-family: var(--font-display); font-size: 26px; font-weight: 800;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1;
  font-feature-settings: 'tnum';
}
.fco-cell.win .fco-val { color: var(--green); }
.fcard-odds.played .fco-cell:not(.win) .fco-val { opacity: 0.4; }

/* ── Pick chips dentro de fcard (.fcard-picks, .fpick) ──────────── */
.fcard-picks {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px dashed var(--line);
}
.fpick {
  padding: 10px 8px; text-align: center;
  border-right: 1px dashed var(--line);
  background: transparent;
}
.fpick:nth-child(4n) { border-right: none; }
.fpick-hd {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 4px;
}
.fpick-score {
  font-family: var(--font-display); font-size: 17px; font-weight: 800;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1;
  font-feature-settings: 'tnum';
}
.fpick-pts {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  margin-top: 4px;
  color: var(--ink-3);
}
.fpick-pts.WO { color: var(--red); }
.fpick-pts.fut { color: var(--ink-4); }

/* ── Inline factor editor (.fcard-factors) ──────────────────────── */
.fcard-factors {
  border-top: 1px dashed var(--line);
  background: var(--amber-soft);
  padding: 10px 14px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.fcf-lbl {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber);
}
.fcf-inputs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; flex: 1; }
.fcf-i {
  width: 56px; padding: 6px 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono); font-size: 13px; text-align: center;
  color: var(--ink);
}
.fcf-i:focus {
  outline: none; border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.fcf-save {
  background: var(--ink); color: var(--bg);
  border: none; border-radius: 999px;
  padding: 6px 14px; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
  font-family: var(--font-body);
}
.fcf-save:hover { background: var(--red); }
.fcf-save:disabled { opacity: 0.4; cursor: wait; }

/* ── Fixtures: page wrapper ─────────────────────────────────────── */
#s-fixtures, #s-picks, #s-stats, #s-admin {
  padding: 24px 0;
}

/* ════════════════════════════════════════════════════════════════════
   STATS view (M26 overrides)
════════════════════════════════════════════════════════════════════ */

#s-stats .sdiv {
  display: flex; align-items: center; gap: 12px;
  margin: 32px 0 16px;
}
#s-stats .sdiv-line {
  flex: 1; height: 1px; background: var(--line);
}
#s-stats .sdiv-txt {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-3); white-space: nowrap;
}

/* Cada sección de stats (los #stat-* divs) recibe estilo card M26 */
#stat-hero, #stat-awards, #stat-evolution, #stat-heatmap, #stat-h2h,
#stat-pairs, #stat-tendencias, #stat-marcadores, #stat-split {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}

.stat-empty {
  text-align: center; padding: 32px 16px;
  color: var(--ink-3);
  font-size: 13px;
}

.wo-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}
.wo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

/* ════════════════════════════════════════════════════════════════════
   ADMIN/Gestión view (M26 overrides)
════════════════════════════════════════════════════════════════════ */

.agrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.acard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 12px;
}
.atitle {
  font-family: var(--font-display);
  font-weight: 800; font-size: 22px; line-height: 1;
  letter-spacing: -0.01em; color: var(--ink);
  font-style: normal; text-transform: none;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.fg { display: flex; flex-direction: column; gap: 6px; }
.fg.f3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fl2 {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.fl2-toggle {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--ink-3);
  text-transform: none; letter-spacing: 0;
  font-weight: 500;
}
.fl2-toggle input[type="checkbox"] {
  width: 14px; height: 14px;
  accent-color: var(--red);
}
.fi {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: var(--font-body); font-size: 13.5px;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.fi:focus {
  outline: none; border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.fi::placeholder { color: var(--ink-3); }

.frow2 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px; align-items: center;
}
.vsep2 {
  text-align: center; color: var(--ink-3);
  font-family: var(--font-display); font-size: 18px;
}

.btn-a {
  background: var(--ink); color: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: 13.5px; font-weight: 700;
  cursor: pointer; transition: all 0.15s;
  margin-top: 4px;
}
.btn-a:hover {
  background: var(--red); border-color: var(--red); color: white;
  transform: translateY(-1px);
}

/* Match picker en gestión */
.match-picker {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  max-height: 240px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.mp-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.mp-row:hover { background: var(--surface-sunk); }
.mp-row.on {
  background: var(--red-soft);
  box-shadow: inset 0 0 0 1px var(--red);
}
.mp-empty {
  text-align: center; padding: 16px;
  color: var(--ink-3); font-size: 12px;
}
.mp-date {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); flex-shrink: 0; min-width: 56px;
}
.mp-teams {
  flex: 1; font-family: var(--font-display);
  font-weight: 700; font-size: 14px;
  color: var(--ink);
  min-width: 0;
}
.mp-badge {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 3px;
}
.mp-badge-f       { background: var(--green-soft); color: var(--green); }
.mp-badge-r       { background: var(--surface-sunk); color: var(--ink-3); }
.mp-badge-empty   { background: var(--red-soft); color: var(--red); }

.sync-help {
  font-size: 12.5px; color: var(--ink-2); line-height: 1.5;
}
.sync-help strong { color: var(--ink); }
.sync-help code {
  font-family: var(--font-mono); font-size: 11px;
  background: var(--surface-sunk); padding: 1px 5px; border-radius: 3px;
  color: var(--ink);
}

@media (max-width: 720px) {
  .agrid { grid-template-columns: 1fr; }
  .fcard-match { gap: 10px; padding: 12px; }
  .fcard-home, .fcard-away { font-size: 15px; }
  .fcard-fac { font-size: 18px; }
  .fco-val { font-size: 20px; }
  .acard { padding: 16px; }
}

/* ════════════════════════════════════════════════════════════════════
   M26 PICKS OVERRIDES — prefijo #s-picks para specificity sobre fiesta.css
════════════════════════════════════════════════════════════════════ */

/* ── Picker buttons (jugador activo en picks) ────────────────────── */
#s-picks .picker-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 600;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}
#s-picks .picker-btn:hover { border-color: var(--ink-3); color: var(--ink); }
#s-picks .picker-btn.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  box-shadow: none;
}
#s-picks .picker-btn img {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid var(--ink); background: var(--surface-2);
}
#s-picks .picker-btn.on img { border-color: var(--amber); }

/* ── Pick profile card (header del picks view) ───────────────────── */
#s-picks .pick-profile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px 22px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
#s-picks .pick-profile::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--ink);
}
#s-picks .pp-ava {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  background: linear-gradient(135deg, var(--red), var(--amber));
  color: white;
  font-family: var(--font-body); font-weight: 800; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
  font-style: normal !important;
}
#s-picks .pp-name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink) !important;
  font-style: normal;
  line-height: 1;
}
#s-picks .pp-sub {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
#s-picks .pp-pts-wrap { margin-left: auto; text-align: right; }
#s-picks .pp-pts-n {
  font-family: var(--font-display); font-weight: 800; font-size: 28px;
  letter-spacing: -0.02em; line-height: 1;
  color: var(--ink) !important;
  font-feature-settings: 'tnum';
}
#s-picks .pp-pts-l {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 4px;
}

/* ── Section labels ────────────────────────────────────────────── */
#s-picks .pick-section-lbl {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-3);
  padding: 20px 0 10px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  border-top: 1px dashed var(--line);
  margin-top: 16px;
  font-style: normal !important;
}
#s-picks .pick-section-lbl:first-of-type { border-top: none; margin-top: 0; padding-top: 4px; }

/* ── Pick card (.pcard) ──────────────────────────────────────────── */
#s-picks .pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 14px 16px;
  margin-bottom: 8px;
  border-left: 4px solid transparent;
  position: relative;
  transition: border-color 0.15s;
}
#s-picks .pcard::before { display: none; }
#s-picks .pcard:hover { border-color: var(--ink-3); }
#s-picks .pcard.urgent {
  border-left-color: var(--red);
  background: var(--red-soft);
  border-color: var(--red);
}
#s-picks .pcard.is-saved::after {
  content: '✓ Guardado';
  position: absolute;
  top: 10px; right: 12px;
  font-family: var(--font-mono); font-size: 10px;
  font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border: none;
  padding: 3px 8px;
  border-radius: 999px;
  pointer-events: none;
}

#s-picks .pc-hdr {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 10px; gap: 12px;
}
#s-picks .pc-match {
  font-family: var(--font-display);
  font-weight: 700; font-size: 16px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  font-style: normal;
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
#s-picks .pc-meta {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ink-3); text-align: right;
  line-height: 1.5; font-weight: 500;
  letter-spacing: 0.04em;
}
#s-picks .pc-deadline {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  color: var(--red);
  letter-spacing: 0.06em;
  margin-top: 2px;
}
#s-picks .pc-deadline--locked {
  color: var(--ink-3);
}

/* Card bloqueada por kickoff */
#s-picks .pcard.is-locked {
  opacity: 0.72;
  pointer-events: none;
  border-left-color: var(--ink-4);
  background: var(--surface-sunk);
}
#s-picks .pcard.is-locked .sc-in {
  background: var(--surface-sunk);
  color: var(--ink-3);
  cursor: not-allowed;
}
#s-picks .pcard.is-locked .qp-chip {
  opacity: 0.4;
  cursor: not-allowed;
}
/* Conservar pointer-events en el prob bar para leerlo */
#s-picks .pcard.is-locked .pf-bar {
  pointer-events: auto;
}

/* ── Score inputs ────────────────────────────────────────────────── */
#s-picks .pscores {
  display: grid; grid-template-columns: 1fr 24px 1fr;
  gap: 8px; align-items: center;
  margin: 8px 0;
}
#s-picks .sc-in {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  padding: 10px 8px;
  border-radius: 8px;
  width: 100%; outline: none;
  transition: all 0.15s;
  font-feature-settings: 'tnum';
}
#s-picks .sc-in:focus {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: var(--surface-2);
}
#s-picks .sc-in.bb-has-value { background: var(--surface-2); }
#s-picks .vsep {
  text-align: center; color: var(--ink-4);
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
}

/* ── Quick-pick chips ────────────────────────────────────────────── */
#s-picks .pc-quick {
  display: flex; gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
#s-picks .qp-chip {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  font-variant-numeric: tabular-nums;
}
#s-picks .qp-chip:hover {
  background: var(--surface-sunk);
  color: var(--ink);
  border-color: var(--ink-3);
  transform: none;
}
#s-picks .qp-chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ── Probability bar (cuotas implícitas) ─────────────────────────── */
#s-picks .pf-bar {
  display: flex; width: 100%; height: 36px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
  font-family: var(--font-body);
}
#s-picks .pf-bar.pf-empty {
  align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
  background: repeating-linear-gradient(45deg,
    var(--surface-2) 0 6px,
    var(--surface-sunk) 6px 12px);
}
#s-picks .pf-seg {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-width: 0; padding: 0 4px;
  overflow: hidden; position: relative;
  transition: width 0.8s var(--ease-out), filter 0.15s;
}
#s-picks .pf-seg + .pf-seg { border-left: 1px solid var(--line); }
#s-picks .pf-seg b {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 800;
  color: var(--ink); line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
#s-picks .pf-seg span {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px; white-space: nowrap;
}
/* Paleta M26: home=red-soft, draw=ink-soft, away=amber-soft */
#s-picks .pf-seg.pf-l { background: var(--red-soft); }
#s-picks .pf-seg.pf-e { background: var(--surface-sunk); }
#s-picks .pf-seg.pf-v { background: var(--amber-soft); }
#s-picks .pf-seg.pf-fav {
  filter: none;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
#s-picks .pf-seg.pf-fav::before {
  content: '★';
  position: absolute; top: 3px; right: 5px;
  font-size: 8px;
  color: var(--ink);
}
#s-picks .pf-seg[data-narrow="1"] span { display: none; }
#s-picks .pf-seg[data-narrow="1"] b { font-size: 11px; }

/* ── Save button flotante (sticky) ───────────────────────────────── */
#picks-float {
  position: sticky;
  bottom: 16px;
  z-index: 40;
  margin-top: 16px;
}
#s-picks .save-btn {
  background: var(--ink);
  color: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lift) !important;
}
#s-picks .save-btn:hover {
  transform: translateY(-1px);
  background: var(--red);
  border-color: var(--red);
  color: white;
  box-shadow: var(--shadow-lift);
}
#s-picks .save-btn:active { transform: translateY(0); }
#s-picks .save-btn-float.is-empty {
  cursor: not-allowed;
  background: var(--surface-sunk) !important;
  border-color: var(--line) !important;
  color: var(--ink-3) !important;
  box-shadow: none !important;
  opacity: 1;
  filter: none;
  transform: none;
}
#s-picks .save-btn-float.is-many {
  animation: m26-save-pulse 2s ease-in-out infinite;
}
@keyframes m26-save-pulse {
  0%, 100% { box-shadow: var(--shadow-lift), 0 0 0 0 var(--red-soft); }
  50%      { box-shadow: var(--shadow-lift), 0 0 0 10px transparent; }
}

@media (max-width: 720px) {
  #s-picks .pick-profile { padding: 14px 16px; gap: 12px; }
  #s-picks .pp-name { font-size: 18px; }
  #s-picks .pp-pts-n { font-size: 22px; }
  #s-picks .pcard { padding: 12px; }
  #s-picks .sc-in { font-size: 22px; padding: 8px 6px; }
  #s-picks .pf-bar { height: 32px; }
  #s-picks .pf-seg b { font-size: 13px; }
  #s-picks .save-btn { padding: 12px 18px; font-size: 13px; }
}

/* ── Champion picker (en s-picks, arriba del listado) ────────────── */
.champ-picker {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.champ-picker::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--red), var(--amber));
}
.champ-picker-head {
  display: flex; align-items: center; justify-content: space-between;
}
.champ-picker-lbl {
  letter-spacing: 0.1em;
}
.champ-picker-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-sunk);
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.champ-picker-tag.accent {
  background: var(--green-soft);
  color: var(--green);
}
.champ-picker-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 10px; align-items: center;
}
.champ-picker-select {
  font-size: 14.5px; font-weight: 600;
  font-family: var(--font-body);
}
.champ-picker-save {
  padding: 10px 18px;
  white-space: nowrap;
}
.champ-picker-save:disabled {
  opacity: 0.5; cursor: not-allowed;
  transform: none;
}
.champ-picker-sub {
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

/* Flag mini del campeón en la card Picks del bento */
.card-picks .champ-flag {
  display: inline-block;
  width: 24px; height: 16px;
  background: linear-gradient(to right, var(--c-mex) 33%, white 33% 66%, var(--red) 66%);
  border-radius: 2px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .champ-picker-row { grid-template-columns: 1fr; }
  .champ-picker-save { width: 100%; }
}

/* ════════════════════════════════════════════════════════════════════
   SIMULADOR · qué pasa si... (m15)
   ════════════════════════════════════════════════════════════════════ */

#s-simulator { padding: 0 0 60px; }

.sim-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px;
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sim-eyebrow {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 6px;
}
.sim-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em; line-height: 1.05;
  margin: 0 0 8px;
}
.sim-sub { font-size: 13px; color: var(--ink-2); margin: 0; max-width: 560px; line-height: 1.45; }
.sim-sub a { color: var(--red); text-decoration: none; }
.sim-sub a:hover { text-decoration: underline; }
.sim-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.sim-btn {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--fast);
}
.sim-btn:hover { border-color: var(--ink-3); background: var(--surface-2); }

.sim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
}

.sim-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.sim-card-hd {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.sim-card-letter {
  width: 28px; height: 28px;
  background: var(--ink); color: var(--surface);
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.sim-card-teams {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.sim-standings {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-mono); font-size: 11px;
}
.sim-standings thead th {
  text-align: center; padding: 4px 2px;
  font-weight: 500; opacity: 0.55;
  font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-soft);
}
.sim-standings td { padding: 5px 2px; text-align: center; }
.sim-spos { font-weight: 700; opacity: 0.7; width: 18px; }
.sim-steam { text-align: left !important; display: flex; align-items: center; gap: 6px; padding-left: 6px !important; font-family: var(--font-body); font-size: 12px; }
.sim-shield { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.sim-shield-ph { width: 16px; height: 16px; display: inline-block; opacity: 0.3; text-align: center; }
.sim-srow { border-bottom: 1px solid var(--line-soft); }
.sim-srow-q { background: rgba(26, 93, 58, 0.08); }
.sim-srow-q .sim-spos { color: var(--green); }
.sim-srow-a { background: rgba(197, 138, 0, 0.08); }
.sim-srow-a .sim-spos { color: var(--amber); }
.sim-srow-out { opacity: 0.55; }

.sim-matches { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.sim-match {
  display: grid;
  grid-template-columns: 50px 1fr 36px 16px 36px 1fr 20px;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 12px;
  border-top: 1px dashed var(--line-soft);
}
.sim-match-date {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-3); white-space: nowrap;
}
.sim-match-team { font-weight: 500; }
.sim-match-home { text-align: right; }
.sim-match-away { text-align: left; }
.sim-match-vs { text-align: center; color: var(--ink-3); }
.sim-score-in {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  text-align: center;
  width: 36px; padding: 4px 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  -moz-appearance: textfield;
}
.sim-score-in::-webkit-outer-spin-button,
.sim-score-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sim-score-in:focus { outline: 2px solid var(--amber); outline-offset: 0; border-color: var(--amber); }
.sim-score-in:disabled { background: var(--surface-sunk); cursor: not-allowed; opacity: 0.85; color: var(--ink-2); }
.sim-match-real { opacity: 0.85; }
.sim-match-real-tag { color: var(--green); font-size: 11px; text-align: center; }

.sim-footer {
  margin-top: 32px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.sim-footer-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.sim-footer-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 10px;
}
.sim-footer-list { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.sim-q-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-family: var(--font-body); }
.sim-q-g {
  width: 22px; height: 22px;
  background: var(--green); color: white;
  font-family: var(--font-display); font-weight: 800; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; flex-shrink: 0;
}
.sim-q-g-amber { background: var(--amber); color: var(--ink); }

@media (max-width: 720px) {
  .sim-footer { grid-template-columns: 1fr; }
  .sim-grid { grid-template-columns: 1fr; }
  .sim-match {
    grid-template-columns: 1fr 36px 16px 36px 1fr;
    grid-template-areas:
      "date date date date real"
      "home hin vs ain away";
  }
  .sim-match-date { grid-area: date; text-align: left; }
  .sim-match-home { grid-area: home; }
  .sim-match-away { grid-area: away; }
  .sim-match-vs { grid-area: vs; }
  .sim-score-in[data-side="home"] { grid-area: hin; }
  .sim-score-in[data-side="away"] { grid-area: ain; }
  .sim-match-real-tag { grid-area: real; text-align: right; }
}
