/* =========================================================================
   Animalitos 2026 — estilos del jugador (mobile-first).
   Look & feel portado del sistema "Jade Premium" de la web de referencia
   (animalitos-plataforma/apps/web/src/app/globals.css): mismos tokens,
   componentes y medidas, en CSS plano sin Tailwind.
   ========================================================================= */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/bricolage.woff2') format('woff2');
}

:root {
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s7: 32px; --s8: 48px;
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-full: 999px;
  --bg: #F4F7F5; --surface: #fff; --surface-2: #EDF2EF; --text: #0C1A17; --text-muted: #5A6B65;
  --primary: #0A7D4F; --primary-strong: #0EA96B; --gold: #B7791F; --gold-fill: #F2B705;
  --navy: #0E2A3B; --border: #DCE5E1; --on-gold: #0C1A17; --on-primary: #fff; --lose: #C0473B;
  --pending: #E8A317; --info: #2E7DB0;
  --sh-1: 0 1px 2px rgba(12, 26, 23, .07); --sh-2: 0 8px 22px rgba(12, 26, 23, .12);
  --sh-gold: 0 6px 18px rgba(242, 183, 5, .35); --ring: 0 0 0 3px rgba(14, 169, 107, .4);
  --font: 'Bricolage Grotesque', "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "Segoe UI Mono", "Roboto Mono", "Bricolage Grotesque", ui-monospace, monospace;   /* Android no trae mono buena: usa la de la marca */
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0A1518; --surface: #0F2027; --surface-2: #142A32; --text: #EAF3F0; --text-muted: #9FB3AC;
  --primary: #22C58A; --primary-strong: #12B981; --gold: #F5B301; --gold-fill: #F5B301;
  --navy: #0B1B25; --border: #20343C; --on-gold: #0B1220; --on-primary: #06231a; --lose: #E4685c;
  --pending: #F0B429; --info: #58A6D8;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .4); --sh-2: 0 10px 26px rgba(0, 0, 0, .55);
  --sh-gold: 0 6px 20px rgba(245, 179, 1, .26); --ring: 0 0 0 3px rgba(34, 197, 138, .45);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1518; --surface: #0F2027; --surface-2: #142A32; --text: #EAF3F0; --text-muted: #9FB3AC;
    --primary: #22C58A; --primary-strong: #12B981; --gold: #F5B301; --gold-fill: #F5B301;
    --navy: #0B1B25; --border: #20343C; --on-gold: #0B1220; --on-primary: #06231a; --lose: #E4685c;
    --pending: #F0B429; --info: #58A6D8;
    --sh-1: 0 1px 2px rgba(0, 0, 0, .4); --sh-2: 0 10px 26px rgba(0, 0, 0, .55);
    --sh-gold: 0 6px 20px rgba(245, 179, 1, .26); --ring: 0 0 0 3px rgba(34, 197, 138, .45);
    color-scheme: dark;
  }
}

/* ---- reset mínimo (equivale al preflight de Tailwind) ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { -webkit-text-size-adjust: 100%; }
html, body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  -webkit-font-smoothing: antialiased; line-height: 1.5;
}
body { min-height: 100vh; }
img, svg { display: block; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 10px; }
.tnum { font-variant-numeric: tabular-nums; }
svg { stroke-width: 1.75; }
.ic { width: 18px; height: 18px; flex: none; }
.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.shell { max-width: 920px; margin: 0 auto; padding: 0 var(--s4); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: 15px; padding: 12px 20px; border-radius: var(--r-md);
  transition: transform .12s, filter .15s, background .15s; min-height: 46px; border: none; background: none; color: inherit;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-gold { background: var(--gold-fill); color: var(--on-gold); box-shadow: var(--sh-gold); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-primary { background: var(--primary-strong); color: var(--on-primary); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost:hover { background: var(--border); }
.btn-danger { background: color-mix(in srgb, var(--lose) 14%, transparent); color: var(--lose); }
.btn-block { width: 100%; }

/* ---- logotipo de marca ---- */
.brandlogo { display: inline-flex; align-items: center; padding-inline: calc(var(--logo-h, 36px) * .18); }
.brandlogo img { display: block; height: var(--logo-h, 36px); width: auto; user-select: none; -webkit-user-drag: none; }
.brandlogo.bl-auto .bl-reverse { display: none; }
:root[data-theme="dark"] .brandlogo.bl-auto .bl-primary { display: none; }
:root[data-theme="dark"] .brandlogo.bl-auto .bl-reverse { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brandlogo.bl-auto .bl-primary { display: none; }
  :root:not([data-theme="light"]) .brandlogo.bl-auto .bl-reverse { display: block; }
}

