/* Oráculo · estructura de la aplicación. Todos los valores salen de tokens.css */
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }
.or-root a:focus-visible, .or-root button:focus-visible, .or-root select:focus-visible, .or-root input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--signal); color: var(--on-signal); font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- Carcasa ---------- */
.app.is-desktop { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-5) var(--space-4); border-right: 1px solid var(--line); background: var(--bg); box-sizing: border-box; }
.rail-top { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: baseline; gap: 5px; font-family: var(--font-display); font-size: 28px; line-height: 28px; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
.brand i { width: 9px; height: 9px; border-radius: 2px; background: var(--signal); display: inline-block; }
.rail h4 { margin: 0 0 var(--space-2); font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); }
.nav { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; border-radius: var(--radius-sm); color: var(--ink-muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--ink); background: var(--surface-raised); }
.nav a.on { color: var(--ink); background: var(--surface-raised); box-shadow: inset 3px 0 0 var(--signal-ink); }
.nav a.on .or-icon { color: var(--signal-ink); }
.nav .n { margin-left: auto; font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--ink-faint); }
.nav .n-live { color: var(--live); }
.nav .badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--signal); color: var(--on-signal); font-family: var(--font-mono); font-size: 11px; line-height: 20px; text-align: center; }
.nav--people a { font-weight: 500; }
.rail-foot { margin-top: auto; display: grid; gap: var(--space-3); }
.sim { display: grid; gap: 8px; padding: var(--space-3); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.sim-label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-muted); }
.sim-off { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); }
.sim-row { display: flex; gap: 6px; }
.sim-btn { flex: 1; height: 32px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: transparent; color: var(--ink); font-family: var(--font-mono); font-size: 12px; font-weight: 600; cursor: pointer; }
.sim-btn.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sim-note { font-size: 11px; color: var(--ink-faint); }
.link-btn { justify-self: start; padding: 0; border: 0; background: none; color: var(--ink-muted); font: inherit; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.legal { margin: 0; font-size: 11px; line-height: 15px; color: var(--ink-faint); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { border-color: var(--line-strong); }
.dot-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: var(--radius-pill); background: var(--signal); color: var(--on-signal); font-family: var(--font-mono); font-size: 10px; font-weight: 600; line-height: 18px; text-align: center; }

.content { min-width: 0; padding: var(--space-5) var(--space-6) var(--space-8); max-width: 1480px; box-sizing: border-box; width: 100%; }

/* Móvil */
.app.is-mobile { min-height: 100vh; padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
.mtop { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 10px var(--space-4); background: var(--bg); border-bottom: 1px solid var(--line); }
.mtop .brand { font-size: 24px; line-height: 24px; }
.mtop-actions { display: flex; gap: 8px; }
.is-mobile .content { padding: var(--space-4) var(--space-4) 120px; }
.mnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; }
.mnav .or-bnav { padding-bottom: env(safe-area-inset-bottom, 0px); height: calc(64px + env(safe-area-inset-bottom, 0px)); }

/* Boleto flotante y cajón */
.slip-float { position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 35; width: 420px; max-width: calc(100vw - 32px); }
.slip-float.is-mobile { left: var(--space-3); right: var(--space-3); width: auto; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
.drawer { position: fixed; inset: 0; z-index: 60; }
.is-desktop .drawer .or-sheet__panel { width: 440px; margin: 0 var(--space-5) 0 auto; }
.slip-panel { display: grid; gap: var(--space-2); }
.drawer .slip-panel { padding: 0 var(--space-3) var(--space-4); }

/* Avisos */
.toasts { position: fixed; top: var(--space-4); right: var(--space-4); z-index: 80; display: grid; gap: 8px; width: 360px; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--line-strong); box-shadow: var(--shadow-pop); animation: toast-in .25s ease-out; }
.toast b { display: block; font-size: 14px; line-height: 18px; }
.toast span { display: block; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.toast > .or-icon { margin-top: 2px; }
.toast--good > .or-icon { color: var(--win); }
.toast--bad > .or-icon { color: var(--loss); }
.toast--warn > .or-icon { color: var(--steam); }
.toast--info > .or-icon { color: var(--live); }
.is-mobile .toasts { top: 64px; left: var(--space-3); right: var(--space-3); width: auto; }
@keyframes toast-in { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

.notice { display: flex; align-items: flex-start; gap: 10px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-raised); font-size: 13px; line-height: 19px; color: var(--ink-muted); }
.notice .or-icon { color: var(--signal-ink); flex: none; margin-top: 2px; }
.notice b { color: var(--ink); }
.notice--warn { box-shadow: inset 0 0 0 1px var(--steam); color: var(--ink); }
.notice--warn .or-icon { color: var(--steam); }
.banner { align-items: center; margin-bottom: var(--space-4); }
.banner .link-btn { margin-left: auto; }

/* ---------- Página ---------- */
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; }
.page-head h1 { margin: 0; font-family: var(--font-display); font-size: 52px; line-height: 50px; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; }
.page-sub { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.page-sub b { color: var(--ink); font-family: var(--font-mono); font-weight: 600; }
.page-actions { display: flex; gap: var(--space-2); align-items: center; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-faint); }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs b { color: var(--ink-muted); font-weight: 600; }
.full { min-width: 0; }

.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-5); align-items: start; }
.layout-side--narrow { grid-template-columns: minmax(0, 1fr) 320px; }
.col { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); align-content: start; min-width: 0; }
.side { position: sticky; top: var(--space-5); }
.side-h { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 22px; line-height: 26px; font-weight: 600; text-transform: uppercase; }
.side-h .or-icon { color: var(--signal-ink); }
.side-h small { margin-left: auto; font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--ink-faint); text-transform: none; }
.sec-title { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.sec-title h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 26px; line-height: 30px; font-weight: 600; text-transform: uppercase; }
.sec-title h2 .n { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink-faint); }
.mono-note { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.grid2.tight, .grid3.tight { gap: var(--space-3); }
.align-start { align-items: start; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-4); }
.stats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.stats4 .or-stat { min-width: 0; }
.stats4 .or-stat__value { font-size: 36px; line-height: 36px; }
.rows { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.rows .or-row:last-child { border-bottom: 0; }
.scroll-x { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.scroll-x::-webkit-scrollbar { display: none; }

.card { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); min-width: 0; }
.card.flush { padding: 0; gap: 0; overflow: hidden; }
.card.flush .or-market:last-child { border-bottom: 0; }
.card-title { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-muted); }
.card-title .or-icon { color: var(--signal-ink); }
.card-aside { margin-left: auto; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-faint); }
.card p { margin: 0; font-size: 13px; line-height: 19px; color: var(--ink-muted); }
.card p b { color: var(--ink); }
.card .or-tabs { display: flex; }
.card .or-tabs__tab { flex: 1; justify-content: center; }
.help { font-size: 12px !important; line-height: 17px !important; color: var(--ink-faint) !important; }
.empty { display: grid; justify-items: center; gap: 8px; padding: var(--space-6) var(--space-4); text-align: center; color: var(--ink-muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty p { margin: 0; max-width: 42ch; font-size: 14px; line-height: 20px; }
.no-value { grid-template-columns: 24px minmax(0, 1fr); align-items: start; }
.no-value > .or-icon { color: var(--ink-muted); margin-top: 2px; }
.no-value b { font-size: 15px; }

/* Formularios */
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-muted); cursor: pointer; white-space: nowrap; }
.check input { width: 18px; height: 18px; accent-color: var(--signal); }
.row-btns { display: flex; gap: var(--space-2); }
.limit-edit { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--line); }

