/* Statera · Inicio · base común de la home pública, «Mi inicio» y la cuenta (Claude, 28/09/2026)
 * Tokens: ../css/tokens-v2.css (los mismos de Estrategias v3.4). Barra: ../marco/marco.css (clases mk-).
 * Reglas: un solo scroll, texto >= 13 px (12 solo en marcas de ejes), cada cifra una sola vez (data-k),
 * lima = marca y serie destacada, cian = a favor, ámbar = en contra, rojo solo para la caída y las fichas.
 */
/* tokens propios de estas pantallas (no tocan tokens-v2.css, que es de Estrategias) */
:root {
  --fs-display: clamp(36px, min(3.45vw, 6.6vh), 60px); /* título de la home (landing): 3 renglones cortos */
  --fs-section: clamp(32px, 2.2vw + 6px, 44px); /* título de sección de la home */
  --fs-stat: 32px; /* cifra grande de la home (landing) */
  /* marcas de datos: una sola familia por entidad (puntos, líneas, áreas y barras). Los tokens de texto quedan para las cifras. */
  --mk-gain: var(--gain-bar); --mk-loss: var(--loss-bar);
  --pad-x: 18px;
}
@media (max-width: 1023px) { :root { --pad-x: 16px; } }
@media (max-width: 767px) { :root { --pad-x: 14px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body { margin: 0; background: var(--canvas); color: var(--text); font-family: var(--font); font-size: var(--fs-body); line-height: 1.5; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only, .vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

 

/* ---------------- piezas ---------------- */
/* una canaleta de la barra al pie: el contenido arranca donde arranca el logo del marco */
.wrap { width: 100%; padding: 0 var(--pad-x); }

.kick { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-cap); font-weight: 600; color: var(--text-2); letter-spacing: .01em; }
.kick .dot { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); flex: none; } /* = .stamp::before de Estrategias */
.h2 { margin: 0; font-size: var(--fs-h1); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.lead { margin: 6px 0 0; font-size: var(--fs-row); color: var(--text-2); line-height: 1.5; max-width: 72ch; }

/* el botón del sistema, igual que Estrategias (estrategias.css .btn y .btn.primary): 36 px, 14/600, radio --radius, --card y --line-hover; el principal en --accent.
   Fuente ATLAS: 03_Componentes (ver REVISION.md, tabla elemento → ATLAS). En el celular, 44 px como en Estrategias. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--radius); font-size: var(--fs-sec); font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid var(--line-hover); background: var(--card); color: var(--text); }
.btn:hover { border-color: var(--border-strong); background: var(--surface); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 650; }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); filter: brightness(1.06); }
.btn.sm { height: 36px; padding: 0 12px; }
/* el llamado de la home es el único botón grande (declarado acá, una vez) */
.btn.big { height: 44px; padding: 0 20px; font-size: var(--fs-row); }
@media (max-width: 767px) { .btn, .btn.sm { min-height: 44px; } }
/* la píldora del sistema (estrategias.css .pill): atajos y filtros de un clic */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--line-hover); border-radius: 999px; background: var(--card); font-size: var(--fs-sec); font-weight: 600; cursor: pointer; color: var(--text); white-space: nowrap; text-decoration: none; }
.pill:hover { border-color: var(--border-strong); background: var(--surface); }
.pill svg { width: 14px; height: 14px; flex: none; color: var(--text-2); }
@media (max-width: 767px) { .pill { min-height: 44px; } }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.panel { position: relative; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ph { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.ph h3 { margin: 0; font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.ph .sub { margin: 2px 0 0; font-size: var(--fs-cap); color: var(--text-2); line-height: 1.4; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; font-size: var(--fs-cap); color: var(--text-2); }
.gain { color: var(--gain); } .loss { color: var(--loss); } .dd { color: var(--dd); } .muted { color: var(--text-2); }

/* leyenda (patrón ac-legend de ATLAS, a 13 px) */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; padding: 0; list-style: none; font-size: var(--fs-cap); color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.sw.line { width: 16px; height: 0; border-radius: 0; border-top: 2px dashed var(--text-2); }
.sw.solid { width: 16px; height: 2px; border-radius: 2px; }
.sw.sq { border-radius: 3px; }

/* tabla gemela de cada gráfico */
.tgl { all: unset; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 6px; margin-left: -6px; border-radius: 6px; font-size: var(--fs-cap); font-weight: 600; color: var(--text-2); cursor: pointer; }
.tgl:hover { color: var(--text); }
.tgl:focus-visible { outline: 2px solid var(--focus); }
.tgl svg { width: 14px; height: 14px; }
.twrap { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.ttable { width: 100%; border-collapse: collapse; font-size: var(--fs-cap); }
.ttable caption { text-align: left; padding: 8px 12px 0; font-weight: 600; color: var(--text-2); }
.ttable th, .ttable td { padding: 6px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ttable th:first-child, .ttable td:first-child { text-align: left; white-space: normal; }
.ttable thead th { color: var(--text-2); font-weight: 600; }
.ttable tr:last-child td { border-bottom: 0; }
/* en el celular cada fila es una tarjeta: nada se ensancha ni pide scroll horizontal */
@media (max-width: 560px) {
  .ttable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ttable tr { display: block; padding: 6px 12px; border-bottom: 1px solid var(--line); }
  .ttable tr:last-child { border-bottom: 0; }
  .ttable th, .ttable td { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; border: 0; text-align: right; white-space: normal; }
  .ttable th:first-child { font-weight: 700; padding-bottom: 4px; }
  .ttable td::before { content: attr(data-l); color: var(--text-2); text-align: left; }
  .tgl { min-height: 44px; }
}

/* ---------------- cromo de los gráficos ATLAS (a 13 px, como Estrategias) ---------------- */
.ac-grid line { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.ac-baseline { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.ac-axis text, .ac-tick { fill: var(--text-2); font: 500 12px var(--font); font-variant-numeric: tabular-nums; }
.ac-axis-title { fill: var(--text-2); font: 600 12px var(--font); }
.ac-label { fill: var(--text-2); font: 500 13px var(--font); }
.ac-label-strong { fill: var(--text); font: 700 13px var(--font); font-variant-numeric: tabular-nums; }
.ac-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ac-dot { stroke: var(--card); stroke-width: 2; }
.ac-crosshair { stroke: var(--text-2); stroke-width: 1; opacity: .55; shape-rendering: crispEdges; pointer-events: none; }
.ac-hit { fill: transparent; cursor: crosshair; }
.ac-hit:focus { outline: none; }
.ac-plot:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.ac-mark { transition: opacity .18s ease, filter .18s ease; cursor: default; }
.is-dim .ac-mark:not(.is-on) { opacity: .35; }
.ac-mark.is-on { filter: brightness(1.25); }
:root[data-theme="light"] .ac-mark.is-on { filter: brightness(.85); }
.ac-mark:focus-visible { outline: 2px solid var(--focus); }
.ac-tip { position: fixed; z-index: 90; pointer-events: none; min-width: 180px; max-width: 300px; background: var(--surface-2); border-radius: 10px; box-shadow: var(--shadow-pop); padding: 10px 12px; font-size: var(--fs-cap); line-height: 1.4; color: var(--text); opacity: 0; transform: translate3d(0, 4px, 0); transition: opacity .12s ease, transform .16s var(--ease); }
.ac-tip.is-on { opacity: 1; transform: none; }
.ac-tip-title { font: 700 13px var(--font); color: var(--text); margin-bottom: 6px; }
.ac-tip-row { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 8px; padding: 2px 0; }
.ac-tip-row.no-key { grid-template-columns: 1fr auto; }
.ac-tip-key { width: 12px; height: 2px; border-radius: 2px; }
.ac-tip-key.rect { height: 8px; width: 8px; border-radius: 2px; margin-left: 2px; }
.ac-tip-label { color: var(--text-2); white-space: nowrap; }
.ac-tip-val { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.ac-tip-note { margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line); color: var(--text-2); }
.halo { paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }

/* ---------------- piezas compartidas: mosaicos de acceso, ruletas, estados de la Mesa, mini evolución ---------------- */
.evo-s { stroke-width: 1.75; }
.evo-dd { fill: var(--dd-wash); }
.evo-ddl { stroke: var(--dd); stroke-width: 1.25; fill: none; opacity: .9; }
.evo-lab { fill: var(--text-2); font: 600 13px var(--font); }
.evo-base { stroke: var(--axis); stroke-width: 1; }
.tile { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; }
@media (hover: hover) and (pointer: fine) { .tile:hover { border-color: var(--line-hover); } }
.tile-h { display: flex; align-items: center; gap: 10px; }
.ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-wash); color: var(--accent-mark); flex: none; }
.ico svg { width: 18px; height: 18px; }
.tile-p { margin: 0; font-size: var(--fs-row); color: var(--text-2); line-height: 1.5; max-width: 62ch; }
.tile-note { margin: 0; font-size: var(--fs-cap); color: var(--text-2); }
.tile-a { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; min-height: 36px; font-size: var(--fs-row); font-weight: 700; color: var(--text); text-decoration: none; align-self: flex-start; }
.tile-a svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.tile-a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tile-a:hover svg { transform: translateX(3px); }
.tile-a::after { content: ""; position: absolute; inset: 0; } /* toda la tarjeta es el enlace */
.prov { display: grid; gap: 6px; }
.prov-bar { display: flex; height: 12px; gap: 2px; border-radius: 999px; overflow: hidden; }
.prov-leg b { color: var(--text); font-weight: 700; }
.rlist { margin: 0; padding: 0; list-style: none; }
.rlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; min-height: 34px; border-top: 1px solid var(--line); font-size: var(--fs-sec); }
.rlist li b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rlist li span { font-size: var(--fs-cap); color: var(--text-2); white-space: nowrap; }
.states { display: flex; flex-wrap: wrap; gap: 6px; }
.b18 { display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 6px; margin-right: 4px; border: 1.5px solid var(--text); border-radius: 6px; color: var(--text); font-size: 13px; font-weight: 800; }

.prov .p0 { background: color-mix(in srgb, var(--text-2) 85%, var(--card)); } .prov .p1 { background: color-mix(in srgb, var(--text-2) 55%, var(--card)); } .prov .p2 { background: color-mix(in srgb, var(--text-2) 32%, var(--card)); }
.states .st { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 6px; font-size: var(--fs-cap); font-weight: 700; letter-spacing: .02em; }
.states .st-w { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.states .st-b { background: color-mix(in srgb, var(--mk-gain) 22%, var(--card)); color: var(--gain); border: 1px solid color-mix(in srgb, var(--mk-gain) 55%, transparent); }
.states .st-s { background: color-mix(in srgb, var(--mk-loss) 22%, var(--card)); color: var(--loss); border: 1px solid color-mix(in srgb, var(--mk-loss) 55%, transparent); }

/* esqueleto de carga (patrón demos/empty-loading-error-states.html) */
.sk { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .sk { animation: sk 1.2s linear infinite; } }
@keyframes sk { to { background-position: -200% 0; } }

/* aparición al entrar (solo transform/opacity; sin movimiento reducido queda el estado final) */
@media (prefers-reduced-motion: no-preference) {
  html.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
  html.js .rv.in { opacity: 1; transform: none; }
}

/* la barra del marco mide sus ítems varias veces al cargar: que ese cálculo no arrastre el layout de toda la página */
.mk-bar { contain: layout style; }

/* ---------------- pie compartido (home, «Mi inicio» y cuenta): +18, datos pasados, juego responsable ---------------- */
.pub-foot { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr); gap: 20px 32px; padding-top: 32px; padding-bottom: 40px; margin-top: 40px; font-size: var(--fs-cap); color: var(--text-2); }
.pub-foot::before { content: ""; position: absolute; top: 0; left: var(--pad-x); right: var(--pad-x); border-top: 1px solid var(--line); }
.pub-foot p { margin: 0 0 6px; line-height: 1.5; }
.pf-logo { display: inline-flex; font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--text); margin-bottom: 6px; }
.pf-logo .e { color: var(--accent-mark, #c6f24e); margin-left: 1px; } /* LOGO-LIMA (02/11) */
.pf-links { display: flex; flex-direction: column; gap: 2px; }
.pf-links a { display: flex; align-items: center; min-height: 32px; color: var(--text); font-weight: 600; text-decoration: none; }
.pf-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
  .pub-foot { grid-template-columns: minmax(0, 1fr); }
  .pf-links { flex-direction: row; flex-wrap: wrap; gap: 0 18px; }
  .pf-links a { min-height: 44px; }
  html { scroll-padding-bottom: calc(var(--mk-bottom-h, 56px) + env(safe-area-inset-bottom) + 16px); }
  .mk-skip { min-height: 44px; display: inline-flex; align-items: center; }
}
/* aviso con «Deshacer» */
.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--surface-2); box-shadow: var(--shadow-pop); font-size: var(--fs-sec); }
@media (max-width: 767px) { .toast { bottom: calc(var(--mk-bottom-h, 56px) + env(safe-area-inset-bottom) + 12px); left: 12px; right: 12px; transform: none; } }
.kv { white-space: nowrap; }

/* captura de la Mesa (estados) */
.shot { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); display: grid; gap: 10px; }
.shot-h { margin: 0; font-size: var(--fs-cap); font-weight: 600; color: var(--text-2); }

/* ---------------- v4 · piezas compartidas ---------------- */
/* renglones sin viudas: el navegador reparte las palabras (Chrome 117+; en el resto no cambia nada) */
p, dd, li, .sub, .lead, figcaption { text-wrap: pretty; }
.nw { white-space: nowrap; }
/* marcas con el contraste de la home en las tres páginas (≥ 3:1 las que llevan dato; ≈ 2:1 los fondos) */
.evo-base { stroke: var(--border-strong); }
.evo-max { stroke: var(--dd); stroke-width: 1; stroke-dasharray: 2 3; opacity: .85; }
.evo-fondo { fill: var(--dd); stroke: var(--bg); stroke-width: 1.5; }
.evo-cut { fill: var(--dd); }
.evo-lab.halo { stroke: var(--bg); }
.prov .p0 { background: color-mix(in srgb, var(--text-2) 92%, var(--card)); } .prov .p1 { background: color-mix(in srgb, var(--text-2) 66%, var(--card)); } .prov .p2 { background: color-mix(in srgb, var(--text-2) 52%, var(--card)); }
.states .st { text-transform: none; letter-spacing: 0; }

/* tarjeta de estrategia (tarjeta.js), la misma anatomía que Estrategias.
   9 renglones fijos; dentro de .fcs las tarjetas vecinas alinean renglón por renglón (subgrid). */
.fcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 10px; row-gap: 0; align-items: start; }  
.sk-card { display: grid; gap: 8px; min-height: 250px; grid-row: span 9; margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.big-star { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 16px; background: var(--accent-wash); color: var(--accent-mark); font-size: var(--fs-h1); }
@media (max-width: 767px) {
  .fcs { grid-template-columns: minmax(0, 1fr); }
}

/* paño de la Mesa (home y «Mi inicio») */
.pano { display: grid; grid-template-columns: 1.05fr repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(30px, 1fr)); gap: 2px; }
.pano i { display: grid; place-items: center; border-radius: 4px; font: 700 13px/1 var(--font); font-style: normal; color: #fff; }
.pano i.z { grid-row: 1 / span 3; background: var(--chip-green); }
.pano i.r { background: var(--chip-red); }
.pano i.n { background: var(--chip-black); box-shadow: inset 0 0 0 1px var(--chip-black-border); }

/* minigráficos de cifras (bullet contra la casa y giros por ruleta): home y «Mi inicio» */
.bul-track { fill: color-mix(in srgb, var(--text-2) 34%, var(--card)); }
.bul-bar { fill: var(--mk-loss); } .bul-bar.g { fill: var(--mk-gain); }
.bul-casa { stroke: var(--text); stroke-width: 2; }
.bul-lab { fill: var(--text); font: 700 13px var(--font); }
.gir { fill: color-mix(in srgb, var(--text-2) 70%, var(--card)); }
.gir-on { fill: var(--text); }

/* tilde de garantías (home y cuenta) */
.ok { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-wash); color: var(--accent-mark); font-size: 13px; font-weight: 800; line-height: 1; flex: none; }
/* nombres de ruleta enteros en el celular (sin cortar con «…») */
@media (max-width: 767px) { .rlist li b { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; padding: 6px 0; } }
/* tablas gemelas en el celular: «keep» queda como tabla (dos columnas cortas); «c3» = nombre arriba y tres cifras en fila, rótulos una sola vez */
@media (max-width: 560px) {
  .ttable.keep thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .ttable.keep tr { display: table-row; padding: 0; }
  .ttable.keep th, .ttable.keep td { display: table-cell; padding: 6px 12px; border-bottom: 1px solid var(--line); text-align: right; }
  .ttable.keep th:first-child { text-align: left; }
  .ttable.keep td::before { content: none; }
  .ttable.c3 thead { position: sticky; top: 56px; z-index: 1; width: auto; height: auto; overflow: visible; clip: auto; background: var(--card); }
  .ttable.c3 thead tr, .ttable.c3 tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; padding: 6px 12px; }
  .ttable.c3 thead th { display: block; padding: 0; border: 0; text-align: left; white-space: normal; font-size: var(--fs-cap); }
  .ttable.c3 thead th:first-child { display: none; }
  .ttable.c3 tbody th { grid-column: 1 / -1; display: block; padding: 0 0 2px; }
  .ttable.c3 tbody td { display: block; padding: 0; text-align: left; white-space: nowrap; }
  .ttable.c3 tbody td::before { content: none; }
}
/* estados de la Mesa: el texto entra siempre en su chip */
.states .st { white-space: nowrap; height: auto; min-height: 32px; padding: 4px 10px; }
.states { flex-wrap: wrap; }
@media (max-width: 767px) { .app-side .states { display: flex; } }
.bul-lab { fill: var(--text); font: 700 13px var(--font); }
/* claro: el lima de la marca queda para marcas y títulos grandes; los textos chicos van en --text (contraste ≥ 4,5 con la paleta de Estrategias) */
:root[data-theme="light"] .sec-idx a[aria-current] .n, :root[data-theme="light"] .checks li::before, :root[data-theme="light"] .ok, :root[data-theme="light"] .sn, :root[data-theme="light"] .eyebrow { color: var(--text); }

