/* nanocasinochile.cl — Nano Casino lobby, Chile.
   The palette is the brand's, not an invention: #F39702 is sampled off two
   independent captures of the real product UI, and the white wordmark is the
   operator's own /cms/img/logo.svg (the "-Neg" cut, drawn for exactly this
   orange). Orange is a FILL colour — at 2.27:1 on white it can never carry
   text, so every orange word on this site is #9A5600 (5.67:1) and every orange
   surface carries #1C1508 ink (7.96:1). Generated by build_css_nano.py. */

:root {
    /* Grounds — warm paper under white panels, the inverse of the template's
       void/panel/raised stack. */
    --void: #f6f1e9;
    --panel: #ffffff;
    --raised: #ffffff;
    --hover: #f1e7d8;
    --line: #e3d9c8;

    /* Ink */
    --text: #1c1508;
    --muted: #5f5648;
    --ink: #1c1508;

    /* Brand */
    --brand: #f39702;          /* fills only — 2.27:1 on white */
    --brand-bright: #ffb43c;
    --brand-dim: #d67c00;
    --brand-ink: #9a5600;      /* the orange you are allowed to read */

    /* Functional roles */
    --pro: #1b7f3b;
    --con: #b3341a;
    --gold: #9a5600;
    --amber: #b3341a;
    --live: #c42f00;
    --live-dim: #8f2200;

    --header-h: 64px;
    --sidebar-w: 240px;
    --sans: "Open Sans", -apple-system, "Segoe UI", sans-serif;
    --display: "Montserrat", "Open Sans", -apple-system, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 8px 24px rgba(60, 40, 10, 0.10);
    --focus: 0 0 0 2px #ffffff, 0 0 0 4px var(--brand-dim);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--void);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
select {
    font-family: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 700;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Icon sprite ── */
.icon {
    width: 1.15em;
    height: 1.15em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.icon-lg {
    width: 1.35em;
    height: 1.35em;
}

/* ── Top bar ── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
    /* The real Nano masthead was a flat orange band carrying the white
       wordmark. Functional text on it is ink (7.96:1); the logo is the
       operator's own negative cut and is a logotype, not body copy. */
    background: var(--brand);
    border-bottom: 1px solid var(--brand-dim);
    color: var(--ink);
}

.topbar .burger,
.topbar .lang {
    color: var(--ink);
}

.topbar .search input {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(28, 21, 8, 0.18);
}

.topbar .btn-ghost {
    border-color: rgba(28, 21, 8, 0.35);
    color: var(--ink);
}

.topbar .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.28);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.burger {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--text);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.logo {
    display: flex;
    align-items: center;
    height: 40px;
}

.logo img {
    height: 36px;
    width: auto;
}

.search {
    flex: 1;
    max-width: 420px;
    position: relative;
    margin: 0 auto;
}

.search.is-mobile {
    display: none;
}

.search .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.search input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 38px;
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    font-size: 14px;
}

.search input::placeholder {
    color: var(--muted);
}

.search input:focus {
    border-color: var(--brand-dim);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 0;
    font-family: var(--display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-ghost:hover {
    background: var(--hover);
}

/* Orange is the action colour, and ink is the only label that survives on
   it (7.96:1). White here would be 2.27:1. */
.btn-primary {
    background: linear-gradient(180deg, var(--brand-bright), var(--brand));
    color: var(--ink);
    box-shadow: 0 6px 18px rgba(243, 151, 2, 0.32);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #ffc866, #ffa41a);
}

.btn-green {
    background: var(--brand);
    color: var(--ink);
}

.btn-green:hover {
    background: var(--brand-bright);
}

.btn-live {
    background: var(--live);
    color: #fff;
}

.lang {
    height: 40px;
    padding: 0 10px;
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.06em;
}

/* ── Shell ── */
.shell {
    display: flex;
    min-height: calc(100vh - var(--header-h));
}

.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--panel);
    border-right: 1px solid var(--line);
    padding: 16px 12px 32px;
    position: sticky;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    overflow-y: auto;
}

.nav-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 8px 12px 6px;
}

.nav-list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
}

.nav-list a:hover {
    background: var(--hover);
}

.nav-list a.is-active {
    background: var(--raised);
    box-shadow: inset 3px 0 0 var(--brand);
    border-radius: 0;
}

.nav-list .dot-live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 0 0 rgba(196, 47, 0, 0.7);
    animation: pulse-live 1.8s ease-out infinite;
    margin-left: auto;
}

