/* Mubex Simuladores
   Layout: encabezado con categorías; cada simulador en dos columnas (datos a la izquierda, resultados con gráfica a la derecha)
   y debajo la explicación, preguntas frecuentes y simuladores relacionados. */
/* Fuentes alojadas en el propio sitio (más rápido, sin terceros). Licencia SIL OFL. */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(fonts/archivo.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/figtree-400.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/figtree-500.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/figtree-600.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/figtree-700.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/plexmono-500.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/plexmono-600.woff2) format("woff2"); }
:root {
  /* Tema oscuro (único): fondo casi negro con acentos turquesa, ámbar y coral. */
  --paper: #070D10;
  --surface: #0E181C;
  --raised: #132227;
  --ink: #E8F0EF;
  --muted: #93A6A9;
  --line: #1F3238;
  --sea: #4FD1C5;
  --sea-tint: #0E2E2B;
  --flame: #FF6B4A;
  --flame-tint: #33170F;
  --gold: #F0B94E;
  --on-accent: #04110F;
  --good: #5FD39A;
  --bad: #FF7A6E;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 36px -18px rgb(0 0 0 / 0.8);
  --glow: 0 0 0 1px rgb(79 209 197 / 0.35), 0 12px 32px -12px rgb(79 209 197 / 0.25);
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --radius: 14px;
  --max: 1160px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: radial-gradient(1100px 520px at 15% -10%, rgb(79 209 197 / 0.10), transparent 60%), radial-gradient(900px 480px at 100% 0%, rgb(255 107 74 / 0.06), transparent 55%), var(--paper); background-attachment: fixed; color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Encabezado */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: rgb(7 13 16 / 0.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mubi { width: 40px; height: 40px; flex: none; margin-block: -4px; }
.brand:hover .brand-mubi { transform: rotate(-6deg); transition: transform 0.2s ease; }
.brand-word { font-family: var(--font-display); font-weight: 900; font-stretch: 125%; font-size: 25px; letter-spacing: -0.01em; line-height: 1; text-transform: uppercase; }
.brand-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sea); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14.5px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 760px) { .header-in { flex-wrap: wrap; } .nav { width: 100%; gap: 4px 14px; font-size: 14px; } }