/* ---------------- v6 · regla 8: solo tokens de Estrategias (cero colores fuera de paleta) ---------------- */
.prov .p0 { background: var(--text-2); } .prov .p1 { background: var(--text-3); } .prov .p2 { background: var(--bar-neutral); }
:root[data-theme="light"] .prov .p1 { background: var(--text-3); } :root[data-theme="light"] .prov .p2 { background: var(--bar-neutral); }
.states .st-w { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.states .st-b { background: var(--surface); color: var(--gain); border: 1px solid var(--gain-bar); }
.states .st-s { background: var(--surface); color: var(--loss); border: 1px solid var(--loss-bar); }
.bul-track { fill: var(--deemph); }
.gir { fill: var(--bar-neutral); }
.tgl { white-space: nowrap; flex: none; }

/* ejes y rótulos de los gráficos como en Estrategias (13/500 y 650) */
.ac-axis text, .ac-tick { font: 500 13px var(--font); }
.ac-label-strong { font-weight: 650; }
/* grilla de tarjetas de Estrategias (.cards) y la tarjeta tal cual (tarjeta-estrategias.css) */
.fcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(296px, 1fr)); grid-auto-flow: row dense; gap: 12px; }
.fcs > .card { margin: 0; }
.c-lock { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.c-lock svg { width: 14px; height: 14px; flex: none; }
.card.sug { border-style: dashed; border-color: var(--border-strong); }
.card.ghost { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 238px; border-style: dashed; border-color: var(--border-strong); background: transparent; cursor: default; text-align: center; }
.card.ghost p { margin: 0; font-size: var(--fs-sec); color: var(--text-2); }
.card.sk-card { display: block; height: 238px; background: var(--card); }
@media (max-width: 767px) { .fcs { grid-template-columns: minmax(0, 1fr); } }
.card a.c-name { color: var(--text); text-decoration: none; }
.card a.c-name:hover { text-decoration: underline; text-decoration-color: var(--line-hover); text-underline-offset: 4px; }
.card span.c-name { cursor: default; }
/* la tarjeta de Estrategias sin cortes (regla 3): donde Estrategias corta con «…», acá el texto baja de renglón y la tarjeta crece */
.card .c-kind, .card .c-line, .card .c-stats dd, .card .c-foot > span { white-space: normal; overflow: visible; text-overflow: clip; }
.card .c-line { height: auto; line-height: 19px; }
.card .c-foot { height: auto; min-height: 18px; }
.card:not(.ghost):not(.sk-card) { height: auto; }
.card .c-stats dd .fig, .card .c-line .fig { white-space: nowrap; }
/* celulares angostos: «no te alcanza» baja de renglón en vez de salirse de la tarjeta; las cifras no se pisan con el renglón de abajo */
@media (max-width: 400px) {
  .card .c-stats, .card .c-stats .st { height: auto; }
  .card .c-stats .st-cap .dd, .card .c-stats .dd { flex-wrap: wrap; white-space: normal; height: auto; row-gap: 2px; }
}
/* v8 · filas parejas como en Estrategias: cada tarjeta se estira al alto de su fila y el gráfico toma lo que sobra */
.fcs { align-items: stretch; }
.card.sug .sug-tag { margin: 0 0 -2px; font-size: var(--fs-cap); font-weight: 600; line-height: 18px; color: var(--text-2); }


/* número de paso (home «Cómo se mide» y cuenta «Así recuperás el acceso»): una sola pieza. Fuente ATLAS: 08_Recetas/saas-data-dark-premium (.how-steps) */
.sn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--accent-mark); color: var(--accent-mark); font-weight: 800; font-size: var(--fs-row); flex: none; }