@keyframes pulse-live {
    0% { box-shadow: 0 0 0 0 rgba(196, 47, 0, 0.55); }
    100% { box-shadow: 0 0 0 8px rgba(196, 47, 0, 0); }
}

.sidebar-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 8px 0 0;
    text-align: center;
}

/* ── Main ── */
.main {
    flex: 1;
    min-width: 0;
    padding: 20px 24px 64px;
}

/* ── Promo track ── */
.promo-track {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
}

.promo-banner {
    position: relative;
    min-height: 168px;
    border-radius: var(--radius);
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: var(--raised);
    box-shadow: var(--shadow);
}

.promo-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.promo-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    /* Scrim strengths are measured, not eyeballed. Swept against these three
       photographs; the worst pixel under any heading sits at 5.10:1 and under
       any paragraph at 8.41:1, both clear of AA for normal text, while leaving
       the image actually visible. Re-measure if you swap a banner. */
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.74) 46%, rgba(0, 0, 0, 0.90) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0) 62%);
}

.promo-banner h2,
.promo-banner .promo-kicker-off {
    font-size: 22px;
}

.promo-banner p {
    color: var(--muted);
    font-size: 13px;
    max-width: 36ch;
    margin: 6px 0 12px;
}

.promo-banner .btn {
    width: fit-content;
}

.promo-a { background: #2a1a06; }
.promo-b { background: #16212a; }
.promo-c { background: #241a10; }

/* ── Chips ── */
.chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 22px;
    scrollbar-width: none;
}

.chips::-webkit-scrollbar {
    display: none;
}

.chip {
    flex-shrink: 0;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--raised);
    color: var(--text);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.chip:hover {
    background: var(--hover);
}

.chip.is-active {
    background: var(--brand);
    color: var(--ink);
    border-color: var(--brand);
}

/* ── Game rails ── */
.rail {
    margin-bottom: 28px;
}

.rail-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.rail-head h2 {
    font-size: 20px;
}

.rail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rail-actions a {
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
}

.rail-actions a:hover {
    color: var(--brand-ink);
}

.rail-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--raised);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rail-btn:hover {
    background: var(--hover);
}

.rail-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

.game-card {
    flex: 0 0 188px;
    scroll-snap-align: start;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--raised);
    cursor: pointer;
    border: 0;
    padding: 0;
    text-align: left;
    color: inherit;
}

.game-card img,
.game-card .orig-art {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f7f2ea;
}

.game-card h3 {
    font-size: 15px;
    padding: 8px 10px 2px;
}

.game-card .meta {
    font-size: 12px;
    color: var(--muted);
    padding: 0 10px 10px;
}

.game-card .play {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.game-card:hover .play,
.game-card:focus-visible .play {
    opacity: 1;
}

.play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--ink);
    display: grid;
    place-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.play-btn .icon {
    margin-left: 2px;
}

.badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 4px;
    background: var(--ink);
    color: var(--brand);
}

.badge-live {
    background: var(--live);
    color: #fff;
}

.badge-jackpot {
    background: var(--gold);
    color: var(--ink);
}

/* ── Fact strip (replaces the template's invented win ticker: every line here
      is a verifiable fact about the operator, not a fabricated player win) ── */
.ticker {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin-bottom: 28px;
    overflow: hidden;
}

.ticker-label {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-ink);
}