/* Panel / partido */
.page--partido .or-mh { margin-top: calc(-1 * var(--space-2)); }
.form-row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }

/* Ranking */
.podium-card { padding: var(--space-5) var(--space-6) 0; overflow: hidden; }
.podium-card .or-podium { max-width: 640px; margin: 0 auto; width: 100%; }
.filters { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.formula { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-sunken); font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--ink); }
.scale { display: grid; gap: 6px; }
.scale .track, .scale .lbl { display: grid; grid-template-columns: 55fr 15fr 15fr 15fr; gap: 2px; }
.scale .track { height: 8px; }
.scale .track i { border-radius: 2px; background: var(--prob-home); }
.scale .track i:nth-child(1) { background: var(--prob-draw); }
.scale .track i:nth-child(2) { opacity: .45; }
.scale .track i:nth-child(3) { opacity: .75; }
.scale .lbl { font-size: 10px; line-height: 13px; color: var(--ink-faint); }
.scale .lbl span { border-left: 1px solid var(--line-strong); padding-left: 4px; }
.vs { display: grid; gap: 8px; }
.vs > div { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-raised); font-size: 13px; }
.vs > div > span:not(.or-avatar):not(.or-index) { flex: 1; min-width: 0; font-weight: 600; }
.vs small { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--ink-faint); }
.vs em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--steam); }
.movers { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.movers a { display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; text-decoration: none; }
.movers a:hover { background: var(--surface-raised); }
.movers a > span:not(.or-avatar):not(.or-delta) { flex: 1; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips button { flex: none; height: 34px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--ink-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.chips button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Tipster */
.hero { padding: var(--space-5); gap: var(--space-5); }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); }
.kpis .or-stat { min-width: 0; background: var(--bg); }
.kpis .or-stat__value { font-size: 34px; line-height: 34px; }

/* Mis picks */
.bank--mobile { grid-template-columns: 1fr; gap: var(--space-4); padding: var(--space-4); }
.bank--mobile .or-bank__value { font-size: 52px; line-height: 50px; }
.bank--mobile .or-bank__facts { grid-template-columns: 1fr 1fr; }

/* Alertas */
.feed-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
.feed { margin: 0; padding: 0; list-style: none; }
.rules .or-rule:last-child { border-bottom: 0; }
.feed .or-alert:last-child { border-bottom: 0; }
.rule-form { display: grid; gap: var(--space-3); }

/* Calculadora */
.calc-layout { display: grid; gap: var(--space-4); }
.calc-grid { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.calc-in { display: grid; gap: var(--space-3); }
.calc-out { display: grid; gap: var(--space-4); min-width: 0; }
.verdict { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); background: var(--surface-raised); font-size: 14px; line-height: 20px; font-weight: 600; }
.verdict--bad { box-shadow: inset 0 0 0 1px var(--loss); }
.verdict--good { box-shadow: inset 0 0 0 1px var(--signal-ink); }
.outs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.outs--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.margin-line { font-size: 14px; color: var(--ink-muted); }
.margin-line b { font-family: var(--font-mono); color: var(--ink); }
.margin-line b.is-neg { color: var(--loss); }
.calc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.calc-table th, .calc-table td { height: 40px; padding: 0 8px; border-bottom: 1px solid var(--line); text-align: right; }
.calc-table th:first-child { text-align: left; padding-left: 0; font-weight: 600; color: var(--ink-muted); }
.calc-table thead th { height: 28px; font-size: 11px; color: var(--ink-faint); }
.calc-table td { font-family: var(--font-mono); font-weight: 600; }
.calc-table td small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-faint); }
.legs { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.legs li { display: grid; grid-template-columns: 24px 1fr 1fr 64px 28px; align-items: end; gap: var(--space-2); }
.leg-n { display: grid; place-items: center; width: 24px; height: 40px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.leg-ev { height: 40px; display: grid; align-items: center; justify-items: end; font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.leg-ev.is-pos { color: var(--signal-ink); } .leg-ev.is-neg { color: var(--loss); }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .layout-side, .layout-side--narrow { grid-template-columns: minmax(0, 1fr) 320px; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1060px) {
  .layout-side, .layout-side--narrow { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .calc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .page { gap: var(--space-4); }
  .page-head h1 { font-size: 38px; line-height: 38px; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .grid2.tight { grid-template-columns: 1fr 1fr; }
  .grid3.tight { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats4 { grid-template-columns: 1fr 1fr; }
  .stats4 .or-stat__value { font-size: 28px; line-height: 28px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis .or-stat:last-child { grid-column: 1 / -1; }
  .outs, .outs--4 { grid-template-columns: 1fr 1fr; }
  .or-calcstat__value { font-size: 22px; }
  .podium-card { padding: var(--space-4) var(--space-3) 0; }
  .or-podium__name { font-size: 13px; }
  .or-podium__meta { font-size: 10px; }
  .or-podium__pos { font-size: 40px; line-height: 38px; }
  .or-podium__idx { font-size: 9px; }
  .hero { padding: var(--space-4); }
  .or-mh__name { font-size: 28px; }
  .compact-table th:nth-child(3), .compact-table td:nth-child(3), .compact-table th:nth-child(4), .compact-table td:nth-child(4) { display: none; }
  .compact-table .or-break__bar { display: none; }
  .compact-table .is-yield { width: auto; }
  .ledger--mobile th:nth-child(4), .ledger--mobile td:nth-child(4), .ledger--mobile th:nth-child(5), .ledger--mobile td:nth-child(5), .ledger--mobile th:nth-child(7), .ledger--mobile td:nth-child(7) { display: none; }
  .ledger--mobile .or-ledger__sub { max-width: 150px; }
  .or-ledger__head { flex-direction: column; align-items: flex-start; }
  .legs li { grid-template-columns: 20px 1fr 1fr 56px 28px; }
}

/* ---------- Datos reales ---------- */
.dot-ok, .dot-bad { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--win); }
.dot-bad { background: var(--loss); }
.status-list { margin: 0; display: grid; gap: 4px; }
.status-list div { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.status-list dt { color: var(--ink-faint); }
.status-list dd { margin: 0; font-family: var(--font-mono); font-weight: 600; color: var(--ink-muted); text-align: right; }
.status-list dd.is-warn { color: var(--steam); }
.status-err { font-size: 12px; font-weight: 600; color: var(--loss); }
.badge--warn { background: var(--steam) !important; color: var(--bg) !important; }
.dot-badge--warn { background: var(--steam); color: var(--bg); }
.fol-score { min-width: 34px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.chip-n { margin-left: 6px; font-family: var(--font-mono); font-size: 11px; opacity: .7; }
.icon-btn:disabled { opacity: .6; cursor: progress; }
.is-spinning svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .is-spinning svg { animation: none; } }
.crumbs .sp { flex: 1; }
.league-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.key-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3); align-items: start; }
.key-row .or-btn { margin-top: 20px; }
.opt-group { display: grid; gap: 6px; }
.check--block { align-items: flex-start; white-space: normal; padding: 6px 0; }
.check--block span { display: grid; }
.check--block b { color: var(--ink); font-size: 14px; }
.check--block small { font-weight: 500; font-size: 12px; color: var(--ink-faint); }
.outs--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.league-set { display: grid; gap: 2px; padding-bottom: var(--space-2); border-bottom: 1px solid var(--line); }
.league-set:last-of-type { border-bottom: 0; }
.league-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); min-height: 40px; }
.league-row > span { display: grid; font-size: 14px; font-weight: 600; }
.league-row small { font-size: 11px; font-weight: 500; color: var(--ink-faint); }
.src-list, .err-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; }
.src-list li { display: flex; justify-content: space-between; gap: var(--space-3); }
.src-list span { color: var(--ink-muted); text-align: right; }
.src-list .is-bad, .err-list li { color: var(--loss); }
.table-scroll { overflow-x: auto; }
.rank-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rank-table th, .rank-table td { height: 52px; padding: 0 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.rank-table thead th { height: 40px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.rank-table tbody tr:last-child > * { border-bottom: 0; }
.rank-table tbody th { font-size: 15px; font-weight: 600; }
.rank-table .is-num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.rank-table thead .is-num { font-family: var(--font-sans); }
.rank-table .is-pos { color: var(--signal-ink); }
.rank-table .is-neg { color: var(--loss); }
.rank-n { font-family: var(--font-display); font-size: 20px; font-weight: 700; width: 40px; }
.bar-cell { display: inline-flex; align-items: center; gap: 8px; }
.bar { width: 64px; height: 6px; border-radius: 2px; background: var(--surface-sunken); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--prob-home); }
.plays { margin: 0; padding: 0; list-style: none; display: grid; }
.plays li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-3); padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.plays li:last-child { border-bottom: 0; }
.plays b { color: var(--ink); }
.play-clock { font-family: var(--font-mono); font-weight: 600; color: var(--ink-faint); }
.open-wrap { display: grid; gap: 6px; }
.manual { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 12px; color: var(--ink-faint); }
.slip-help { margin: 0; }
@media (max-width: 899px) { .outs--3 { grid-template-columns: 1fr 1fr; } .key-row { grid-template-columns: 1fr; } .key-row .or-btn { margin-top: 0; } }

/* ---------- Combinadas ---------- */
.opt-inline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.opt-inline .or-field__label { width: 100%; }
.combo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--space-4); align-items: start; }
.combo-grid > :first-child { grid-column: 1 / -1; }

