@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/bigshoulders-600.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-display: swap; font-weight: 800; src: url(fonts/bigshoulders-800.woff2) format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-display: swap; font-weight: 900; src: url(fonts/bigshoulders-900.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"); }

/* Mesa de ruleta americana: un solo ambiente oscuro de paño verde, a propósito.
   Layout: rueda y "la verdad en números" arriba; la mesa de apuestas a todo lo ancho; simulación y reglas abajo. */
:root {
  --felt: #0E4D36;
  --felt-deep: #0A3A29;
  --felt-line: rgb(236 230 210 / 0.28);
  --ink: #F1ECDD;
  --ink-soft: rgb(241 236 221 / 0.72);
  --red: #C23B2E;
  --black: #17191C;
  --green: #148A5A;
  --gold: #E3B54A;
  --gold-ink: #1D1606;
  --panel: rgb(5 26 18 / 0.55);
  --loss: #FF8A7A;
  --win: #7EE2A8;
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(120% 80% at 50% 0%, var(--felt) 0%, var(--felt-deep) 70%) fixed, var(--felt-deep); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.01em; margin: 0; text-wrap: balance; }
button { font: inherit; color: inherit; }

/* Encabezado */
.top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; padding-block: 22px 14px; }
.top h1 { font-size: clamp(34px, 6vw, 56px); line-height: 0.95; text-transform: uppercase; }
.top h1 span { color: var(--gold); }
.top p { margin: 6px 0 0; color: var(--ink-soft); max-width: 58ch; }
.bank { text-align: right; }
.bank-label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.bank-value { font-family: var(--font-display); font-weight: 900; font-size: clamp(34px, 5vw, 48px); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }

/* Rueda + verdad */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
.wheel-box { display: grid; justify-items: center; gap: 12px; min-width: 0; }
.wheel { width: min(100%, 360px); aspect-ratio: 1; position: relative; }
.wheel svg { width: 100%; height: 100%; display: block; }
#rotor { transform-origin: 160px 160px; }
.result { min-height: 52px; text-align: center; }
.result-num { font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1; }
.result-text { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; }
.pill { display: inline-block; min-width: 44px; padding: 2px 10px; border-radius: 999px; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.3; }
.c-red { background: var(--red); }
.c-black { background: var(--black); }
.c-green { background: var(--green); }