.ticker-mask {
    overflow: hidden;
    flex: 1;
    /* Without a fade the marquee hard-clips mid-word at the mask edge, which
       reads as a rendering bug rather than a moving strip. */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.ticker-move {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: ticker 32s linear infinite;
}

.win {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 13px;
    color: var(--muted);
}

.win b {
    color: var(--brand-ink);
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ── Providers / payments ── */
.strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 28px;
}

.pill {
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--raised);
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

/* ── Prose ── */
.prose {
    max-width: 75ch;
}

.prose h2 {
    font-size: 24px;
    margin: 2.2em 0 0.55em;
}

.prose h3 {
    font-size: 18px;
    margin: 1.6em 0 0.45em;
}

.prose p,
.prose li {
    color: var(--muted);
}

.prose strong {
    color: var(--text);
}

.prose ul {
    padding-left: 1.2em;
    margin: 0 0 1em;
}

.prose a {
    color: var(--brand-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Buttons inside prose are buttons, not links: `.prose a` (0-1-1) would paint
   them green-on-green, so `.prose .btn` (0-2-0) has to restate a colour. It must
   NOT hard-code white — the primary button is bright green with black ink, and
   white on it lands at 1.1:1. Each variant restates its own ink at 0-2-0. */
.prose .btn {
    text-decoration: none;
    color: var(--text);
}

.prose .btn-primary {
    color: var(--ink);
}

.prose .btn-ghost {
    color: var(--text);
}

/* ── In-article photo with caption ── */
.shot {
    margin: 22px 0 26px;
}

.shot img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.shot figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
}

.facts {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 28px;
    font-size: 14px;
}

.facts caption {
    text-align: left;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: var(--display);
}

.facts th,
.facts td {
    border: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
}

.facts th {
    width: 38%;
    background: var(--raised);
    color: var(--text);
}

.facts td {
    color: var(--muted);
}

.faq details {
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 8px;
}

.faq summary {
    font-weight: 700;
    cursor: pointer;
    font-family: var(--display);
}

.faq details p {
    color: var(--muted);
    margin: 10px 0 0;
    font-size: 14px;
}

/* ── Footer ── */
.site-footer {
    background: var(--panel);
    border-top: 1px solid var(--line);
    padding: 40px 24px 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto 28px;
}

.footer-grid h2 {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-grid li {
    margin-bottom: 8px;
}

.footer-grid a:hover {
    color: var(--brand-ink);
}

.footer-note {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.footer-note p {
    margin-bottom: 8px;
}

.search-empty {
    display: none;
    padding: 32px;
    text-align: center;
    color: var(--muted);
}

.search-empty.is-on {
    display: block;
}

body.nav-open {
    overflow: hidden;
}

.sidebar-backdrop {
    display: none;
}

.mobile-tabbar {
    display: none;
}

/* ── Live / bonus page extras ── */
.page-hero {
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    margin-bottom: 22px;
}

.page-hero h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.page-hero p {
    color: var(--muted);
    max-width: 62ch;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.promo-card {
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promo-card h2 {
    font-size: 20px;
}

.promo-card p {
    color: var(--muted);
    font-size: 14px;
    flex: 1;
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.live-grid .game-card {
    flex: none;
    width: 100%;
}

/* ── Breadcrumb ── */
.crumbs {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}

.crumbs a:hover {
    color: var(--brand-ink);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .promo-track {
        grid-template-columns: 1fr 1fr;
    }
    .promo-track .promo-banner:first-child {
        grid-column: 1 / -1;
        min-height: 200px;
    }
    .footer-grid,
    .promo-grid,
    .live-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .burger {
        display: inline-flex;
    }

    .search {
        display: none;
    }

    .search.is-mobile {
        display: block;
        max-width: none;
        margin: 12px 0 16px;
    }

    .sidebar {
        position: fixed;
        z-index: 50;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        box-shadow: var(--shadow);
    }

    body.nav-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 45;
    }

    body.nav-open .sidebar-backdrop {
        display: block;
    }

    .topbar-right .lang {
        display: none;
    }

    .main {
        padding: 16px 12px 96px;
    }

    .promo-track,
    .promo-grid,
    .live-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        flex-basis: 156px;
    }

    .mobile-tabbar {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 35;
        background: var(--panel);
        border-top: 1px solid var(--line);
        padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    }

    .mobile-tabbar a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        font-weight: 700;
        color: var(--muted);
        padding: 6px;
        border-radius: 8px;
    }

    .mobile-tabbar a.is-active,
    .mobile-tabbar a:hover {
        color: var(--brand-ink);
    }

    .page-hero h1 {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}


/* ── Guide-page components ── */
.notice {
    background: var(--raised);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin: 20px 0 26px;
    color: var(--muted);
    font-size: 14px;
}

.notice strong {
    color: var(--text);
}

.notice.is-warn {
    border-left-color: var(--con);
}

.kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 26px;
}

.kpi {
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
}

.kpi b {
    display: block;
    font-family: var(--display);
    font-size: 20px;
    line-height: 1.15;
    color: var(--text);
}

.kpi span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 18px 0 26px;
}

.col-box {
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}

.col-box h3 {
    font-size: 16px;
    margin: 0 0 10px;
}

.col-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.col-box li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 9px;
    font-size: 14px;
    color: var(--muted);
}

.col-box li::before {
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
}

.col-pro li::before {
    content: "+";
    color: var(--pro);
    font-size: 17px;
    line-height: 1.35;
}

.col-con li::before {
    content: "\2013";
    color: var(--con);
    font-size: 17px;
    line-height: 1.35;
}

.steps {
    counter-reset: step;
    list-style: none;
    margin: 18px 0 26px;
    padding: 0;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 0 46px;
    margin-bottom: 16px;
    color: var(--muted);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--raised);
    border: 1px solid var(--line);
    color: var(--brand-ink);
    font-family: var(--display);
    font-weight: 700;
    font-size: 14px;
    display: grid;
    place-items: center;
}

.steps li strong {
    display: block;
    color: var(--text);
    margin-bottom: 2px;
}

.tablewrap {
    overflow-x: auto;
    margin: 16px 0 28px;
}

.tablewrap .facts {
    margin: 0;
    min-width: 460px;
}

.scores {
    list-style: none;
    margin: 18px 0 26px;
    padding: 0;
}

.scores li {
    display: grid;
    grid-template-columns: 190px 1fr 46px;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--muted);
}