/* v12 · la tarjeta compartida arma sus 7 renglones con subgrid: el fantasma «Deshacer» y el esqueleto son una caja sola */
.cards > .card.ghost:not(.is-open), .cards > .card.sk-card:not(.is-open) { display: flex !important; grid-template-rows: none; }
.cards > .card.ghost:not(.is-open) { flex-direction: column; align-items: center; justify-content: center; }
/* «Sugerida»: insignia sobre el borde de arriba (fuente ATLAS: 08_Recetas/secciones-sueltas .pr-badge), sin sumar un renglón */
.card.sug { overflow: visible; }
.card.sug .sug-tag { position: absolute; top: -10px; left: 12px; z-index: 1; margin: 0; padding: 0 6px; background: var(--canvas); font-size: var(--fs-cap); font-weight: 600; line-height: 18px; color: var(--text-2); white-space: nowrap; }
/* v12 · la tarjeta pública no tiene ☆ ni ⊞: el nombre usa todo el ancho */
.card .c-head:not(:has(button, a, select)) { padding-right: 0; }
/* v12 · celular: en la tarjeta pública (sin ☆ ni menú) el encabezado y la cabecera del gráfico no reservan el blanco de 44 px de un botón que no está */
@media (max-width: 767px) {
  .card .c-head:not(:has(button, a, select)) { height: auto; min-height: 0; }
  .card .c-head:not(:has(button, a, select)) > span.c-name { min-height: 0; }
  .card .c-ch-h:not(:has(button, select)) { height: auto; min-height: 0; }
}
/* v13 · esqueleto con el alto de la tarjeta compartida (sin salto al llegar) */
.cards > .card.sk-card:not(.is-open) { height: auto; min-height: 300px; }
@media (max-width: 767px) { .cards > .card.sk-card:not(.is-open) { min-height: 390px; } }
/* v13 · tarjeta pública (card-bloq): los grupos de la línea de cifras pueden bajar de renglón en pantallas angostas */
.card.card-bloq .c-line > span { white-space: normal; }
.card.card-bloq .c-line .fig { white-space: nowrap; }