.truth { background: var(--panel); border: 1px solid var(--felt-line); border-radius: 18px; padding: 18px; display: grid; gap: 14px; min-width: 0; }
.truth h2 { font-size: 26px; text-transform: uppercase; }
.truth-sub { margin: -8px 0 0; color: var(--ink-soft); font-size: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { background: rgb(0 0 0 / 0.18); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.kpi-label { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.kpi-value { font-family: var(--font-mono); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.neg { color: var(--loss); }
.pos { color: var(--win); }
.chart { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-soft); }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.history { display: flex; flex-wrap: wrap; gap: 4px; min-height: 26px; }
.history span { font-family: var(--font-mono); font-size: 12px; font-weight: 600; min-width: 28px; text-align: center; padding: 3px 4px; border-radius: 6px; }
.truth-note { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.truth-note strong { color: var(--ink); }

/* Fichas y acciones */
.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 22px 12px; }
.chips { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chips-label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.chip { width: 50px; height: 50px; border-radius: 50%; border: 4px dashed rgb(255 255 255 / 0.65); font-family: var(--font-display); font-weight: 900; font-size: 18px; cursor: pointer; box-shadow: inset 0 0 0 3px rgb(0 0 0 / 0.25); transition: transform 0.12s ease; }
.chip[data-v="1"] { background: #E9E4D6; color: #1A1A1A; border-color: rgb(30 30 30 / 0.45); }
.chip[data-v="5"] { background: var(--red); }
.chip[data-v="25"] { background: #1F7A4D; }
.chip[data-v="100"] { background: var(--black); }
.chip[aria-pressed="true"] { transform: translateY(-4px); outline: 3px solid var(--gold); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--felt-line); background: rgb(0 0 0 / 0.2); font-weight: 700; cursor: pointer; }
.btn:hover { border-color: var(--ink); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-spin { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; padding-inline: 28px; }
.btn-spin:hover { filter: brightness(1.08); }
.msg { margin: 0; min-height: 22px; font-size: 14px; color: var(--ink-soft); }
.msg.warn { color: var(--gold); font-weight: 600; }

/* Mesa */
.table-wrap { padding: 10px; border-radius: 18px; background: rgb(0 0 0 / 0.16); border: 1px solid var(--felt-line); }
.board { display: grid; gap: 3px; }
.board.h { grid-template-columns: 1.2fr repeat(12, minmax(0, 1fr)) 1.2fr; grid-template-rows: repeat(6, 26px) 48px 48px; }
.board.v { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) repeat(6, minmax(0, 1.15fr)); grid-template-rows: 44px repeat(12, 36px) 44px; }
.cell { position: relative; border: 1.5px solid var(--felt-line); border-radius: 6px; background: transparent; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 19px; cursor: pointer; display: grid; place-items: center; padding: 0; min-width: 0; transition: filter 0.12s ease, box-shadow 0.2s ease; }
.cell:hover { filter: brightness(1.18); }
.cell.red { background: var(--red); border-color: rgb(255 255 255 / 0.18); }
.cell.black { background: var(--black); border-color: rgb(255 255 255 / 0.14); }
.cell.green { background: var(--green); border-color: rgb(255 255 255 / 0.2); }
.cell.out { font-family: var(--font-body); font-weight: 700; font-size: 13.5px; line-height: 1.1; text-align: center; }
.cell .diamond { display: inline-block; width: 18px; height: 18px; transform: rotate(45deg); border-radius: 3px; }
.cell.win { box-shadow: 0 0 0 3px var(--gold), 0 0 22px rgb(227 181 74 / 0.8); z-index: 1; }
.stake { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 28px; height: 28px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); border: 2px dashed rgb(0 0 0 / 0.35); font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; display: grid; place-items: center; pointer-events: none; box-shadow: 0 2px 6px rgb(0 0 0 / 0.4); }
.board-note { margin: 8px 2px 0; font-size: 12.5px; color: var(--ink-soft); }

/* Simulación y reglas */
.block { margin-top: 36px; display: grid; gap: 14px; }
.block h2 { font-size: clamp(26px, 4vw, 36px); text-transform: uppercase; }
.block > p { margin: -6px 0 0; color: var(--ink-soft); max-width: 70ch; }
.sim { background: var(--panel); border: 1px solid var(--felt-line); border-radius: 18px; padding: 18px; display: grid; gap: 12px; }
.sim-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.sim-row label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.sim-row select { font: inherit; color: var(--ink); background: rgb(0 0 0 / 0.3); border: 1.5px solid var(--felt-line); border-radius: 10px; padding: 8px 10px; }
.sim-out { display: grid; gap: 10px; }
.sim-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.1; text-wrap: balance; }
.bar { height: 14px; border-radius: 999px; background: rgb(255 138 122 / 0.35); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--win); }
.bar-legend { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-soft); }
.scroll { overflow-x: auto; border-radius: 14px; border: 1px solid var(--felt-line); }
table { width: 100%; border-collapse: collapse; min-width: 520px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--felt-line); }
th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); background: rgb(0 0 0 / 0.18); }
tr:last-child td { border-bottom: 0; }
.foot { margin-top: 40px; padding-block: 20px 36px; border-top: 1px solid var(--felt-line); font-size: 13.5px; color: var(--ink-soft); display: grid; gap: 6px; }
.foot strong { color: var(--ink); }

@media (max-width: 860px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .bank { text-align: left; }
}
@media (max-width: 520px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chip { width: 44px; height: 44px; font-size: 16px; }
  .cell { font-size: 16px; }
  .cell.out { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Barra, contenido y pie del sitio dentro de la página de la ruleta. */
a { color: inherit; }
:root { --surface: #0A3A29; --line: rgb(236 230 210 / 0.2); --muted: rgb(241 236 221 / 0.72); --sea: #E3B54A; --sea-tint: rgb(227 181 74 / 0.16); }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap, .site-footer .wrap, .mx-tail .wrap { max-width: 1120px; }
.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-word { font-family: var(--font-display); font-weight: 900; font-size: 26px; 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; } }
.mx-tail .content { max-width: 760px; padding-block: 34px 0; font-size: 16px; }
.mx-tail .content h2 { font-size: clamp(24px, 3vw, 30px); margin: 26px 0 8px; }
.mx-tail .content p { margin: 0 0 12px; }
.formula { font-family: var(--font-mono); background: var(--panel); 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: 26px; margin-bottom: 14px; }
.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(--panel); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.card:hover { border-color: var(--sea); }
.card h3 { font-size: 22px; line-height: 1.15; }
.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; }
.site-footer { margin-top: 56px; background: var(--surface); 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; }
.ad-slot { margin-block: 24px; min-height: 90px; }
.top { padding-top: 20px; }
.ad-slot.ph, .socio.ph { border: 2px dashed var(--line); border-radius: 14px; padding: 14px; color: var(--muted); }
