/*
   EL CHANCE · capa de producto 2026
   -------------------------------------------------------------------------
   Se carga después de los estilos de cada módulo. Consolida la presentación
   del portal sin alterar contratos, estados ni reglas de negocio.
*/
:root {
    /* Fuente de verdad visual: lienzo, panel, relieve, campo y estados. */
    color-scheme: dark;
    --ec-future-ink: #f6eedf;
    --ec-future-muted: #bcb8c2;
    --ec-future-gold: #d5aa52;
    --ec-future-gold-light: #efcf88;
    --ec-radius-card: 18px;
    --ec-radius-control: 12px;
    --ec-space-section: clamp(20px, 3vw, 32px);
    --ec-ease: cubic-bezier(.22, 1, .36, 1);
    --ec-brand-landscape: url('/branding/club-costa-rica.webp');
    --ec-action-gold: linear-gradient(145deg,#fff0bc 0%,#edca7d 42%,#d3a14c 73%,#ebc674 100%);
    --ec-action-gold-hover: linear-gradient(145deg,#fff7da,#f4d997 42%,#e4b85f 73%,#f6d78d);
    --ec-action-ink: #291b0d;
    --ec-action-relief: inset 0 1px 0 #fff9e6, inset 0 -3px 0 #8c5b24, 0 5px 16px #b97e2426;
    --ec-action-navigation: linear-gradient(165deg, #b81732, #a71930 70%);
    --portal-header-clearance: 145px;
    --ec-future-line: #49404a;
    --ec-text-success: #8ee4b0;
    --ec-text-warning: #f3cf7b;
    --ec-text-error: #ffb2be;
    --ec-text-info: #a8d2ff;
    --ec-focus: #ffe0a0;
    --ec-future-panel: #16161d;
    --ec-future-raised: #22222b;
    --ec-future-inset: #0f0f15;
    --ec-future-shadow: 0 12px 32px #00000026;
    --ec-section-accent: #efc875;
    /* Los módulos que usan el sistema base heredan la misma paleta final. */
    --ec-bg: #0b0b10;
    --ec-panel: var(--ec-future-panel);
    --ec-raised: var(--ec-future-raised);
    --ec-field: #0f0f15;
    --ec-red: #b81732;
    --ec-ruby: #d12442;
    --ec-ivory: var(--ec-future-ink);
    --ec-gold: var(--ec-future-gold);
    --ec-gold-light: var(--ec-future-gold-light);
    --ec-radius: var(--ec-radius-card);
    --ec-shadow: var(--ec-future-shadow);
    --ec-muted: var(--ec-future-muted);
    --ec-line: var(--ec-future-line);
}

.ec-app {
    background:
        radial-gradient(ellipse at 90% 0, #670b2040, transparent 650px),
        var(--ec-bg);
    color: var(--ec-future-ink);
    font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    accent-color: var(--ec-ruby);
}

.ec-app::before {
    opacity: .3;
    background: radial-gradient(ellipse at top, #cf302418, transparent 900px);
}

/* Scarlet Pulse: cabecera sobria y billetera oscura separada de las promociones. */
.ec-app .topbar {
    overflow:visible;
    min-height: 94px;
    max-width: 1320px;
    padding-inline: clamp(18px, 4vw, 38px);
    border: 1px solid #bf935c;
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: linear-gradient(110deg, #ab201f, #761015 72%, #95191c);
    box-shadow: 0 8px 24px #21060740, inset 0 -1px #e7b75c24;
}
.ec-app .topbar::after { display:none; }
.ec-app .brand-logo { border-radius: 16px; border-color: rgba(255, 227, 161, .44); }
.ec-app .brand strong { font-size: clamp(.92rem, 2vw, 1.08rem); letter-spacing: .055em; }
.ec-app .brand small { color: var(--ec-future-gold-light); font-weight: 750; }
.ec-app .share-whatsapp,
.ec-app .icon-button {
    border-color: var(--ec-future-line);
    background: var(--ec-future-panel);
    backdrop-filter: blur(10px);
}

.ec-app .page-shell { max-width: 1320px; }
.ec-app .topbar:has(.header-wallet) { position:sticky; top:0; z-index:35; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; height:auto; min-height:0; padding:12px 20px; padding-top:max(12px,env(safe-area-inset-top)); }
.ec-app .header-wallet { grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; width:100%; min-width:0; margin:0; padding:12px 16px; background:var(--ec-future-panel); border:1px solid var(--ec-future-line); border-radius:14px; box-shadow:none; }
.ec-app .header-wallet-balance { display:grid; gap:2px; flex:1 1 7rem; min-width:0; color:var(--ec-future-ink); text-decoration:none; }
.ec-app .header-wallet-balance > span { font-size:.75rem; color:var(--ec-future-muted); }
.ec-app .header-wallet-balance > strong { color:#ffe0a0; font-weight:800; font-size:clamp(1.2rem,4vw,1.8rem); line-height:1.3; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.ec-app .header-wallet-history { display:inline-flex; align-items:center; min-height:44px; padding:8px 12px; border:1px solid var(--ec-future-line); border-radius:10px; color:var(--ec-future-ink); font-size:.8rem; text-decoration:none; }
.ec-app .header-wallet-history:hover { background:var(--ec-future-raised); }
@media(max-width:767px) { .ec-app .header-wallet-history { display:none; } }
.ec-app .header-wallet-recharge { flex:0 0 auto; min-height:44px; padding:10px 14px; font-size:.8rem; }
.ec-app:has(.header-wallet) { scroll-padding-top:var(--portal-header-clearance); }
.ec-app:has(.header-wallet) .play-wizard { scroll-margin-top:var(--portal-header-clearance); }
.ec-app:has(.header-wallet) .play-wizard .draw-continue-bar { top:var(--portal-header-clearance); }
.ec-app .home-wallet-note { max-width:68ch; color:#e2cecb; font-size:.85rem; line-height:1.6; margin:0 0 18px; }
.ec-app .home-wallet-note a { color:#ffe4a1; font-weight:750; text-decoration:underline; text-underline-offset:3px; }
.ec-app .home-welcome { position:relative; padding:14px 0 0; margin-bottom:24px; }
.ec-app .home-greeting { margin:0 0 6px; color:var(--ec-future-muted); font-size:clamp(.95rem,2.5vw,1.15rem); line-height:1.5; overflow-wrap:anywhere; }
.ec-app .home-welcome h1 { font-size:clamp(1.65rem,4vw,2.75rem); margin:0; line-height:1.15; }
.ec-app .home-greeting strong { color:var(--ec-future-ink); font-weight:700; }
.ec-app .sections-ready [data-section-panel][hidden] { display:none !important; }
.ec-app .wallet-page.sections-ready .wallet-forms { display:block; }
.ec-app .wallet-page.sections-ready .wallet-forms:has(> [hidden]):not(:has(> :not([hidden]))) { display:none; }
.ec-app .profile-section-links,.ec-app .agent-section-links { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:16px 0; }
.ec-app .agent-section-links { grid-template-columns:repeat(3,minmax(0,1fr)); }
.ec-app .profile-section-links { grid-template-columns:repeat(5,minmax(0,1fr)); }
@media(max-width:600px) {
    .ec-app .account-page .profile-section-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .ec-app .profile-section-links a[href="#ayuda"] { grid-column:1/-1; flex-direction:row; min-height:48px; }
}
.ec-app :is(.profile-section-links,.agent-section-links) a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:12px 5px; min-width:0; min-height:76px; border:1px solid #a45f55; border-radius:13px; background:linear-gradient(135deg,#502e29,var(--ec-future-panel)); color:#f4e7cb; text-decoration:none; font-size:.8rem; font-weight:750; text-align:center; overflow-wrap:anywhere; }
.ec-app :is(.profile-section-links,.agent-section-links) svg { width:27px; height:27px; flex-shrink:0; color:#edc77c; }
.ec-app [data-section-tabs] a[aria-selected=true] { border-color:#f2ce84; background:linear-gradient(130deg,#62491e,#30271a); color:#fff0ce; box-shadow:inset 0 -3px #edc77c; text-decoration:underline; text-underline-offset:4px; }
.ec-app [data-section-tabs] a:focus-visible { outline:3px solid #f7d893; outline-offset:3px; }
.ec-app :is(.agent-guide, .account-page .portal-tools-menu) summary { cursor:pointer; padding:14px; color:#f3d69c; min-height:44px; }
.ec-app :is(#agent-invitation,#agent-wallet,#clientes-activos,#agent-withdrawal,#agente-traspaso) { scroll-margin-top:var(--portal-header-clearance); }
.ec-app .account-page .share-whatsapp { height:auto; }
.ec-app .account-page .share-whatsapp > span { display:block; }
@media(max-width:380px) {
    .ec-app .profile-section-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.ec-app[data-visual-section=index] .home-modalities { margin-top:0; }
@media(max-width:480px) {
    .ec-app .topbar:has(.header-wallet) { padding-inline:14px; }
    .ec-app .header-wallet { gap:8px; }
}
.ec-app :is(.section-block, .surface, .benefit-panel, .form-card, .step-card)[id] { scroll-margin-top: 24px; }
.ec-app :is(.section-title, .benefit-section-heading) { margin-bottom: 16px; }
.ec-app :is(.section-title, .benefit-section-heading) h2 { color: var(--ec-future-ink); }
.ec-app :is(.field-help, .microcopy, .benefit-page .microcopy) { color: var(--ec-future-muted); font-size: .9rem; line-height: 1.65; text-wrap: pretty; }
.ec-app :is(.muted, .section-title > a, .section-title > span) { color: var(--ec-future-muted); }
.ec-app :is(.stack-form, .benefit-page, .plus-search) label { color: var(--ec-future-ink); line-height: 1.5; }
.ec-app :is(.stack-form, .benefit-page) label { font-size: .9rem; }
.ec-app .page-heading {
    display: block;
    min-height: auto;
    padding: 10px 0 20px;
    border-bottom-color: rgba(238, 194, 113, .3);
}
.ec-app .page-heading::after {
    width: clamp(110px, 18vw, 204px);
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ec-future-gold), transparent);
}
.ec-app .page-heading h1,
.ec-app h1 { color: var(--ec-future-ink); letter-spacing: -.035em; font-weight: 750; text-wrap: balance; }
.ec-app .page-heading p { color: var(--ec-future-muted); }
.ec-app .eyebrow { color: var(--ec-future-gold-light); letter-spacing: .12em; font-size: .7rem; }
.ec-app .eyebrow::before { color: var(--ec-future-gold); text-shadow: none; }

/* Niveles distintos: lienzo, panel, fila y campo. El brillo queda en la marca y el dinero. */
.ec-app :is(.surface, .list-card, .metric-card, .benefit-panel, .benefit-details, .form-card, .step-card,
    .premium-plan, .premium-current, .premium-confirmation, .raspa-category, .raspa-history-item,
    .ron-code-entry, .ron-lobby-heading, .ron-turn-guide, .ron-cash-confirm, .ron-group-shell,
    .agent-earnings, .agent-balance-card, .agent-totals, .agent-activity, .agent-hero, .agent-request-step) {
    background: var(--ec-future-panel);
    border-color: var(--ec-future-line);
    box-shadow: var(--ec-future-shadow);
}
.ec-app :is(.surface, .list-card, .metric-card, .benefit-panel, .benefit-details, .form-card, .step-card,
    .premium-plan, .premium-current, .premium-confirmation, .raspa-category, .raspa-history-item,
    .ron-code-entry, .ron-lobby-heading, .ron-turn-guide, .ron-cash-confirm, .ron-group-shell,
    .agent-earnings, .agent-balance-card, .agent-totals, .agent-activity, .agent-hero, .agent-request-step)::before {
    background: none;
}
.ec-app :is(.surface, .benefit-panel, .form-card, .step-card) {
    border-radius: var(--ec-radius-card);
    border-width: 1px;
    border-style: solid;
}
.ec-app :is(.surface, .benefit-panel, .form-card, .step-card) :is(.list-card, .surface, .metric-card) {
    background: var(--ec-future-inset);
    box-shadow: none;
}
.ec-app :is(.surface, .benefit-panel, .form-card, .step-card) > h2 { color: var(--ec-future-ink); }
.ec-app :is(.benefit-details, .ticket-details, .receipt-viewer, .agent-web-invitation) > summary {
    min-height: 48px;
    color: var(--ec-future-ink);
    background: var(--ec-future-raised);
    border-radius: 10px;
}
.ec-app :is(.benefit-details, .ticket-details, .receipt-viewer, .agent-web-invitation)[open] > summary {
    border-bottom: 1px solid var(--ec-future-line);
    margin-bottom: 12px;
}
.ec-app .benefit-details-body { padding-top: 6px; }
.ec-app .receipt-viewer:not([open]) { padding: 4px 10px; }
.ec-app .receipt-viewer > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px; font-size: .875rem; }
.ec-app .receipt-viewer > summary::after { content: '＋'; margin-left: auto; }
.ec-app .receipt-viewer[open] > summary::after { content: '−'; }
.ec-app .result-card small { opacity: 1; color: var(--ec-future-muted); }

/* Tablas y listados: cabecera sólida y filas separadas, sin desplazar la página. */
.ec-app :is(.table-wrap, .plus-table) { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border-radius: 12px; }
.ec-app .benefit-page table { font-size: .86rem; }
.ec-app .benefit-page th { background: var(--ec-future-inset); color: var(--ec-future-gold-light); font-size: .78rem; }
.ec-app .benefit-page td { color: var(--ec-future-ink); }
.ec-app .benefit-page :is(th, td) { padding: 14px 12px; border-bottom-color: var(--ec-future-line); }
.ec-app .benefit-page tbody tr:nth-child(even) { background: #ffffff05; }
.ec-app .benefit-page tbody tr:hover { background: #ffffff09; }
.ec-app .benefit-page tbody tr:focus-within { background: #ffffff0c; }

/* Valores importantes: cápsula oscura, filete dorado y tipografía tabular. */
.ec-app :is(.balance-amount, .wallet-prizes-amount, .premium-price, .agent-lifetime, .agent-commission-amount,
    .result-value, .winning-number, .home-result-number, .pulso-winner, .raspa-history-amount) {
    font-variant-numeric: tabular-nums;
}
.ec-app :is(.wallet-prizes-amount, .premium-price, .agent-lifetime, .agent-commission-amount, .raspa-history-amount) {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: .28em .48em;
    border: 0;
    border-radius: .3em;
    color: var(--ec-future-gold-light);
    background: var(--ec-future-inset);
    box-shadow: none;
}
.ec-app .balance-card,
.ec-app .home-balance .metric-card.balance,
.ec-app .wallet-hero {
    isolation: isolate;
    overflow: hidden;
    border-color: rgba(255, 217, 137, .59);
    background:
        radial-gradient(360px 180px at 97% 3%, rgba(255, 212, 121, .25), transparent 66%),
        linear-gradient(127deg, var(--ec-future-raised), #1c1b24 60%, var(--ec-future-inset));
    box-shadow: 0 24px 58px rgba(4, 0, 0, .52), inset 0 1px rgba(255, 236, 191, .17);
}
.ec-app .balance-card::after,
.ec-app .wallet-hero::after {
    content: '';
    position: absolute;
    width: 190px;
    height: 190px;
    right: 8px;
    bottom: 8px;
    z-index: -1;
    border: 1px solid rgba(255, 224, 151, .25);
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgba(255, 224, 151, .045), 0 0 0 46px rgba(255, 224, 151, .025);
}
.ec-app .balance-amount {
    color: #fff1c7;
    text-shadow: none;
    letter-spacing: -.02em;
}
.ec-app .balance-wallet-icon {
    background: linear-gradient(135deg, #ffe7ab, #d99d3d);
    color: #470e0c;
    border-color: #ffe8b2;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}
.ec-app .home-wallet-parts > span,
.ec-app .balance-details > span {
    border-color: rgba(255, 231, 175, .2);
    background: rgba(20, 3, 2, .42);
}

/* Acciones principales en oro; navegación secundaria y filtros más discretos. */
.ec-app :is(.button, .button.primary, .button.secondary, .button.lime, .button.ghost) {
    min-height: 48px;
    color: var(--ec-future-ink);
    border-color: #f37c685c;
    border-radius: var(--ec-radius-control);
    background: var(--ec-action-navigation);
    box-shadow: inset 0 1px #ffffff26, 0 4px 12px #0003;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.35;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s var(--ec-ease);
}
.ec-app .button.ghost { background: #252529; border-color: #8b7659; box-shadow: inset 0 1px #fff1ce12; }
.ec-app .button:hover:not(:disabled),
.ec-app .button:focus-visible {
    border-color: rgba(255, 222, 145, .8);
    background: #c32c1d;
}
/* Las acciones monetarias comparten una única regla metálica al final de esta capa. */
.ec-app .button.action-continue {
    border-color: #eac275;
    background: var(--ec-action-navigation) #a31b12;
    box-shadow: inset 0 1px #ffe5ad66, inset 0 -3px #6e100d, 0 6px 16px #40040055;
}
.ec-app .button:disabled, .ec-app .button[aria-disabled=true] { box-shadow: none; filter: saturate(.35); cursor: not-allowed; }
.ec-app .button:focus-visible { outline: 3px solid #ffe4a1; outline-offset: 4px; }
.ec-app :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]), select, textarea) {
    border-color: #66615a;
    background: var(--ec-field);
    color: var(--ec-future-ink);
    min-height: 48px;
    border-radius: var(--ec-radius-control);
    font-size: max(1rem, 16px);
}
.ec-app :is(input, textarea)::placeholder { color: #c1ab96; }
.ec-app :is(input[readonly], textarea[readonly]) { background: var(--ec-future-raised); border-style: dashed; }
.ec-app :is(input, select, textarea):disabled { opacity: 1; color: #d8beba; background: var(--ec-future-raised); border-style: dashed; cursor: not-allowed; }
.ec-app :is(input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true], .input-validation-error) { border: 2px solid #ffad98; }
.ec-app select option { background: #301f1c; color: #fff7e9; }
.ec-app :is(input:not([type=checkbox]):not([type=radio]), select, textarea):focus {
    border-color: var(--ec-future-gold-light);
    box-shadow: 0 0 0 4px rgba(255, 214, 136, .18);
}

/* Inicio, tarjetas de juego y sorteos: profundidad sin ocultar información. */
.ec-app .home-modalities-grid { gap: 16px; }
.ec-app .home-modality {
    min-height: 210px;
    border-color: rgba(244, 199, 117, .4);
    box-shadow: var(--ec-future-shadow);
}
.ec-app .home-modality::before { background: linear-gradient(155deg, rgba(255, 232, 180, .16), transparent 35%); }
.ec-app .home-modality:hover,
.ec-app .home-modality:focus-visible { box-shadow: 0 22px 44px rgba(0, 0, 0, .48), 0 0 0 1px rgba(255, 222, 145, .58); }
.ec-app .modality-kicker,
.ec-app .modality-action,
.ec-app .modality-multiplier { color: var(--ec-future-gold-light); }
.game-illustration { width: 112px; height: 84px; display: block; flex: 0 0 auto; filter: drop-shadow(0 7px 7px #0b02025c); }
.ec-app .modality-tiempos-art > .game-illustration { width: 112px; height: 84px; flex-basis: 112px; padding: 0; fill: initial; stroke: none; }
.ec-app .modality-chance-logo { width: 70px; height: 70px; margin-block: 7px; border-radius: 20px; box-shadow: 0 7px 16px #0b02025c; }
.ec-app .modality-symbols { height: 84px; align-items: center; gap: 0; }
.ec-app .modality-symbols svg { width: 47px; height: 60px; filter: drop-shadow(0 4px 6px #0b02026b); }
.ec-app .modality-symbols svg:nth-child(2) { transform: translateY(-6px); color: #fff2bc; }
.ec-app .modality-casino { background: radial-gradient(ellipse at 80% 5%, #d4a54e35, transparent 65%), linear-gradient(135deg, #9d1e1a, #230706); }
.ec-app .home-modality .modality-action { width: 100%; display: flex; justify-content: space-between; }
.ec-app .home-modality strong { font-size: clamp(.9rem, 2.7vw, 1.15rem); }
.ec-app .home-modality .modality-multiplier { display: inline-flex; border: 1px solid #e4b97155; border-radius: 7px; padding: .1em .35em; margin-top: .2rem; font-size: .78em; white-space: nowrap; background: #200605a1; }

/* Accesos reconocibles: relieve metálico, siluetas consistentes y texto legible. */
.ec-app .portal-tools-home .portal-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ec-app .portal-tools-home .portal-tool { position: relative; isolation: isolate; overflow: hidden; min-height: 116px; padding: 18px; gap: 12px; background: linear-gradient(135deg,#5e120f,#300908); border-color: #b17c4d; border-radius: 18px; box-shadow: inset 0 1px #ffe7a52b; transition: border-color .18s, transform .18s; }
.ec-app .portal-tools-home .portal-tool::after { content: ''; pointer-events: none; position: absolute; z-index: -1; width: 80px; height: 80px; right: 8px; top: 8px; border-radius: 50%; border: 14px solid #edb65d0d; }
.ec-app .portal-tools-home :is(.portal-tool-premium,.portal-tool-estadisticas) { grid-column: span 2; min-height: 150px; padding: 24px; border-color: #d9ae66; background: radial-gradient(ellipse at 100% 0,#e6b65738,transparent 65%),linear-gradient(115deg,#a81d18,#500f0d); }
.ec-app .portal-tools-home .portal-tool-estadisticas { background: radial-gradient(ellipse at 100% 0,#f5c65d29,transparent 65%),linear-gradient(115deg,#6c1512,#360a09); }
.ec-app .portal-tools-home :is(.portal-tool-premium,.portal-tool-estadisticas) .portal-tool-icon { width: 62px; height: 62px; flex-basis: 62px; border-radius: 20px; }
.ec-app .portal-tools-home :is(.portal-tool-premium,.portal-tool-estadisticas) strong { font-size: 1.08rem; }
.ec-app .portal-tools-home .portal-tool-kicker { color: #ffe2a2; font-size: .62rem; letter-spacing: .12em; font-weight: 800; }
.ec-app .portal-tools-home .portal-tool-arrow { display: grid; place-items: center; min-width: 28px; height: 28px; border: 1px solid #d3aa6566; border-radius: 50%; }
@media (max-width: 900px) {
    .ec-app .portal-tools-home .portal-tools { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ec-app .portal-tools-home :is(.portal-tool-premium,.portal-tool-estadisticas) { grid-column: auto; }
    .ec-app .portal-tools-home .portal-tool { flex-wrap: wrap; align-content: start; }
    .ec-app .portal-tools-home .portal-tool-copy { flex-basis: 100%; order: 2; }
    .ec-app .portal-tools-home .portal-tool-arrow { margin-left: auto; }
    .ec-app .portal-tools-home :is(.portal-tool-premium,.portal-tool-estadisticas) strong { font-size: .92rem; }
    .ec-app .portal-tools-home .portal-tool-kicker { font-size: .55rem; letter-spacing: .05em; }
}
@media (hover:hover) { .ec-app .portal-tools-home .portal-tool:hover { transform: translateY(-2px); border-color:#ffe3a1; } }
@media (prefers-reduced-motion:reduce) { .ec-app .portal-tools-home .portal-tool { transition:none; transform:none; } }
.ec-app .portal-tools .portal-tool-icon {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px;
    color: #ffe5a5; background: radial-gradient(circle at 30% 0, #dbad5b40, transparent 70%), #721612;
    border: 1px solid #e2b86a78; box-shadow: inset 0 1px #ffefc434, 0 5px 12px #11030366;
}
.ec-app .portal-tool-icon svg { width: 25px; height: 25px; }
.ec-app .portal-tool-copy strong { line-height: 1.35; }
.ec-app .portal-tool-copy small { color: #dac4bc; line-height: 1.45; }
.ec-app .portal-tool-arrow { color: #e5b96e; align-self: center; }
.ec-app .portal-tool:hover { border-color: #e4bf7c; }
.ec-app .portal-tool-estadisticas .portal-tool-icon { background-color: #243e43; }
.ec-app .portal-tool-codigo .portal-tool-icon { background-color: #57402b; }
.ec-app .portal-tool-consultas .portal-tool-icon { background-color: #40324a; }
.ec-app .portal-tool-noticias .portal-tool-icon { background-color: #284137; }
.ec-app .home-draw-compact,
.ec-app .home-result,
.ec-app .draw-option,
.ec-app .result-card {
    border-color: var(--ec-future-line);
    background: var(--ec-future-panel);
}
.ec-app .home-draw-compact:hover,
.ec-app .home-result:hover,
.ec-app .draw-option:hover { border-color: rgba(255, 219, 144, .7); }
.ec-app .home-draw-payout,
.ec-app .status,
.ec-app .status-label {
    border-color: rgba(255, 211, 129, .32);
    background: rgba(215, 162, 67, .13);
    color: var(--ec-future-gold-light);
}
.ec-app .home-result-number,
.ec-app .winning-number {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 217, 144, .6);
    color: #fff5d6;
    background: radial-gradient(circle at 35% 22%, #ef6f62, #a51f1a 58%, #65110e);
    box-shadow: inset 0 2px rgba(255, 237, 213, .34), 0 9px 20px rgba(0, 0, 0, .34);
}

/* Crear jugada, tiquetes, pagos y resultados comparten lectura de datos. */
.ec-app .draw-option.selected,
.ec-app .payment-options input:checked + span,
.ec-app .amount-pills button.active,
.ec-app .number-blocks button[aria-pressed=true],
.ec-app .number-cell[aria-pressed=true] > span {
    border-color: var(--ec-future-gold-light);
    background: linear-gradient(145deg, #ba231e, #7b1714);
    box-shadow: inset 0 -2px #f0ca89, 0 0 0 1px rgba(255, 231, 175, .16);
}
.ec-app :is(.play-running-summary, .draw-continue-bar, .review-checkout, .review-draw-card, .summary-total,
    .play-budget, .group-amount-panel, .activity-ledger, .ticket-card-gold, .wallet-prizes, .payment-card,
    .sinpe-modal, .receipt-summary) {
    border-color: var(--ec-future-line);
    background: var(--ec-future-panel);
}
.ec-app .ticket-card-gold { background-color: var(--ec-future-panel); border-left: 4px solid var(--ec-future-gold); }
.ec-app .ticket-card-gold.ticket-winner { border-left-color: #83d0a0; }
.ec-app .activity-ledger .movement-row:hover { background: rgba(255, 224, 151, .065) !important; }
.ec-app .activity-ledger .movement-row { border-radius: 0; box-shadow: none; }
.ec-app .activity-ledger .movement-row:nth-child(even) { background: #ffffff04; }
.ec-app .wallet-prizes { box-shadow: none; background: var(--ec-future-inset); }
.ec-app .wallet-section-links { padding: 6px; gap: 6px; background: var(--ec-future-panel); border: 1px solid var(--ec-future-line); border-radius: 14px; }
.ec-app .wallet-section-links a { border: 0; border-radius: 9px; min-height: 44px; color: var(--ec-future-ink); }
.ec-app .wallet-section-links a:hover { background: var(--ec-future-raised); }
.ec-app .withdrawal-destination { background: var(--ec-future-inset); border-color: var(--ec-future-line); }
.ec-app .payment-options input + span { background: var(--ec-future-inset); border-color: #d52923; }
.ec-app .payment-options input:disabled + span { border-color:#74665a; background:#211c1e; cursor:not-allowed; }
.ec-app .payment-options input:disabled + span strong { color:#e2d1bd; }
.ec-app .payment-options [data-card-minimum-note] { color:#efd2a1; font-size:.75rem; line-height:1.4; }
.ec-app .payment-options [data-card-minimum-note][hidden] { display:none; }
.ec-app :is(.ticket-filter-tabs > a, .raspa-lote-tabs a) { min-height: 44px; }

/* Billetera: saldo protagonista, acciones identificables y actividad sin ruido. */
.ec-app .wallet-page { max-width: 1100px; margin-inline: auto; }
.ec-app .wallet-page .wallet-heading { padding-bottom: 16px; }
.ec-app .wallet-symbol { width: 24px; height: 24px; flex: 0 0 24px; }
.ec-app .wallet-overview { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; }
.ec-app .wallet-overview > * { min-width: 0; margin: 0; }
.ec-app .wallet-page .wallet-hero { padding:clamp(22px,3vw,32px); gap:20px; border-radius:18px; border-color:var(--ec-future-line); background:radial-gradient(ellipse at 100% 0,#a7193026,transparent 70%),var(--ec-future-panel); box-shadow:0 12px 32px #00000026; }
.ec-app .wallet-card-signature { display:flex; align-items:center; justify-content:space-between; gap:16px; color:#f1d69c; font-size:.8rem; font-weight:800; letter-spacing:.12em; }
.ec-app .wallet-card-signature > span { min-width:0; overflow-wrap:anywhere; }
.ec-app .wallet-card-signature small { display:block; margin-top:4px; color:#e0d9cd; font-size:.75rem; font-weight:500; letter-spacing:.04em; }
.ec-app .wallet-card-signature svg { width:40px; height:30px; flex-shrink:0; fill:#d8b46c; stroke:#66512e; stroke-width:1; }
.ec-app .wallet-page .wallet-hero .balance-heading { gap:0; }
.ec-app .wallet-page .wallet-hero .balance-wallet-icon,.ec-app .wallet-page .wallet-hero .balance-eyebrow { display:none; }
.ec-app .wallet-page .wallet-hero .balance-label { color:#d9d3c8; font-weight:500; }
.ec-app .wallet-page .wallet-hero::after { width:120px; height:120px; right:-48px; top:-48px; opacity:.25; }
.ec-app .wallet-page .balance-wallet-icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 14px; }
.ec-app .wallet-page .balance-amount { text-shadow:none; font-size:clamp(1rem,min(14cqi,calc(160cqi / var(--balance-digits))),3.2rem); font-variant-numeric:tabular-nums; letter-spacing:-.035em; }
.ec-app .wallet-page .balance-details { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr)); gap:10px; align-items:stretch; border-color:#f1c37d4a; }
.ec-app .wallet-page .balance-details > span { display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: center; gap: 10px; padding: 12px; min-width: 0; background: #0d0e1070; border-color: #efca8740; border-radius: 12px; }
.ec-app .wallet-page .balance-details > span > span { display:grid; gap:5px; color:#ead2be; font-size:.75rem; min-width:0; overflow-wrap:anywhere; }
.ec-app .wallet-page .balance-details .wallet-symbol { color: #ffe1a0; }
.ec-app .wallet-page .balance-details b { color: #fff0cb; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.ec-app .wallet-page .balance-updated { grid-column: 1 / -1; margin-top: 2px; color: #f4d8c1; }
.ec-app .wallet-page .wallet-prizes { display: grid; align-content: center; gap: 12px; padding: 22px; border-color: #82704e; border-radius: 20px; background: radial-gradient(ellipse at top right,#b38a4e20,transparent 65%),var(--ec-future-panel); box-shadow: none; }
.ec-app .wallet-page .wallet-prizes-icon { width: 42px; height: 42px; flex-basis: 42px; color: #ffe2a0; border-color: #b38a4e; background: #6e421b50; box-shadow: none; }
.ec-app .wallet-page .wallet-prizes > .wallet-prizes-amount { display: block; margin: 0; padding: 0; background: transparent; font-size: clamp(1.5rem,4vw,2rem); color: #ffe4a1; white-space: normal; overflow-wrap: anywhere; }
.ec-app .wallet-page .wallet-prizes-footer { gap: 8px; border-color: #af854040; padding-top: 12px; }
.ec-app .wallet-page .wallet-prizes > p { margin: 0; }
.ec-app .wallet-page .wallet-prizes:hover { border-color: #efc87e; }
.ec-app .wallet-page .wallet-section-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding: 6px; margin-block: 18px; background: var(--ec-future-panel); border-color: #ab7269; border-radius: 16px; }
.ec-app .wallet-page .wallet-section-links a { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; min-height: 62px; padding: 10px; color: #f0e2bb; background: var(--ec-future-raised); border: 1px solid #bf948d60; border-radius: 11px; font-weight: 750; line-height: 1.4; }
.ec-app .wallet-page .wallet-section-links a span { min-width: 0; overflow-wrap: anywhere; }
.ec-app .wallet-page .wallet-section-links a:hover { background: #841915; border-color: #e1b875; }
.ec-app .wallet-page:has(#depositar:target) a[href='#depositar'],.ec-app .wallet-page:has(#retirar:target) a[href='#retirar'],.ec-app .wallet-page:has(#movimientos:target) a[href='#movimientos'] { border-color: #f1c67d; box-shadow: inset 0 -3px #f1c67d; background: #961d18; }
.ec-app .wallet-page .wallet-forms { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 18px; }
.ec-app .wallet-page .form-card { padding: clamp(18px,3vw,26px); border-color: var(--ec-future-line); background: #1c1b24; }
.ec-app .wallet-page .wallet-panel-heading { display: flex; justify-content: flex-start; align-items: center; gap: 12px; margin-bottom: 20px; }
.ec-app .wallet-panel-heading > div { min-width: 0; }
.ec-app .wallet-page .wallet-panel-heading h2 { margin: 3px 0 0; font-size: clamp(1.1rem,2vw,1.35rem); color: #fff1dc; line-height: 1.35; overflow-wrap: anywhere; }
.ec-app .wallet-page .wallet-panel-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; color: #ffe3a1; border: 1px solid #bf814c; border-radius: 13px; background: linear-gradient(135deg,#a7201b,#5a110f); }
.ec-app .wallet-page .wallet-money-field { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: stretch; border: 1px solid #625766; border-radius: 12px; background: var(--ec-future-inset); overflow: hidden; }
.ec-app .wallet-money-field > span { display: grid; place-items: center; color: #f5d394; background: #60121040; font-size: 1.25rem; border-right: 1px solid #ac7b4438; }
.ec-app .wallet-page .wallet-money-field input { min-width: 0; width: 100%; border: 0; border-radius: 0; background: transparent; box-shadow: none; min-height: 56px; font-size: 1.1rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.ec-app .wallet-money-field:focus-within { outline: 3px solid var(--ec-focus); outline-offset: 3px; }
.ec-app .wallet-page .wallet-money-field input:focus { outline: 0; box-shadow: none; }
.ec-app .wallet-page .payment-options { gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.ec-app .wallet-page .payment-options label { min-width: 0; }
.ec-app .wallet-page .payment-options input[type=radio] { top: 0; left: 0; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; border: 0; clip-path: inset(50%); }
.ec-app .wallet-page .payment-options input + span { display: grid; position: relative; grid-template-columns: minmax(0,1fr); justify-content: stretch; align-content: start; gap: 6px; height: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--ec-future-line); background: var(--ec-future-panel); color: #efe4e2; }
.ec-app .wallet-page .payment-options strong { font-size: .87rem; line-height: 1.4; overflow-wrap: anywhere; }
.ec-app .wallet-page .payment-options small { margin: 0; line-height: 1.5; color: #e6d4c5; font-size: .8rem; overflow-wrap: anywhere; }
.ec-app .wallet-page .payment-options .wallet-symbol { color: #ecc37c; width: 27px; height: 27px; margin-bottom: 3px; }
.ec-app .wallet-page .payment-options input:checked + span { border-color: #e8c075; background: #383025; color: #fff0d0; box-shadow: inset 0 -2px #dfb767; }
.ec-app .wallet-page .payment-options input:checked + span::after { content: '✓'; position: absolute; top: 10px; right: 10px; color: #ffe3a1; font-weight: 850; }
.ec-app .wallet-page .payment-options label:focus-within > span { outline: 3px solid var(--ec-focus); outline-offset: 3px; }
.ec-app .wallet-page .withdrawal-status { padding: 12px; border-radius: 12px; margin-bottom: 18px; }
.ec-app .wallet-page .withdrawal-status.open { background: #19362a; color: #cdf2dc; border-color: #739d7c; }
.ec-app .wallet-page .withdrawal-status.closed { background: #4e0f0d; color: #ffcfbc; border-color: #e0433e; }
.ec-app .wallet-page .withdrawal-status small { color: inherit; font-size: .76rem; line-height: 1.55; }
.ec-app .wallet-page .withdrawal-destination { background: var(--ec-future-panel); padding: 14px; border-color: var(--ec-future-line); }
.ec-app .wallet-page .locked-bank { background: #57110e; border-color: #9f733f; color: #ffe0a2; }
.ec-app .wallet-page .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; max-width: 100%; height: auto; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.ec-app .wallet-page .button > span { min-width: 0; }
.ec-app .wallet-page .wallet-withdrawal-history { margin-top: 20px; padding: 20px; background: #1c1b24; }
.ec-app .wallet-withdrawal-history > p { color: #dfc0aa; line-height: 1.6; font-size: .82rem; }
.ec-app .wallet-withdrawal-history .list-card { flex-wrap: wrap; gap: 12px; border-color: #af211c; padding: 16px; }
.ec-app .wallet-withdrawal-history .list-card > div { flex: 1 1 220px; min-width: 0; }
.ec-app .wallet-withdrawal-history .list-card form { max-width: 100%; min-width: 0; }
.ec-app .wallet-withdrawal-history .list-card strong { color: #ffe3aa; overflow-wrap: anywhere; }
.ec-app .wallet-withdrawal-state { display: inline-block; max-width: 100%; margin-top: 8px; padding: 4px 9px; border: 1px solid #b48a4e; border-radius: 6px; color: #ffe2a1; background: #651311; font-size: .75rem; overflow-wrap: anywhere; }
.ec-app .wallet-page .activity-ledger { border-color: var(--ec-future-line); border-top-width: 1px; border-radius: 16px; background: #1c1b24; overflow: hidden; }
.ec-app .wallet-page .movement-row { min-height: 84px; padding: 16px; gap: 10px; }
.ec-app .wallet-page .movement-row + .movement-row { border-top: 1px solid #a37b4733; }
.ec-app .wallet-page .movement-icon { border-radius: 12px; border: 1px solid #e2534e4a; box-shadow: none; }
.ec-app .wallet-page .movement-icon.positive { background: #224534; color: #bceac9; border-color: #739e7d; }
.ec-app .wallet-page .movement-icon.negative { background: #7a1714; color: #ffcfb8; border-color: #dd322c; }
.ec-app .wallet-page .movement-icon.neutral { background: #443729; color: #ead6b3; }
.ec-app .wallet-page .movement-icon.is-prize { background: linear-gradient(135deg,#f4d18a,#c08e3f); color: #440d0b; border-color: #ffe0a1; }
.ec-app .wallet-page .movement-row .list-value > .amount-positive { color: #ade4bf; }
.ec-app .wallet-page .movement-row .list-value > .amount-negative { color: #ffb7a0; }
.ec-app .wallet-page .movement-row .list-value > .amount-neutral { color: #e8cfac; }
.ec-app .wallet-page .movement-detail,.ec-app .wallet-page .movement-row .list-value { min-width: 0; overflow-wrap: anywhere; }
.ec-app .wallet-page .wallet-empty { padding: 26px 20px; text-align: center; }
.ec-app .wallet-empty .wallet-panel-icon { margin: 0 auto 14px; }
.ec-app .wallet-page :is(a,button,input):focus-visible { outline: 3px solid var(--ec-focus); outline-offset: 3px; }
@media(min-width: 900px) {
    .ec-app .wallet-overview:has(.wallet-prizes) { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
    .ec-app .wallet-page .wallet-forms { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width: 480px) {
    .ec-app .wallet-page .wallet-hero { padding: 18px; }
    .ec-app .wallet-page .balance-details > span { padding: 10px 8px; grid-template-columns: 20px minmax(0,1fr); gap: 6px; }
    .ec-app .wallet-page .balance-details .wallet-symbol { width: 20px; height: 20px; }
    .ec-app .wallet-page .balance-details b { font-size: .9rem; }
    .ec-app .wallet-page .wallet-prizes { padding: 18px; gap: 10px; }
    .ec-app .wallet-page .wallet-section-links a { flex-direction: column; gap: 6px; padding: 10px 2px; font-size: .75rem; }
    .ec-app .wallet-page .payment-options input + span { padding: 12px; }
    .ec-app .wallet-page .movement-row { padding: 14px 12px; gap: 5px 10px; }
}

/* Jugar: un recorrido, tres pasos y un resumen accesible sin comprar. */
.ec-app .play-wizard { max-width: 1100px; }
.ec-app .play-wizard .play-heading { display:flex; align-items:center; gap:16px; margin:0 0 24px; padding:24px; border:1px solid #733044; border-radius:18px; background:linear-gradient(115deg,#780c22,#27131d 80%); }
.ec-app .play-heading > div { flex: 1; min-width: 0; }
.ec-app .play-heading h1 { margin: 6px 0; font-size: clamp(1.55rem,4vw,2rem); line-height: 1.2; }
.ec-app .play-heading p { margin: 0; max-width: 58ch; color: #f0d4be; font-size: .85rem; line-height: 1.5; }
.ec-app .play-heading-art { flex: 0 0 auto; }
.ec-app .play-heading-art .game-illustration { width: 100px; height: 76px; }
.ec-app .play-wizard .play-progress { gap: 8px; margin: 0 0 12px; }
.ec-app .play-wizard .play-progress > span { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 64px; padding: 10px; color: var(--ec-future-muted); background: var(--ec-future-panel); border: 1px solid var(--ec-future-line); border-radius: 14px; line-height: 1.4; }
.ec-app .play-progress b { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border: 1px solid #bb241e; border-radius: 50%; font-size: .75rem; }
.ec-app .play-progress em { min-width: 0; font-style: normal; overflow-wrap: anywhere; }
.ec-app .play-wizard .play-progress [aria-current=step] { color:#fffae9; background:linear-gradient(115deg,#88152bed,#65172ae8),url('/branding/jewel/tiempos-loteria-450.webp') 75% 55%/cover; border-color:#ffd78b; box-shadow:inset 0 -3px #e9bb67; font-weight:800; }
.ec-app .play-progress [aria-current=step] b { color:#281c10; background:var(--ec-future-gold-light); border-color:var(--ec-future-gold-light); }
.ec-app .play-wizard .play-progress [data-step-label="2"][aria-current=step] { color:#34220e; background:linear-gradient(155deg,#fff0bc,#d9ab5a); border-color:#ffe7ac; box-shadow:inset 0 -3px #936a31; }
.ec-app .play-progress [data-step-label="2"][aria-current=step] b { color:#ffedc4; background:#493117; border-color:#493117; }
.ec-app .play-wizard .play-progress .complete { color: #dbf6e5; border-color: #77aa85; background:#173c2c; }
.ec-app .play-progress .complete b { color: transparent; position: relative; }
.ec-app .play-progress .complete b::after { content: '✓'; position: absolute; color: #ffe2a2; }
.ec-app .play-wizard .play-running-summary { padding: 0 14px; margin: 0 0 16px; background: #270706; border-color: #a27549; border-radius: 14px; }
.ec-app .play-running-summary > summary { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 8px 0; list-style: none; }
.ec-app .play-running-summary > summary::-webkit-details-marker { display: none; }
.ec-app .running-summary-label { flex: 1; min-width: 0; color: #f8e1c9; font-weight: 750; }
.ec-app .running-summary-label small { display: block; margin-top: 3px; font-weight: 500; }
.ec-app .play-running-summary [data-running-total] { font-size: 1.25rem; color: #ffe4a1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ec-app .running-summary-toggle { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border: 1px solid #a27549; border-radius: 50%; font-size: 1.2rem; }
.ec-app .play-running-summary[open] .running-summary-toggle { transform: rotate(45deg); }
.ec-app .play-running-summary[open] { padding-bottom: 14px; }
.ec-app .play-running-summary [data-running-numbers],.ec-app .play-running-summary [data-running-tickets] { overflow-wrap: anywhere; line-height: 1.6; }
.ec-app .play-wizard .step-card,.ec-app .play-wizard .play-summary { background: var(--ec-future-panel); border-color: #917044; border-top:3px solid #d8af65; padding: clamp(14px,3vw,24px); overflow: visible; }
.ec-app .play-wizard .step-title { gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.ec-app .play-wizard .step-title > span { background: var(--ec-action-gold); color: var(--ec-action-ink); border: 1px solid #f4d28a; box-shadow: inset 0 1px #fff3cf; }
.ec-app .play-wizard .step-title h2 { font-size: 1.1rem; line-height: 1.4; }
.ec-app .play-wizard .step-title p { font-size: .8rem; line-height: 1.6; color: #dcc5b5; }
.ec-app .play-wizard .draw-continue-bar { position:sticky; flex-wrap:wrap; padding:12px; top:8px; border-color:var(--ec-future-line); background:var(--ec-future-raised); box-shadow:0 5px 18px #0003; }
.ec-app .play-wizard .draw-continue-bar > span { flex: 1 1 120px; min-width: 0; color: #ffe2ac; font-size: .85rem; overflow-wrap: anywhere; }
.ec-app .play-wizard .draw-continue-bar .button { flex: 0 1 auto; max-width: 100%; }
.ec-app .play-wizard .compact-step-status { flex:1 1 130px; min-width:0; color:#fff0d2; font-size:.8rem; }
.ec-app .play-wizard .compact-play-totals { display:flex; flex-wrap:wrap; gap:3px 12px; margin-top:4px; line-height:1.4; }
.ec-app .play-wizard .compact-play-totals small { color:#ead2bb; font-size:.7rem; }
.ec-app .play-wizard .compact-play-totals strong { color:#ffe4a1; font-size:.85rem; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.ec-app .play-wizard .review-layout-compact { grid-template-columns:minmax(0, 1fr); gap:14px; max-width:100%; margin-inline:auto; }
/* La compra conserva un solo botón de confirmación; el resumen no tapa controles. */
.ec-app .play-running-summary .text-button { min-height:44px; }
.ec-app .portal-results [data-results-status] { min-height:3.2em; }
.ec-app .portal-results [data-results-content] { overflow-anchor:none; }
.ec-app .wallet-workspace { display:grid; gap:18px; min-width:0; }
.ec-app .wallet-workspace > * { min-width:0; margin:0; }
.ec-app .wallet-page .wallet-prizes { margin-top:20px; }
.ec-app .wallet-page .wallet-heading:has(> .section-art) { min-height:92px; padding:14px 20px; margin-bottom:16px; }
.ec-app .wallet-heading h1 { margin:2px 0 4px; font-size:1.6rem; }
.ec-app .wallet-heading p { margin:0; }
.ec-app .wallet-heading > .eyebrow { display:none; }
.ec-app .checkout-confirmation { padding:12px; border:1px solid #d6b36c; border-radius:10px; background:#1e110b; color:#fff0cb; font-weight:650; line-height:1.5; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.ec-app .movement-row > .movement-explanation { grid-column:1 / -1; grid-row:auto; min-width:0; border-top:1px solid #c89a5740; }
.ec-app .movement-explanation summary { min-height:44px; padding:10px 0; cursor:pointer; color:#f4d393; font-size:.8rem; }
.ec-app .movement-explanation p { margin:0 0 10px; font-size:.85rem; color:#ebd7c7; }
.ec-app .movement-explanation summary:focus-visible { outline:3px solid #f6d58e; outline-offset:2px; }
.ec-app .operation-success { top:var(--portal-header-clearance,118px); width:min(380px,calc(100vw - 28px)); padding:12px; gap:8px; }
.ec-app .operation-success-icon { flex-basis:30px; height:30px; font-size:20px; }
@media(min-width:1100px) {
    .ec-app .wallet-workspace { grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr); align-items:start; }
    .ec-app .wallet-workspace .wallet-overview { grid-column:1; grid-row:1 / span 2; position:sticky; top:var(--portal-header-clearance,24px); }
    .ec-app .wallet-workspace .wallet-section-links { grid-column:2; grid-row:1; }
    .ec-app .wallet-workspace .wallet-forms { grid-column:2; grid-row:2; }
    .ec-app .play-wizard .review-layout-compact { grid-template-columns:minmax(0,1fr) minmax(320px,1fr); align-items:start; }
    .ec-app .review-checkout { position:sticky; top:var(--portal-header-clearance,24px); }
}
.ec-app .play-wizard:has([data-play-step="2"]:not([hidden])) > .play-heading { display:none; }
.ec-app .play-wizard .review-edit-actions { display:flex; flex-wrap:wrap; gap:12px 24px; margin:0 auto 14px; max-width:760px; }
.ec-app .play-wizard .review-edit-actions .text-button { min-height:44px; padding:8px 4px; }
.ec-app .play-wizard .review-disclosure { min-width:0; border:1px solid #a56960; border-radius:14px; background:var(--ec-future-panel); }
.ec-app .play-wizard .review-disclosure > summary { padding:16px; cursor:pointer; color:#fff1d0; font-weight:750; overflow-wrap:anywhere; }
.ec-app .play-wizard .review-disclosure > summary small { display:block; margin:6px 0 0 18px; color:#e9dbd9; font-weight:500; }
.ec-app .play-wizard .review-disclosure[open] > summary { border-bottom:1px solid #a56960; }
.ec-app .play-wizard .review-disclosure .review-details { padding:16px; }
.ec-app .play-wizard .review-disclosure .review-delivery-note { margin:0 16px 16px; }
.ec-app .play-wizard .review-disclosure .review-stats { display:block; margin:12px 16px 0; }
.ec-app .play-wizard .review-disclosure .review-stats > div { flex-direction:row; align-items:center; justify-content:space-between; padding:8px 12px; }
.ec-app .purchase-next-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:16px 0; }
.ec-app .purchase-next-actions .button { min-width:0; min-height:48px; white-space:normal; overflow-wrap:anywhere; text-align:center; }
.ec-app .play-wizard .active-paint-amount { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; margin:10px 0; border:1px solid #c49a52; border-radius:12px; background:linear-gradient(125deg,#4e100d,#201e1a); box-shadow:inset 0 1px #ffe0a122; }
.ec-app .play-wizard .active-paint-amount > div { min-width:0; }
.ec-app .play-wizard .active-paint-amount :is(small,strong) { display:block; overflow-wrap:anywhere; }
.ec-app .play-wizard .active-paint-amount small { color:#e2c5a7; font-size:.65rem; line-height:1.5; }
.ec-app .play-wizard .active-paint-amount strong { color:#ffe4a1; font-size:.95rem; font-variant-numeric:tabular-nums; }
.ec-app .play-wizard .active-paint-amount .button { flex:0 0 100px; padding:8px; font-size:.75rem; }
.ec-app .play-wizard .paint-amount-dialog { box-sizing:border-box; width:min(440px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); padding:20px; border:1px solid #e8bd6b; border-radius:20px; color:#fff0d2; background:linear-gradient(145deg,#54100c,var(--ec-future-panel) 60%); overflow:auto; overscroll-behavior:contain; box-shadow:0 24px 80px #0009; }
.ec-app .paint-amount-dialog::backdrop { background:#0c0807bb; backdrop-filter:blur(5px); }
.ec-app .paint-amount-dialog header { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.ec-app .paint-amount-dialog h2 { font-size:1.2rem; margin:6px 0; }
.ec-app .paint-amount-dialog p { font-size:.8rem; line-height:1.6; color:#e2cbb8; }
.ec-app .paint-amount-dialog .amount-pills { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin:16px 0; }
.ec-app .paint-amount-dialog .amount-pills [aria-pressed=true] { color:var(--ec-action-ink); background:var(--ec-action-gold); border-color:#ffe4a1; }
.ec-app .paint-amount-dialog .amount-pills [aria-pressed=true]::before { content:'✓ '; }
.ec-app .paint-amount-dialog input { width:100%; box-sizing:border-box; margin-bottom:14px; }
.ec-app .play-wizard .play-expiry-notice { position:fixed; z-index:45; left:12px; right:12px; bottom:var(--portal-nav-clearance,118px); max-width:560px; max-height:32dvh; overflow:auto; margin-inline:auto; padding:14px; border:1px solid #f0c579; border-left:5px solid #f0c579; border-radius:14px; background:#48110f; box-shadow:0 8px 36px #0008; color:#fff0dc; font-size:.8rem; line-height:1.5; }
.ec-app .play-wizard .play-expiry-notice[hidden] { display:none; }
.ec-app .play-wizard .play-expiry-notice .text-button { color:#ffe2a1; min-height:44px; }
.ec-app .play-wizard :is(.button,.text-button,.draw-toggle,.chosen-draw,.amount-pills button,.number-blocks button) { min-width: 0; max-width: 100%; min-height: 44px; height: auto; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
.ec-app .play-wizard .draw-list-help { color: #dcc5b5; font-size: .78rem; }
.ec-app .play-wizard .draw-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 14px 0; }
.ec-app .play-wizard .draw-option { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: 26px 1fr auto; padding: 10px; gap: 6px; border-radius: 14px; border-color: #9e7758; background: var(--ec-future-panel); align-items: start; min-width: 0; box-shadow: inset 0 1px #ffe9be26,0 5px 16px #0003; }
.ec-app .play-wizard .draw-backdrop { position:absolute; inset:0; width:100%; height:100%; border-radius:13px; opacity:.65; z-index:-2; pointer-events:none; overflow:hidden; }
.ec-app .play-wizard .draw-logo-backdrop { object-fit:cover; object-position:center 35%; }
.ec-app .play-wizard .draw-option::before { content:''; position:absolute; inset:0; border-radius:13px; z-index:-1; pointer-events:none; background:linear-gradient(160deg,#1c1d2066,#111214dd 60%,#111214f5); }
.ec-app .play-wizard .draw-backdrop.flag-us,.ec-app .play-wizard .draw-backdrop.flag-pr { background:repeating-linear-gradient(to bottom,#b6231e 0 7.69%,#fff 7.69% 15.38%); }
.ec-app .play-wizard .draw-option[hidden] { display: none; }
.ec-app .play-wizard .draw-option:has(input:checked) { border-color: #ffe2a1; box-shadow: inset 0 0 0 1px #efc478,0 5px 18px #0004; }
.ec-app .play-wizard .draw-option:has(input:checked)::before { background:linear-gradient(160deg,#69421266,#211c17dd 60%,#211c17f5); }
.ec-app .play-wizard .draw-option:has(.draw-toggle:focus-visible) { outline: 3px solid var(--ec-focus); outline-offset: 3px; }
.ec-app .play-wizard .draw-option .country-flag { align-self: center; width: 30px; height: 21px; }
.ec-app .play-wizard .draw-chance-logo { width: 26px; height: 26px; border-radius: 7px; }
.ec-app .play-wizard .draw-more-bar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; margin:8px 0 12px; }
.ec-app .play-wizard .draw-more-bar small { color:#e7d7d4; font-size:.75rem; }
.ec-app .play-wizard .draw-more-bar .button { min-height:44px; padding:8px 14px; border-color:#be995d; color:#ffe2a1; background:#362320; }
.ec-app .play-wizard .draw-name { font-size: .88rem; line-height: 1.4; color: #fff1d7; overflow-wrap: anywhere; }
.ec-app .play-wizard .draw-payouts { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 6px 0; align-items: center; }
.ec-app .play-wizard .draw-payout { padding: 2px 6px; border: 1px solid #b38c505e; border-radius: 5px; color: #ffe3a1; background: #75522230; font-size: .72rem; font-variant-numeric: tabular-nums; }
.ec-app .play-wizard .draw-payout-red { color: #ffd5c0; background: #a41f1b38; }
.ec-app .play-wizard .draw-cadence,.ec-app .play-wizard .draw-close { color: #d7bba9; font-size: .7rem; line-height: 1.5; }
.ec-app .play-wizard .draw-toggle { position: static; width: 100%; min-width: 0; padding: 10px 8px; border-color: #b28553; color: #ffe0a1; background: #470e0c; font-size: .76rem; }
.ec-app .play-wizard .draw-toggle::after { content: ''; position: absolute; inset: 0; border-radius: 14px; }
.ec-app .play-wizard .draw-toggle[aria-pressed=true] { color:var(--ec-future-ink); background:var(--ec-red); border-color:var(--ec-future-gold-light); }
.ec-app .play-wizard .draw-toggle[aria-pressed=true]::before { content: '✓ '; }
.ec-app .play-wizard .number-workspace { display: grid; gap: 18px; align-items: start; }
.ec-app .play-wizard .number-selection { min-width: 0; }
.ec-app .play-wizard .group-amount-panel { padding: 16px; border-color: #ac874c; background: #211e18; box-shadow:inset 0 1px #f4d28a22; }
.ec-app .play-wizard .group-amount-heading { flex-wrap: wrap; gap: 8px; }
.ec-app .play-wizard .group-amount-heading strong { color: #ffe4a1; font-size: 1.6rem; overflow-wrap: anywhere; }
.ec-app .play-wizard .amount-pills { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.ec-app .play-wizard .amount-pills button { background: var(--ec-future-panel); border-color: #9c5b51; padding: 8px 4px; color: #f8e8c6; font-size: .82rem; }
.ec-app .play-wizard .amount-pills button.active { color:var(--ec-future-ink); background:var(--ec-red); border-color:var(--ec-future-gold-light); box-shadow:inset 0 -2px #efcf88; font-weight:850; }
.ec-app .play-wizard .number-picker-heading { margin: 0 0 10px; }
.ec-app .play-wizard .number-picker-heading strong { font-size: .9rem; }
.ec-app .play-wizard .brush-controls { padding: 10px 12px; border-radius: 10px; background: #1e1311; border-left:3px solid #a76156; line-height: 1.5; }
.ec-app .play-wizard .brush-controls small { color:var(--ec-future-muted); opacity:1; font-size:.82rem; line-height:1.65; }
.ec-app .play-wizard .play-budget { margin: 12px 0; background: #30271a; border-color: #c39a55; }
.ec-app .play-wizard .play-budget strong { color: #ffe4a1; font-size: 1.4rem; }
.ec-app .play-wizard .play-budget p { color: #dfc3ac; font-size: .74rem; line-height: 1.5; }
.ec-app .play-wizard .number-range-label { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 12px; margin:18px 0 8px; color:#ffe0a0; font-weight:800; font-size:.95rem; }
.ec-app .play-wizard .number-range-label span { color:#dcc4c0; font-size:.72rem; font-weight:500; }
.ec-app .play-wizard .number-blocks { padding:8px; margin-bottom:14px; gap:6px; border:1px solid #967641; border-radius:14px; background:linear-gradient(120deg,#332027,#19171c); }
.ec-app .play-wizard .number-blocks button { font-size: .78rem; background: var(--ec-future-raised); color: #f4edec; border:1px solid #625766; border-radius:9px; font-weight:750; padding:8px 3px; font-variant-numeric:tabular-nums; }
.ec-app .play-wizard .number-blocks button[aria-pressed=true] { color:#2e1b10; background:linear-gradient(160deg,#fff1c8,#e2b765); border-color:#ffe9b3; box-shadow:inset 0 -3px #a57937; font-weight:800; text-decoration:underline; text-underline-offset:4px; }
.ec-app .play-wizard .number-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.ec-app .play-wizard .number-cell > span { min-height: 64px; height: auto; aspect-ratio: auto; padding: 8px 2px; background: var(--ec-future-inset); border-color: var(--ec-future-line); border-radius: 12px; }
.ec-app .play-wizard .number-cell b { font-size: 1.1rem; color: #ffe7c0; }
.ec-app .play-wizard .number-cell[aria-pressed=true] > span { border-color:var(--ec-future-gold-light); background:var(--ec-red); box-shadow:inset 0 -2px #750d21; }
.ec-app .play-wizard .number-cell[aria-pressed=true] > span :is(b,small) { color:var(--ec-future-ink); }
.ec-app .play-wizard .number-cell[aria-pressed=true] > span::after { content:'✓'; position:absolute; right:3px; top:1px; color:var(--ec-future-gold-light); font-size:.75rem; font-weight:900; }
.ec-app .play-wizard .number-cell.assigned small { color: #ffe2a5; font-size: .65rem; overflow-wrap: anywhere; }
.ec-app .play-wizard .play-group { background: #220605; border-color: #9b7347; }
.ec-app .play-wizard .step-actions { flex-wrap: wrap; }
.ec-app .play-wizard .step-actions .button { flex: 1 1 140px; }
.ec-app .play-wizard .payment-options { gap:12px; margin:16px 0; }
.ec-app .play-wizard .payment-options[hidden] { display:none; }
.ec-app .play-wizard .payment-options label { min-width:0; }
.ec-app .play-wizard .payment-options input + span { display:grid; grid-template-columns:clamp(34px,8vw,54px) minmax(0,1fr); align-content:center; align-items:center; padding:12px; border-radius:14px; border:2px solid #a5685f; background:var(--ec-future-panel); color:#f9f5f5; gap:3px 10px; overflow-wrap:anywhere; }
.ec-app .play-wizard .payment-options .pay-method-art { grid-column:1; grid-row:1/span 3; width:100%; height:auto; }
.ec-app .play-wizard .payment-options input + span > :not(svg) { grid-column:2; }
.ec-app .play-wizard .payment-options small { color:#e7d7d4; line-height:1.5; margin:0; }
.ec-app .play-wizard .payment-options .payment-selected { visibility:hidden; font-style:normal; font-size:.75rem; font-weight:800; line-height:1.5; }
.ec-app .play-wizard .payment-options input:checked + span { color:var(--ec-future-ink); border-color:var(--ec-future-gold-light); background:#321c28; box-shadow:inset 0 -2px #efcf88; }
.ec-app .play-wizard .payment-options input:checked + span :is(strong,small,.payment-selected) { color:var(--ec-future-ink); }
.ec-app .play-wizard .payment-options input:checked + span .payment-selected { visibility:visible; }
.ec-app .play-wizard .payment-options label:focus-within > span { outline: 3px solid var(--ec-focus); outline-offset: 3px; }
.ec-app .play-wizard .review-stats > div { background: #4d0f0d; border: 1px solid #9e7349; }
.ec-app .play-wizard .review-stats dd { color: #ffe3a1; }
.ec-app .play-wizard .review-checkout { padding:18px; background:var(--ec-future-panel); border:2px solid #ba8a50; border-radius:16px; }
.ec-app .play-wizard .review-checkout .review-heading h3 { color:#ffe4a1; font-size:1.15rem; }
.ec-app .play-wizard .review-checkout .summary-total { padding:16px; margin:12px 0; border-radius:12px; background:#30271a; }
.ec-app .play-wizard .review-checkout .toggle-row { border:2px solid #a5685f; background:#31201d; margin:14px 0; }
.ec-app .play-wizard .review-checkout .toggle-row:has(input:checked) { border-color:#e4be75; background:#294635; }
.ec-app .play-wizard .review-checkout .toggle-row small { color:#e0e9df; line-height:1.5; }
.ec-app .play-wizard .review-checkout .toggle-row input:checked + span { background:#efd18a; }
.ec-app .play-wizard .review-checkout .toggle-row input:checked + span::after { background:#291b0d; }
.ec-app .play-wizard .review-payment-breakdown dt { color:#e7d7d4; }
.ec-app .play-wizard .review-payment-breakdown dd { color:#ffe4a1; }
.ec-app .play-wizard .review-payment-breakdown > div { align-items:center; padding:14px 12px; margin:8px 0; border:1px solid #92554b; border-radius:10px; background:var(--ec-future-panel); }
.ec-app .play-wizard .review-payment-breakdown [data-review-external-row] { background:#42120d; border-color:#bc8e54; }
.ec-app .play-wizard .review-payment-breakdown dt small { display:block; color:#f2d4b2; margin-top:4px; font-size:.7rem; }
.ec-app .play-wizard .review-payment-breakdown dd { font-size:1.1rem; overflow-wrap:anywhere; }
.ec-app .play-wizard .summary-total { padding: 14px; border-radius: 12px; background: #6d1512; }
.ec-app .play-wizard .summary-total strong { color: #ffe4a1; overflow-wrap: anywhere; }
.ec-app .play-wizard :is(button,summary,input):focus-visible { outline: 3px solid var(--ec-focus); outline-offset: 3px; }
.ec-app .play-wizard .draw-toggle:focus-visible { outline: none; } /* The complete card carries its visible keyboard focus. */
@media(min-width: 900px) {
    .ec-app .play-wizard .draw-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ec-app .play-wizard .number-workspace { grid-template-columns: minmax(240px,.7fr) minmax(0,1fr); gap: 24px; }
}
@media(max-width: 480px) {
    .ec-app .play-wizard .play-heading { padding: 16px; gap: 8px; }
    .ec-app .play-heading-art .game-illustration { width: 60px; height: 52px; }
    .ec-app .play-heading p { font-size: .78rem; }
    .ec-app .play-wizard .play-progress { gap: 5px; }
    .ec-app .play-wizard .play-progress > span { flex-direction: column; gap: 4px; padding: 8px 2px; font-size: .7rem; }
    .ec-app .play-wizard .draw-grid { gap: 8px; }
    .ec-app .play-wizard .draw-option { padding: 8px; gap: 5px; }
    .ec-app .play-wizard .draw-name { font-size: .82rem; }
    .ec-app .play-wizard .draw-toggle { min-width: 56px; padding-inline: 6px; }
    .ec-app .play-wizard .number-grid { gap: 6px; }
}

/* Centros especializados: Premium, estadísticas, Raspas, Ron, Agente y casino. */
.ec-app :is(.benefit-hero, .plus-hero, .premium-hero, .casino-hero, .agent-hero) {
    border-color: rgba(255, 216, 137, .43);
    background:
        linear-gradient(102deg, rgba(121, 20, 17, .96), rgba(151, 25, 21, .65) 60%, rgba(42, 8, 7, .91)),
        var(--chance-backdrop) center / cover;
    box-shadow: var(--ec-future-shadow);
}
.ec-app :is(.plus-intelligent-card, .plus-center-result, .plus-comparison-grid, .plus-number-map,
    .premium-plan, .premium-current, .raspa-category, .raspa-history-item, .ron-money-summary,
    .ron-hand-panel, .agent-commission, .agent-client, .casino-card) {
    border-color: var(--ec-future-line);
    background: var(--ec-future-panel);
    box-shadow: var(--ec-future-shadow);
}
.ec-app .ron-board { border-color: rgba(244, 199, 117, .44); box-shadow: inset 0 0 70px rgba(0, 0, 0,.64), 0 18px 36px rgba(0, 0, 0,.34); }
.ec-app .raspa-prize-banner { border-color: rgba(255, 216, 137, .5); box-shadow: var(--ec-future-shadow); }
.ec-app .agent-lifetime { font-size: clamp(2rem, 4vw, 3rem); }
.ec-app .plus-center-result { background: transparent; box-shadow: none; }
.ec-app :is(.plus-intelligent-card, .plus-comparison-grid) { background: var(--ec-future-panel); }
.ec-app .plus-number-map { background: var(--ec-future-inset); box-shadow: none; }
.ec-app .raspa-category-body { background: var(--ec-future-panel); }
.ec-app .premium-current { padding: 16px; border-left: 4px solid var(--ec-future-gold); border-radius: 12px; }
.ec-app .premium-plan { border-top: 3px solid #d3b5b1; }
.ec-app .premium-plan-gold { border-top-color: #efc875; }
.ec-app .premium-plan-max { border-top-color: #ee9a88; }
/* La tipografía global de h2 no debe reducir el multiplicador principal del plan. */
.ec-app .premium-plan h2 { font-size: clamp(2.7rem, 5vw, 3.5rem); color: #ffe4a1; line-height: 1.05; margin: 20px 0 8px; }
.ec-app .premium-plan h2 small { font-size: .5em; }
.ec-app .premium-period { background: var(--ec-future-inset); }
.ec-app :is(.consultation-message.customer, .consultation-message.team) { box-shadow: none; }
.ec-app .consultation-message.customer { background:#3f201c; border-color:#da8e78; border-bottom-right-radius:5px; }
.ec-app .consultation-message.team { background:#242d30; border-color:#85bdb2; border-bottom-left-radius:5px; }

/* Resultados: una fecha legible y un selector moderno, no un formulario heredado. */
.ec-app .results-heading { display: block; }
.ec-app .results-date-display {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: .76rem;
    padding: .48rem .78rem;
    border: 1px solid rgba(255, 218, 141, .32);
    border-radius: 999px;
    color: var(--ec-future-gold-light);
    background: rgba(255, 219, 141, .08);
    font-size: .84rem;
    font-weight: 800;
}
.ec-app .results-date-display > span { color: var(--ec-future-gold); font-size: 1.05rem; }
.ec-app .portal-results { padding: clamp(18px, 3.5vw, 30px); }
.ec-app .date-switcher {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: .7rem;
    align-items: stretch;
    padding: .85rem;
    border: 1px solid rgba(238, 194, 113, .23);
    border-radius: 18px;
    background: rgba(15, 2, 2, .43);
}
.ec-app .date-switcher-nav {
    min-height: 54px;
    border: 1px solid rgba(238, 194, 113, .3);
    border-radius: 13px;
    color: var(--ec-future-gold-light);
    background: linear-gradient(145deg, var(--ec-future-raised), #31201d);
    font-weight: 900;
    font-size: 1.22rem;
    box-shadow: inset 0 1px rgba(255, 237, 193, .13);
}
.ec-app .date-switcher-nav:hover { border-color: var(--ec-future-gold-light); }
.ec-app .date-switcher-nav.is-disabled { opacity: .35; }
.ec-app .date-switcher-form { min-width:0; }
.ec-app .date-switcher-form label { display:flex; align-items:center; gap:.5rem; color:#ffe2a5; font-size:.85rem; font-weight:750; margin-bottom:.65rem; }
.ec-app .date-switcher-form label svg { flex-shrink:0; }
.ec-app .date-switcher-form .inline-fields { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.5rem; }
.ec-app .date-switcher-form input { box-sizing:border-box; width:100%; min-width:0; min-height:46px; border-radius:12px; color-scheme:dark; background:var(--ec-future-inset); color:#fff3dd; border:1px solid #d0b1ac69; font-size:16px; }
.ec-app .portal-results .date-switcher-submit { display:flex; align-items:center; justify-content:center; gap:8px; min-width:0; max-width:100%; min-height:48px; height:auto; padding:10px 16px; border-radius:12px; background:linear-gradient(135deg,#b52b24,#781b17); border:1px solid #f0c57b80; color:#fff0cb; font-size:.9rem; line-height:1.4; text-align:center; white-space:normal; }
/* Scoped emphasis wins over global form themes without changing responsive sizing. */
body.ec-app #contenido-principal .portal-results .date-switcher-form input { background:#211713; color:#fff3dd; border:2px solid #d6b16f; font-weight:700; padding:8px; }
body.ec-app #contenido-principal .portal-results .date-switcher-submit { background:linear-gradient(135deg,#fff0bd,#e6bf6b 55%,#cea04c); background-color:#e6bf6b; border:2px solid #ffe5a1; color:#25170b; box-shadow:inset 0 1px 0 #fff6d9,0 3px 0 #765321; font-weight:800; }
body.ec-app #contenido-principal .portal-results .date-switcher-submit:hover { background:linear-gradient(135deg,#fff5d5,#f0cd83 55%,#d9ad5a); color:#25170b; }
body.ec-app #contenido-principal .portal-results .date-switcher-submit:active { background:#d6ad5a; color:#25170b; box-shadow:inset 0 2px 3px #76532166; }
body.ec-app #contenido-principal .portal-results .date-switcher-form input:focus-visible,
body.ec-app #contenido-principal .portal-results .date-switcher-submit:focus-visible { outline:3px solid #fff0bd; outline-offset:3px; }
.ec-app .portal-results .date-switcher-submit svg { flex:0 0 20px; }
.ec-app .portal-results .date-switcher-submit span { min-width:0; overflow-wrap:anywhere; }
.ec-app .result-card { min-height: 72px; padding: .7rem .85rem; }
.ec-app .results-heading:has(> .section-art) { min-height:140px; }
.ec-app .portal-results .date-switcher { border-color:#d6b16f73; background:radial-gradient(ellipse at top left,#b1292129,transparent 60%),linear-gradient(135deg,var(--ec-future-raised),var(--ec-future-panel)); box-shadow:inset 0 1px #ffe4b21a,0 8px 22px #100b0a33; margin-bottom:14px; }
.ec-app .portal-results .result-cards { gap:8px; }
.ec-app .portal-results .result-card > div > strong { font-size:.9rem; line-height:1.35; }
.ec-app .portal-results .result-identity { min-width:0; }
.ec-app .portal-results .result-identity > strong { overflow-wrap:normal; word-break:normal; }
.ec-app .portal-results .winning-number { font-size:1.5rem; box-shadow:inset 0 1px #fff1bc80,0 3px 10px #0005; }
.ec-app .result-value { display: flex; align-items: center; gap: .6rem; }
.ec-app .portal-results .result-value { flex-wrap:wrap; }
.ec-app .portal-results .winning-number { flex-shrink:0; }
.ec-app .portal-results .result-ball { padding:6px 9px; border:1px solid #d8be8b55; border-radius:10px; background:var(--ec-future-inset); line-height:1.4; }

/* Banners: CTA visual y copia legible sin convertir la fecha en un control antiguo. */
.ec-app .portal-banner {
    gap: clamp(.9rem, 2vw, 1.5rem);
    padding: clamp(1rem, 2.8vw, 1.45rem) !important;
    border-color: rgba(255, 216, 137, .45) !important;
    background:
        linear-gradient(102deg, rgba(74, 12, 10, .95), rgba(39, 5, 4, .9)),
        var(--chance-backdrop) center / cover !important;
}
.ec-app .portal-banner img { border: 1px solid rgba(255, 225, 164, .42); box-shadow: 0 12px 25px rgba(0, 0, 0,.35); }
.ec-app .portal-banner-copy { display: grid; gap: .42rem; min-width: 0; }
.ec-app .portal-banner-kicker { color: var(--ec-future-gold-light); font-size: .66rem; font-weight: 900; letter-spacing: .14em; }
.ec-app .portal-banner h2 { color: var(--ec-future-ink); margin: 0; }
.ec-app .portal-banner p { color: var(--ec-future-muted); margin: 0; }
.ec-app .portal-banner-link { display: inline-flex; align-items: center; gap: .42rem; width: fit-content; margin-top: .25rem; color: var(--ec-future-gold-light); font-weight: 850; }

/* Beneficios: un único banner, con datos reales y navegación independiente del dinero. */
.ec-app .home-benefits-stage { display:grid; gap:16px; margin-block:24px; min-width:0; }
.ec-app .home-benefits-stage > :is(.premium-carousel,.home-free-scratch) { margin:0; min-width:0; }
.ec-app .premium-carousel {
    container-type: inline-size;
    margin: 20px 0;
    overflow: hidden;
    border: 1px solid var(--ec-future-line);
    border-radius: 18px;
    background: var(--ec-future-panel);
    box-shadow: none;
}
.ec-app .premium-carousel [hidden] { display: none !important; }
/* Reservar la altura de todas las ofertas evita que el inicio salte al rotar. */
.ec-app .premium-carousel-slides { display: grid; }
.ec-app .premium-carousel-slides > .premium-carousel-slide { grid-area: 1 / 1; }
.ec-app .premium-carousel-slides > .premium-carousel-slide[hidden] { display: grid !important; visibility: hidden; pointer-events: none; }
.ec-app .premium-carousel-heading {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 8px; padding: 10px 20px; border-bottom: 1px solid var(--ec-future-line); background: var(--ec-future-panel);
}
.ec-app .premium-carousel-brand { display: flex; align-items: center; gap: 8px; color: #f1ddba; font-size: .75rem; font-weight: 700; }
.ec-app .premium-carousel-brand img { border-radius: 8px; }
.ec-app .premium-carousel-categories { display: flex; flex-wrap:wrap; max-width:100%; gap: 4px; }
.ec-app .premium-carousel-categories button {
    min-height: 44px; padding: 7px 12px; border: 1px solid transparent; border-radius: 10px;
    background: transparent; color: #dbc8b0; font-size: .75rem; box-shadow: none;
}
.ec-app .premium-carousel-categories button[aria-pressed=true] { border-color: #d6b47880; color: #ffe4a1; background: var(--ec-future-raised); text-decoration: underline; text-underline-offset: 4px; }
.ec-app .premium-carousel-slide {
    --benefit-accent: #ffe4a1;
    position: relative; isolation: isolate; overflow:hidden; display: grid; grid-template-columns: minmax(0, 1fr) 180px;
    align-items: center; gap: 16px 24px; padding: 28px 32px 16px; min-height: 280px; border-left:0;
    color: #fff7e9; text-decoration: none;
    background: #780c22;
}
.ec-app .premium-carousel-slide::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(90deg,#780c22 7%,#780c22f5 36%,#780c2280 70%,#780c2230),linear-gradient(0deg,#450a17cc,transparent 65%);
}
.ec-app .premium-carousel-art { position:absolute; z-index:-2; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
.ec-app .premium-carousel-agentes { --benefit-accent: #9be5ba; }
.ec-app .premium-carousel-regalo { background:#780c22; }
.ec-app .premium-carousel-gift { border:0; background:none; box-shadow:none; align-self:center; }
.ec-app .premium-carousel-gift .raspa-free-icon { width: 100px; height: 100px; border-radius: 28px; }
.ec-app .premium-carousel-gift .raspa-free-icon svg { width: 72px; height: 72px; }
.ec-app .premium-carousel-gift > b { transform: rotate(8deg); color: #ffe4a1; font-size: .7rem; letter-spacing: .13em; }
.ec-app .premium-carousel-gift-status { color: #ffe4a1; font-weight: 800; }
.ec-app .premium-carousel-regalo[data-ready=true] .premium-carousel-orbit { border-color: #f7cf73; box-shadow: 0 0 28px #ffc25c18, inset 0 0 25px #e4b76b12; }
.ec-app .premium-carousel-regalo[data-ready=true] { background:#780c22; }
.ec-app .premium-carousel-gift-note { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; }
.ec-app .premium-carousel-gift-note > :last-child { grid-column: 1 / -1; }
.ec-app .premium-carousel-gift-meter { display: grid; grid-template-columns: minmax(0, 1fr) max-content; width: 120px; min-width: 0; gap: 8px; align-items: center; }
.ec-app .premium-carousel-gift-meter > span { display: block; min-width: 0; height: 8px; overflow: hidden; border: 1px solid #c39b62; border-radius: 8px; background: #230706; }
.ec-app .premium-carousel-gift-meter svg { display: block; height: 100%; background: linear-gradient(90deg, #c3943c, #ffe4a1); border-radius: inherit; }
.ec-app .premium-carousel-gift-meter b { color: #ffe4a1; min-width: 4ch; font-variant-numeric: tabular-nums; text-align: right; }
.ec-app .premium-carousel-plan-art { position:absolute; z-index:-2; inset:0; width:100%; height:100%; object-fit:cover; pointer-events:none; }
.ec-app .premium-carousel-plus { --benefit-accent:#a6dfef; background:radial-gradient(ellipse at 85% 30%,#245160,#12191c 75%); }
.ec-app .premium-carousel-gold { --benefit-accent:#ffdf8d; background:radial-gradient(ellipse at 80% 25%,#826129,#18150e 75%); }
.ec-app .premium-carousel-max { --benefit-accent:#e2bcff; background:radial-gradient(ellipse at 85% 25%,#542488,#180d34 75%); }
.ec-app .premium-carousel-plus::before { background:linear-gradient(90deg,#191a1df5,#191a1db8 45%,#191a1d10 85%),linear-gradient(0deg,#191a1df0,transparent 70%); }
.ec-app .premium-carousel-gold::before { background:linear-gradient(90deg,#18150ef5,#18150eb8 40%,#18150e10 85%),linear-gradient(0deg,#18150ef0,transparent 70%); }
.ec-app .premium-carousel-max::before { background:linear-gradient(90deg,#180d34f5,#180d34b8 45%,#180d3410 85%),linear-gradient(0deg,#180d34f0,transparent 70%); }
.ec-app .premium-carousel-tier { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; min-width:0; color:var(--benefit-accent); font-size:clamp(1.6rem,3cqw,2.5rem); font-weight:850; line-height:1.15; letter-spacing:.1em; text-transform:uppercase; }
.ec-app .premium-carousel-duration { display:inline-block; max-width:100%; padding:6px 9px; border:1px solid currentColor; border-radius:8px; background:#111214cc; color:#f7ebcf; font-size:.7rem; font-weight:650; letter-spacing:.02em; line-height:1.3; }
.ec-app .premium-carousel-plan .premium-carousel-copy > strong { font-size:clamp(1.1rem,2.4cqw,1.65rem); }
.ec-app .premium-carousel-plus .premium-carousel-orbit { border-color:#8fd9f0; border-left-width:5px; border-radius:12px 30px 12px 12px; background:linear-gradient(135deg,#173f55ee,#111820ee); }
.ec-app .premium-carousel-gold .premium-carousel-orbit { align-self:center; aspect-ratio:1; border-radius:50%; border:2px solid #edcc82; background:radial-gradient(circle at 35% 25%,#504326ed,#19160eed 70%); box-shadow:inset 0 0 0 5px #f1cf8c14,0 12px 28px #0005; }
.ec-app .premium-carousel-max .premium-carousel-orbit { border-color:#c898ff; border-top:4px solid #dcb5ff; border-radius:28px 10px 28px 10px; background:linear-gradient(135deg,#48256bee,#160b2aee); }
.ec-app .premium-carousel-copy { display: grid; gap: 12px; min-width: 0; max-width: 500px; overflow-wrap:anywhere; }
.ec-app .premium-carousel-copy > small { color: #ebc68e; font-size: .66rem; font-weight: 800; letter-spacing: .12em; line-height: 1.5; }
.ec-app .premium-carousel-copy > strong { display: block; color: #fff7e9; font-size: clamp(1.7rem, 4.8cqw, 3rem); font-weight:850; line-height: 1.15; letter-spacing: -.045em; text-wrap: balance; }
.ec-app .premium-carousel-copy > strong > span { display: block; color: #ffe4a1; }
.ec-app :is(.premium-carousel-description, .premium-carousel-price) { color: #fff0d9; font-size: .87rem; line-height: 1.65; max-width: 42ch; }
.ec-app .premium-carousel-price b { color: #ffe4a1; font-variant-numeric: tabular-nums; }
.ec-app .premium-carousel-cta {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; width: fit-content; max-width:100%; min-width:0; white-space:normal; overflow-wrap:anywhere; line-height:1.4;
    min-height: 44px; padding: 9px 14px; border: 1px solid #f6eedf; border-radius: 10px;
    color: #7c1227; background: #f6eedf; font-size: .85rem; font-weight: 800; transition: background .2s;
}
.ec-app .premium-carousel-slide:is(:hover,:focus-visible) .premium-carousel-cta { background: #efcf88; color:#49111d; }
.ec-app .premium-carousel-cta > span:first-child { min-width:0; }
.ec-app .premium-carousel-cta > span[aria-hidden] { flex:0 0 auto; }
.ec-app .premium-carousel-orbit {
    position: relative; display: grid; place-items: center; width: 100%; align-self:end;
    border:1px solid #d9c48a55; border-radius:18px; padding:10px 6px;
    background:#111214d9; box-shadow:0 8px 22px #0004;
}
.ec-app .premium-carousel-power { position: relative; max-width:100%; white-space:nowrap; color: var(--benefit-accent); font-size:clamp(1rem,13cqw,4.5rem); font-weight: 850; letter-spacing: -.07em; line-height: 1.25; text-align: center; font-variant-numeric: tabular-nums; }
.ec-app .premium-carousel-power > small { font-size: .42em; letter-spacing: -.04em; }
.ec-app .premium-carousel-power > span { display: block; white-space:normal; overflow-wrap:anywhere; margin-top: 10px; color: #ebd5b2; font-size: .7rem; font-weight: 600; letter-spacing: .05em; line-height: 1.3; }
.ec-app .premium-carousel-power > .premium-carousel-emblem { color: var(--benefit-accent); font-size: 3rem; margin: 0; }
.ec-app .premium-carousel-note { grid-column: 1 / -1; color: #d2baa4; font-size: .73rem; line-height: 1.5; padding-top: 12px; border-top: 1px solid #dbb27826; }
.ec-app .premium-carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 20px; border-top: 1px solid #dbb27833; background: #141517; }
.ec-app .premium-carousel-dots { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; }
.ec-app .premium-carousel-controls button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #fff0d0; font-size: .72rem; box-shadow: none; }
.ec-app .premium-carousel-dots button { width: 24px; flex: 0 0 24px; }
.ec-app .premium-carousel-dots button span { width: 6px; height: 6px; border-radius: 50%; background: #e14f4a; transition: width .2s; }
.ec-app .premium-carousel-dots button[aria-pressed=true] span { width: 18px; border-radius: 4px; background: #ffe4a1; }
.ec-app [data-premium-pause] { flex-shrink: 0; padding-inline: 8px; }
.ec-app .premium-carousel :is(a, button):focus-visible { outline: 3px solid #ffe4a1; outline-offset: -4px; }
@container (max-width: 540px) {
    .ec-app .premium-carousel-heading { padding: 8px 12px; }
    .ec-app .premium-carousel-brand { font-size: .68rem; }
    .ec-app .premium-carousel-brand img { width: 24px; height: 24px; }
    .ec-app .premium-carousel-categories button { padding-inline: 8px; font-size: .7rem; }
    .ec-app .premium-carousel-slide { grid-template-columns: minmax(0, 1fr) 76px; gap: 12px; padding: 20px 16px 14px; min-height: 240px; }
    .ec-app .premium-carousel-copy { gap: 10px; }
    .ec-app .premium-carousel-copy > strong { font-size: 1.65rem; line-height:1.25; }
    .ec-app .premium-carousel-copy > small { font-size: .75rem; letter-spacing: .025em; font-weight:650; }
    .ec-app :is(.premium-carousel-description, .premium-carousel-price) { font-size: .78rem; }
    .ec-app .premium-carousel-cta { font-size: .75rem; gap: 8px; padding-inline: 10px; }
    .ec-app .premium-carousel-gift { gap: 10px; }
    .ec-app .premium-carousel-gift .raspa-free-icon { width: 62px; height: 62px; border-radius: 18px; }
    .ec-app .premium-carousel-gift .raspa-free-icon svg { width: 44px; height: 44px; }
    .ec-app .premium-carousel-gift > b { font-size: .52rem; letter-spacing: .06em; }
    .ec-app .premium-carousel-power > span { font-size: .75rem; letter-spacing: 0; margin-top: 4px; }
    .ec-app .premium-carousel-note { font-size: .75rem; }
    .ec-app .premium-carousel-gift-note { grid-template-columns: minmax(0, 1fr) 80px; gap: 6px; }
    .ec-app .premium-carousel-gift-meter { width: 80px; }
    .ec-app .premium-carousel-controls { padding-inline: 12px; }
    .ec-app [data-premium-pause] { width: 44px; padding: 0; }
    .ec-app [data-premium-pause-label] { display: none; }
}
@container (max-width: 330px) {
    .ec-app .premium-carousel-controls { padding-inline: 8px; gap: 6px; }
    .ec-app .premium-carousel-brand { flex-basis: 100%; }
    .ec-app .premium-carousel-slide { grid-template-columns: minmax(0, 1fr) 86px; padding-inline: 12px; }
    .ec-app .premium-carousel-copy > strong { font-size: 1.25rem; }
    .ec-app .premium-carousel-orbit::before { inset: 6px; }
    .ec-app .premium-carousel-gift { gap: 6px; }
    .ec-app .premium-carousel-gift .raspa-free-icon { width: 48px; height: 48px; border-radius: 14px; }
    .ec-app .premium-carousel-gift .raspa-free-icon svg { width: 36px; height: 36px; }
}
/* Rem-based threshold catches enlarged text as well as narrow devices. */
@container (max-width:18rem) {
    .ec-app .premium-carousel-slide { grid-template-columns:minmax(0,1fr); }
    .ec-app .premium-carousel-orbit { grid-row:2; width:auto; max-width:100%; justify-self:start; padding:12px 16px; }
    .ec-app .premium-carousel-copy > strong { font-size:1.5rem; }
    .ec-app .premium-carousel-power { font-size:2rem; }
    .ec-app .premium-carousel-note { grid-column:1; }
}
/* Ilustraciones decorativas integradas: los controles y etiquetas siguen siendo HTML. */
.ec-app [data-option-art="premium"] { --option-image:url('/branding/jewel/premium-small.webp'); }
.ec-app [data-option-art="estadisticas"] { --option-image:url('/branding/jewel/estadisticas-small.webp'); }
.ec-app [data-option-art="codigo"] { --option-image:url('/branding/jewel/regalo-small.webp'); }
.ec-app [data-option-art="puntos"] { --option-image:url('/branding/opciones/premios.svg'); }
.ec-app [data-option-art="consultas"] { --option-image:url('/branding/opciones/consultas.svg'); }
.ec-app [data-option-art="noticias"] { --option-image:url('/branding/opciones/noticias.svg'); }
.ec-app [data-option-art="perfil"] { --option-image:url('/branding/opciones/perfil.svg'); }
.ec-app .portal-tools .portal-tool[data-option-art] { display:flex; flex-wrap:wrap; align-content:space-between; align-items:flex-start; gap:12px; min-height:190px; background:var(--ec-future-panel); }
.ec-app .portal-tools .portal-tool[data-option-art]::before { background-image:linear-gradient(0deg,#111214fa 0%,#111214db 40%,#11121433 90%),var(--option-image); }
.ec-app .portal-tools .portal-tool[data-option-art] .portal-tool-copy { flex:1 0 100%; order:3; }
.ec-app .portal-tools .portal-tool[data-option-art] .portal-tool-icon { background:#1c1d20c9; border-color:#f1ce8e77; }
.ec-app .portal-tools .portal-tool[data-option-art] .portal-tool-arrow { margin-left:auto; }
.ec-app .portal-tools .portal-tool[data-option-art] strong { color:#fff0d0; }
.ec-app .portal-tools .portal-tool[data-option-art] small { color:#efe4e3; }
.ec-app .themed-heading { position:relative; isolation:isolate; overflow:hidden; border:1px solid #a4834a80; border-radius:22px; padding:clamp(20px,4vw,32px); min-height:160px; background:var(--ec-future-panel); margin-bottom:20px; }
.ec-app .themed-heading::before { content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; background:linear-gradient(90deg,#111214f2,#111214d1 55%,#11121466); }
.ec-app .compact-themed-heading { min-height:0; margin:-4px -4px 24px; }
.ec-app .compact-themed-heading p { color:#efe4e3; line-height:1.6; }
.ec-app .tickets-heading.themed-heading > div { position:relative; }
.ec-app .premium-plan-showcase { position:relative; isolation:isolate; overflow:hidden; min-height:210px; border-radius:15px; padding:20px; margin:-8px -8px 20px; background:var(--ec-future-panel); }
.ec-app .premium-plan-showcase::before { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#1c1210ed,#1c1210a8 60%,#1c121033),linear-gradient(0deg,#1c1210e6,transparent); pointer-events:none; }
.ec-app .premium-plan-showcase .premium-carousel-plan-art { object-position:65% center; }
.ec-app .premium-plan-showcase .premium-plan-caption { color:#f5eeed; }
.ec-app .section-art > img.game-illustration { object-fit:cover; object-position:65% center; }
@media(forced-colors:active) {
    .ec-app :is(.section-art,.premium-plan-showcase .premium-carousel-plan-art) { display:none; }
    .ec-app :is(.themed-heading,.premium-plan-showcase)::before { display:none; }
}
.ec-app [data-option-art="whatsapp"] { --option-image:url('/branding/opciones/whatsapp.svg'); }
.ec-app [data-option-art="telegram"] { --option-image:url('/branding/opciones/telegram.svg'); }
.ec-app [data-option-art="retirar"] { --option-image:url('/branding/opciones/retirar.svg'); }
.ec-app [data-option-art="recargar"] { --option-image:url('/branding/opciones/recargar.svg'); }
.ec-app [data-option-art="movimientos"] { --option-image:url('/branding/opciones/movimientos.svg'); }
.ec-app [data-option-art="seguridad"] { --option-image:url('/branding/opciones/seguridad.svg'); }
.ec-app [data-option-art="aplicacion"] { --option-image:url('/branding/opciones/aplicacion.svg'); }
.ec-app [data-option-art="agentes"] { --option-image:url('/branding/jewel/agentes-small.webp'); }
.ec-app [data-option-art] { position:relative; isolation:isolate; overflow:hidden; }
.ec-app [data-option-art]::before { content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; background-image:linear-gradient(0deg,#111214f5 0%,#111214a8 35%,#1112140d 85%),var(--option-image); background-size:cover; background-position:center; background-repeat:no-repeat; }
.ec-app .account-actions-grid .button.account-option[data-option-art] { min-height:172px; justify-content:space-between; background:var(--ec-future-panel); box-shadow:inset 0 1px #ffe6a133,0 6px 18px #0003; }
.ec-app [data-option-art] > span { position:relative; color:#fff3d9; text-shadow:0 2px 5px #000; }
.ec-app [data-option-art]:focus-visible { outline:3px solid #ffe6a1; outline-offset:3px; }
.ec-app .wallet-page .wallet-section-links a[data-option-art] { min-height:76px; justify-content:center; border-color:#71634f; background:var(--ec-future-panel); }
.ec-app .wallet-page .wallet-section-links a[data-option-art]::before { opacity:.25; background-size:cover; }
.ec-app .wallet-page .wallet-section-links a[data-option-art][aria-selected=true] { border-color:#ffe6a1; box-shadow:inset 0 -4px #edc477; text-decoration:underline; text-underline-offset:5px; }
.ec-app .agent-section-links a[data-option-art] { min-height:110px; justify-content:space-between; }
@media(max-width:380px) {
    .ec-app .wallet-page .wallet-section-links a[data-option-art] { padding-inline:4px; }
    .ec-app .wallet-page .wallet-section-links a[data-option-art] > span { font-size:.75rem; letter-spacing:0; white-space:normal; }
}
@media(forced-colors:active) {
    .ec-app [data-option-art]::before { display:none; }
    .ec-app [data-option-art] > span { color:ButtonText; text-shadow:none; }
}
@media (prefers-reduced-motion: reduce) {
    .ec-app .premium-carousel-dots button span { transition: none; }
}

/* Navegación 2026: Inicio, Tiempos, Juegos, Billetera y Resultados. */
.ec-app .play-wizard .play-progress { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ec-app .home-free-scratch { margin: 12px 0; }
.ec-app .home-free-scratch .raspa-free { min-height: 0; margin: 0; padding: 14px 16px; grid-template-columns: 52px minmax(0,1fr) auto; gap: 10px 14px; }
.ec-app .home-free-scratch .raspa-free-icon { width: 52px; height: 52px; border-radius: 16px; }
.ec-app .home-free-scratch .raspa-free-icon svg { width: 38px; height: 38px; }
.ec-app .home-free-scratch .raspa-free h2 { margin-block: 2px 4px; font-size: 1.12rem; }
.ec-app .home-free-scratch .raspa-free-copy p { font-size: .8rem; }
.ec-app .home-free-scratch .raspa-free-meter-label { margin-bottom: 5px; font-size: .8rem; }
.ec-app .home-free-scratch .raspa-free-progress { height: 14px; }
.ec-app .home-free-scratch .raspa-free-status { margin-top: 5px; font-size: .8rem; }
.ec-app .home-free-scratch .raspa-free-actions > .button { min-height: 48px; padding-block: 10px; }

@media (max-width: 650px) {
    .ec-app .home-free-scratch .raspa-free { grid-template-columns: 44px minmax(0,1fr); grid-template-areas: "gift copy" "charge charge" "actions actions"; padding: 13px 14px; gap: 9px 10px; }
    .ec-app .home-free-scratch .raspa-free-icon { width: 44px; height: 44px; border-radius: 14px; }
    .ec-app .home-free-scratch .raspa-free-icon svg { width: 32px; height: 32px; }
    .ec-app .home-free-scratch .raspa-free-copy p { display: none; }
    .ec-app .home-free-scratch .raspa-free-actions { grid-template-columns: 1fr auto; align-items: center; }
    .ec-app .home-free-scratch .raspa-free-actions > a { padding: 8px; }
}
.ec-app .home-modalities-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ec-app .home-modality.modality-games {
    background:
        radial-gradient(circle at 82% 20%,rgba(255,218,130,.25),transparent 34%),
        linear-gradient(138deg,#a8201b,#4a0d0b 70%);
}
.ec-app .modality-casino-suite { display:flex; align-items:center; gap:0; min-height:58px; min-width:0; width:100%; }

/* Salón unificado de experiencias. */
.ec-app .games-hub-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.ec-app .games-hub-emblem {
    display:grid; place-items:center; width:74px; height:74px; flex:0 0 auto; border:1px solid #edc571;
    border-radius:22px; color:#ffe7a5; background:linear-gradient(145deg,#b5241e,#500e0c);
    box-shadow:inset 0 1px #fff1c854,0 12px 28px #14020166; font-size:2.2rem;
}
.ec-app .games-hub-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.ec-app .games-hub-card {
    position:relative; isolation:isolate; display:grid; grid-template-rows:auto 1fr auto; min-width:0; min-height:330px;
    overflow:hidden; padding:22px; border:1px solid #dbb363; border-radius:24px; color:#fff1d2;
    background:linear-gradient(145deg,#8f1a16,#360908 72%); box-shadow:0 18px 36px #09010170,inset 0 1px #fff0c938;
}
.ec-app .games-hub-card::after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(145deg,#fff0bf14,transparent 38%); }
.ec-app .games-hub-card:hover,.ec-app .games-hub-card:focus-visible { border-color:#ffe5a0; transform:translateY(-2px); }
.ec-app .games-hub-art { display:block; height:140px; border-radius:18px; margin-bottom:16px; background:radial-gradient(ellipse at 50% 65%,#edb85438,transparent 68%),linear-gradient(150deg,#b8261c33,#27040366); border:1px solid #edc57138; }
.ec-app .games-hub-art svg { width:100%; height:100%; }
.ec-app .games-hub-symbols { display:flex; align-items:center; justify-content:center; height:112px; color:#ffe4a0; font-size:2.6rem; letter-spacing:.25em; text-shadow:0 0 22px #ffd98178; }
.ec-app .games-hub-copy { display:grid; align-content:start; gap:8px; min-width:0; }
.ec-app .games-hub-copy small { color:#efca83; font-size:.65rem; font-weight:900; letter-spacing:.13em; }
.ec-app .games-hub-copy strong { color:#fff6df; font-size:clamp(1.25rem,2.4vw,1.8rem); }
.ec-app .games-hub-copy span { color:#ead6c2; line-height:1.55; }
.ec-app .games-hub-card > b { margin-top:18px; padding:14px 16px; border:1px solid #e7bd6d; border-radius:12px; color:#fff0ce; background:linear-gradient(150deg,#cb2e22,#91180f); box-shadow:inset 0 1px #ffe8b340,inset 0 -3px #580d09; }
.ec-app .games-hub-raspas { background:radial-gradient(circle at 50% 18%,#f0b84738,transparent 34%),linear-gradient(145deg,#ad211b,#440b09 72%); }
.ec-app .games-hub-ron { background:radial-gradient(circle at 82% 18%,#da9c5e32,transparent 34%),linear-gradient(145deg,#7f1713,#2c0807 72%); }

/* Tiempos contiene su historial sin convertirlo en otra opción principal. */
.ec-app .times-tickets { margin:0 0 16px; }
.ec-app .times-tickets > .times-tickets-toggle { display:flex; justify-content:space-between; align-items:center; gap:12px; width:100%; min-height:48px; padding:12px 18px; cursor:pointer; list-style:none; white-space:normal; text-align:left; }
.ec-app .times-tickets-toggle::-webkit-details-marker { display:none; }
.ec-app .times-tickets-toggle svg { width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:2; }
.ec-app .times-tickets[open] > .times-tickets-toggle svg { transform:rotate(180deg); }
.ec-app .times-tickets-content { padding-top:16px; }
.ec-app .times-tickets-heading { display:flex; align-items:end; justify-content:space-between; gap:14px; margin-bottom:14px; }
.ec-app .times-tickets-heading h2 { margin:0; }
.ec-app .times-tickets-heading p { margin:5px 0 0; color:#e2cdbb; font-size:.85rem; }
.ec-app .times-tickets-links { display:flex; gap:8px; flex-wrap:wrap; }
.ec-app .times-tickets-links .button { min-height:44px; flex:1; white-space:normal; text-align:center; }
.ec-app .recent-tickets-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.ec-app .recent-ticket { display:grid; grid-template-columns:minmax(0,1fr) minmax(100px,.75fr); gap:12px; padding:14px; border:1px solid #d6ac6866; border-left:3px solid #e4ba70; border-radius:17px; background:radial-gradient(ellipse at top right,#d52c2224,transparent 70%),#201b1b; }
.ec-app .recent-ticket-info,.ec-app .recent-ticket-action { display:flex; flex-direction:column; gap:4px; min-width:0; overflow-wrap:anywhere; }
.ec-app .recent-ticket-info > strong { color:#fff1d5; font-size:.9rem; }
.ec-app .recent-ticket-info a { color:#f3d291; font-size:.8rem; text-decoration:underline; text-underline-offset:3px; }
.ec-app .recent-ticket-info time,.ec-app .recent-ticket-info small { color:#dcc8b8; font-size:.75rem; }
.ec-app .recent-ticket-action { justify-content:space-between; text-align:right; gap:8px; }
.ec-app .recent-ticket-action > strong { color:#ffe4a2; font-size:1.15rem; font-variant-numeric:tabular-nums; }
.ec-app .recent-ticket-action .button { width:100%; min-height:44px; padding:8px; font-size:.8rem; white-space:normal; text-align:center; overflow-wrap:anywhere; }
.ec-app .recent-tickets-empty { margin:0; padding:12px; border:1px dashed #d6ac6866; border-radius:12px; color:#e2cdbb; }
@media(max-width:999px) { .ec-app .recent-tickets-grid { grid-template-columns:minmax(0,1fr); } }

/* Dos familias de resultados, sin mezclar las rondas propias con sorteos externos. */
.ec-app .results-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0 0 16px; padding:6px; border:1px solid #d7ad6859; border-radius:16px; background:#260605; }
.ec-app .results-tabs a { display:flex; align-items:center; justify-content:center; min-height:48px; border:1px solid transparent; border-radius:11px; color:#d8c1ae; font-weight:850; }
.ec-app .results-tabs a[aria-current=page] { border-color:#e8c174; color:#fff0c7; background:linear-gradient(145deg,#b5231e,#741512); box-shadow:inset 0 -3px #e7bd6e; }
.ec-app .results-tab-panel { animation:results-enter .18s ease-out; }
.ec-app .results-pending-note { margin:12px 0 0; color:#ddc7ad; font-size:.76rem; text-align:center; }
@keyframes results-enter { from { opacity:.35; transform:translateY(4px); } }

@media(max-width:760px) {
    .ec-app .home-modalities-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .ec-app .home-modality.modality-games { grid-column:1 / -1; }
    .ec-app .games-hub-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .ec-app .games-hub-card { min-height:250px; }
    .ec-app .games-hub-art,.ec-app .games-hub-symbols { height:82px; }
    .ec-app .times-tickets-heading { align-items:stretch; flex-direction:column; }
}
@media(max-width:390px) {
    .ec-app .play-wizard .play-progress > span { min-height:52px; }
}

/* Navegación estable en pantallas largas. */
.ec-app .bottom-nav {
    --portal-nav-mode:horizontal;
    width: 100%;
    bottom: 0;
    display:flex;
    flex-wrap:wrap;
    align-items: stretch;
    gap: 4px;
    padding: 6px max(6px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));
    min-height: 72px;
    border: 1px solid var(--ec-future-line);
    border-radius: 18px 18px 0 0;
    background: var(--ec-future-panel);
    box-shadow: 0 -4px 24px #00000030;
}
.ec-app .bottom-nav a,.ec-app .bottom-nav .nav-agent {
    flex:1 1 2.75rem;
    position: relative;
    min-width: 0;
    min-height: 56px;
    padding: 6px 2px;
    gap: 4px;
    color: var(--ec-future-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: .7rem;
    line-height: 1.25;
    overflow: visible;
    text-decoration: none;
}
.ec-app .bottom-nav .nav-label { display:block; min-width:0; max-width:100%; text-align:center; white-space:normal; overflow-wrap:anywhere; line-height:1.25; }
.ec-app .bottom-nav a:nth-child(5) { flex:1.25 1 3.375rem; }

@media (max-width: 480px) {
    .ec-app .bottom-nav-agent a { padding-inline: 0; font-size: .61rem; letter-spacing: -.025em; }
}
.ec-app .bottom-nav .nav-icon,.ec-app .bottom-nav .nav-play .nav-icon,.ec-app .bottom-nav .nav-agent .nav-icon {
    width: 28px; height: 28px; flex: 0 0 auto; color: inherit;
    background: transparent; border: 0; border-radius: 8px; box-shadow: none;
}
.ec-app .bottom-nav .nav-play { color:var(--ec-future-muted); background:transparent; }
.ec-app .bottom-nav .nav-play .nav-icon svg { width: 26px; height: 26px; }
.ec-app .bottom-nav .nav-agent .nav-icon svg { width: 24px; height: 24px; }
.ec-app .bottom-nav a:focus-visible { outline: 3px solid var(--ec-focus); outline-offset: -3px; }
.ec-app .bottom-nav a:hover { color: #fff1cf; background-color: #a7201b2e; }
.ec-app:not(.casino-immersive-page):has(.bottom-nav) .page-shell {
    padding-bottom: max(calc(118px + env(safe-area-inset-bottom)),var(--portal-nav-clearance,118px));
}
html:has(.bottom-nav) { scroll-padding-bottom: var(--portal-nav-clearance,118px); }
@media(min-width: 800px) {
    .ec-app .bottom-nav a { flex-direction: row; flex-wrap: wrap; gap: 8px; font-size: .8rem; }
}
@media(max-width: 380px) {
    .ec-app .bottom-nav { width: 100%; gap: 2px; padding: 4px max(4px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left)); border-radius: 16px 16px 0 0; }
    .ec-app .bottom-nav a { font-size: .66rem; }
    .ec-app .bottom-nav-agent a { font-size: .625rem; padding-inline: 0; letter-spacing: -.025em; }
}
.ec-app .bottom-nav a[aria-current=page],
.ec-app .bottom-nav .nav-agent[aria-current=page] {
    color: #ffe0a0;
    border: 1px solid #a47c48;
    background: #562027;
    box-shadow: none;
}
.ec-app .bottom-nav a[aria-current=page]::after { content:''; position:absolute; bottom:2px; left:calc(50% - 8px); width:16px; height:2px; border-radius:2px; background:var(--ec-future-gold); }
.ec-app .page-scroll-controls button { border-color: rgba(255, 218, 141, .53); background: rgba(75, 13, 11, .96); }

/* Estados de todo el portal: cada mensaje conserva su texto y tiene un acento propio. */
.ec-app :is(.notice, .alert, .toast, .validation, .benefit-state) { line-height: 1.6; overflow-wrap: anywhere; border-left-width: 4px; }
.ec-app .notice { background: #29292d; color: #faf1e5; border-color: #b79b70; }
.ec-app :is(.notice.error, .notice[role=alert], .alert.error, .validation:not(:empty)) { background: #391915; color: var(--ec-text-error); border-color: #ed8373; }
.ec-app :is(.toast, .alert:not(.error)) { background: #3f2825; color: #f2e9e8; border-color: #c59e98; }
.ec-app :is(.notice.success, .alert.success) { background: #17372c; color: var(--ec-text-success); border-color: #79bd9c; }
.ec-app :is(.notice.warning, .alert.warning) { background: #382b19; color: var(--ec-text-warning); border-color: #d2ae69; }
.ec-app :is(.notice,.alert,.validation) :is(p,small) { color:inherit; opacity:1; }
.ec-app :is(.notice,.alert,.validation) a { color:inherit; text-decoration:underline; text-underline-offset:3px; font-weight:700; }
.ec-app :is(.status.pending, .status-label.pending) { color: #ffe0a4; background: #b9812126; border-color: #e3b85c75; }
.ec-app .status-label.status-winner { color: #d9ffe5; background: #255b3b; border-color: #83d0a0; }
.ec-app :is(.empty-state, .benefit-empty, .agent-empty) { color: var(--ec-future-muted); background: var(--ec-future-inset); border: 1px dashed #b9231e; border-radius: 18px; }
.ec-app :is(.empty-state, .benefit-empty, .agent-empty) h3 { color: #fff0db; }
.ec-app .button:disabled { opacity: 1; color: #c1ada6; border-color: #a21f1a; border-style: dashed; background: #470e0c; box-shadow: none; }
.ec-app :is(.surface, .form-card, .benefit-panel, .metric-card) { min-width: 0; }
.ec-app :is(.premium-dialog, .raspa-modal, .sinpe-modal) { background: #470d0b; border: 1px solid #c4a676; overflow-y: auto; overscroll-behavior: contain; max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
.ec-app :is(.field-help, .microcopy) { max-width: 78ch; }
.ec-app .bottom-nav a { touch-action: manipulation; }
.ec-app .bottom-nav .nav-icon svg { stroke-width: 1.7; }
.ec-app .bottom-nav a[aria-current=page] .nav-icon { filter:none; }

@media (min-width: 1000px) {
    .ec-app .home-modalities-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
    .ec-app .home-draw-grid,
    .ec-app .home-latest .card-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ec-app .page-heading { margin-top: 8px; }
}

@media (max-width: 700px) {
    .ec-app .topbar { min-height: 82px; border-radius: 0 0 20px 20px; }
    .ec-app .page-heading { min-height: auto; padding-bottom: 18px; }
    .ec-app .home-modality { min-height: 198px; padding: 15px 12px; }
    .ec-app .modality-tiempos-art { gap: 0; }
    .ec-app .modality-tiempos-art .modality-flags { margin-top: -8px; }
    .ec-app .portal-tools-home .portal-tool { padding: 12px; gap: 10px; }
    .ec-app .portal-tools .portal-tool-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; }
    .ec-app .portal-tool-icon svg { width: 22px; height: 22px; }
    .ec-app .date-switcher { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; padding:.75rem; }
    .ec-app .date-switcher-form { grid-column:1 / -1; grid-row:1; }
    .ec-app .date-switcher-nav { min-height: 46px; }
    .ec-app .date-switcher-form .inline-fields { grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr)); gap:8px; }
    .ec-app .portal-results .date-switcher-submit { width:100%; }
    .ec-app .result-card { grid-template-columns: auto minmax(0, 1fr) auto; gap: .55rem; }
    .ec-app .portal-results .result-card { grid-template-columns: 32px minmax(0,1fr); gap:10px; padding:14px; align-items:start; }
    .ec-app .portal-results .result-card > .country-flag { width:32px; height:23px; margin-top:3px; }
    .ec-app .portal-results .result-identity { grid-column:2; }
    .ec-app .portal-results .result-identity > strong { font-size:1rem; }
    .ec-app .portal-results .result-identity > small { font-size:.8rem; line-height:1.5; margin-top:5px; }
    .ec-app .portal-results .result-value { grid-column:1 / -1; justify-content:flex-start; gap:12px; padding-top:10px; border-top:1px solid #d8be8b33; }
    .ec-app .portal-results .result-card > .status.pending { grid-column:1 / -1; justify-self:start; }
    .ec-app .portal-results .result-value > .winning-number { width:50px; height:50px; font-size:1.5rem; }
    .ec-app .home-result-number,
    .ec-app .winning-number { width: 43px; height: 43px; }
}

/* Billetera de Inicio: una tarjeta digital legible, sin simular una tarjeta bancaria real. */
.ec-app .home-balance .wallet-bank-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-rows: auto auto auto auto auto;
    gap: 12px 18px;
    min-height: 222px;
    overflow: hidden;
    padding: clamp(18px,3.5vw,26px);
    border-color: #75bdc8;
    border-radius: 25px;
    background:
        radial-gradient(circle at 92% 12%,#68e2df35 0 8%,transparent 35%),
        radial-gradient(circle at 6% 94%,#7b484065,transparent 42%),
        linear-gradient(128deg,var(--ec-future-raised) 0%,#1c1b24 44%,var(--ec-future-inset) 100%);
    box-shadow: inset 0 1px #aaf4ed77,inset 0 0 0 4px #7fb8c218,0 18px 42px #0e090970;
}
.ec-app .home-balance .wallet-bank-card::before {
    inset: 8px;
    border-color: #ffe6a333;
    border-radius: 18px;
    background: linear-gradient(112deg,transparent 0 38%,#fff3c013 44%,transparent 52% 100%);
}
.ec-app .home-balance .wallet-bank-card::after {
    content:'';
    position:absolute;
    z-index:-1;
    width:118px;
    height:118px;
    right:16px;
    bottom:14px;
    border:1px solid #f6cf7652;
    border-radius:50%;
    box-shadow:0 0 0 22px #e2ad3c12,0 0 0 46px #e2ad3c0b;
    pointer-events:none;
}
.ec-app .wallet-bank-brand {
    display:flex;
    align-items:center;
    gap:10px;
    grid-column:1;
    min-width:0;
    color:#fff4d8;
}
.ec-app .wallet-bank-brand img {
    width:38px;
    height:38px;
    border:1px solid #f2ce80;
    border-radius:11px;
    box-shadow:0 5px 14px #25040380;
}
.ec-app .wallet-bank-brand > span { display:grid; gap:1px; min-width:0; }
.ec-app .wallet-bank-brand b { overflow:hidden; color:#fff4d2; font-size:.82rem; letter-spacing:.11em; text-overflow:ellipsis; white-space:nowrap; }
.ec-app .wallet-bank-brand small { color:#edca8a; font-size:.58rem; font-weight:750; letter-spacing:.18em; }
.ec-app .wallet-bank-tech { display:flex; align-items:center; justify-content:flex-end; gap:12px; grid-column:2; }
.ec-app .wallet-bank-tech > svg { width:27px; height:27px; fill:none; stroke:#ffe7ad; stroke-width:2.1; stroke-linecap:round; opacity:.88; }
.ec-app .wallet-bank-chip {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    width:43px;
    height:32px;
    overflow:hidden;
    border:1px solid #fff0b8;
    border-radius:8px;
    background:linear-gradient(145deg,#ffe9a6,#c78e34 48%,#f8d984 52%,#a96f25);
    box-shadow:inset 0 1px #fff8df,0 5px 12px #27050466;
}
.ec-app .wallet-bank-chip i { border:1px solid #8c5c2552; }
.ec-app .home-balance .wallet-bank-card > .balance-heading { grid-column:1; grid-row:auto; align-self:end; }
.ec-app .home-balance .wallet-bank-card .balance-wallet-icon { display:none; }
.ec-app .home-balance .wallet-bank-card > .balance-amount {
    grid-column:1/-1;
    grid-row:auto;
    color:#fbf8f8;
    font-size:clamp(1.7rem,min(13cqi,calc(150cqi / var(--balance-digits))),3.4rem);
    text-shadow:0 3px 12px #270403a8;
}
.ec-app .home-balance .wallet-bank-card > .home-wallet-parts {
    grid-column:1/-1;
    grid-row:auto;
    padding-top:10px;
    border-color:#f4d18f5c;
}
.ec-app .home-balance .wallet-bank-card .home-wallet-parts > span { background:#23040342; border-color:#f3d38b66; }
.ec-app .wallet-bank-holder { display:grid; gap:2px; grid-column:1; min-width:0; align-self:end; }
.ec-app .wallet-bank-holder small { color:#e9c98d; font-size:.57rem; font-weight:750; letter-spacing:.16em; }
.ec-app .wallet-bank-holder strong { overflow:hidden; color:#fff4d6; font-size:.82rem; letter-spacing:.06em; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; }
.ec-app .home-balance .wallet-bank-card > .balance-footer { grid-column:2; grid-row:auto; align-self:end; gap:10px; white-space:nowrap; }
@media(max-width:380px) {
    .ec-app .home-balance .wallet-bank-card { min-height:220px; gap:9px 12px; padding:18px; }
    .ec-app .wallet-bank-brand img { width:34px; height:34px; }
    .ec-app .wallet-bank-chip { width:39px; height:29px; }
    .ec-app .wallet-bank-tech > svg { width:23px; height:23px; }
    .ec-app .home-balance .wallet-bank-card .home-wallet-parts > span { padding:6px 8px; }
    .ec-app .home-balance .wallet-bank-card > .balance-footer { font-size:.7rem; }
}

/* Salón tropical: identidad por sección sobre los mismos controles y contratos. */
.ec-app[data-visual-section=estadisticasplus] { --ec-section-accent:#78d8e5; }
.ec-app[data-visual-section=consultas] { --ec-section-accent:#e5d4d1; }
.ec-app[data-visual-section=agentes] { --ec-section-accent:#9cdeb5; }
.ec-app[data-visual-section=ron] { --ec-section-accent:#7fd3b6; }
.ec-app[data-visual-section=fidelizacion] { --ec-section-accent:#f8cf75; }
.ec-app[data-visual-section=billetera] { --ec-section-accent:#f4d69a; }
.ec-app[data-visual-section=resultados] { --ec-section-accent:#e8c994; }
.ec-app[data-visual-section=cuenta] { --ec-section-accent:#c8bbec; }
.ec-app :is(.page-heading,.benefit-hero,.section-title) :is(h1,h2) { text-wrap:balance; }
.ec-app :is(.benefit-tag,.page-heading .eyebrow) { color:var(--ec-section-accent); }
.ec-app .page-heading:not(.tropical-showcase):not(.play-heading) { padding:clamp(18px,2.4vw,24px); border:1px solid #aa706766; border-radius:22px; background:radial-gradient(ellipse at 100% 0,color-mix(in srgb,var(--ec-section-accent) 18%,transparent),transparent 60%),linear-gradient(110deg,var(--ec-future-raised),var(--ec-future-panel)); margin-bottom:18px; }
.ec-app .page-heading:not(.tropical-showcase) h1 { margin:8px 0; font-size:clamp(1.65rem,4vw,2.4rem); }
.ec-app .page-heading:not(.tropical-showcase) p { margin-bottom:0; max-width:65ch; }
.ec-app .account-profile { border-top:3px solid #efc875; background:linear-gradient(125deg,var(--ec-future-raised),var(--ec-future-panel)); }
.ec-app .account-monogram { background:linear-gradient(145deg,#ffdc8c,#a96e27); color:#2c1b10; box-shadow:0 5px 18px #0005; }
.ec-app .section-title { padding-bottom:12px; border-bottom:1px solid #d3a65d30; }
.ec-app :is(.surface,.benefit-panel,.form-card):not(.premium-plan) > h2 { font-size:clamp(1.05rem,2.2vw,1.35rem); }
.ec-app :is(.surface,.benefit-panel,.form-card):not(.premium-plan) > h2::before { content:''; display:inline-block; width:4px; height:1em; margin-right:10px; vertical-align:-.12em; border-radius:3px; background:var(--ec-section-accent); }
.ec-app .benefit-hero { position:relative; isolation:isolate; overflow:hidden; }
/* Ilustraciones integradas al fondo, nunca en un recuadro junto al contenido. */
.ec-app :is(.page-heading,.benefit-hero,.ron-page-heading > div):has(> .section-art),
.ec-app :is(.play-heading,.raspas-hero) { position:relative; isolation:isolate; overflow:hidden; padding:clamp(22px,4vw,36px); border-radius:24px; min-height:200px; background:#211514; }
.ec-app :is(.page-heading,.benefit-hero,.ron-page-heading > div):has(> .section-art)::before,
.ec-app :is(.play-heading,.raspas-hero)::before { content:''; display:block; position:absolute; inset:0; width:100%; height:100%; z-index:-1; border-radius:inherit; pointer-events:none; background:linear-gradient(90deg,#111214ed,#111214c4 50%,#11121455),linear-gradient(0deg,#111214e6,transparent 80%); }
.ec-app :is(.section-art,.play-heading-art,.raspas-hero-mark) { display:block; position:absolute; inset:0; z-index:-2; width:100%; height:100%; float:none; margin:0; padding:0; border:0; border-radius:inherit; background:none; pointer-events:none; }
.ec-app :is(.section-art,.play-heading-art,.raspas-hero-mark) .game-illustration { width:100%; height:100%; max-width:none; border-radius:inherit; overflow:hidden; filter:none; object-fit:cover; object-position:right center; }
.ec-app .ron-page-heading > div:has(> .section-art) { flex:1 1 100%; }
.ec-app .benefit-hero::after { content:''; position:absolute; z-index:-1; pointer-events:none; width:260px; height:260px; right:-150px; bottom:-150px; border:1px solid #f7d28830; border-radius:50%; box-shadow:0 0 0 22px #f7d28806,0 0 0 45px #f7d28804; }
.ec-app .benefit-hero-top { gap:12px; }
.ec-app .benefit-icon { border-radius:14px; box-shadow:0 8px 18px #0004,inset 0 1px #ffe2a84d; }
.ec-app .benefit-hero:not(.premium-hero):has(> .section-art) { padding:clamp(18px,2.4vw,26px); }
.ec-app .benefit-hero:not(.premium-hero) .benefit-hero-top { margin-bottom:12px; }
.ec-app .benefit-hero:not(.premium-hero) .benefit-icon { width:40px; height:40px; }
.ec-app .benefit-hero:not(.premium-hero) h1 { margin-block:8px 10px; line-height:1.2; }
.ec-app .benefit-hero .benefit-tag { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.ec-app .plus-hero { background:radial-gradient(ellipse at 100% 0,#31c9e735,transparent 65%),linear-gradient(110deg,var(--ec-future-raised),var(--ec-future-panel)); }
.ec-app .loyalty-hero { background:radial-gradient(ellipse at 100% 0,#f1c25e30,transparent 65%),linear-gradient(110deg,#224a49,var(--ec-future-panel)); }
.ec-app .premium-hero:has(> .section-art) { padding:20px; background:radial-gradient(ellipse at 100% 0,#e9bb6526,transparent 65%),linear-gradient(110deg,#29221a,var(--ec-future-inset)); }
.ec-app .premium-hero .benefit-hero-top { margin-bottom:12px; }
.ec-app .premium-hero h1 { font-size:clamp(1.5rem,4vw,2rem); margin-block:10px; }
.ec-app .premium-hero :is(.premium-hero-copy,.premium-hero-account) > p { margin-block:10px; font-size:.85rem; }
.ec-app .premium-hero .premium-current { padding:12px 14px; margin:14px 0 10px; }
@media(min-width:900px) {
    .ec-app .premium-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:28px; align-items:center; }
    .ec-app .premium-hero-account { min-width:0; padding:16px; border:1px solid #d6ad5e55; border-radius:18px; background:#111214d9; }
    .ec-app .premium-hero-account .premium-current { margin-top:0; }
}
.ec-app .consultation-message { border-radius:18px; }
.ec-app .premium-plan { position:relative; overflow:hidden; background:linear-gradient(155deg,var(--ec-future-raised),var(--ec-future-panel) 72%); }
.ec-app .premium-plan-plus { border-top:3px solid #89d7e8; background:radial-gradient(ellipse at top right,#1d6b8d38,transparent 65%),#151c22; }
.ec-app .premium-plan-gold { border-top:3px solid #edc477; background:radial-gradient(ellipse at top,#b5823138,transparent 60%),#251b13; }
.ec-app .premium-plan-max { border-top:3px solid #c6b3fb; background:radial-gradient(ellipse at top,#9768d52a,transparent 60%),#231b29; }
.ec-app .premium-tier { letter-spacing:.14em; text-transform:uppercase; }
.ec-app .premium-current { clear:both; background:#12100dcc; }
.ec-app .plus-intelligent-card { border-top:3px solid #78d8e5; background:radial-gradient(ellipse at top left,#37778626,transparent 65%),#191c20; }
.ec-app .plus-search { border-color:#78d8e55c; }
.ec-app .plus-metric { background:#11171b; border-color:#789da877; }
.ec-app .agent-earnings { border-top:3px solid #8fd7a6; }
.ec-app .agent-application-hero { background:radial-gradient(ellipse at top,#20614b,#112d30 80%); border-color:#73c8a6; }
.ec-app .agent-application-emblem { width:144px; height:96px; border-radius:20px; background:url('/branding/jewel/agentes-small.webp') center/cover; border:1px solid #8cd7b777; }
.ec-app .agent-application-emblem > svg { visibility:hidden; }
.ec-app .agent-balance-card { background:linear-gradient(145deg,#263d30,#171c18); }
.ec-app .ron-board { background:radial-gradient(ellipse at 50% 35%,#175b42,#09291e 78%); border:3px solid #a68042; }
.ec-app .ron-page-heading { padding:24px; border:1px solid #78c9aa55; border-radius:22px; background:linear-gradient(120deg,#154f41,#102d2b); }
.ec-app .raspas-hero { background:radial-gradient(ellipse at right,#e9aa4633,transparent 65%),linear-gradient(110deg,#15565d,#1c1b24); }
.ec-app .raspa-category { overflow:hidden; border-radius:22px; }
.ec-app .raspa-category-body { padding:18px; background:linear-gradient(150deg,#292b30,var(--ec-future-panel)); }
.ec-app .raspa-history-item { border-left:3px solid #f0c576; }
.ec-app .portal-tools-interior .portal-tools { gap:12px; }
.ec-app .portal-tools-interior .portal-tool { padding:18px; align-items:center; min-height:110px; border-radius:18px; background:linear-gradient(125deg,var(--ec-future-raised),var(--ec-future-panel)); border-color:#b8888180; }
.ec-app .portal-tools-interior .portal-tool-copy { display:grid; gap:6px; min-width:0; }
.ec-app .portal-tools-interior .portal-tool-copy small { font-size:.85rem; font-weight:400; line-height:1.55; }
.ec-app .portal-tools-interior .portal-tool-arrow { margin-left:auto; }
.ec-app .portal-tools-interior .portal-tool-premium { background:linear-gradient(125deg,#6d3f17,#302219); }
.ec-app .portal-tools-interior .portal-tool-estadisticas { background:linear-gradient(125deg,#292b30,var(--ec-future-panel)); }
.ec-app .portal-tools-interior .portal-tool-consultas { background:linear-gradient(125deg,#3d2e53,#251d2d); }
.ec-app .portal-tools-interior .portal-tool-noticias { background:linear-gradient(125deg,#284438,#19291f); }

/* Ilustración original: decorativa, liviana y siempre separada del texto real. */
.ec-app .tropical-showcase { position:relative; isolation:isolate; overflow:hidden; display:block; padding:clamp(24px,4vw,48px); min-height:280px; border:1px solid #a9a0dc77; border-radius:26px; background:var(--ec-future-panel); margin-bottom:24px; box-shadow:0 18px 42px #0005; }
.ec-app .tropical-showcase-art { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; object-position:center; }
.ec-app .tropical-showcase::after { content:''; position:absolute; inset:0; z-index:-1; width:auto; height:auto; border-radius:inherit; background:linear-gradient(90deg,var(--ec-future-panel),#191a1de8 35%,#191a1d20 85%); }
.ec-app .tropical-showcase > :not(img) { max-width:58%; }
.ec-app .tropical-showcase h1 { font-size:clamp(1.9rem,4vw,3rem); line-height:1.1; margin:14px 0; }
.ec-app .tropical-showcase p { color:#f0dfc9; line-height:1.6; }
.ec-app .tropical-showcase .badge { display:inline-flex; white-space:normal; line-height:1.5; }
.ec-app .games-hub-card { background:linear-gradient(145deg,#3b2868,var(--ec-future-panel) 72%); }
.ec-app .games-hub-raspas { background:linear-gradient(145deg,#145760,var(--ec-future-panel) 72%); }
.ec-app .games-hub-ron { background:linear-gradient(145deg,#165441,#122a2b 72%); }
.ec-app .games-hub-card { display:flex; flex-direction:column; min-height:340px; justify-content:flex-end; }
.ec-app .games-hub-card::after { background:linear-gradient(0deg,var(--ec-future-inset) 0%,#111214ed 25%,#111214a6 60%,#1112141a); }
.ec-app .games-hub-art { position:absolute; inset:0; z-index:-2; width:100%; height:100%; margin:0; border:0; border-radius:inherit; background:none; box-shadow:none; pointer-events:none; }
.ec-app .games-hub-copy { margin-top:115px; }
.ec-app .casino-card { --game-glow:#e73724; position:relative; isolation:isolate; display:flex; flex-direction:column; justify-content:flex-end; min-height:350px; padding:20px; border:1px solid #b3807966; border-radius:24px; background:linear-gradient(150deg,var(--ec-future-raised),var(--ec-future-panel)); overflow:hidden; }
.ec-app .casino-card::before { content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; background:linear-gradient(0deg,var(--ec-future-inset) 0%,#111214ed 30%,#111214a6 60%,#1112141a); }
.ec-app .casino-card[data-game-art=slots] { --game-glow:#c987ff; }
.ec-app .casino-card[data-game-art=mines] { --game-glow:#3cac89; }
.ec-app .casino-card[data-game-art=limbo] { --game-glow:#956ae8; }
.ec-app .casino-card[data-game-art=plinko] { --game-glow:#ae776f; }
.ec-app .casino-card .casino-art { position:absolute; inset:0; z-index:-2; width:100%; height:100%; display:block; margin:0; border-radius:inherit; background:none; border:0; pointer-events:none; }
.ec-app :is(.casino-art,.games-hub-art) svg { width:100%; height:100%; border-radius:inherit; overflow:hidden; filter:none; }
.ec-app .casino-card h2 { margin:125px 0 8px; font-size:1.35rem; }
.ec-app .casino-card p { flex:1; line-height:1.65; color:#d7cbbb; }
.ec-app .casino-card .button.ghost { background:linear-gradient(155deg,#ec3a25,#a81d13); color:#fff4df; border-color:#ecb165; min-height:50px; box-shadow:inset 0 1px #fff0cd50,inset 0 -3px #66140e; }
.ec-app .casino-card .button:disabled { background:#342a26; color:#bdb0a1; border-style:dashed; box-shadow:none; }
/* Scarlet Pulse game portals: art, a quiet scrim and a stable scarlet action. */
.ec-app .royal-lobby { display:grid; gap:24px; }
.ec-app .royal-lobby .home-modalities { margin:0; }
.ec-app .royal-lobby .home-benefits-stage { margin:0; }
.ec-app .home-modalities-grid { grid-template-columns:1fr 1fr 1.22fr; gap:16px; }
.ec-app .home-modality { position:relative; isolation:isolate; display:flex; flex-direction:column; justify-content:flex-end; align-items:stretch; min-height:270px; gap:12px; padding:20px; border:1px solid var(--ec-future-line); border-radius:18px; overflow:hidden; box-shadow:none; transition:border-color .2s,transform .2s var(--ec-ease); }
.ec-app .home-modality.modality-tiempos { background:#152329; border-color:var(--ec-future-line); }
.ec-app .home-modality.modality-chance { background:#301019; border-color:var(--ec-future-line); }
.ec-app .home-modality.modality-games { background:#201529; border-color:var(--ec-future-line); }
.ec-app .home-modality::before { display:block; content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg,#08080efa 0%,#08080ee6 24%,#08080e66 58%,transparent 90%); }
.ec-app .home-modality::after { display:none; }
.ec-app .modality-tiempos-art,.ec-app .modality-chance-art,.ec-app .modality-casino-suite { display:block; position:absolute; inset:0; z-index:-2; width:100%; height:100%; margin:0; border-radius:inherit; overflow:hidden; pointer-events:none; }
.ec-app .home-modality .modality-backdrop { display:block; width:100%; height:100%; object-fit:cover; object-position:center 30%; transition:transform .35s var(--ec-ease); }
@media(hover:hover) {
    .ec-app .home-modality:hover { transform:translateY(-2px); border-color:var(--ec-future-gold); box-shadow:none; }
    .ec-app .home-modality:hover .modality-backdrop { transform:scale(1.025); }
}
.ec-app .home-modality > div { margin-top:70px; min-width:0; overflow-wrap:anywhere; }
.ec-app .home-modality strong { display:block; font-size:1.8rem; letter-spacing:-.035em; line-height:1.2; color:var(--ec-future-ink); font-weight:800; }
.ec-app .home-modality small { display:block; margin-top:7px; color:#e2d9d8; font-size:.85rem; line-height:1.5; }
.ec-app .home-modality .modality-kicker { color:#f9e6bd; letter-spacing:.06em; line-height:1.5; display:inline-block; max-width:100%; font-size:.65rem; margin-bottom:8px; padding:4px 7px; border-radius:5px; background:#0e0a0ae8; }
.ec-app .home-modality .modality-flags { position:absolute; top:16px; right:16px; margin:0; padding:5px 8px; border-radius:8px; background:#0e0a0abd; border:1px solid #ffffff30; }
.ec-app .home-modality .modality-chance-logo { position:absolute; top:16px; left:16px; width:32px; height:32px; margin:0; border-radius:8px; }
.ec-app .home-modality .modality-action { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; border:1px solid transparent; border-radius:8px; padding:10px 13px; min-height:44px; background:var(--ec-red); color:var(--ec-future-ink); font-size:.85rem; font-weight:750; line-height:1.4; overflow-wrap:anywhere; box-shadow:none; }
.ec-app .home-modality:is(:hover,:focus-visible) .modality-action { background:#a71930; }
.ec-app .home-modality :is(.modality-action-compact,.modality-caption) { display:none; }
.ec-app .home-modality .modality-action > span[aria-hidden] { color:inherit; background:none; border:0; width:auto; height:auto; }
.ec-app .home-modality .modality-action > :is(.modality-action-text,.modality-action-compact) { flex:1 1 auto; min-width:0; width:auto; height:auto; padding:0; border:0; border-radius:0; background:none; color:inherit; font:inherit; }
.ec-app .home-modality.modality-unavailable { opacity:1; }
.ec-app .modality-unavailable .modality-backdrop { opacity:.45; }
.ec-app .modality-state { display:block; border:1px dashed var(--ec-future-muted); padding:10px 12px; color:var(--ec-future-muted); background:var(--ec-future-panel); border-radius:8px; }
@media(min-width:1200px) {
    .ec-app .royal-lobby .home-benefits-stage { order:-1; }
}
@media(max-width:767px) {
    .ec-app .royal-lobby { gap:20px; }
    .ec-app .home-modalities-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5rem),1fr)); gap:12px; }
    .ec-app .home-modality { min-height:190px; padding:14px; gap:8px; border-radius:16px; box-shadow:none; }
    .ec-app .home-modality > div { margin-top:44px; text-align:left; }
    .ec-app .home-modality strong { font-size:1.25rem; line-height:1.35; text-shadow:none; }
    .ec-app .home-modality :is(.modality-kicker,small,.modality-flags) { display:none; }
    .ec-app .home-modality .modality-backdrop { object-position:center top; transform:none; }
    .ec-app .home-modality .modality-chance-logo { width:22px; height:22px; top:8px; left:8px; border-radius:6px; }
    .ec-app .home-modality .modality-action { font-size:.8rem; padding:8px 10px; gap:5px; }
    .ec-app .home-modality .modality-action-text { display:none; }
    .ec-app .home-modality .modality-action-compact { display:inline; }
    .ec-app .home-modality .modality-caption { display:block; color:#e2d9d8; font-size:.75rem; line-height:1.4; margin-top:4px; }
    .ec-app .home-modality.modality-games { grid-column:1 / -1; min-height:142px; align-items:flex-start; padding:18px; }
    .ec-app .home-modality.modality-games > div { margin:0; max-width:70%; }
    .ec-app .home-modality.modality-games .modality-action { width:auto; min-width:120px; max-width:100%; padding-inline:12px; }
    .ec-app .home-modality.modality-games::before { background:linear-gradient(90deg,#0e0a0af5,#0e0a0ae6 40%,#0e0a0a20 90%); }
    .ec-app .home-modality.modality-games .modality-backdrop { object-position:right 55%; }
    .ec-app .home-modalities .section-title { margin-bottom:12px; padding-bottom:0; }
    .ec-app .home-section-note { display:none; }
    .ec-app .home-wallet-note { font-size:.75rem; line-height:1.5; margin-bottom:12px; }
    .ec-app[data-visual-section=index] .page-shell { padding-top:16px; }
}
@media(prefers-reduced-motion:reduce) {
    .ec-app .home-modality,.ec-app .home-modality .modality-backdrop { transition:none; }
    .ec-app .home-modality:hover,.ec-app .home-modality:hover .modality-backdrop { transform:none; }
}

/* Opciones de cuenta: símbolos compartidos, superficies distintas y texto intacto. */
.ec-app .account-actions-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.ec-app .account-actions-grid .button.account-option { --option-accent:#ecc477; --option-glow:#755321; position:relative; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:12px; width:100%; height:100%; min-width:0; min-height:120px; padding:16px; border:1px solid color-mix(in srgb,var(--option-accent) 60%,#442723); border-radius:16px; text-align:left; background:radial-gradient(ellipse at 100% 0,var(--option-glow),transparent 80%),var(--ec-future-panel); color:#fff5e4; white-space:normal; overflow-wrap:anywhere; }
.ec-app .account-actions-grid .account-option.option-teal { --option-accent:#94e8d1; --option-glow:#18534b; }
.ec-app .account-actions-grid .account-option.option-blue { --option-accent:#e0cbc7; --option-glow:#643a34; }
.ec-app .account-actions-grid .account-option.option-purple { --option-accent:#ddbcff; --option-glow:#503265; }
.ec-app .account-option > svg { width:34px; height:34px; flex-shrink:0; color:var(--option-accent); padding:5px; box-sizing:content-box; border:1px solid color-mix(in srgb,var(--option-accent) 40%,transparent); border-radius:12px; background:#0d0e1066; }
.ec-app .account-option:hover { border-color:#ffe4a1; filter:brightness(1.12); }
.ec-app .account-profile .account-actions-grid form { margin:0; min-width:0; }
.ec-app :is(.account-heading,.results-heading):has(> .section-art) { min-height:136px; }
.ec-app .wallet-page .wallet-section-links { gap:10px; padding:0; background:none; border:0; }
.ec-app .wallet-page .wallet-section-links a { flex-direction:column; min-height:76px; padding:10px 6px; border-color:#af8d4f; background:radial-gradient(ellipse at top right,#83622d33,transparent),#22201c; }
.ec-app .wallet-page .wallet-section-links a:nth-child(2) { border-color:#5ab09e; background:radial-gradient(ellipse at top right,#23726599,transparent),#102c2b; }
.ec-app .wallet-page .wallet-section-links a:nth-child(3) { border-color:#bb8c85; background:radial-gradient(ellipse at top right,#834c4399,transparent),#1c1b24; }
.ec-app .wallet-page .wallet-section-links .wallet-symbol { width:24px; height:24px; padding:4px; box-sizing:content-box; border-radius:8px; background:#0d0e1066; }
.ec-app .agent-quick-actions .button { display:flex; gap:10px; align-items:center; justify-content:center; }
.ec-app .agent-quick-actions svg { width:26px; height:26px; flex-shrink:0; }
.ec-app .agent-balance-card { position:relative; overflow:hidden; }
.ec-app .agent-balance-card .agent-metric-symbol { display:block; width:40px; height:40px; padding:7px; margin-bottom:10px; border:1px solid #e7c27c70; border-radius:12px; background:#0d0e1066; color:#ffe4a1; }
.ec-app .agent-metric-symbol svg { width:100%; height:100%; }
.ec-app .agent-balance-card.commissions { background:radial-gradient(ellipse at top right,#286c58,#102b2a 80%); border-color:#8bc8a3; }
.ec-app .agent-balance-card.pending { background:radial-gradient(ellipse at top right,#605125,#29241c 80%); border-color:#be9c5d; }
.ec-app .agent-invitation { background:linear-gradient(95deg,#17251df5,#1c1d20e8),url('/branding/jewel/agentes-small.webp') right center/cover; border-color:#8caf91; }
.ec-app .agent-transfer-form { border-top:3px solid #dfb86e; background:linear-gradient(130deg,#253d36,var(--ec-future-panel)); border-radius:16px; padding:18px; }
.ec-app .results-tabs a { gap:8px; min-width:0; min-height:70px; padding:10px 6px; flex-wrap:wrap; overflow-wrap:anywhere; text-align:center; background:linear-gradient(130deg,var(--ec-future-raised),var(--ec-future-panel)); border-color:#93554c; color:#f7f1f0; }
.ec-app .results-tabs a > span { min-width:0; max-width:100%; }
.ec-app .results-tabs a :is(svg,img) { width:30px; height:30px; flex-shrink:0; border-radius:8px; }
.ec-app .results-tabs a[aria-current=page] { background:linear-gradient(140deg,#67461e,#30271b); color:#fff1cf; border-color:#f5d28a; text-decoration:underline; text-underline-offset:5px; }
.ec-app .result-card:has(.winning-number) { border-left:3px solid #edc477; background:linear-gradient(105deg,#302b24,var(--ec-future-panel)); }
.ec-app .result-card:has(.status.pending) { background:var(--ec-future-panel); border-style:dashed; }
@media(min-width:1000px) {
    .ec-app .account-actions-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
.ec-app .home-modality .modality-state { align-self:flex-start; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.ec-app .auth-copy { position:relative; isolation:isolate; overflow:hidden; border-radius:24px; border:1px solid #b88d4d66; padding:clamp(22px,4vw,40px); background:#1b1410; }
.ec-app .auth-landscape { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; object-position:65%; }
.ec-app .auth-copy::after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#160e0ff0,#160e0f99); }
.ec-app .auth-card { border-top:3px solid #e3b96b; }
.ec-app .auth-copy .feature-row { color:#ffebca; }
.ec-app :is(.empty-state,.benefit-empty,.benefit-state) { border-radius:20px; border:1px dashed #8d816b70; background:radial-gradient(ellipse at 50% 0,#d6ae5710,transparent 70%),var(--ec-future-inset); }
.ec-app :is(.notice,.toast,.validation,.field-help) { overflow-wrap:anywhere; }
.ec-app :is(.button,.badge,.benefit-tag,.status-label) { min-width:0; max-width:100%; height:auto; white-space:normal; overflow-wrap:anywhere; }
.ec-app .button > span { min-width:0; }
.ec-app .button > svg { flex-shrink:0; }
/* Dorado: confirmar dinero. Rojo: entrar, elegir o jugar. */
.ec-app :is(.button.action-money,.button.action-deposit,
    .button[data-submit-purchase],.button[data-raspa-buy],.button[data-ron-confirm]):not(:disabled):not([aria-disabled=true]) {
    color:var(--ec-action-ink); background:var(--ec-action-gold) #edca7d; border-color:#f7d88f;
    box-shadow:var(--ec-action-relief); text-shadow:none; font-weight:800;
}
.ec-app :is(.button.action-money,.button.action-deposit,
    .button[data-submit-purchase],.button[data-raspa-buy],.button[data-ron-confirm]):not(:disabled):not([aria-disabled=true]):is(:hover,:focus-visible) {
    color:var(--ec-action-ink); background:var(--ec-action-gold-hover) #f4d997; border-color:#fff0c3;
}
.ec-app :is(.button.action-create,.button.action-navigation,.casino-card .button.ghost,.games-hub-card > b,.button[data-free-claim],.button[data-raspa-select],.button[data-premium-offer]):not(:disabled):not([aria-disabled=true]) {
    background:linear-gradient(145deg,#b81732,#8e1027); color:#fff4df; border-color:#e4b168;
    box-shadow:inset 0 1px #ffe6b340,inset 0 -2px #58120d; text-shadow:none; font-weight:700;
}
.ec-app :is(.button.action-create,.button.action-navigation,.casino-card .button.ghost,.button[data-free-claim],.button[data-raspa-select],.button[data-premium-offer]):not(:disabled):is(:hover,:focus-visible),
.ec-app .games-hub-card:is(:hover,:focus-visible) > b { background:#a71930; color:#fff4df; }
.ec-app :is(.button.action-money,.button.action-deposit):active:not(:disabled) {
    box-shadow:inset 0 2px 4px #68451655; transform:translateY(1px);
}
.ec-app :is(dialog,.premium-purchase-modal,.raspa-confirm-dialog) { color:var(--ec-future-ink); background:var(--ec-future-panel); border:1px solid #b59a62; border-radius:24px; box-shadow:0 24px 80px #0009; }
.ec-app dialog::backdrop { background:#07080bd9; backdrop-filter:blur(5px); }
.ec-app .connection-notice {
    display:flex; align-items:flex-start; gap:12px; padding:16px; margin-bottom:18px;
    border:1px solid #d3aa64; border-left:4px solid #f1c77c; border-radius:14px;
    background:#292219; color:#fff0d4; box-shadow:0 6px 22px #0003;
}
.ec-app .connection-notice[hidden], .ec-app .connection-notice [hidden] { display:none; }
.ec-app .connection-notice > div { flex:1; min-width:0; overflow-wrap:anywhere; }
.ec-app .connection-notice strong { color:#ffe4a1; font-size:1rem; }
.ec-app .connection-notice p { margin:6px 0 0; color:#eee0cc; font-size:.875rem; line-height:1.6; }
.ec-app .connection-notice-symbol { display:grid; place-items:center; width:28px; height:28px; flex:0 0 28px; border:1px solid currentColor; border-radius:50%; color:#ffe4a1; font-weight:800; }
.ec-app .connection-notice[data-state=restored] { background:#192c25; border-color:#87c6a5; }
.ec-app .connection-notice[data-state=restored] :is(strong,.connection-notice-symbol) { color:#c3efd4; }
.ec-app .connection-notice-dismiss { flex:0 0 44px; width:44px; height:44px; border:1px solid #86ad96; border-radius:10px; background:#112119; color:#effff4; font-size:1.5rem; cursor:pointer; }
.ec-app .connection-notice-dismiss:focus-visible { outline:3px solid #ffe4a1; outline-offset:3px; }
.ec-app .recovery-card { padding:clamp(22px,4vw,36px); border-style:solid; border-color:#b89a64; background:radial-gradient(ellipse at top,#6c271e55,transparent 65%),#171719; text-align:center; }
.ec-app .recovery-symbol { display:grid; place-items:center; margin:0 auto 20px; width:64px; height:64px; border:1px solid #d4b370; border-radius:20px; background:linear-gradient(145deg,#713328,#28201c); color:#ffe4a1; font-size:2rem; font-weight:800; }
.ec-app .recovery-card h1 { font-size:clamp(1.5rem,4vw,2rem); line-height:1.3; text-wrap:balance; }
.ec-app .recovery-card p { color:#e1d8cf; font-size:1rem; line-height:1.7; margin-bottom:24px; }
.ec-app .recovery-actions { display:grid; gap:12px; margin:0 0 12px; }
.ec-app .recovery-card > .button { width:100%; }
@media(min-width:600px) { .ec-app .recovery-actions { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.ec-app dialog[open] { animation:ec-dialog-enter .2s var(--ec-ease); }
.ec-app :is(button,.button)[aria-busy=true] { position:relative; cursor:progress; white-space:normal; overflow-wrap:anywhere; }
/* A progress rail stays inside the control: no extra flex child or layout jump.
   Submit labels, values, validation and duplicate-payment guards stay untouched. */
.ec-app :is(button,.button)[aria-busy=true]::after {
    content:''; display:block; position:absolute; z-index:1; inset:auto 16% 3px;
    height:3px; border-radius:3px; pointer-events:none; background:currentColor;
    opacity:.8; transform-origin:left; animation:ec-control-progress 1.15s ease-in-out infinite alternate;
}
@keyframes ec-control-progress { from { transform:scaleX(.2); } to { transform:scaleX(1); } }
@media(prefers-reduced-motion:reduce) {
    .ec-app :is(button,.button)[aria-busy=true]::after { animation:none; transform:none; }
}
@keyframes ec-dialog-enter { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@media(hover:hover) {
    .ec-app :is(.casino-card,.games-hub-card,.portal-tool):hover { border-color:#f2c879; box-shadow:0 14px 34px #0006,inset 0 1px #ffe2aa22; }
}
@media(min-width:1000px) {
    .ec-app .casino-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .ec-app .portal-tools-interior .portal-tools { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:600px) {
    .ec-app .topbar:has(.header-wallet) { padding-block:6px; padding-top:max(6px,env(safe-area-inset-top)); gap:4px 8px; }
    .ec-app .topbar .brand-logo { width:36px; height:36px; }
    .ec-app .header-wallet { padding-top:4px; }
    .ec-app .tropical-showcase { min-height:260px; padding:22px 18px; }
    .ec-app .tropical-showcase > :not(img) { max-width:72%; }
    .ec-app .tropical-showcase h1 { font-size:1.8rem; }
    .ec-app .tropical-showcase p { font-size:.85rem; }
    .ec-app .tropical-showcase-art { object-position:62% center; }
    .ec-app .tropical-showcase::after { background:linear-gradient(90deg,#191a1df5,#191a1db8 64%,#191a1d25); }
    .ec-app .casino-card { padding:16px; }
    .ec-app .portal-tools-interior .portal-tool { padding:14px; }
    .ec-app .ron-page-heading { flex-wrap:wrap; padding:18px; }
}

/* Historiales y acciones: mismos tamaños y superficies, sin nuevas capas de tema. */
.ec-app .history-filters { display:flex; align-items:end; flex-wrap:wrap; gap:12px; padding:18px; }
.ec-app .history-filters label { display:grid; gap:6px; flex:1 1 180px; min-width:0; }
.ec-app .history-filters :is(input,select) { min-width:0; width:100%; min-height:44px; }
.ec-app .history-filters .validation { flex-basis:100%; }
.ec-app .validation-summary-valid { display:none; }
.ec-app .wallet-history .movement-row { grid-template-columns:40px minmax(0,1fr) auto; }
.ec-app .wallet-history .movement-detail { min-width:0; overflow-wrap:anywhere; }
.ec-app .wallet-history .movement-row > .movement-icon { grid-column:1; grid-row:1; }
.ec-app .wallet-history .movement-row > .movement-detail { grid-column:2; grid-row:1; }
.ec-app .wallet-history .movement-row > .list-value { grid-column:3; grid-row:1; display:block; }
.ec-app .wallet-history time { display:block; font-size:.85rem; color:#ddc6c3; }
.ec-app .wallet-history .amount-positive { color:#ade4bf; }
.ec-app .wallet-history .amount-negative { color:#ffb7a0; }
.ec-app .wallet-history .amount-neutral { color:#e8cfac; }
/* Los historiales nunca heredan tinta marrón de las antiguas tarjetas claras. */
.ec-app .activity-ledger :is(time,small,.prize-void) { color:var(--ec-future-muted); opacity:1; }
.ec-app .activity-ledger .prize-state { display:inline-flex; margin-top:8px; padding:6px 9px; border:1px solid #7da88a; border-radius:8px; color:#d5f4df; background:#17372c; font-weight:650; }
.ec-app .activity-ledger .prize-void .prize-state { color:var(--ec-text-error); border-color:#d18576; background:#391915; }
@media(max-width:480px) {
    .ec-app .wallet-history .movement-row { grid-template-columns:36px minmax(0,1fr); }
    .ec-app .wallet-history .movement-row > .movement-icon { grid-row:1 / span 2; }
    .ec-app .wallet-history .movement-row > .list-value { grid-column:2; grid-row:2; text-align:left; }
}
.ec-app .results-quick-actions { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.ec-app .results-quick-actions .button { min-height:44px; flex:1 1 auto; }
.ec-app .channel-status { display:grid; gap:8px; }
.ec-app .channel-status > div { padding:12px; border:1px solid var(--ec-line); border-radius:10px; background:var(--ec-field); }
.ec-app .channel-status dd { margin:5px 0 0; color:var(--ec-action-gold-hover-color,#ffe4a1); font-weight:750; }
.ec-app .premium-renewal-summary { color:#efe2c5; padding:12px; border:1px solid var(--ec-line); border-radius:10px; }
@media(min-width:1200px) {
    .ec-app .topbar:has(.bottom-nav) { grid-template-columns:auto minmax(0,1fr) auto; gap:16px 24px; }
    .ec-app .topbar-actions { grid-column:3; grid-row:1; }
    .ec-app .topbar .bottom-nav { --portal-nav-mode:top; grid-column:2; grid-row:1; position:static; transform:none; margin:0; width:100%; min-height:48px; border:0; background:transparent; box-shadow:none; padding:0; }
    .ec-app .topbar .bottom-nav a { flex-direction:row; gap:6px; justify-content:center; padding:8px 4px; min-height:48px; font-size:.8rem; }
    .ec-app .topbar .bottom-nav .nav-icon { width:20px; height:20px; }
    .ec-app .topbar .bottom-nav .nav-icon svg { width:20px; height:20px; }
    .ec-app:not(.casino-immersive-page):has(.bottom-nav) .page-shell { padding-bottom:40px; }
    html:has(.bottom-nav) { scroll-padding-bottom:24px; }
}
@media(max-height:500px) {
    .ec-app .topbar:has(.header-wallet) { position:relative; }
}

/* Tipografía de lectura y métricas: la decoración nunca sustituye al dato. */
.ec-app :is(.wallet-page,.agente-portal,.portal-results,.wallet-history) :is(p,small,time,.microcopy) { font-size:max(.8rem,12px); line-height:1.55; }
.ec-app :is(.eyebrow,.premium-carousel-copy > small) { text-transform:none; letter-spacing:.04em; font-weight:650; }
.ec-app :is(.list-card,.metric-card,.agent-commission) strong { font-weight:650; }
.ec-app .agent-earnings { padding:18px; }
.ec-app .agent-earnings h2 { margin:8px 0; }
.ec-app .agent-earnings .agent-lifetime { font-size:clamp(1.4rem,4vw,2rem); }
.ec-app .agent-periods { margin-top:12px; padding-top:12px; gap:12px; }
.ec-app .agent-balance-card { padding:16px; gap:7px; }
.ec-app .agent-balance-card .agent-metric-symbol { width:32px; height:32px; margin:0; padding:5px; }
.ec-app .agent-totals .list-card { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px 16px; }
.ec-app .agent-totals .list-card > span { margin-left:auto; font-variant-numeric:tabular-nums; color:#ffe4a1; }
.ec-app .agent-commission { display:grid; grid-template-columns:28px minmax(0,1fr) auto; gap:12px; align-items:center; padding:14px; border-radius:14px; box-shadow:none; }
.ec-app .agent-commission > div { min-width:0; overflow-wrap:anywhere; }
.ec-app .agent-commission .agent-commission-amount { font-variant-numeric:tabular-nums; color:#d0f0da; text-align:right; max-width:100%; overflow-wrap:anywhere; }
.ec-app .agent-commission.voided .agent-commission-amount { color:#ffb7a0; }
.ec-app .agent-commission.waiting .agent-commission-amount { color:#ffe0a0; }
@media(max-width:480px) {
    .ec-app .agent-commission { grid-template-columns:28px minmax(0,1fr); }
    .ec-app .agent-commission-icon { grid-row:1 / span 2; align-self:start; }
    .ec-app .agent-commission .agent-commission-amount { grid-column:2; text-align:left; justify-self:start; }
}
@media(min-width:1100px) {
    .ec-app .agente-portal:has([data-agent-dashboard]) { max-width:1100px; margin-block:20px; }
    .ec-app [data-agent-overview] { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
    .ec-app [data-agent-overview] > * { grid-column:1 / -1; min-width:0; margin-block:0; }
    .ec-app [data-agent-overview] > .agent-earnings { grid-column:1; grid-row:3; height:100%; }
    .ec-app [data-agent-overview] > .agent-network { grid-column:2; grid-row:3; height:100%; display:grid; grid-template-columns:1fr; align-content:center; gap:16px; }
    .ec-app [data-agent-overview] > .agent-network > div { display:flex; align-items:center; gap:20px; padding:8px 0; border-bottom:1px solid var(--ec-future-line); }
    .ec-app .agent-network strong { min-width:3ch; text-align:center; }
    .ec-app .agent-totals { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
    .ec-app .agent-totals .notice { grid-column:1 / -1; }
}
.ec-app .portal-results .result-card { padding:14px; }
.ec-app .portal-results .result-identity > strong { font-weight:650; font-size:1rem; line-height:1.45; }
.ec-app .portal-results .result-value > .winning-number { background:linear-gradient(145deg,#fff0bd,#d7aa52); border-color:#ffdfa0; color:#351b0b; box-shadow:inset 0 1px #fff9e2; font-weight:750; }
/* Acabado cálido: datos nítidos, regalo reconocible y catálogo compacto. */
.ec-app :is(h1,h2,h3,p,small,label,dt,dd,.list-value,.agent-lifetime,.agent-commission-amount,.winning-number,.premium-carousel-copy,.premium-carousel-power) { text-shadow:none; }
.ec-app :is(.wallet-page,.agent-dashboard,.portal-results) { line-height:1.55; }
.ec-app :is(.agent-activity,.wallet-history,.portal-results) :is(strong,small,time) { letter-spacing:normal; }
.ec-app .premium-carousel-landscape { position:absolute; inset:0; z-index:-3; width:100%; height:100%; object-fit:cover; opacity:.65; pointer-events:none; }
.ec-app .premium-carousel-art { object-position:70% center; }
.ec-app .premium-carousel-plan svg.premium-carousel-plan-art { opacity:.9; }
.ec-app .premium-carousel-copy { gap:10px; }
.ec-app .premium-carousel-regalo .premium-carousel-copy > strong > span { display:inline; }
.ec-app .premium-carousel-orbit { align-self:center; }
.ec-app .premium-carousel-regalo .premium-carousel-gift { background:transparent; border:0; box-shadow:none; }
.ec-app .premium-carousel-gift .raspa-free-icon { background:linear-gradient(145deg,#ffedb0,#c98e32); border-color:#fff0bf; box-shadow:0 8px 24px #1c070950; }
.ec-app .premium-carousel-regalo[data-ready=true] .premium-carousel-gift { box-shadow:none; }
.ec-app .premium-carousel-note { background:#0e0a0a66; border:0; border-top:1px solid #ffffff30; padding:10px; border-radius:0 0 8px 8px; color:#f6eedf; }
.ec-app .home-free-scratch .raspa-free { position:relative; isolation:isolate; overflow:hidden; border:1px solid #ba864e; border-left:5px solid #e6bd6d; background:linear-gradient(110deg,#541b12,#28130d); }
.ec-app .home-free-scratch .raspa-free::before { display:block; background:linear-gradient(90deg,#3b130ee8,#3b130ef5 65%,#3b130e80),url('/branding/jewel/regalo-small.webp') right center/cover; }
.ec-app .home-free-scratch .raspa-free-icon { background:linear-gradient(145deg,#8d3424,#4f1c14); border-color:#e3b675; box-shadow:0 5px 16px #15060255; }
.ec-app .home-free-scratch .raspa-free[data-ready=true] .raspa-free-icon { background:linear-gradient(145deg,#fff0b7,#cb903d); border-color:#fff0c1; }
.ec-app .home-free-scratch .raspa-free[data-ready=true] { background:#312010; border-color:#735b34; box-shadow:none; }
.ec-app .home-free-scratch .raspa-free[data-ready=true]::before { background:linear-gradient(90deg,#312010 25%,#312010ed 65%,#31201055),url('/branding/jewel/regalo-small.webp') right center/cover; }
.ec-app .home-free-scratch .raspa-free[data-ready=true] :is(h2,h2 em,.eyebrow,.raspa-free-meter-label,.raspa-free-meter-label strong,.raspa-free-status,.raspa-free-message,.raspa-free-actions>a) { color:var(--ec-future-gold-light); }
.ec-app .home-free-scratch .raspa-free[data-ready=true] .raspa-free-progress>svg { background:var(--ec-action-gold); }
.ec-app .home-free-scratch .raspa-free[data-ready=true] .raspa-free-actions>.button:focus-visible { outline-color:var(--ec-focus); }
/* Un solo regalo en Inicio: control, disponibilidad y progreso del servidor. */
    .ec-app .home-free-scratch .raspa-free { grid-template-columns:40px minmax(0,1fr) minmax(88px,140px); grid-template-areas:"gift copy actions" "charge charge charge"; gap:8px 10px; padding:14px; }
    .ec-app .home-free-scratch .raspa-free-icon { width:40px; height:40px; }
    .ec-app .home-free-scratch .raspa-free h2 { font-size:1rem; line-height:1.4; }
    .ec-app .home-free-scratch .raspa-free :is(.eyebrow,.raspa-free-copy p) { display:none; }
    .ec-app .home-free-scratch .raspa-free-charge { gap:5px; }
    .ec-app .home-free-scratch .raspa-free-actions { display:flex; flex-direction:column; align-items:stretch; gap:6px; }
    .ec-app .home-free-scratch .raspa-free-actions > .button { padding:8px; font-size:.8rem; white-space:normal; }
    .ec-app .home-free-scratch .raspa-free-actions > a { padding:0; font-size:.75rem; }
@media(max-width:359px) {
    .ec-app .home-free-scratch .raspa-free { grid-template-columns:32px minmax(0,1fr); grid-template-areas:"gift copy" "charge charge" "actions actions"; }
}
@media(min-width:768px) {
    .ec-app .royal-lobby .home-free-scratch { margin:0; }
    .ec-app .royal-lobby .raspa-free { grid-template-columns:52px minmax(0,1fr) minmax(160px,1fr) auto; grid-template-areas:"gift copy charge actions"; padding:24px; gap:20px; }
    .ec-app .royal-lobby .raspa-free-icon { width:52px; height:52px; }
    .ec-app .royal-lobby .raspa-free-copy .eyebrow { display:block; font-size:.65rem; }
    .ec-app .royal-lobby .raspa-free h2 { font-size:1.25rem; }
}
.ec-app .casino-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(min-width:1000px) { .ec-app .casino-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:760px) {
    .ec-app :is(.games-hub-heading,.casino-hero).tropical-showcase { min-height:150px; padding:18px; margin-bottom:16px; }
    .ec-app :is(.games-hub-heading,.casino-hero).tropical-showcase h1 { font-size:1.5rem; margin:6px 0; }
    .ec-app :is(.games-hub-heading,.casino-hero).tropical-showcase > :not(img) { max-width:85%; }
    .ec-app .casino-hero .badge { display:none; }
    .ec-app :is(.games-hub-grid,.casino-grid) { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .ec-app :is(.games-hub-card,.casino-card) { padding:14px 10px; min-height:0; border-radius:18px; }
    .ec-app .games-hub-card .games-hub-art { height:100%; }
    .ec-app .games-hub-copy { margin-top:85px; }
    .ec-app .games-hub-copy strong { font-size:1.05rem; line-height:1.35; }
    .ec-app .games-hub-copy > small { font-size:.75rem; letter-spacing:.04em; }
    .ec-app .games-hub-copy > span { font-size:.85rem; line-height:1.5; }
    .ec-app .games-hub-card > b { font-size:.75rem; padding:10px 6px; white-space:normal; line-height:1.4; min-height:44px; }
    .ec-app .casino-card h2 { margin:88px 0 8px; font-size:1.05rem; line-height:1.35; overflow-wrap:normal; word-break:normal; hyphens:auto; }
    .ec-app .casino-card p { font-size:.85rem; line-height:1.5; margin:0 0 10px; }
    .ec-app .casino-card .casino-bet-range { font-size:.8rem; line-height:1.5; }
    .ec-app .casino-card .casino-bet-range strong { white-space:normal; }
    .ec-app .casino-card .button.ghost { padding:10px 5px; min-height:44px; font-size:.8rem; white-space:normal; }
}
/* Páginas de cuenta y contenido: composición compartida, datos siempre en HTML. */
.ec-app .account-data-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr)); }
.ec-app .account-profile-heading { gap:14px; }
.ec-app .account-level { display:flex; align-items:center; flex-wrap:wrap; gap:10px 16px; padding:14px; }
.ec-app .account-level > small { flex-basis:100%; }
.ec-app .account-balance { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; }
.ec-app .account-balance > strong { font-variant-numeric:tabular-nums; }
.ec-app .communication-toggle { display:flex; align-items:flex-start; gap:12px; padding:14px; border:1px solid #a98b5c70; border-radius:12px; background:#151719; }
.ec-app .communication-toggle > input[type=checkbox] { width:20px; height:20px; min-height:20px; flex:0 0 20px; margin:2px 0 0; }
.ec-app .communication-toggle > span { min-width:0; }
.ec-app .communication-toggle small { display:block; margin-top:5px; }
.ec-app .consultation-create .benefit-details-body { padding-top:18px; }
.ec-app .consultation-create .stack-form { margin-top:0; }
.ec-app .consultation-row { gap:12px; padding:16px 12px; margin-block:8px; border:1px solid #6a696653; border-radius:14px; background:#111416; text-decoration:none; }
.ec-app .consultation-row strong { overflow-wrap:anywhere; color:#f7eee0; }
.ec-app .consultation-row .benefit-tag { flex-shrink:0; max-width:40%; white-space:normal; overflow-wrap:anywhere; color:#f5d28d; background:#302a1e; }
.ec-app .consultation-row:hover { border-color:#d3b679; }
.ec-app .consultation-messages:focus-visible { outline:3px solid #ffe4a1; outline-offset:3px; }
.ec-app .portal-news-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,24rem),1fr)); gap:18px; align-items:start; }
.ec-app .portal-news-grid .portal-news { margin:0; min-width:0; padding:clamp(18px,2.5vw,26px); border-top:2px solid #ddbd78; }
.ec-app .portal-news > :is(h2,p) { max-width:65ch; overflow-wrap:anywhere; }
.ec-app .portal-news > img { display:block; aspect-ratio:16/9; margin-bottom:18px; }
.ec-app .portal-news > small { display:inline-block; padding:6px 10px; border-radius:8px; background:var(--ec-future-inset); color:#e3ceb0; }
.ec-app .portal-news .plain-content { line-height:1.75; }
.ec-app .news-empty { padding:28px 20px; }
.ec-app .news-empty h2 { font-size:1.1rem; margin:4px 0; }
.ec-app .benefit-details > summary { min-height:48px; display:list-item; }
.ec-app .benefit-details > summary:focus-visible { outline:3px solid #ffe4a1; outline-offset:-4px; border-radius:12px; }
.ec-app .benefit-pagination :is(a,button) { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:8px 12px; border:1px solid #a58b5c66; border-radius:10px; background:#151719; }
@media(min-width:1100px) {
    .ec-app .account-page #perfil { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:18px; align-items:start; }
    .ec-app .account-page #perfil[hidden] { display:none; }
    .ec-app .account-page #perfil > .account-profile { min-width:0; margin:0; }
    .ec-app .account-page #perfil > .account-profile:first-child { grid-column:1 / -1; }
    .ec-app .account-page .account-actions-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .ec-app .consultations-page { grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; }
    .ec-app .consultations-page > * { grid-column:1 / -1; min-width:0; margin:0; }
    .ec-app .consultations-page > .consultation-create { grid-column:1; }
    .ec-app .consultations-page > .consultation-history { grid-column:2; }
    .ec-app .consultations-page:not(:has(.consultation-create)) > .consultation-history { grid-column:1 / -1; }
}
@media(max-width:600px) {
    .ec-app .portal-results { padding:16px; }
    .ec-app .portal-results .date-switcher-submit { padding:8px; font-size:.8rem; }
    .ec-app .portal-results .date-switcher-submit svg { display:none; }
    .ec-app .benefit-hero .benefit-hero-top { gap:10px; }
}
@media (forced-colors: active) {
    .ec-app :is(.button, input, select, textarea, .surface, .list-card) { border: 1px solid ButtonText; }
    .ec-app :is([aria-current=page], [aria-pressed=true]) { outline: 2px solid Highlight; }
}

@media (prefers-reduced-motion: reduce) {
    .ec-app *, .ec-app *::before, .ec-app *::after { transition-duration: 0s !important; animation-duration: 0.01ms !important; }
}

/* Reusable editorial header. The Razor partial contains text, not a screenshot. */
.ec-app .page-heading.royal-section-heading { position:relative; isolation:isolate; overflow:hidden; min-height:160px; padding:clamp(22px,3vw,34px); border:1px solid var(--ec-future-line); border-left:3px solid var(--ec-red); border-radius:18px; background:var(--ec-future-panel); margin-bottom:24px; }
.ec-app .royal-section-heading .royal-heading-copy { position:relative; max-width:70%; min-width:0; }
.ec-app .royal-section-heading h1 { margin:8px 0 12px; font-size:clamp(1.8rem,4vw,2.8rem); font-weight:800; letter-spacing:-.045em; line-height:1.15; }
.ec-app .royal-section-heading p { max-width:50ch; margin:0; font-size:.9rem; line-height:1.6; color:var(--ec-future-muted); }
.ec-app .royal-section-heading .section-art { left:auto; right:0; width:40%; opacity:.55; }
.ec-app .royal-section-heading::before { background:linear-gradient(90deg,var(--ec-future-panel) 25%,#1e1213eb 55%,#1e121333); }
.ec-app .royal-section-heading::after { display:none; }
@media(max-width:600px) {
    .ec-app .page-heading.royal-section-heading { min-height:130px; padding:20px; }
    .ec-app .royal-section-heading .royal-heading-copy { max-width:100%; }
    .ec-app .royal-section-heading .section-art { width:55%; opacity:.25; }
    .ec-app .royal-section-heading h1 { font-size:1.8rem; }
}
.ec-app .whatsapp-invitation { display:grid; gap:14px; padding:18px; background:#101e19; border:1px solid #53856b; border-radius:16px; min-width:0; }
.ec-app .whatsapp-invitation .invitation-link { display:grid; gap:8px; min-width:0; background:#101512; border:1px solid #648472; padding:16px; border-radius:12px; }
.ec-app .whatsapp-invitation .invitation-link :is(strong,span) { color:#f6eedf; overflow-wrap:anywhere; min-width:0; }
.ec-app .whatsapp-invitation .button.action-whatsapp { background:#176341; color:#fff; border:1px solid #85c6a4; min-height:48px; white-space:normal; text-align:center; }
/* Salón: una entrada principal y dos salas laterales. El arte es fondo;
   las superficies detrás del texto conservan su contraste sin depender de la foto. */
.ec-app .games-hub-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.ec-app .games-hub-card.games-hub-casino {
    grid-column:1/-1; min-height:clamp(180px,22vw,260px); justify-content:center;
    align-items:flex-start; padding:clamp(18px,4vw,38px); border-color:#ba9056;
}
.ec-app .games-hub-casino .games-hub-art { inset:0 0 0 auto; width:65%; }
.ec-app .games-hub-card.games-hub-casino::after { background:linear-gradient(90deg,#211619 12%,#211619f0 34%,#21161975 65%,transparent); }
.ec-app .games-hub-casino .games-hub-copy { margin:0; max-width:58%; }
.ec-app .games-hub-casino .games-hub-copy strong { font-family:Georgia,serif; font-size:clamp(1.55rem,5vw,2.85rem); line-height:1.05; }
.ec-app .games-hub-card.games-hub-casino > b { margin:12px 0 0; }
.ec-app .games-hub-card.games-hub-raspas { border-top:3px solid #edbd64; }
.ec-app .games-hub-card.games-hub-ron { border-top:3px solid #70bea2; }
.ec-app .casino-hero h1 { font-family:Georgia,serif; letter-spacing:-.035em; }
.ec-app[data-visual-section=casino] .casino-grid .casino-card { border:1px solid color-mix(in srgb,var(--game-glow) 50%,#866d51); box-shadow:inset 0 3px var(--game-glow); }
.ec-app[data-visual-section=casino] .casino-grid .casino-card::before { background:linear-gradient(0deg,#141016 6%,#161016f5 33%,#161016af 58%,transparent 86%); }
.ec-app .casino-grid .casino-card h2 { font-family:Georgia,serif; color:#fff0cf; line-height:1.15; }
.ec-app .home-modality .modality-tiempos-art .modality-backdrop { object-position:74% 65%; }