.scores .bar {
    height: 8px;
    border-radius: 999px;
    background: var(--raised);
    border: 1px solid var(--line);
    overflow: hidden;
}

.scores .bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--brand-dim), var(--brand-bright));
}

.scores .num {
    text-align: right;
    font-family: var(--display);
    font-weight: 700;
    color: var(--text);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 8px;
}

@media (max-width: 1100px) {
    .kpis {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .cols {
        grid-template-columns: 1fr;
    }
    .scores li {
        grid-template-columns: 120px 1fr 40px;
        font-size: 13px;
    }
}


/* ── Dark islands in a light page ──────────────────────────────────────────
   The promo banners are photographs under a heavy scrim, so they are the one
   place on this site where the surrounding light tokens are WRONG. Every piece
   of text inside a banner restates itself light; inheriting --muted here would
   put #5f5648 body copy on a near-black scrim. */
/* h1 is in this list on purpose. The template only ever put an h2 in a banner,
   so the inherited rules name h2 — but the homepage hero banner carries the
   page's h1, which then inherited --text (#1c1508) and rendered near-black on a
   near-black scrim: invisible. Measuring the SCRIM will not catch this, because
   the scrim was fine; it was the ink that was wrong. */
.promo-banner h1,
.promo-banner h2,
.promo-banner .promo-kicker-off {
    color: #ffffff;
}

.promo-banner h1 {
    font-size: 26px;
    margin-bottom: 2px;
}

.promo-banner p {
    color: rgba(255, 255, 255, 0.88);
}

.promo-banner .btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}

.promo-banner .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* The game-card hover veil sits on artwork, so it stays dark too. */
.game-card .play {
    background: rgba(20, 12, 2, 0.58);
}

/* Cards need a hairline on a white page — on black the raised fill was enough
   separation on its own. */
.game-card {
    border: 1px solid var(--line);
}

.promo-banner {
    box-shadow: var(--shadow);
}

/* Sidebar and footer read as panels only if the page behind them is warmer. */
.site-footer {
    background: var(--panel);
}

/* The logo is the operator's negative cut: white ink meant for the orange band.
   Give it a hair of optical weight so it does not float. */
.logo img {
    filter: drop-shadow(0 1px 1px rgba(90, 55, 0, 0.28));
}

/* ── Masthead on small screens ─────────────────────────────────────────────
   The Nano wordmark is a very wide lockup (816x110, about 7.4:1). At the
   template's 36px height that is 267px, which together with the burger and the
   header button overflowed a 375px viewport by 142px. The wordmark is the
   brand, so it stays and the button goes — "Estado de la marca" is the
   ¿Es confiable? page, already one tap away in the drawer. */
@media (max-width: 560px) {
    .logo img {
        height: 26px;
    }

    .topbar-right .btn-ghost {
        display: none;
    }
}

/* ── Rails carry a provenance line ─────────────────────────────────────────
   Only the first rail on this site claims anything about Nano Casino's own
   catalogue; the rest are studio catalogues. That distinction is load-bearing,
   so every rail states its own basis right under the heading rather than
   leaving the reader to assume. */
.rail-sub {
    color: var(--muted);
    font-size: 13px;
    margin: 4px 0 0;
    max-width: 68ch;
}

.rail-head > div:first-child {
    min-width: 0;
}

/* Tiles are <article>, not links: the casino they describe shut in 2022, so
   there is nothing to click and the cursor must not suggest otherwise. */
.game-card {
    cursor: default;
}

.footer-grid .logo img,
.site-footer .logo img {
    /* On the white footer the white wordmark would vanish, so the footer wears
       its own orange plate rather than a second copy of the masthead. */
    filter: none;
}

.site-footer .logo {
    background: var(--brand);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    width: fit-content;
}