/* Portada */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 40px; align-items: center; padding-block: 36px 12px; }
.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sea); }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 850; font-stretch: 118%; line-height: 1; letter-spacing: -0.025em; max-width: 14ch; }
.lede { margin: 14px 0 0; max-width: 60ch; font-size: 17.5px; color: var(--muted); }
.hero-art { width: 100%; max-width: 420px; justify-self: end; height: auto; }
.hero-art .bar { fill: var(--sea); }
.hero-art .bar2 { fill: var(--sea); opacity: 0.45; }
.hero-art .line { fill: none; stroke: var(--flame); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.hero-art .dot { fill: var(--flame); }
.hero-art .grid { stroke: var(--line); stroke-width: 1.5; }
.hero-art .label { font-family: var(--font-display); font-weight: 800; font-size: 26px; fill: var(--ink); }
.hero-art .sub { font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; fill: var(--muted); }
@media (max-width: 760px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero-art { max-width: 300px; justify-self: start; order: -1; } }

.cat-block { padding-block: 34px 6px; }
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 14px; }
.cat-head h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 850; font-stretch: 110%; letter-spacing: -0.01em; display: flex; align-items: center; gap: 12px; }
.cat-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.cat-head a { font-weight: 700; color: var(--sea); white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 18px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.card:hover { box-shadow: var(--glow); border-color: rgb(79 209 197 / 0.45); transform: translateY(-2px); }
.card h3 { font-size: 19px; font-weight: 800; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.card .go { font-weight: 700; color: var(--sea); font-size: 14.5px; }
.ico { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--sea-tint); color: var(--sea); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cat-juegos .ico, .card.cat-juegos .ico { background: var(--flame-tint); color: var(--flame); }
.card.cat-tesla .ico, .cat-tesla .cat-head .ico { background: var(--flame-tint); color: var(--flame); }
.card.cat-redes .ico, .cat-redes .cat-head .ico { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }

/* Página de simulador */
.crumbs { padding-block: 18px 4px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.sim-head { padding-block: 6px 18px; }
.sim-head h1 { font-size: clamp(30px, 4.8vw, 48px); font-weight: 850; font-stretch: 115%; line-height: 1.04; letter-spacing: -0.02em; max-width: 22ch; }
.sim-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .sim-grid { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 18px; min-width: 0; }
.panel h2 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 420px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 4px; min-width: 0; align-content: start; }
.field label, .field .lbl { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.inp { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); min-width: 0; }
.inp:focus-within { border-color: var(--sea); }
.inp span { padding: 0 10px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.inp input, .inp select, select.sel { flex: 1; min-width: 0; width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; padding: 10px 10px; font-variant-numeric: tabular-nums; }
.inp input:focus, .inp select:focus { outline: none; }
select.sel { border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.check input { width: 18px; height: 18px; accent-color: var(--sea); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { padding: 12px 14px; border-radius: 12px; background: var(--raised); min-width: 0; }
.kpi.main { background: var(--sea-tint); }
.kpi-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.kpi-value { font-family: var(--font-display); font-weight: 850; font-stretch: 110%; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi.main .kpi-value { color: var(--sea); }
.kpi-sub { font-size: 12.5px; color: var(--muted); }
.verdict { margin: 0 0 12px; font-size: 15.5px; }
.verdict strong { color: var(--ink); }
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-box .grid { stroke: var(--line); stroke-width: 1; }
.chart-box .axis-text { fill: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.chart-box .s1 { stroke: var(--sea); }
.chart-box .s2 { stroke: var(--flame); }
.chart-box .s3 { stroke: var(--gold); }
.chart-box .dot1 { fill: var(--sea); }
.chart-box .dot2 { fill: var(--flame); }
.chart-box .dot3 { fill: var(--gold); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.legend .l1 { background: var(--sea); }
.legend .l2 { background: var(--flame); }
.legend .l3 { background: var(--gold); }
.good { color: var(--good); }
.bad { color: var(--bad); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 8px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.hl td { background: var(--sea-tint); font-weight: 700; }
@media (max-width: 560px) {
  table.data { font-size: 13.5px; }
  table.data th, table.data td { padding: 7px 8px; }
  table.data th { white-space: normal; font-size: 11px; vertical-align: bottom; }
  .bar-cell { min-width: 50px; }
}
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 0; background: var(--sea); color: var(--on-accent); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.07); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Lista de equipos (batería) */
.appl { display: grid; gap: 8px; }
.appl-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 150px 84px; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--paper); }
.appl-row.appl-head { background: none; padding-block: 0; }
.appl-row label { font-weight: 600; font-size: 14.5px; }
.appl-row .mini { font-size: 12px; color: var(--muted); display: block; font-weight: 500; }
.appl-row .inp { background: var(--surface); }
.appl-row .inp input { padding: 6px 8px; font-size: 15px; }
.appl-row .inp input.q { flex: 0 0 38px; text-align: center; }
.appl-row .inp span { padding: 0 4px; font-size: 12.5px; }
@media (max-width: 560px) {
  .appl-row { grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr); }
  .appl-row label { grid-column: 2 / -1; }
  .appl-row .qty { grid-column: 2; }
  .appl-row.appl-head { display: none; }
}
.bar-cell { position: relative; min-width: 90px; }
.bar-cell i { display: block; height: 8px; border-radius: 4px; background: var(--sea); }

/* Contenido */
.content { max-width: 760px; padding-block: 34px 0; }
.content h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin: 26px 0 8px; }
.content p, .content li { color: var(--ink); }
.content p { margin: 0 0 12px; }
.content .muted { color: var(--muted); }
.formula { font-family: var(--font-mono); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; overflow-x: auto; font-size: 14px; }
.faq { border-top: 1px solid var(--line); padding-block: 12px; }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.note { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }
.related { padding-block: 34px 0; }
.related h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }

/* Pie */
.site-footer { margin-top: 56px; background: rgb(14 24 28 / 0.7); border-top: 1px solid var(--line); }
.footer-in { display: grid; gap: 12px; padding-block: 26px 34px; font-size: 14px; color: var(--muted); }
.footer-in p { margin: 0; max-width: 80ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
/* Espacios de monetización: tamaño reservado para que la página no salte al cargar el anuncio (CLS). */
.ad-slot { margin-block: 24px; min-height: 280px; display: grid; align-content: center; justify-items: center; gap: 4px; text-align: center; }
@media (min-width: 760px) { .ad-slot { min-height: 120px; } }
.ad-slot ins { display: block; width: 100%; }
.ad-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ad-slot.ph, .socio.ph { border: 2px dashed var(--line); border-radius: var(--radius); padding: 14px 18px; color: var(--muted); font-size: 14px; }
.ad-slot.ph strong, .socio.ph strong { color: var(--ink); }
.socio.ph { display: grid; gap: 4px; margin-top: 28px; }
.socio { margin-top: 28px; max-width: 760px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.socio p { margin: 0 0 8px; }
.socio-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.socio-t { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.cat-intro { margin: -6px 0 14px; color: var(--muted); max-width: 70ch; }
.mono { font-family: var(--font-mono); font-size: 13.5px; }
.brk { white-space: normal !important; overflow-wrap: anywhere; }
.small { font-size: 12px; }
textarea.area { width: 100%; font: inherit; font-family: var(--font-mono); font-size: 14.5px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px; resize: vertical; }
textarea.area:focus { outline: none; border-color: var(--sea); }
.reset-row { margin: 14px 0 0; }
.page-h1 { font-size: clamp(30px, 4.5vw, 44px); }
.appl-row.poe-row { grid-template-columns: minmax(0, 1fr) 110px 100px; margin-top: 8px; }
@media (max-width: 560px) { .appl-row.poe-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .appl-row.poe-row label { grid-column: 1 / -1; } .appl-row.poe-row .qty { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
/* En redes los resultados son direcciones: tipografía monoespaciada y más pequeña para que no se partan. */
.cat-redes .kpi-value { font-family: var(--font-mono); font-weight: 600; font-stretch: 100%; font-size: clamp(17px, 1.7vw, 21px); letter-spacing: -0.01em; }
table.data.left2 td:nth-child(2), table.data.left2 th:nth-child(2), table.data.left3 td:nth-child(3), table.data.left3 th:nth-child(3) { text-align: left; }

/* ---------- Casino: mesa de paño verde, naipes, fichas ---------- */
.game-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .game-grid { grid-template-columns: minmax(0, 1fr); } }
.aviso-juego { margin: 10px 0 0; display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--flame); background: var(--flame-tint); padding: 4px 10px; border-radius: 999px; }
.mesa { --felt: #0E4D36; --felt2: #0A3A29; --felt-ink: #F1ECDD; --felt-soft: rgb(241 236 221 / 0.75); --felt-line: rgb(236 230 210 / 0.25); --gold: #E3B54A;
  background: radial-gradient(120% 90% at 50% 0%, var(--felt) 0%, var(--felt2) 75%); color: var(--felt-ink); border-radius: calc(var(--radius) + 6px); padding: 20px; box-shadow: inset 0 0 0 2px rgb(0 0 0 / 0.15), var(--shadow); min-width: 0; display: grid; gap: 14px; }
.mesa .btn { background: var(--gold); color: #1D1606; }
.mesa .btn:disabled { opacity: 0.4; }
.mesa .btn-quiet, .mesa .btn-claro { background: transparent; color: var(--felt-ink); box-shadow: inset 0 0 0 1.5px var(--felt-line); }
.btn-sm { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.acciones { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.bj-zona { display: grid; gap: 8px; }
.bj-lbl { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--felt-soft); }
.bj-lbl strong { color: var(--gold); text-transform: none; letter-spacing: 0; }
.bj-msg { font-size: 16px; font-weight: 600; min-height: 1.5em; }
.bj-msg .win, .mesa .win { color: #7EE2A8; } .bj-msg .loss, .mesa .loss { color: #FF8A7A; }
.bj-mano { padding: 8px; border-radius: 12px; border: 1.5px solid transparent; display: grid; gap: 8px; }
.bj-mano.activa { border-color: var(--gold); background: rgb(0 0 0 / 0.12); }
.bj-apuesta { font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bj-apuesta strong { font-family: var(--font-mono); font-size: 18px; color: var(--gold); }
.naipes { display: flex; flex-wrap: wrap; gap: 8px; min-height: 92px; }
.naipe { width: 62px; height: 88px; border-radius: 8px; background: #fff; color: #10262D; display: grid; grid-template-rows: auto 1fr; padding: 5px 7px; box-shadow: 0 2px 6px rgb(0 0 0 / 0.35); font-family: var(--font-display); line-height: 1; }
.naipe b { font-size: 20px; font-weight: 800; }
.naipe i { font-style: normal; font-size: 30px; align-self: center; justify-self: center; }
.naipe.rojo { color: #C73A22; }
.naipe.tapa { background: repeating-linear-gradient(45deg, #7A1F14 0 6px, #9C2B1C 6px 12px); border: 3px solid #fff; }
@media (max-width: 420px) { .naipe { width: 50px; height: 72px; } .naipe b { font-size: 17px; } .naipe i { font-size: 24px; } .naipes { min-height: 76px; gap: 6px; } }
.chips-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chips-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--felt-soft); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ficha { width: 48px; height: 48px; border-radius: 50%; border: 4px dashed rgb(255 255 255 / 0.85); font: inherit; font-weight: 800; font-size: 14px; color: #fff; cursor: pointer; background: #555; box-shadow: 0 2px 5px rgb(0 0 0 / 0.35); }
.ficha.f1 { background: #EDE8DA; color: #10262D; border-color: #9a9483; } .ficha.f5 { background: #C23B2E; } .ficha.f25 { background: #148A5A; } .ficha.f100 { background: #17191C; }
.ficha.on { outline: 3px solid var(--gold); outline-offset: 2px; transform: translateY(-2px); }
.hint-line { margin: 0; font-size: 14.5px; } .hint-line.claro, .mesa .hint-line { color: var(--felt-soft); }
.hint-line strong { color: var(--gold); }
.check-claro { color: var(--felt-soft); font-size: 14px; }
.check-claro input { accent-color: var(--gold); }
.sel-claro { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--felt-soft); }
.sel-claro select { font: inherit; font-size: 15px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--felt-line); background: rgb(0 0 0 / 0.25); color: var(--felt-ink); }
.mesa .table-scroll { border-color: var(--felt-line); }
.mesa table.data { min-width: 0; }
.mesa table.data th { background: rgb(0 0 0 / 0.2); color: var(--felt-soft); }
.mesa table.data td { border-color: var(--felt-line); color: var(--felt-ink); }
.mesa table.data tr.hl td { background: rgb(227 181 74 / 0.2); color: var(--felt-ink); }
.verdad .chart-box { margin-top: 6px; }
/* Tragamonedas */
.rodillos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px; background: #10262D; border-radius: 16px; box-shadow: inset 0 0 0 3px var(--gold); }
.rodillo { aspect-ratio: 1; background: #FBF8EF; border-radius: 10px; display: grid; place-items: center; }
.rodillo svg { width: 78%; height: 78%; }
/* Dados y áreas de apuesta */
.dados-tiro { display: flex; gap: 14px; justify-content: center; min-height: 90px; }
.dado { width: 84px; height: 84px; filter: drop-shadow(0 3px 5px rgb(0 0 0 / 0.4)); }
.cr-punto { margin: 0; text-align: center; color: var(--felt-soft); }
.cr-punto strong { color: var(--gold); font-size: 20px; }
.cr-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.cr-area { display: grid; gap: 4px; text-align: left; padding: 12px; border-radius: 12px; border: 1.5px solid var(--felt-line); background: rgb(0 0 0 / 0.15); color: var(--felt-ink); font: inherit; cursor: pointer; }
.cr-area:hover { border-color: var(--gold); }
.cr-area.con { border-color: var(--gold); background: rgb(227 181 74 / 0.14); }
.cr-area:disabled { opacity: 0.45; cursor: not-allowed; }
.cr-n { font-weight: 800; font-size: 16px; } .cr-s { font-size: 12.5px; color: var(--felt-soft); }
.cr-f { font-family: var(--font-mono); font-size: 18px; color: var(--gold); }
.bac-lados { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 520px) { .bac-lados { grid-template-columns: minmax(0, 1fr); } }
/* Video póker */
.vp-mano { justify-content: center; }
.vp-carta { background: none; border: 0; padding: 0; display: grid; justify-items: center; gap: 4px; cursor: pointer; color: var(--gold); font: inherit; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.vp-carta:disabled { cursor: default; }
.vp-carta.guardada .naipe { outline: 3px solid var(--gold); transform: translateY(-6px); }
.vp-g { min-height: 1.2em; }
/* Keno */
.keno-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.kn { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--felt-line); background: rgb(0 0 0 / 0.18); color: var(--felt-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 0; }
.kn.on { background: var(--gold); color: #1D1606; border-color: var(--gold); }
.kn.sale { box-shadow: inset 0 0 0 2px #fff; }
.kn.acierto { background: #7EE2A8; color: #0A3A29; }
@media (max-width: 420px) { .kn { font-size: 11px; border-radius: 6px; } .keno-grid { gap: 3px; } }
/* Tabla de estrategia básica */
.bs-table th, .bs-table td { text-align: center !important; padding: 6px 6px !important; }
.bs { font-weight: 800; font-size: 13px; display: inline-block; min-width: 1.6em; border-radius: 4px; }
td.bs, span.bs { color: #fff; }
.bs-pedir { background: #C73A22; } .bs-plantarse { background: #1E7A45; } .bs-doblar { background: #B7811A; } .bs-dividir { background: #2B5DA8; }
.bs-sec th { text-align: left !important; background: var(--sea-tint) !important; color: var(--ink) !important; }
@media (prefers-reduced-motion: reduce) { .ficha.on, .vp-carta.guardada .naipe { transform: none; } }

/* ---------- Cripto: monitores en vivo ---------- */
.monitor { display: grid; gap: 12px; }
.cx-barra { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.cx-vivo { width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); animation: cx-pulso 2s infinite; }
@keyframes cx-pulso { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.cx-demo { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--sea-tint); font-size: 14px; }
.cx-error { margin: 0; }
.cx-alerta { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--flame-tint); color: var(--ink); font-size: 14.5px; }
.cx-alerta strong { color: var(--flame); }
.cx-atrib { margin: 0; font-size: 13px; color: var(--muted); }
.cx-atrib a { color: var(--ink); font-weight: 600; }
.cx-filtro { max-width: 320px; display: grid; gap: 4px; }
.cx-filtro .lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.cx-tabla { min-width: 760px; }
.cx-tabla td { vertical-align: middle; }
.cx-moneda { display: flex; align-items: center; gap: 10px; text-align: left; white-space: normal; min-width: 170px; }
.cx-tabla th:nth-child(2), .cx-tabla td:nth-child(2) { text-align: left; }
.cx-moneda img, .cx-trend img { border-radius: 50%; flex: none; }
.cx-ini { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--sea-tint); color: var(--sea); font-size: 11px; font-weight: 800; }
.muted { color: var(--muted); font-weight: 500; }
.spark { width: 110px; height: 32px; display: block; margin-left: auto; }
.spark path { fill: none; stroke-width: 2; stroke-linejoin: round; }
.spark .s-up { stroke: var(--good); } .spark .s-down { stroke: var(--bad); }
.flash-up { animation: cx-up 1.6s ease-out; } .flash-down { animation: cx-down 1.6s ease-out; }
@keyframes cx-up { from { background: color-mix(in srgb, var(--good) 30%, transparent); } }
@keyframes cx-down { from { background: color-mix(in srgb, var(--bad) 30%, transparent); } }
.cx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.cx-token { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; background: var(--paper); min-width: 0; }
.cx-token header { display: flex; gap: 10px; align-items: flex-start; }
.cx-token h3 { font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.cx-token header p { margin: 2px 0 0; font-size: 13px; }
.cx-n { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 13px; }
.cx-token dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.cx-token dt { font-size: 12px; color: var(--muted); }
.cx-token dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.cx-riesgos { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; }
.cx-riesgos li { padding: 4px 8px; border-radius: 8px; }
.cx-riesgos .r-alto { background: var(--flame-tint); color: var(--bad); font-weight: 600; }
.cx-riesgos .r-medio { background: color-mix(in srgb, var(--gold) 16%, transparent); }
.cx-sin { margin: 0; font-size: 13px; color: var(--muted); }
.cx-link { margin: 0; font-size: 13.5px; } .cx-link a { color: var(--sea); font-weight: 700; }
.cx-trend { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: t; }
.cx-trend li { counter-increment: t; display: grid; grid-template-columns: 28px 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--paper); }
.cx-trend li::before { content: counter(t); font-weight: 800; color: var(--muted); }
.cx-trend .cx-ini { width: 32px; height: 32px; }
.cx-tp { display: grid; justify-items: end; font-variant-numeric: tabular-nums; font-weight: 700; }
@media (max-width: 520px) { .cx-trend li { grid-template-columns: 22px 32px minmax(0, 1fr); } .cx-tp { grid-column: 3; justify-items: start; } }
@media (prefers-reduced-motion: reduce) { .cx-vivo, .flash-up, .flash-down { animation: none; } }