/* v15 · los estados de la Mesa son rótulos con su color, no botones (los usuarios los tocaban para ver qué pasaba) */
html .shot .states { display: flex; flex-wrap: wrap; gap: 6px 16px; }
html .shot .states .st { height: auto; min-height: 0; padding: 0; gap: 7px; background: none; border: 0; border-radius: 0; font-weight: 600; justify-content: flex-start; flex: none; }
html .shot .states .st::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
html .shot .states .st-w::before { background: var(--text-2); }

/* v16 · la vista previa de la Mesa muestra lo mismo que la Mesa (su dueño, 29/09; mesa.css 365-375):
   una instrucción real y el paño apagado parejo salvo lo que se juega, que queda entero con el borde lima del pleno */
.mesa-ins { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--fs-cap); color: var(--text); }
.mesa-ins .ins-b { font-weight: 800; letter-spacing: .02em; color: var(--gain); margin-right: 2px; }
.mesa-ins .mn-ficha { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 800 13px/1 var(--font); }
.mesa-ins .ins-d { flex-basis: 100%; color: var(--text-2); }
.mesa-ins .ins-d i { font-style: normal; color: var(--text-3); margin: 0 4px; }
.mesa-otros { margin: 0; font-size: var(--fs-cap); color: var(--text-2); }
.pano.sel i:not(.on) { color: color-mix(in srgb, var(--text) 78%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.pano.sel i.r:not(.on) { background: color-mix(in srgb, var(--chip-red) 32%, transparent); }
.pano.sel i.n:not(.on) { background: color-mix(in srgb, var(--chip-black) 55%, transparent); }
.pano.sel i.z:not(.on) { background: color-mix(in srgb, var(--chip-green) 35%, transparent); }
.pano.sel i.on { box-shadow: inset 0 0 0 3px var(--accent); }

/* v18 · selectores de gráfico con StateraLista (patrón ATLAS 11_Dashboards-DataViz/demos/selector-rango-fechas-y-filtros.html; el mismo
   CSS de Estrategias 6.2): el botón conserva las clases del <select> (mismo lugar y tamaño) y su flecha es la de StateraLista */
:where(.card, .varpop) select.chartsel[data-sl] { display: none !important; }
:where(.card, .varpop) .chartsel.sl-chart { background-image: none !important; gap: 4px; align-items: center; }
:where(.card, .varpop) .chartsel.sl-chart.ghost, :where(.card, .varpop) .c-chart .chartsel.sl-chart { padding-right: 0 !important; }
:where(.card, .varpop) .chartsel.sl-chart > * { vertical-align: middle; }
:where(.card, .varpop) .chartsel.sl-chart .sl-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(.card, .varpop) .chartsel.sl-chart .sl-v { flex: none; width: 12px; height: 12px; }
/* v18d · el botón en un solo renglón a 390 y 360 (la flecha bajaba de línea con el inline-block del <select>) */
:where(.card, .varpop) .chartsel.sl-chart { white-space: nowrap; }
:where(.card, .varpop) .c-chart .chartsel.sl-chart { display: inline-flex !important; }
/* v18g · en el celular, las opciones de las listas (StateraLista) con blanco de 44 px (UX v18: medían 34) */
@media (max-width: 767px) { .sl-pop .sl-o { min-height: 44px; } }

/* v18k · el selector de ruleta de Estrategias, igual (copiado de Web/estrategias/estrategias.css: .rsel*, .rselpop y .search.small) */
.rsel { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; max-width: 100%; }
.rsel-btn { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 28px; padding: 0 8px; border: 1px solid var(--line-hover); border-radius: 8px; background: var(--card); color: var(--text); font: 600 var(--fs-sec)/1.2 var(--font); cursor: pointer; }
.rsel-btn:hover { border-color: var(--border-strong); }
.rsel-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rsel-l { white-space: normal; text-align: left; }
.rsel-c { width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: rotate(45deg); flex: none; }
.rselpop { position: absolute; z-index: 47; display: flex; flex-direction: column; padding: 8px; background: var(--surface-2); border: 1px solid var(--line-hover); border-radius: 14px; box-shadow: var(--shadow-pop); color: var(--text); font-family: var(--font); }
.rselpop .search { position: relative; display: block; margin: 0 0 6px; }
.rselpop .search input { width: 100%; height: 34px; padding: 0 12px 0 36px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg); color: var(--text); font: 400 var(--fs-sec)/1.2 var(--font); }
.rselpop .search input::placeholder { color: var(--text-2); opacity: 1; }
.rselpop .search svg { position: absolute; left: 11px; top: 9px; width: 16px; height: 16px; color: var(--text-2); }
.rsel-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.rsel-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.rsel-list li[hidden] { display: none; }
.rsel-list li .rn { font-size: var(--fs-sec); font-weight: 600; color: var(--text); }
.rsel-list li .rm { font-size: var(--fs-cap); color: var(--text-2); }
/* PRECRITICO-ARREGLOS (08/10) - casinos separados por un punto que nunca queda al principio ni al final de un renglón: el punto es de CSS (no es texto) y .rm recorta el del primer casino de cada renglón */
.rsel-list li .rm { display: block; overflow: hidden; }
.rsel-list li .rm .rml { display: flex; flex-wrap: wrap; margin-left: -14px; }
.rsel-list li .rm .rml > span { position: relative; padding-left: 14px; }
.rsel-list li .rm .rml > span::before { content: ""; position: absolute; left: 5px; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: currentColor; opacity: .7; }
.rsel-list li.act, .rsel-list li:hover { background: var(--surface); }
.rsel-list li.on { box-shadow: inset 3px 0 0 var(--accent-mark); }
.rselpop.sheet { position: fixed !important; left: 0; right: 0; bottom: 0; top: auto; max-height: 75vh; border-radius: 16px 16px 0 0; z-index: 60; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
.rsel-sh { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 8px; font-size: var(--fs-row); }
.rsel-x { min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--text); font: 500 var(--fs-sec)/1 var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) { .rsel-btn { min-height: 44px; border-radius: 999px; padding: 0 12px; } .rsel-list li { min-height: 44px; } .rselpop .search input { height: 44px; } .rselpop .search svg { top: 14px; } }
/* en la fila de «Tu ruleta» y de «Ver en», el mismo alto que el botón de al lado */
@media (min-width: 768px) { .rul-go .rsel-btn, .fav-rul .rsel-btn { min-height: 36px; } }
/* v18m · los nombres de ruleta de las listas «En vivo» bajan de renglón en vez de cortarse (básico r18: «Speed Auto Roulette (Betsso…»; con Geist, también en «Mi inicio») */
.rlist li b { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; padding: 4px 0; }
/* v18m · lo que se toca adentro de una tarjeta-enlace queda encima del enlace estirado (básico r19: «Qué significa cada dato +» llevaba a Estrategias) */
.tile details, .tile summary, .tile button, .tile select { position: relative; z-index: 1; }
/* v19 · la pastilla «no alcanza» de la tarjeta compartida es tocable (role=button, abre su explicación): en el celular, 44 px de área sin cambiar cómo se ve */
@media (max-width: 767px) { :where(.card, .varpop) .nofit { position: relative; } :where(.card, .varpop) .nofit::after { content: ''; position: absolute; inset: -12px 0; } }