/* ---- topbar (navy) ---- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; padding-top: env(safe-area-inset-top); }   /* iPhone con la app web instalada: debajo del notch */
.topbar-in { max-width: 920px; margin: 0 auto; padding: 12px var(--s4); display: flex; align-items: center; gap: var(--s3); min-height: 64px; }
.topbar h1 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.back { width: 40px; height: 40px; border-radius: var(--r-full); display: grid; place-items: center; color: #fff; transition: background .15s; border: none; background: none; flex: none; }
.back:hover { background: rgba(255, 255, 255, .12); }
.back svg { width: 22px; height: 22px; }
.gsel { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; max-width: 230px; }
.gsel label { font-size: 11px; color: #bfe6d6; font-weight: 600; }
.gsel select { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px; padding: 5px 8px; font-weight: 800; font-size: 15px; letter-spacing: -.01em; min-width: 0; width: 100%; text-overflow: ellipsis; }
.gsel select option { color: #0C1A17; }
.balance-pill { margin-left: auto; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .1); padding: 7px 12px; border-radius: var(--r-full); font-weight: 700; font-size: 14px; color: #fff; border: none; white-space: nowrap; flex: none; }
.balance-pill svg { width: 16px; height: 16px; color: var(--gold-fill); }
.balance-pill .chev { width: 14px; height: 14px; color: #bfe6d6; }
.theme { width: 40px; height: 40px; border-radius: var(--r-full); display: grid; place-items: center; color: #fff; border: none; background: none; flex: none; }
.theme:hover { background: rgba(255, 255, 255, .12); }
.theme svg { width: 20px; height: 20px; }

/* ---- pantalla de juego ---- */
.closing { position: sticky; top: calc(64px + env(safe-area-inset-top)); z-index: 15; margin-top: var(--s3); display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, var(--navy), #0a3f4a); color: #fff; border-radius: var(--r-md); padding: 12px var(--s4); box-shadow: var(--sh-2); }
.closing svg { width: 20px; height: 20px; color: var(--gold-fill); flex: none; }
.closing .t { font-family: var(--mono); font-weight: 800; font-size: 22px; }
.closing .txt { font-size: 13px; line-height: 1.3; }
.closing .txt b { color: var(--gold-fill); }
.closing.warn .t { color: #ffd3cd; }
.type-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.type-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-full); background: var(--primary); color: #fff; font-weight: 800; font-size: 14px; }
.type-badge svg { width: 18px; height: 18px; }
.lot-logo { height: 40px; width: auto; max-width: 120px; object-fit: contain; margin-left: auto; }
.hint { font-size: 13px; color: var(--text-muted); margin-top: var(--s3); display: flex; align-items: center; gap: 7px; }
.hint svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.hint > span { display: block; min-width: 0; }
.hint > span b { display: inline; color: var(--text); }
.hours { display: flex; gap: var(--s2); overflow-x: auto; padding: var(--s4) 0 var(--s2); scroll-snap-type: x mandatory; scrollbar-width: none; }
.hours::-webkit-scrollbar { display: none; }
.hour { scroll-snap-align: start; flex: none; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-full); padding: 9px 15px; font-weight: 700; font-size: 14px; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; min-width: 74px; transition: all .15s; line-height: 1.35; }
.hour small { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.hour[aria-pressed="true"] { background: var(--primary-strong); border-color: var(--primary-strong); color: #fff; }
.hour.past { opacity: .4; text-decoration: line-through; }
.searchbar { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 11px 14px; margin-top: var(--s3); box-shadow: var(--sh-1); }
.searchbar svg { width: 18px; height: 18px; color: var(--text-muted); flex: none; }
.searchbar input { border: none; background: none; outline: none; color: var(--text); font-size: 15px; width: 100%; min-width: 0; }
.count-badge { font-size: 12px; font-weight: 700; color: var(--primary); background: color-mix(in srgb, var(--primary-strong) 12%, transparent); padding: 4px 10px; border-radius: var(--r-full); white-space: nowrap; }
.amtcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s3); margin-top: var(--s3); box-shadow: var(--sh-1); overflow: hidden; }
.amtcard.pop { animation: pop .28s ease-out; }
@keyframes pop { from { transform: translateY(-8px); opacity: .4; } to { transform: none; opacity: 1; } }
.amtcard .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.amtcard .lbl svg { width: 15px; height: 15px; color: var(--primary); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); background: var(--surface-2); border-radius: var(--r-full); padding: 9px 15px; font-weight: 700; font-size: 14px; transition: all .15s; min-height: 42px; color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--primary); }
.chip[aria-pressed="true"] { background: var(--primary-strong); border-color: var(--primary-strong); color: #fff; }
.chip input { width: 70px; border: none; background: transparent; color: inherit; font: inherit; outline: none; }
.chip input::placeholder { color: rgba(255, 255, 255, .75); }
.quick { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.qbtn { border: 1px solid var(--border); background: transparent; border-radius: var(--r-sm); padding: 8px 12px; font-weight: 700; font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.qbtn:hover { background: var(--surface-2); }
.qbtn svg { width: 15px; height: 15px; color: var(--primary); }
.qbtn.clear { margin-left: auto; color: var(--lose); }
.qbtn.clear svg { color: var(--lose); }
.grid-an { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: var(--s4); padding-bottom: var(--s4); }
.an { position: relative; background: var(--surface); border: 2px solid var(--border); border-radius: var(--r-md); padding: 8px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .12s, border-color .15s, box-shadow .15s; text-align: center; color: inherit; min-width: 0; }
.an:hover { border-color: var(--primary); box-shadow: var(--sh-1); }
.an:active { transform: scale(.95); }
.an img, .an .ph { width: 50px; height: 50px; object-fit: contain; border-radius: 8px; }
.an .ph, .fig.ph { display: grid; place-items: center; background: var(--surface-2); color: var(--text-muted); font-family: var(--mono); font-weight: 800; font-size: 18px; }
.an .num { font-family: var(--mono); font-weight: 800; font-size: 15px; line-height: 1; }
.an .nm { font-size: 11px; color: var(--text-muted); font-weight: 600; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an[aria-pressed="true"] { border-color: var(--primary-strong); background: color-mix(in srgb, var(--primary-strong) 9%, var(--surface)); }
.an .badge { position: absolute; top: -8px; right: -8px; background: var(--gold-fill); color: var(--on-gold); font-family: var(--mono); font-weight: 800; font-size: 13px; min-width: 26px; height: 26px; border: 2px solid #fff; border-radius: var(--r-full); display: none; align-items: center; justify-content: center; padding: 0 6px; box-shadow: var(--sh-1); }
.an[aria-pressed="true"] .badge { display: flex; }
.an .check { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-strong); color: #fff; display: none; align-items: center; justify-content: center; }
.an .check svg { width: 12px; height: 12px; }
.an[aria-pressed="true"] .check { display: flex; }
.an .incart { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-fill); }
.grid-an.is-closed .an { opacity: .45; pointer-events: none; }
.grid-an.is-closed .an .nm, .grid-an.is-closed .an .num { text-decoration: line-through; }

/* ---- cart bar (fija abajo) ---- */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(12, 26, 23, .12); padding: 12px var(--s4) calc(12px + env(safe-area-inset-bottom)); }
.cartbar-in { max-width: 920px; margin: 0 auto; display: flex; align-items: center; gap: var(--s3); }
.cart-sum { display: flex; flex-direction: column; min-width: 0; }
.cart-sum .n { font-size: 13px; color: var(--text-muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-sum .tot { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.cart-actions { margin-left: auto; display: flex; gap: 8px; flex: none; }
.cart-btn { position: relative; }
.cart-btn .cnt { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-full); background: var(--primary-strong); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.has-cartbar { padding-bottom: 104px; }

/* ---- cards / rows ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-1); padding: var(--s5); }
.row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px var(--s4); box-shadow: var(--sh-1); }
.row + .row { margin-top: 10px; }
.row .fig { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: var(--surface-2); padding: 5px; flex: none; }
.row .fig.ph { padding: 0; font-size: 15px; }
.row .main { min-width: 0; flex: 1; }
.row .title { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.row .sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.row.closed { opacity: .6; }
.row .amt-in { display: flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px 10px; }
.row .amt-in:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.row .amt-in span { color: var(--text-muted); font-weight: 700; font-size: 13px; }
.row .amt-in input { width: 58px; border: none; background: none; outline: none; color: var(--text); font-size: 15px; font-weight: 700; }
.row .del { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--lose); background: var(--surface-2); border: none; flex: none; }
.row .del svg { width: 16px; height: 16px; }
.row-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.group-h { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; margin: var(--s5) 0 var(--s2); display: flex; align-items: center; gap: 8px; }
.group-h:first-child { margin-top: var(--s4); }
.group-h .cd { margin-left: auto; font-family: var(--mono); color: var(--gold); }
.tag-st { display: inline-flex; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: var(--r-full); margin-left: 6px; vertical-align: middle; }
.tag-closed { background: color-mix(in srgb, var(--lose) 15%, transparent); color: var(--lose); }

/* ---- alertas ---- */
.alert { border-radius: var(--r-md); padding: 12px var(--s4); font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert-error { background: color-mix(in srgb, var(--lose) 12%, var(--surface)); color: var(--lose); border: 1px solid color-mix(in srgb, var(--lose) 30%, var(--border)); }
.alert-warn { background: color-mix(in srgb, var(--pending) 14%, var(--surface)); color: var(--text); border: 1px solid color-mix(in srgb, var(--pending) 40%, var(--border)); }
.alert-warn svg { color: var(--pending); }
.alert ul { margin: 6px 0 0 18px; font-weight: 500; }

/* ---- recibo ---- */
.receipt { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden; }
.receipt .rhead { background: linear-gradient(135deg, var(--navy), #0a5b52); color: #fff; padding: var(--s5); text-align: center; }
.receipt .rhead .chk { width: 54px; height: 54px; border-radius: 50%; background: var(--primary-strong); display: grid; place-items: center; margin: 0 auto 10px; }
.receipt .rhead .chk svg { width: 30px; height: 30px; color: #fff; }
.receipt .rhead.partial .chk { background: var(--pending); }
.receipt .rhead h2 { font-size: 22px; font-weight: 800; }
.receipt .rhead p { color: #cfe3db; margin-top: 4px; font-size: 14px; }
.receipt .rbody { padding: var(--s5); }
.receipt .line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.receipt .line:last-child { border-bottom: none; }
.receipt .line .lbl { color: var(--text-muted); min-width: 0; }
.receipt .line .lbl b { color: var(--text); }
.receipt .line .val { font-weight: 700; font-family: var(--mono); text-align: right; white-space: nowrap; }
.receipt .line .val s { color: var(--text-muted); font-weight: 500; margin-right: 6px; }
.receipt .line small { display: block; color: var(--pending); font-size: 12px; font-weight: 700; }
.receipt .total { display: flex; justify-content: space-between; margin-top: var(--s4); padding-top: var(--s4); border-top: 2px solid var(--border); font-size: 18px; font-weight: 800; }
.receipt .sec-t { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; margin-top: var(--s4); }

/* ---- formularios ---- */
.field { margin-top: var(--s4); }
.field label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; margin-bottom: 6px; }
.field .in { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px var(--s4); box-shadow: var(--sh-1); }
.field .in:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.field .in.bad { border-color: var(--lose); }
.field .in svg { width: 18px; height: 18px; color: var(--text-muted); flex: none; }
.field .in.in-ced { padding-left: 6px; }
/* Cédula: tipo (V/E/J) en su propia lista, el número aparte. */
.field .in-ced select { flex: none; width: 58px; padding: 6px 18px 6px 10px; border: 0; border-radius: 10px; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23889' stroke-width='2.5'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 4px center / 14px; color: var(--text); font: inherit; font-weight: 800; font-size: 16px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.field .in-ced input { flex: 1; min-width: 0; letter-spacing: .02em; }
.field input { border: none; background: none; outline: none; color: var(--text); font-size: 15px; width: 100%; min-width: 0; }
.field input::placeholder { color: var(--text-muted); }
.field .in input:focus-visible, .field .in select:focus-visible, .field .in textarea:focus-visible { box-shadow: none; }   /* el foco lo marca el recuadro (.in:focus-within) */
.field .err, .form-err { font-size: 12px; color: var(--lose); margin-top: 6px; font-weight: 700; }
.form-err { font-size: 14px; margin-top: 16px; }
.eye { border: none; background: none; color: var(--text-muted); display: grid; place-items: center; width: 24px; height: 22px; flex: none; }

/* ---- sheet / backdrop ---- */
.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 45; animation: fade .18s ease-out; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--sh-2); max-height: 86vh; overflow-y: auto; padding: var(--s5) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; animation: up .22s ease-out; }
.sheet .handle { width: 44px; height: 5px; border-radius: 99px; background: var(--border); margin: 0 auto var(--s4); }
.sheet h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; text-align: center; }
.sheet .sub { text-align: center; color: var(--text-muted); font-size: 14px; margin-top: 4px; }
.sheet .acts { display: flex; gap: 10px; margin-top: var(--s5); }
.sheet .acts .btn { flex: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: .5; } }
.sumline { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.sumline:last-of-type { border-bottom: none; }
.sumline span:first-child { color: var(--text-muted); }
.sumline b { font-family: var(--mono); }
.sumline.big { font-size: 18px; font-weight: 800; border-top: 2px solid var(--border); border-bottom: none; margin-top: 6px; padding-top: 12px; }
.sumline.big span:first-child { color: var(--text); }
.moneda { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px var(--s4); border: 2px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.moneda + .moneda { margin-top: 8px; }
.moneda[aria-pressed="true"] { border-color: var(--primary-strong); background: color-mix(in srgb, var(--primary-strong) 9%, var(--surface)); }
.moneda .iso { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; font-size: 13px; flex: none; }
.moneda .main { flex: 1; min-width: 0; }
.moneda .t { font-weight: 800; }
.moneda .s { font-size: 12.5px; color: var(--text-muted); }
.moneda .v { font-family: var(--mono); font-weight: 800; }
.menu-list { margin-top: var(--s4); display: flex; flex-direction: column; gap: 8px; }
.user-h { display: flex; align-items: center; gap: 12px; }
.user-h .av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(140deg, var(--navy), var(--primary)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.user-h .t { font-weight: 800; font-size: 17px; }
.user-h .s { font-size: 13px; color: var(--text-muted); }

/* ---- estados ---- */
.hide { display: none !important; }
.empty-state { text-align: center; color: var(--text-muted); padding: var(--s8) var(--s4); }
.empty-state svg { width: 46px; height: 46px; margin: 0 auto var(--s3); color: var(--text-muted); opacity: .6; }
.empty-state .t { font-weight: 800; font-size: 16px; color: var(--text); }
.empty-state p { margin-top: 4px; }
.empty-state .btn { margin-top: 16px; }
.empty-state .btn svg { width: 18px; height: 18px; margin: 0; opacity: 1; color: inherit; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; border-radius: var(--r-md); animation: sk 1.2s infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.pulse { animation: pl 1s infinite; }
@keyframes pl { 50% { opacity: .55; } }
.stack > * + * { margin-top: 10px; }
.toast { position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-full); font-size: 14px; font-weight: 700; box-shadow: var(--sh-2); max-width: calc(100vw - 32px); text-align: center; animation: up .2s ease-out; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }


/* =========================================================================
   Fase 2: navegación inferior, inicio, tickets, resultados, billetera,
   recarga/retiro, notificaciones y sin conexión (look de la web de referencia).
   ========================================================================= */
.btn-sm { padding: 9px 16px; font-size: 14px; min-height: 40px; }
.btn-ghost-line { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.btn-ghost-line:hover { background: rgba(255, 255, 255, .1); }
.link { color: var(--primary); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; background: none; border: none; }
.link svg { width: 16px; height: 16px; }

/* ---- topbar: marca + campana ---- */
.topbar .tb-acts { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topbar .tb-acts .balance-pill { margin-left: 0; }
.bell { position: relative; width: 40px; height: 40px; border-radius: var(--r-full); display: grid; place-items: center; color: #fff; flex: none; }
.bell:hover { background: rgba(255, 255, 255, .12); }
.bell svg { width: 21px; height: 21px; }
.bell .dot { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-full); background: var(--gold-fill); color: var(--on-gold); font-size: 11px; font-weight: 800; display: grid; place-items: center; }

/* ---- navegación inferior ---- */
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--surface); border-top: 1px solid var(--border); display: flex; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); height: calc(62px + env(safe-area-inset-bottom)); }
.bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-muted); font-size: 11px; font-weight: 700; border-radius: 12px; }
.bnav a svg { width: 22px; height: 22px; }
.bnav a[aria-current="page"] { color: var(--primary); }
.has-bnav { padding-bottom: 84px; }
body.con-bnav .cartbar { bottom: calc(62px + env(safe-area-inset-bottom)); padding-bottom: 12px; box-shadow: 0 -6px 18px rgba(12, 26, 23, .10); }
body.con-bnav .has-cartbar { padding-bottom: 170px; }
body.con-bnav .toast { bottom: calc(160px + env(safe-area-inset-bottom)); }

/* ---- secciones ---- */
.sec { padding: var(--s6) 0 0; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: var(--s4); gap: var(--s4); }
.sec-h h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.sec-h p { color: var(--text-muted); font-size: 14px; margin-top: 2px; }

/* ---- inicio: hero + próximo sorteo ---- */
.hero { position: relative; overflow: hidden; background: linear-gradient(150deg, #0B1B25, #0a3f4a 60%, #0a5b52); }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(245, 179, 1, .22), transparent 70%); pointer-events: none; }
.hero-in { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: var(--s6) var(--s4) var(--s6); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .1); color: #bfe6d6; font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: var(--r-full); }
.eyebrow svg { width: 15px; height: 15px; color: var(--gold-fill); }
.hero h1 { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: var(--s4); max-width: 16ch; }
.hero h1 em { color: var(--gold-fill); font-style: normal; }
.hero p { color: #cfe3db; font-size: 15px; margin-top: var(--s3); max-width: 46ch; }
.hero-cta { display: flex; gap: 10px; margin-top: var(--s5); flex-wrap: wrap; }
.hero-cta .btn { flex: 1 1 140px; }
.herocard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden; margin-top: var(--s5); color: var(--text); }
.nextdraw { padding: var(--s4); display: flex; align-items: center; gap: var(--s3); width: 100%; text-align: left; }
.nextdraw .fig { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; background: var(--surface-2); padding: 6px; flex: none; }
.nextdraw .fig.ph { display: grid; place-items: center; color: var(--primary); }
.nextdraw .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; }
.nextdraw .g { font-weight: 800; font-size: 15px; line-height: 1.25; }
.nextdraw .cd { margin-left: auto; text-align: right; flex: none; }
.nextdraw .cd .t { font-family: var(--mono); font-weight: 800; font-size: 22px; color: var(--gold); }
.nextdraw .cd small { font-size: 11px; color: var(--text-muted); display: block; }

/* ---- tarjetas de lotería ---- */
.ggrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 560px) { .ggrid { grid-template-columns: repeat(3, 1fr); } }
.gcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-1); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; text-align: left; color: inherit; width: 100%; }
.gcard:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.gcard .logo { aspect-ratio: 16/10; background: linear-gradient(160deg, var(--surface-2), color-mix(in srgb, var(--navy) 12%, var(--surface-2))); display: grid; place-items: center; padding: 14px; position: relative; }
.gcard .logo img { max-height: 100%; max-width: 88%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.gcard .logo .nm-ph { font-weight: 800; font-size: 16px; text-align: center; color: var(--text); }
.gcard .live { position: absolute; top: 8px; left: 8px; background: rgba(9, 20, 15, .55); color: #fff; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: var(--r-full); display: flex; align-items: center; gap: 5px; text-transform: uppercase; letter-spacing: .04em; }
.gcard .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary-strong); }
.gcard .live.off i { background: var(--lose); }
.gcard .gb { padding: 10px var(--s3) var(--s3); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gcard .gn { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.gcard .gm { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 12.5px; }
.gcard .gm svg { width: 14px; height: 14px; color: var(--gold); }
.gcard .gcta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 10px; }
.gcard .gcta .t { font-family: var(--mono); font-weight: 800; }
.gcard .gcta .go { color: var(--primary); font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 2px; }
.gcard .gcta .go svg { width: 15px; height: 15px; }
.gcard.is-off { opacity: .6; }

/* ---- resultados recientes ---- */
.winners { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { .winners { grid-template-columns: repeat(2, 1fr); } }
.winner { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px var(--s4); box-shadow: var(--sh-1); }
.winner .fig { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: var(--surface-2); padding: 4px; flex: none; }
.winner .fig.ph { padding: 0; font-size: 14px; }
.winner .u { font-weight: 800; font-size: 14px; }
.winner .g { font-size: 12px; color: var(--text-muted); }
.winner .amt { margin-left: auto; font-weight: 800; color: var(--gold); font-family: var(--mono); font-size: 18px; }
.foot { padding: var(--s7) 0 var(--s4); color: var(--text-muted); font-size: 13px; text-align: center; }
.foot .plus18 { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); padding: 5px 12px; border-radius: var(--r-full); font-weight: 700; }
.foot .plus18 svg { width: 14px; height: 14px; }

/* ---- filtros ---- */
.seg { display: flex; gap: 4px; background: var(--surface-2); border-radius: var(--r-full); padding: 4px; }
.seg button { flex: 1; padding: 8px 4px; border-radius: var(--r-full); font-weight: 700; font-size: 13.5px; color: var(--text-muted); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--sh-1); }
.chiprow { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.chiprow::-webkit-scrollbar { display: none; }
.chiprow .hour { min-width: auto; flex-direction: row; gap: 6px; padding: 8px 14px; }
.datebar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.datebar label { display: grid; gap: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; }
.inp { width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-size: 15px; color: var(--text); box-shadow: var(--sh-1); }
.inp:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
textarea.inp { resize: vertical; min-height: 70px; }
.filtros { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }

/* ---- estados ---- */
.badge-st { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: var(--r-full); white-space: nowrap; }
.badge-st svg { width: 13px; height: 13px; }
.badge-pending { background: color-mix(in srgb, var(--pending) 18%, transparent); color: var(--pending); }
.badge-won { background: var(--gold-fill); color: var(--on-gold); }
.badge-lost { background: color-mix(in srgb, var(--lose) 15%, transparent); color: var(--lose); }
.badge-void { background: var(--surface-2); color: var(--text-muted); }
.badge-ok { background: color-mix(in srgb, var(--primary-strong) 15%, transparent); color: var(--primary); }

/* ---- tickets ---- */
.tk { padding: 0; overflow: hidden; }
.tk-h { width: 100%; text-align: left; padding: 14px var(--s4); display: flex; align-items: center; gap: 12px; color: inherit; }
.tk-h .main { flex: 1; min-width: 0; }
.tk-h .title { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-h .sub { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tk-h .serial { font-weight: 800; color: var(--primary); background: color-mix(in srgb, var(--primary-strong) 12%, transparent); padding: 1px 8px; border-radius: 8px; font-family: var(--mono); font-size: 12px; }
.tk-h .side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.tk-h .side .v { font-weight: 800; font-family: var(--mono); }
.tk-h .premio { font-weight: 800; font-family: var(--mono); color: var(--gold); font-size: 13px; }
.tk-h .chev { width: 18px; height: 18px; color: var(--text-muted); transition: transform .15s; flex: none; }
.tk-h[aria-expanded="true"] .chev { transform: rotate(180deg); }
.tk-b { border-top: 1px solid var(--border); padding: 4px var(--s4) 14px; }
.tk-it { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.tk-it:last-child { border-bottom: none; }
.tk-it .fig { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; background: var(--surface-2); padding: 4px; flex: none; }
.tk-it .fig.ph { padding: 0; font-size: 14px; }
.tk-it .main { flex: 1; min-width: 0; }
.tk-it .t { font-weight: 800; font-size: 14px; }
.tk-it .s { font-size: 12px; color: var(--text-muted); }
.tk-it .r { text-align: right; flex: none; font-family: var(--mono); font-size: 13px; }
.tk-it .r b { display: block; font-size: 14px; }
.tk-it.win { background: color-mix(in srgb, var(--gold-fill) 10%, transparent); border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.tk-it .won { color: var(--gold); font-weight: 800; }
.tk-it small { display: block; font-family: var(--font); font-size: 11px; color: var(--text-muted); font-weight: 700; }

/* ---- resultados ---- */
.res-grid { list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.res-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-1); padding: 10px 8px; text-align: center; }
.res-card .fig { width: 60px; height: 60px; object-fit: contain; margin: 0 auto 6px; border-radius: 12px; }
.res-card .fig.ph { display: grid; place-items: center; background: var(--surface-2); color: var(--text-muted); font-family: var(--mono); font-weight: 800; font-size: 18px; }
.res-card .an-n { font-weight: 800; font-size: 14px; line-height: 1.2; }
.res-card .num { display: inline-block; margin-top: 4px; }
.res-card .h { margin-top: 4px; display: flex; gap: 4px; align-items: center; justify-content: center; color: var(--text-muted); font-size: 12px; }
.res-card .h svg { width: 13px; height: 13px; }
.res-card.pend { opacity: .7; }
.res-card.pend .fig { display: grid; place-items: center; background: var(--surface-2); color: var(--text-muted); }
.res-card.pend .fig svg { width: 24px; height: 24px; }
.lot-h { display: flex; align-items: center; gap: 10px; margin: var(--s5) 0 var(--s3); }
.lot-h img { height: 34px; width: auto; max-width: 90px; object-fit: contain; }
.lot-h .n { font-weight: 800; font-size: 17px; }
.lot-h .c { margin-left: auto; }

/* ---- billetera ---- */
.balcard { background: linear-gradient(135deg, var(--navy), #0a5b52); color: #fff; border-radius: var(--r-lg); padding: var(--s6) var(--s5); position: relative; overflow: hidden; box-shadow: var(--sh-2); }
.balcard::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(245, 179, 1, .18), transparent 70%); pointer-events: none; }
.balcard .k { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #bfe6d6; font-weight: 700; position: relative; }
.balcard .big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; font-family: var(--mono); margin-top: 4px; position: relative; word-break: break-all; }
.balcard .bon { font-size: 13px; color: #cfe3db; position: relative; }
.balcard .cur { display: inline-flex; gap: 6px; margin-top: 12px; position: relative; flex-wrap: wrap; }
.balcard .cur .c { background: rgba(255, 255, 255, .12); padding: 5px 12px; border-radius: var(--r-full); font-weight: 700; font-size: 13px; color: #fff; }
.balcard .cur .c[aria-pressed="true"] { background: var(--gold-fill); color: var(--on-gold); }
.balcard .acts { display: flex; gap: 10px; margin-top: var(--s5); position: relative; }
.balcard .acts .btn { flex: 1; }
.row .amt { margin-left: auto; font-weight: 800; font-family: var(--mono); text-align: right; white-space: nowrap; }
.row .amt.pos { color: var(--primary); }
.row .amt.neg { color: var(--text); }
.row .amt small { display: block; font-family: var(--font); font-size: 11px; color: var(--text-muted); font-weight: 600; }
.row .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; flex: none; color: var(--text-muted); }
.row .ico svg { width: 20px; height: 20px; }
.row .ico.pos { color: var(--primary); background: color-mix(in srgb, var(--primary-strong) 12%, transparent); }
.row .ico.win { color: var(--on-gold); background: var(--gold-fill); }
.pref { display: flex; align-items: center; gap: 12px; padding: 14px var(--s4); width: 100%; text-align: left; color: inherit; }
.pref + .pref { border-top: 1px solid var(--border); }
.pref .main { min-width: 0; flex: 1; }
.pref .title { font-weight: 700; font-size: 15px; }
.pref .sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.pref > svg { width: 20px; height: 20px; color: var(--text-muted); flex: none; }

/* ---- recargar / retirar ---- */
.tag { display: inline-flex; align-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); font-weight: 800; font-size: 11px; letter-spacing: .04em; padding: 3px 9px; border-radius: var(--r-full); white-space: nowrap; }
.method-card { display: block; width: 100%; text-align: left; border-radius: var(--r-lg); color: inherit; }
button.method-card { transition: transform .18s, box-shadow .18s, border-color .18s; }
button.method-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: color-mix(in srgb, var(--primary-strong) 45%, var(--border)); }
.method-card[aria-pressed="true"] { border-color: var(--primary-strong); box-shadow: var(--ring); }
.method-card__head { display: flex; align-items: center; gap: 14px; }
.method-card__head .main { min-width: 0; flex: 1; }
.method-card__icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--primary-strong) 15%, transparent); color: var(--primary); }
.method-card__icon svg { width: 24px; height: 24px; }
.method-card__title { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.method-card__sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.copyline { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.copyline:last-child { border-bottom: none; }
.copyline .l { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.copyline .v { font-weight: 700; font-family: var(--mono); word-break: break-all; }
.copyline button { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--primary); flex: none; }
.copyline button svg { width: 16px; height: 16px; }
.field select, .field textarea { border: none; background: none; outline: none; color: var(--text); font-size: 15px; width: 100%; min-width: 0; }
.field select option { color: #0C1A17; }
.field .hintline { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.alert-ok { background: color-mix(in srgb, var(--primary-strong) 12%, var(--surface)); color: var(--text); border: 1px solid color-mix(in srgb, var(--primary-strong) 35%, var(--border)); }
.alert-ok svg { color: var(--primary); }
.codebox { text-align: center; padding: var(--s5); border: 2px dashed var(--gold); border-radius: var(--r-md); margin-top: var(--s4); }
.codebox .v { font-family: var(--mono); font-weight: 800; font-size: 26px; letter-spacing: .06em; color: var(--gold); margin-top: 4px; }

/* ---- comprobante de depósito ---- */
.recibo-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 2px dashed var(--border); border-radius: var(--r-md); padding: 14px; background: var(--surface); cursor: pointer; text-align: center; }
.recibo-in:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.recibo-in img { max-height: 180px; max-width: 100%; border-radius: 10px; object-fit: contain; }
.recibo-ph { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-muted); font-size: 14px; font-weight: 600; }
.recibo-ph svg { width: 28px; height: 28px; color: var(--primary); }
.recibo-nm { font-size: 12px; color: var(--text-muted); word-break: break-all; }

/* ---- notificaciones ---- */
.msg { padding: var(--s4); }
.msg + .msg { margin-top: 10px; }
.msg .mh { display: flex; align-items: flex-start; gap: 12px; }
.msg .mi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary-strong) 14%, transparent); color: var(--primary); flex: none; }
.msg .mi svg { width: 20px; height: 20px; }
.msg .mt { font-weight: 800; font-size: 15px; }
.msg .mf { font-size: 12px; color: var(--text-muted); }
.msg .mc { margin-top: 8px; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.msg .ma { margin-top: 12px; display: flex; justify-content: flex-end; }

/* ---- sin conexión ---- */
.offbar { position: fixed; top: 0; left: 0; right: 0; z-index: 70; background: var(--lose); color: #fff; font-size: 13px; font-weight: 700; text-align: center; padding: calc(6px + env(safe-area-inset-top)) 12px 6px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.offbar svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* =========================================================================
   Triples y terminales (cifras.html). Mismo sistema: tokens, .seg, .hour,
   .closing, .row, .cartbar, .sheet. Solo lo propio del teclado y del visor.
   ========================================================================= */
:root { --zod: #6D4BD1; --zod-soft: color-mix(in srgb, #6D4BD1 12%, transparent); --term: #1F7FA8; }
:root[data-theme="dark"] { --zod: #A78BFA; --zod-soft: color-mix(in srgb, #A78BFA 16%, transparent); --term: #58C4E8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --zod: #A78BFA; --zod-soft: color-mix(in srgb, #A78BFA 16%, transparent); --term: #58C4E8; } }
.tabs-juego { margin-top: var(--s3); }
.tabs-juego a { flex: 1; padding: 8px 4px; border-radius: var(--r-full); font-weight: 700; font-size: 13.5px; color: var(--text-muted); white-space: nowrap; text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; }
.tabs-juego a svg { width: 16px; height: 16px; }
.tabs-juego a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--sh-1); }
.cf-lots { margin-top: var(--s3); }
.cf-lots .hour { padding: 8px 12px; }
.cf-lots .hour .lg { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--surface-2); color: var(--primary); }
.cf-lots .hour[aria-pressed="true"] .lg { background: rgba(255, 255, 255, .2); color: #fff; }
.cf-pago { font-size: 12.5px; color: var(--text-muted); margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cf-pago b { color: var(--text); font-family: var(--mono); }
.cf-sorteos { padding-top: var(--s3); }
.cf-sorteos .hour { flex-direction: row; gap: 6px; min-width: auto; padding: 8px 13px; }
.cf-sorteos .hour .le { font-weight: 800; color: var(--text); }
.cf-sorteos .hour[aria-pressed="true"] .le { color: #fff; }
.cf-sorteos .hour .px { font-size: 9px; letter-spacing: .05em; font-weight: 800; background: var(--gold-fill); color: var(--on-gold); padding: 2px 6px; border-radius: 6px; }
.cf-sorteos .hour.zod { border-color: var(--zod); }
.cf-sorteos .hour.zod .le { color: var(--zod); }
.cf-sorteos .hour.zod[aria-pressed="true"] { background: var(--zod); border-color: var(--zod); }
.cf-sorteos .hour.zod[aria-pressed="true"] .le { color: #fff; }
.cf-sorteos.shake, .cf-disp.shake { animation: cfshake .32s; }
@keyframes cfshake { 10%, 90% { transform: translateX(-2px); } 30%, 70% { transform: translateX(4px); } 50% { transform: translateX(-4px); } }
.cf-modos { margin-top: var(--s2); }
.cf-disp { margin-top: var(--s3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px var(--s4); box-shadow: var(--sh-1); }
.cf-disp .r1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cf-badge { font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-full); background: var(--surface-2); color: var(--text-muted); }
.cf-badge.triple { background: color-mix(in srgb, var(--primary-strong) 14%, transparent); color: var(--primary); }
.cf-badge.terminal { background: color-mix(in srgb, var(--term) 14%, transparent); color: var(--term); }
.cf-disp .gen { font-size: 12px; color: var(--text-muted); text-align: right; }
.cf-disp .gen b { color: var(--text); }
.cf-read { font-family: var(--mono); font-weight: 800; font-size: 36px; letter-spacing: 6px; min-height: 48px; display: flex; align-items: center; margin-top: 4px; }
.cf-read .xk { color: var(--gold); }
.cf-read .ph { color: var(--border); }
.cf-read .caret { width: 3px; height: 34px; background: var(--primary-strong); border-radius: 2px; margin-left: 2px; animation: cfblink 1.1s steps(1) infinite; }
@keyframes cfblink { 50% { opacity: 0; } }
.cf-prev { display: flex; gap: 6px; flex-wrap: wrap; min-height: 22px; }
.cf-prev span { font-family: var(--mono); font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 8px; background: var(--surface-2); color: var(--text-muted); }
.cf-disp .hint { margin-top: 8px; }
.cf-disp .hint.warn svg, .cf-disp .hint.warn { color: var(--lose); }
.cf-sig { width: 100%; margin-top: var(--s3); display: flex; align-items: center; gap: 10px; padding: 12px var(--s4); border-radius: var(--r-md); border: 1px solid var(--zod); background: var(--zod-soft); color: var(--zod); font-weight: 800; font-size: 14px; text-align: left; }
.cf-sig .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--zod); flex: none; }
.cf-sig .ed { margin-left: auto; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.cf-sig.req { box-shadow: 0 0 0 3px var(--zod-soft); }
.cf-pad { margin-top: var(--s3); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cf-key { height: 50px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-1); font-family: var(--mono); font-weight: 800; font-size: 22px; color: var(--text); display: grid; place-items: center; user-select: none; -webkit-user-select: none; transition: transform .1s, background .15s; touch-action: manipulation; }
.cf-key:active { transform: scale(.96); background: var(--surface-2); }
.cf-key.x { color: var(--gold); }
.cf-key[disabled] { opacity: .35; }
.cf-key.util { background: var(--surface-2); color: var(--text-muted); }
.cf-key.util svg { width: 22px; height: 22px; }
.cf-add { margin-top: var(--s3); flex-direction: column; gap: 0; line-height: 1.2; min-height: 54px; }
.cf-add .s { font-size: 12px; font-weight: 600; opacity: .85; }
.cf-add.stage-wait { background: var(--surface-2); color: var(--text); box-shadow: none; }
.cf-add.stage-sig { background: var(--zod); color: #fff; box-shadow: none; }
.cf-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; font-family: var(--mono); font-weight: 800; font-size: 14px; background: color-mix(in srgb, var(--primary-strong) 14%, transparent); color: var(--primary); }
.cf-ico.terminal { background: color-mix(in srgb, var(--term) 14%, transparent); color: var(--term); }
.cf-ico.zod { background: var(--zod-soft); color: var(--zod); }
.cf-ico.sm { width: 42px; height: 42px; font-size: 13px; }
.row .cf-tot { font-family: var(--mono); font-weight: 800; font-size: 14px; white-space: nowrap; }
.cf-derivar { width: 100%; margin-top: var(--s3); border: 1px dashed var(--term); background: color-mix(in srgb, var(--term) 7%, transparent); color: var(--term); border-radius: var(--r-md); padding: 11px; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.cf-derivar svg { width: 16px; height: 16px; }
.cf-monto { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 10px 0 2px; }
.cf-monto .c { color: var(--text-muted); font-weight: 700; font-size: 16px; }
.cf-monto .v { font-family: var(--mono); font-weight: 800; font-size: 38px; color: var(--primary); letter-spacing: .02em; }
.cf-lbl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin: 14px 0 8px; }
.cf-sheet-pad { margin-top: var(--s3); }
.cf-sheet-pad .cf-key { height: 46px; font-size: 20px; }
.cf-signos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: var(--s3); }
.cf-signo { border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-md); padding: 12px 4px; font-weight: 700; font-size: 13px; color: var(--text-muted); text-align: center; }
.cf-signo small { display: block; font-family: var(--mono); font-size: 11px; opacity: .8; }
.cf-signo[aria-pressed="true"] { background: var(--zod-soft); border-color: var(--zod); color: var(--zod); }
.cf-num { display: grid; place-items: center; background: var(--surface-2); color: var(--text); font-family: var(--mono); font-weight: 800; border-radius: 12px; }
.res-card .cf-num { width: 60px; height: 60px; margin: 0 auto 6px; font-size: 22px; letter-spacing: 1px; color: var(--primary); }
.res-card .cf-sub { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.winner .cf-num { width: 44px; height: 44px; font-size: 15px; flex: none; }
.gcard .logo .cf-logo { font-family: var(--mono); font-weight: 800; font-size: 26px; color: var(--primary); letter-spacing: 2px; }
.cf-row { flex-wrap: wrap; align-items: flex-start; }
.cf-row .main { flex: 1 1 calc(100% - 60px); }
.cf-row .sub b { color: var(--text); }
.cf-row .row-tools { width: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-left: 58px; }
.cf-row .row-tools .amt-in { flex: 1; max-width: 170px; }
.cf-row .row-tools .amt-in::after { content: 'por jugada'; font-size: 11px; color: var(--text-muted); white-space: nowrap; }

/* =========================================================================
   Teclado propio de montos (js/teclado.js): nunca el teclado del teléfono.
   Cabe sin scroll en 360x640; teclas ≥ 48 px; respeta la zona segura inferior.
   ========================================================================= */
#tecladoCapa .tk-bd { z-index: 70; }
.tk-hoja { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; max-width: 480px; margin: 0 auto; background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--sh-2); padding: 14px var(--s4) calc(14px + env(safe-area-inset-bottom)); max-height: 100dvh; overflow-y: auto; animation: up .22s ease-out; }
.tk-cab { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 17px; }
/* X de cerrar en rojo de la paleta (--lose), en claro y en oscuro. */
.tk-cerrar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--lose) 13%, var(--surface)); color: var(--lose); border: 1px solid color-mix(in srgb, var(--lose) 35%, transparent); }
.tk-cerrar svg { stroke-width: 2.4; }
.tk-cerrar svg { width: 18px; height: 18px; }
.tk-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.tk-disp { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 8px 0 12px; padding: 10px; border-radius: var(--r-md); background: var(--surface-2); min-height: 62px; }
.tk-disp .tk-c { color: var(--text-muted); font-weight: 700; font-size: 16px; }
.tk-disp .tk-v { font-family: var(--mono); font-weight: 800; font-size: 34px; color: var(--primary); letter-spacing: .02em; }
.tk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tk-k { height: clamp(48px, 7.4vh, 58px); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-1); font-family: var(--mono); font-weight: 800; font-size: 22px; color: var(--text); display: flex; align-items: center; justify-content: center; gap: 8px; user-select: none; -webkit-user-select: none; touch-action: manipulation; transition: transform .1s, background .15s; }
.tk-k:active { transform: scale(.96); background: var(--surface-2); }
.tk-k svg { width: 22px; height: 22px; }
.tk-util { background: var(--surface-2); color: var(--text-muted); }
.tk-ok { grid-column: span 2; background: var(--gold-fill); color: var(--on-gold); border-color: transparent; box-shadow: var(--sh-gold); font-family: var(--font); font-size: 17px; }
.tk-ok[disabled] { opacity: .5; box-shadow: none; }
body.tk-abierto { overflow: hidden; }
/* Campo que abre el teclado propio (recargar/retirar). */
input[data-teclado] { cursor: pointer; caret-color: transparent; }
.amt-btn { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px 10px; min-height: 44px; font-weight: 800; font-family: var(--mono); font-size: 15px; color: var(--text); }
.amt-btn span { font-family: var(--font); color: var(--text-muted); font-weight: 700; font-size: 13px; }
.amt-btn svg { width: 14px; height: 14px; color: var(--text-muted); }
.amt-btn:active { background: var(--surface-2); }

/* =========================================================================
   /jugar: botón flotante del monto (siempre animado), panel izquierdo de montos
   y menú del animalito (mantener pulsado o tocar su monto).
   ========================================================================= */
.fab-monto { position: fixed; right: var(--s4); z-index: 38; display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: var(--r-full); border: 2px solid rgba(255, 255, 255, .55); background: linear-gradient(135deg, #FFD54A, var(--gold-fill) 55%, #E09B00); color: #1A1300; box-shadow: 0 10px 26px rgba(242, 183, 5, .45), 0 3px 8px rgba(12, 26, 23, .25); overflow: hidden; isolation: isolate; animation: fabLatido 2.4s ease-in-out infinite; }
.fab-monto .ico { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--gold-fill); display: grid; place-items: center; flex: none; }
.fab-monto .ico svg { width: 16px; height: 16px; }
.fab-monto .tx { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.fab-monto small { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.fab-monto b { font-family: var(--mono); font-size: 19px; font-weight: 800; white-space: nowrap; }
.fab-monto b.txt { font-family: var(--font); }   /* "Elegir": la mono de Android parece máquina de escribir */
/* anillo que respira */
.fab-monto::before { content: ''; position: absolute; inset: -2px; border-radius: inherit; box-shadow: 0 0 0 0 rgba(242, 183, 5, .6); animation: fabAnillo 2.4s ease-out infinite; z-index: -1; }
/* brillo que recorre el botón */
.fab-monto::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: fabBrillo 3.6s ease-in-out infinite; pointer-events: none; }
.fab-monto.rebote { animation: fabRebote .42s cubic-bezier(.3, 1.6, .5, 1), fabLatido 2.4s ease-in-out .42s infinite; }
.fab-monto:active { transform: scale(.96); }
@keyframes fabLatido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes fabAnillo { 0% { box-shadow: 0 0 0 0 rgba(242, 183, 5, .55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(242, 183, 5, 0); } }
@keyframes fabBrillo { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes fabRebote { 0% { transform: scale(1); } 35% { transform: scale(1.16); } 65% { transform: scale(.94); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  /* Versión mínima: sin movimiento, solo un resplandor que respira (opacidad) y un destello al cambiar. */
  .fab-monto, .fab-monto.rebote { animation: none !important; }
  .fab-monto::after { display: none; }
  .fab-monto::before { animation: fabResplandor 3s ease-in-out infinite !important; box-shadow: 0 0 0 4px rgba(242, 183, 5, .5); }
  .fab-monto.rebote::before { animation: fabDestello .5s ease-out 1 !important; }
  @keyframes fabResplandor { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
  @keyframes fabDestello { 0% { opacity: 1; box-shadow: 0 0 0 7px rgba(242, 183, 5, .8); } 100% { opacity: .4; } }
}
#vJugar.con-fab { padding-bottom: 250px; }
.an .badge { cursor: pointer; }
.an .badge.suma { animation: pop .3s ease-out; }
.selbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: var(--s3); }
.selbar .hint { margin: 0; flex: 1 1 100%; }

.pizq-capa .backdrop { z-index: 48; }
.pizq { position: fixed; top: 0; bottom: 0; right: 0; z-index: 49; width: min(88vw, 360px); background: var(--surface); box-shadow: -8px 0 30px rgba(12, 26, 23, .3); display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); will-change: clip-path, opacity; }
.pizq-h { background: var(--navy); color: #fff; padding: calc(14px + env(safe-area-inset-top)) var(--s4) 14px; display: flex; align-items: center; gap: 10px; }
.pizq-h h2 { font-size: 18px; font-weight: 800; flex: 1; }
.pizq-h .tk-cerrar { background: var(--lose); color: #fff; border-color: transparent; }
.pizq-b { flex: 1; overflow-y: auto; padding: var(--s4); }
.pizq-v { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 12px; border-radius: var(--r-md); background: var(--surface-2); }
.pizq-v span { color: var(--text-muted); font-weight: 700; }
.pizq-v b { font-family: var(--mono); font-size: 32px; color: var(--primary); }
.pizq .cf-lbl { margin-top: 18px; }
.pizq .chips .chip { min-width: 72px; justify-content: center; }
.pizq-otro { width: 100%; margin-top: var(--s4); }
.pizq-f { padding: var(--s3) var(--s4) var(--s4); border-top: 1px solid var(--border); }
.menu-an { display: grid; gap: 10px; margin-top: var(--s4); }
.aviso-suma { margin-top: var(--s3); }
/* Guía de pasos (usuarios nuevos): una línea corta que dice qué hacer ahora. */
.guia { display: flex; align-items: center; gap: 10px; margin-top: var(--s3); padding: 10px 12px; border-radius: var(--r-md); background: color-mix(in srgb, var(--gold-fill) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold-fill) 45%, transparent); font-size: 14px; line-height: 1.25; }
.guia .n { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--gold-fill); font-weight: 800; display: grid; place-items: center; flex: none; font-size: 14px; }
.guia .n svg { width: 16px; height: 16px; }
.guia small { display: block; color: var(--text-muted); font-size: 12.5px; margin-top: 1px; }
.guia.ok { background: color-mix(in srgb, var(--primary-strong) 12%, var(--surface)); border-color: color-mix(in srgb, var(--primary-strong) 40%, transparent); margin-bottom: var(--s3); }
.burbuja-fab { position: fixed; z-index: 39; max-width: 220px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.3; padding: 9px 12px; border-radius: 12px; box-shadow: var(--sh-2); pointer-events: none; animation: fade .25s ease-out; transition: opacity .5s; }
.burbuja-fab::after { content: ''; position: absolute; right: 26px; bottom: -6px; width: 12px; height: 12px; background: var(--navy); transform: rotate(45deg); }
.burbuja-fab.fuera { opacity: 0; }
.hoja-cab { display: flex; align-items: center; gap: 10px; }
.hoja-cab h3 { flex: 1; text-align: left; }
/* Total apostado bajo el monto (botón flotante y panel) y "Finalizar jugada". */
.fab-monto .tot { font-style: normal; font-size: 14px; font-weight: 800; font-family: var(--mono); opacity: .95; margin-top: 3px; white-space: nowrap; }
.fab-monto .tot.hide { display: none; }
.pizq-tot { text-align: center; margin-top: 8px; font-size: 14px; color: var(--text-muted); }
.pizq-tot b { color: var(--text); font-family: var(--mono); }
.pizq-fin-guia { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 8px; font-size: 13.5px; color: var(--text); }
.pizq-fin-guia svg { width: 18px; height: 18px; color: var(--gold); animation: finFlecha 1.2s ease-in-out infinite; }
.pizq-fin { animation: finPulso 2s ease-in-out infinite; }
@keyframes finFlecha { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes finPulso { 0%, 100% { box-shadow: var(--sh-gold); } 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold-fill) 35%, transparent), var(--sh-gold); } }
@media (prefers-reduced-motion: reduce) { .pizq-fin-guia svg, .pizq-fin { animation: none; } }

/* =========================================================================
   /jugar con panel único (Neco): lista "Tu jugada" dentro del panel del monto,
   X para quitar en la tarjeta (arriba-izquierda), check abajo-derecha.
   ========================================================================= */
.an .check { top: auto; left: auto; right: 6px; bottom: 6px; }
.an-x { position: absolute; top: -15px; left: -15px; width: 42px; height: 42px; display: grid; place-items: center; z-index: 2; border-radius: 50%; }
/* Visible igual que el badge del monto (esquina opuesta, mismo tamaño y sombra), en rojo; el área táctil es de 42 px. */
.an-x::before { content: ''; position: absolute; inset: 8px; border-radius: var(--r-full); background: var(--lose); box-shadow: var(--sh-1); border: 2px solid #fff; }
.an-x svg { position: relative; width: 14px; height: 14px; color: #fff; stroke-width: 3.2; }
.an-x:focus-visible { box-shadow: var(--ring); }
.pj-sec { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); }
.pj-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pj-cab h3 { font-size: 17px; font-weight: 800; }
.pj-sec .alert { margin-bottom: 10px; }
.pj { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.pj .fig { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: var(--surface-2); padding: 3px; flex: none; }
.pj .fig.ph { padding: 0; font-size: 13px; }
.pj .main { flex: 1; min-width: 0; }
.pj .t { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj .s { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj .amt-btn { min-height: 40px; padding: 6px 9px; font-size: 14px; flex: none; }
.pj-del { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--lose) 13%, var(--surface)); color: var(--lose); }
.pj-del svg { width: 15px; height: 15px; stroke-width: 2.6; }
.pj.closed { opacity: .55; }
.pj-tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; font-weight: 800; }
.pj-tot b { font-family: var(--mono); font-size: 18px; }
/* Sin barra inferior: menos relleno abajo (solo lo del botón flotante y la navegación). */
body.sin-barra-jugar.con-bnav .has-cartbar { padding-bottom: 150px; }
body.sin-barra-jugar.con-bnav .toast { bottom: calc(150px + env(safe-area-inset-bottom)); }
body.sin-barra-jugar #vJugar.con-fab { padding-bottom: 170px; }
/* Cabecera compacta del panel de montos (~150 px a 360x640). */
.pm-cab { display: flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 7px 12px; border-radius: var(--r-md); background: var(--surface-2); }
.pm-cab .k { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.pm-cab > b { font-family: var(--mono); font-size: 22px; color: var(--primary); }
.pm-tot { margin-left: auto; font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.pm-tot b { font-family: var(--mono); font-size: 15px; color: var(--text); }
.pm-ayuda { font-size: 12.5px; color: var(--text-muted); margin: 4px 2px 0; }
.pm-fila { display: flex; gap: 8px; overflow-x: auto; margin: 6px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 16px;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.pm-fila::-webkit-scrollbar { display: none; }
.pm-chip { flex: none; min-height: 42px; min-width: 52px; padding: 8px 14px; justify-content: center; font-family: var(--mono); font-size: 15px; scroll-snap-align: start; }
.pm-otro { font-family: var(--font); gap: 4px; }
.pm-otro svg { width: 15px; height: 15px; }
.pm-sep { flex: none; width: 1px; align-self: stretch; margin: 6px 2px; background: var(--border); }
.pizq .pj-sec { margin-top: 6px; padding-top: 10px; }

/* ── Ajustes de pantalla completa en el teléfono (Neco 2026-10-22) ─────────────────────────────
   1) Sin zoom por doble toque: tocar dos veces un animalito para SUMAR no debe ampliar la página
      (el pellizco con dos dedos sigue funcionando: accesibilidad).
   2) Nada provoca scroll horizontal de la página.
   3) El panel del monto ocupa el 100% de la pantalla en el teléfono. */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; max-width: 100%; }
#grid .an, .fab-monto, .chip, .pizq button { touch-action: manipulation; }
@media (max-width: 600px) {
  .pizq { left: 0; right: 0; width: 100%; max-width: 100vw; height: 100dvh; box-shadow: none; }
}
/* Repetir jugada: visible en la tarjeta de cada ticket (sin abrir el detalle). */
.tk-acc { display: flex; justify-content: flex-end; padding: 0 var(--s4) 12px; }
.btn-rep { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 16px; border-radius: var(--r-full); font-weight: 800; font-size: 14px;
  background: linear-gradient(135deg, #FFD54A, var(--gold-fill)); color: var(--on-gold); box-shadow: var(--sh-gold); border: 0; }
.btn-rep svg { width: 18px; height: 18px; color: var(--navy); stroke-width: 2.2; }
.btn-rep:active { transform: scale(.97); }
.btn-rep[disabled] { opacity: .7; }

/* =========================================================================
   /resultados: pestañas Resultados / Estadísticas y vista de estadísticas.
   ========================================================================= */
.tabs-res { margin-bottom: 14px; }
.tabs-res button { display: flex; align-items: center; justify-content: center; gap: 6px; }
.tabs-res button svg { width: 16px; height: 16px; }
.est-dests { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.est-dest { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px; box-shadow: var(--sh-1); min-width: 0; }
.est-dest.mas { border-color: color-mix(in srgb, var(--gold-fill) 60%, transparent); background: color-mix(in srgb, var(--gold-fill) 10%, var(--surface)); }
.est-dest.menos { border-color: color-mix(in srgb, var(--info) 45%, transparent); background: color-mix(in srgb, var(--info) 8%, var(--surface)); }
.est-dest .k { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.est-dest .v { font-family: var(--mono); font-weight: 800; font-size: 18px; margin: 2px 0 6px; }
.est-dest .mas { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.est-mini { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.2; margin-top: 6px; min-width: 0; }
.est-mini > div { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.est-mini .fig { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; background: var(--surface-2); padding: 2px; flex: none; }
.est-mini .fig.ph { padding: 0; font-size: 12px; }
.est-orden { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; }
.est-orden label { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.est-orden .in { flex: 1; }
.est-orden select { width: 100%; min-height: 42px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); padding: 8px 10px; font-weight: 700; color: var(--text); }
.est-lista { list-style: none; }
.est-it { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.est-it .fig { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: var(--surface-2); padding: 3px; flex: none; }
.est-it .fig.ph { padding: 0; font-size: 13px; }
.est-it .main { flex: 1; min-width: 0; }
.est-it .t { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-it .t b { font-family: var(--mono); }
.est-it .s { font-size: 12px; color: var(--text-muted); }
.est-it .bar { height: 6px; border-radius: 99px; background: var(--surface-2); margin: 5px 0 3px; overflow: hidden; }
.est-it .bar i { display: block; height: 100%; border-radius: inherit; background: var(--primary-strong); }
.est-it.es-max .bar i { background: var(--gold-fill); }
.est-it.es-min .bar i { background: var(--info); }
.est-it .n { font-family: var(--mono); font-weight: 800; font-size: 20px; text-align: right; flex: none; min-width: 44px; line-height: 1; }
.est-it .n small { display: block; font-family: var(--font); font-size: 11px; font-weight: 700; color: var(--text-muted); margin-top: 2px; }
.est-badge { display: inline-block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 99px; vertical-align: 1px; }
.est-badge.mas { background: var(--gold-fill); color: var(--on-gold); }
.est-badge.menos { background: color-mix(in srgb, var(--info) 18%, var(--surface)); color: var(--info); }
.est-aviso { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--text-muted); margin: 16px 0 4px; }
.est-aviso svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

/* Panel del monto v3: "Otro monto" en su fila, rejilla grande sin jugadas, guías y contraste en oscuro. */
.pm-otro-ancho { margin-top: 10px; min-height: 46px; border: 1px dashed color-mix(in srgb, var(--gold) 55%, var(--border)); font-size: 15px; }
.pm-rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.pm-rejilla .pm-chip { min-height: 58px; font-size: 22px; font-weight: 800; border-radius: var(--r-md); padding: 8px 4px; }
.pm-rec .pm-chip { min-height: 50px; font-size: 19px; border-style: dashed; }
.burbuja-panel { z-index: 60; pointer-events: auto; border: 0; text-align: left; animation: burbEntra .3s ease-out, burbPulso 1.6s ease-in-out .3s infinite; }
.burbuja-panel.apunta-arriba::after { top: -6px; bottom: auto; right: 22px; }
.burbuja-panel.apunta-abajo::after { right: 40px; }
.burbuja-panel.fuera { animation: none; }
@keyframes burbEntra { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes burbPulso { 0%, 100% { box-shadow: var(--sh-2); } 50% { box-shadow: var(--sh-2), 0 0 0 5px color-mix(in srgb, var(--gold-fill) 35%, transparent); } }
@media (prefers-reduced-motion: reduce) { .burbuja-panel { animation: none; } }
/* Oscuro: los montos tienen que NOTARSE sobre la superficie (contraste AA o más). */
:root[data-theme="dark"] .pizq .pm-chip { background: #1F3E49; border: 1px solid color-mix(in srgb, var(--gold-fill) 55%, transparent); color: #fff; }
:root[data-theme="dark"] .pizq .pm-chip[aria-pressed="true"] { background: var(--primary-strong); border-color: #8FF5CF; color: #04201A; box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-strong) 40%, transparent); }
:root[data-theme="dark"] .pm-otro-ancho { background: #1A333C; color: #fff; border-color: color-mix(in srgb, var(--gold-fill) 60%, transparent); }
:root[data-theme="dark"] .pm-cab { background: #17313A; }
:root[data-theme="dark"] .pm-cab > b { color: #5BE3AE; }
:root[data-theme="dark"] .pm-tot b, :root[data-theme="dark"] .pj .t { color: #fff; }
:root[data-theme="dark"] .pj .amt-btn { background: #1F3E49; color: #fff; border-color: #2D525E; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pizq .pm-chip { background: #1F3E49; border: 1px solid color-mix(in srgb, var(--gold-fill) 55%, transparent); color: #fff; }
  :root:not([data-theme="light"]) .pizq .pm-chip[aria-pressed="true"] { background: var(--primary-strong); border-color: #8FF5CF; color: #04201A; box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-strong) 40%, transparent); }
  :root:not([data-theme="light"]) .pm-otro-ancho { background: #1A333C; color: #fff; border-color: color-mix(in srgb, var(--gold-fill) 60%, transparent); }
  :root:not([data-theme="light"]) .pm-cab { background: #17313A; }
  :root:not([data-theme="light"]) .pm-cab > b { color: #5BE3AE; }
  :root:not([data-theme="light"]) .pm-tot b, :root:not([data-theme="light"]) .pj .t { color: #fff; }
  :root:not([data-theme="light"]) .pj .amt-btn { background: #1F3E49; color: #fff; border-color: #2D525E; }
}
:root[data-theme="dark"] .burbuja-panel, :root[data-theme="dark"] .burbuja-panel::after { background: var(--gold-fill); color: var(--on-gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .burbuja-panel, :root:not([data-theme="light"]) .burbuja-panel::after { background: var(--gold-fill); color: var(--on-gold); } }

/* Contador de jugadas en "Jugar" de la navegación inferior (Neco): arriba a la derecha del icono. */
.bnav a { position: relative; }
.bnav-n { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--r-full); background: var(--lose); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; border: 2px solid var(--surface); box-sizing: content-box; }
.bnav-n.hide { display: none; }
.bnav-n.pop { animation: pop .3s ease-out; }
@media (prefers-reduced-motion: reduce) { .bnav-n.pop { animation: none; } }
/* Estadísticas: fila tocable y hoja "¿Qué salió después?". */
.est-lista li { list-style: none; }
button.est-it { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px dashed var(--border); color: inherit; }
button.est-it:active { background: var(--surface-2); }
.est-chev { width: 16px; height: 16px; color: var(--text-muted); flex: none; }
.sig-hoja { max-height: 92vh; }
.sig-res { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: var(--r-md); background: color-mix(in srgb, var(--gold-fill) 14%, var(--surface)); font-size: 14px; }
.sig-res svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 1px; }
.sig-lista { list-style: none; margin-top: 10px; }
.sig-it { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.sig-it .cuando { width: 98px; flex: none; color: var(--text-muted); line-height: 1.2; }
.sig-it .cuando small { display: block; font-size: 11px; font-weight: 700; color: var(--text); }
.sig-it .sig-fl { width: 16px; height: 16px; color: var(--gold); flex: none; }
.sig-it .fig { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; background: var(--surface-2); padding: 2px; flex: none; }
.sig-it .fig.ph { padding: 0; font-size: 12px; }
.sig-an { flex: 1; min-width: 0; font-size: 14px; line-height: 1.2; }
.sig-an b { font-family: var(--mono); }
.sig-an small { display: block; font-size: 11.5px; color: var(--text-muted); }
.sig-an.pend b { color: var(--pending); font-family: var(--font); }
.sig-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sig-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 10px 4px 4px; border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 15px; }
.sig-chip .fig { width: 32px; height: 32px; border-radius: 50%; object-fit: contain; background: var(--surface-2); }
.sig-chip .fig.ph { font-size: 11px; }
.sig-chip b { font-family: var(--mono); }
.sig-chip .ok { width: 16px; height: 16px; opacity: 0; color: #fff; }
.sig-chip[aria-pressed="true"] { background: var(--primary-strong); border-color: var(--primary-strong); color: #fff; }
.sig-chip[aria-pressed="true"] .ok { opacity: 1; }

/* ---- tripletas (/tripletas) ---- */
.tri-sub { margin-top: var(--s3); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.tri-sub + .cf-sorteos { padding-top: 6px; }
.cf-lots .hour img.lg { object-fit: contain; background: #fff; padding: 2px; }
.tri-cubre { margin-top: 4px; }
.tri-cubre b { color: var(--text); }
.tri-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: var(--s3); }
.tri-slots.shake { animation: cfshake .32s; }
.tri-slot { position: relative; min-height: 104px; border: 2px dashed var(--border); border-radius: var(--r-md); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 4px; background: transparent; color: var(--text-muted); min-width: 0; }
.tri-slot .q { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); color: var(--text-muted); }
.tri-slot .nm { font-size: 11px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tri-slot.on { border-style: solid; border-color: var(--primary-strong); background: color-mix(in srgb, var(--primary-strong) 9%, var(--surface)); color: var(--text); }
.tri-slot.on .fig { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.tri-slot.on .num { font-family: var(--mono); font-weight: 800; font-size: 15px; line-height: 1; }
.tri-slot .x { position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; border-radius: 50%; background: var(--lose); color: #fff; display: grid; place-items: center; border: 2px solid var(--surface); }
.tri-slot .x svg { width: 14px; height: 14px; }
.tri-grid .an .badge { min-width: 26px; padding: 0; }
.tri-row .tri-figs { display: flex; flex: none; }
.tri-row .main { flex: 1 1 calc(100% - 110px); min-width: 0; }
.tri-row .tri-figs .fig { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.tri-row .tri-figs .fig + .fig { margin-left: -10px; }
.tri-row .tri-figs .fig.ph { font-size: 12px; }
.tk-tri { display: flex; flex: none; }
.tk-tri .fig { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.tk-tri .fig + .fig { margin-left: -9px; }
.tk-tri .fig.ph { font-size: 11px; }
@media (max-width: 420px) { .tabs-juego a { font-size: 12.5px; gap: 4px; } .tabs-juego a svg { display: none; } }
/* Ventana del monto de la tripleta: los 3 animalitos elegidos, grandes. */
.tri-hoja-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.tri-hoja-an { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: var(--r-md); border: 2px solid var(--primary-strong); background: color-mix(in srgb, var(--primary-strong) 9%, var(--surface)); min-width: 0; }
.tri-hoja-an .fig { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; }
.tri-hoja-an .num { font-family: var(--mono); font-weight: 800; font-size: 16px; line-height: 1; }
.tri-hoja-an .nm { font-size: 12px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet .pm-rejilla .pm-chip { width: 100%; }
:root[data-theme="dark"] .sheet .pm-chip { background: #1F3E49; border: 1px solid color-mix(in srgb, var(--gold-fill) 55%, transparent); color: #fff; }
/* Tripletas: la explosión del 3.er animalito se ve por encima de la ventana del monto que se abre enseguida. */
body.pg-tri #efxCapa { z-index: 47; }
/* Pestañas de juego: cuántas jugadas sin jugar hay en cada tipo (Neco: que se vea de qué es la jugada). */
.tabs-juego .tab-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold-fill, #F5B700); color: #1B1300; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.tri-hoja-an .an-x { background: none; border: 0; padding: 0; cursor: pointer; }
/* Registro / completar datos: separador "o", casilla de aceptación, pasos y botón de Google. */
.o-sep { display: flex; align-items: center; gap: 12px; margin: 20px 0 4px; color: var(--text-muted); font-size: 13px; font-weight: 700; }
.o-sep::before, .o-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.g-btn { display: flex; justify-content: center; min-height: 44px; margin-top: 16px; }
.g-btn iframe { color-scheme: light; }   /* el botón de Google es claro por dentro: sin esto, en tema oscuro Safari/Chrome le ponen un fondo blanco opaco */
.g-nativo { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; max-width: 400px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.g-nativo svg { width: 20px; height: 20px; flex: none; }
/* Aviso "saldo insuficiente" (Shell.sinSaldo): ventana centrada, no un alert. */
#capaModal .ms-fondo { position: fixed; inset: 0; z-index: 90; background: rgba(8, 20, 28, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: msFondo .2s ease-out; }
#capaModal .ms-caja { position: fixed; z-index: 91; left: 50%; top: 50%; width: min(92vw, 380px); transform: translate(-50%, -50%); background: var(--surface); border-radius: 22px; padding: 28px 22px 20px; text-align: center; box-shadow: 0 24px 60px rgba(8, 20, 28, .35); animation: msEntra .26s cubic-bezier(.2, .9, .3, 1.2); }
#capaModal .ms-ic { width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-fill, #F5B700); background: color-mix(in srgb, var(--gold-fill, #F5B700) 16%, transparent); box-shadow: 0 0 0 8px color-mix(in srgb, var(--gold-fill, #F5B700) 7%, transparent); }
#capaModal .ms-ic svg { width: 32px; height: 32px; }
#capaModal h3 { font-size: 21px; font-weight: 800; }
#capaModal p { color: var(--text-muted); font-size: 15px; margin: 8px 0 18px; }
#capaModal .ms-cuentas { background: var(--surface-2); border-radius: 14px; padding: 6px 14px; margin-bottom: 18px; text-align: left; }
#capaModal .ms-fila { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 15px; }
#capaModal .ms-fila + .ms-fila { border-top: 1px dashed var(--border); }
#capaModal .ms-fila span { color: var(--text-muted); }
#capaModal .ms-fila.falta b { color: var(--lose); font-size: 17px; }
@keyframes msFondo { from { opacity: 0; } }
@keyframes msEntra { from { opacity: 0; transform: translate(-50%, -46%) scale(.94); } }
@media (prefers-reduced-motion: reduce) { #capaModal .ms-fondo, #capaModal .ms-caja { animation: none; } }
/* Entrar con huella (solo app Android). */
.huella-box { margin-top: 16px; }
.btn-huella { min-height: 56px; font-size: 17px; gap: 10px; }
.btn-huella svg { width: 26px; height: 26px; }
.huella-cta { text-align: center; margin-top: 6px; font-size: 13px; color: var(--text-muted); overflow-wrap: anywhere; }
.huella-perfil { display: flex; align-items: center; gap: 12px; }
.huella-perfil .t { flex: 1; min-width: 0; }
.huella-perfil .t small { display: block; color: var(--text-muted); font-size: 13px; overflow-wrap: anywhere; }
.g-nativo:active { transform: scale(.97); background: var(--surface-2); }
.g-nativo[aria-busy="true"] { opacity: .6; }
.chk { display: flex; gap: 10px; align-items: flex-start; margin-top: var(--s4); font-size: 14px; color: var(--text); cursor: pointer; }
.chk input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--primary); }
.chk a, .legal a { color: var(--primary); font-weight: 700; }
.pasos { display: flex; gap: 6px; justify-content: center; margin: 4px 0 8px; }
.pasos i { width: 28px; height: 4px; border-radius: 2px; background: var(--border); }
.pasos i.on { background: var(--primary); }
.legal { font-size: 15px; line-height: 1.6; color: var(--text); }
.legal h2 { font-size: 18px; font-weight: 800; margin: 22px 0 6px; }
.legal p, .legal li { margin-top: 8px; }
.legal ul { padding-left: 20px; }
/* Avatar con iniciales en la barra superior → Mi perfil. */
.tb-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 13px; color: #fff; background: rgba(255, 255, 255, .1); border: 1.5px solid var(--gold-fill); letter-spacing: .02em; }
.seg-3 button { font-size: 12.5px; white-space: normal; line-height: 1.15; }
/* Opciones (radio/checkbox) dentro de un .field: sin el estilo de etiqueta ni el ancho de los inputs de texto. */
.field label.chk { display: flex; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; color: var(--text); margin: 0; }
.field .chk input { width: 20px; height: 20px; flex: none; }
/* Mi perfil · cuentas bancarias: datos arriba, acciones abajo (cabe en el celular). */
.cta-card { border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; background: var(--surface); }
.cta-h { display: flex; gap: 12px; align-items: center; }
.cta-h .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.cta-h .ico svg { width: 20px; height: 20px; color: var(--primary); }
.cta-h .title { font-weight: 800; font-size: 15px; }
.cta-h .sub { font-size: 13px; color: var(--text-muted); overflow-wrap: anywhere; margin-top: 2px; }
.cta-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
/* Triples y terminales en una pantalla: antes de escribir se ven los dos tipos; al escribir se apaga el que no es. */
.cf-badge.off { opacity: .35; }
.cf-disp .r1 { flex-wrap: wrap; gap: 6px; }
.cf-pago { flex-wrap: nowrap; align-items: flex-start; }
.cf-pago > svg { flex: none; margin-top: 1px; }
/* Triples y terminales: número y monto en la misma caja; si no caben lado a lado, el monto baja (flex-wrap). */
.cf-numrow { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; margin-top: 4px; }
.cf-numrow .cf-read { margin-top: 0; flex: 1 1 auto; }
.cf-mto { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.cf-mto .t { text-align: right; line-height: 1.1; }
.cf-mto .k { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.cf-mto .v { font-family: var(--mono); font-weight: 800; font-size: 18px; color: var(--text); white-space: nowrap; }
.cf-mto .btn svg { width: 16px; height: 16px; }
/* "Ver ticket" salta al agregar una jugada: "aquí está tu ticket". */
.cart-actions .btn.aqui { animation: aquiSalto .7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes aquiSalto { 0% { transform: scale(1); } 25% { transform: scale(1.14) rotate(-2deg); } 50% { transform: scale(.96) rotate(1.5deg); } 75% { transform: scale(1.05); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .cart-actions .btn.aqui { animation: none; outline: 3px solid var(--gold-fill); } }