/* ---------- Retos escalera ---------- */
.step-picks { list-style: none; margin: 0; padding: 0; display: grid; }
.step-picks li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.step-picks li:first-child { padding-top: 0; }
.step-pick { display: grid; gap: 2px; min-width: 0; }
.step-pick b { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-pick span { font-size: 12px; line-height: 16px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-nums { display: grid; justify-items: end; gap: 1px; }
.step-nums .or-num { font-size: 16px; font-weight: 700; color: var(--ink); }
.step-nums small { font-size: 11px; color: var(--ink-faint); white-space: nowrap; }
.ch-hist { list-style: none; margin: 0; padding: 0; display: grid; }
.ch-hist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }
.ch-hist li:last-child { border-bottom: 0; }
.ch-hist b { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-hist .is-pos { color: var(--signal-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.ch-hist .is-neg { color: var(--loss); font-weight: 700; font-variant-numeric: tabular-nums; }
.ch-st { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--surface-raised); color: var(--ink-muted); }
.ch-st--won { background: color-mix(in srgb, var(--signal) 18%, transparent); color: var(--signal-ink); }
.ch-st--lost { background: var(--loss-soft); color: var(--loss); }

/* ---------- Más ---------- */
.more-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.more-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; }
.more-link:hover, .more-link:focus-visible { box-shadow: inset 0 0 0 1px var(--line-strong); }
.more-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--surface-raised); color: var(--signal-ink); }
.more-txt { display: grid; gap: 2px; min-width: 0; }
.more-txt b { font-size: 15px; color: var(--ink); }
.more-txt small { font-size: 12px; line-height: 16px; color: var(--ink-faint); }
.more-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--signal); color: var(--on-signal); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.more-go { transform: rotate(-90deg); color: var(--ink-faint); }

@media (max-width: 899px) {
  .combo-grid { grid-template-columns: minmax(0, 1fr); }
  .step-picks li { grid-template-columns: minmax(0, 1fr) auto; }
  .step-picks li .or-btn { grid-column: 1 / -1; }
  .ch-hist li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ch-hist li > span:nth-child(3) { grid-column: 2 / -1; grid-row: 2; font-size: 12px; }
}
.combo-modes .or-tabs { display: flex; flex-wrap: wrap; border-radius: var(--radius-md); }
.combo-modes .or-tabs__tab { flex: 1 1 auto; justify-content: center; }
