:root {
    --home-bg: #1c1916;
    --home-surface: #1c1916;
    --home-surface-raised: #1c1916;
    --home-line: rgba(232, 187, 104, 0.15);
    --home-line-strong: rgba(232,187,104, 0.34);
    --home-text: #f5f1ea;
    --home-muted: #aaa092;
    --home-muted-strong: #aaa092;
    --gold-primary: #f4d48e;
    --gold-highlight: #f4d48e;
    --gold-deep: #f4d48e;
    --home-focus: #f4d48e;
    --page-x: clamp(1rem, 3vw, 2.75rem);
    --radius-lg: 1.35rem;
    --radius-md: 0.95rem;
    --header-h: 3.9rem;
}

.public-home {
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    background: var(--home-bg);
    color: var(--home-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.public-home button,
.public-home a,
.public-home summary { -webkit-tap-highlight-color: transparent; }

.public-home button:focus-visible,
.public-home a:focus-visible,
.public-home summary:focus-visible {
    outline: 2px solid var(--home-focus);
    outline-offset: 4px;
}

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

.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 43%, rgba(232,187,104, 0.12), transparent 31rem),
        linear-gradient(180deg, #1c1916 0%, #1c1916 54%, #1c1916 100%);
}

.ambient__orb { position: absolute; border-radius: 999px; filter: blur(1px); opacity: 0.5; }
.ambient__orb--one {
    width: min(44vw, 40rem); height: min(44vw, 40rem); left: -16rem; top: 20%;
    background: radial-gradient(circle, rgba(232,187,104, 0.08), transparent 69%);
}
.ambient__orb--two {
    width: min(36vw, 32rem); height: min(36vw, 32rem); right: -12rem; top: 10%;
    background: radial-gradient(circle, rgba(232,187,104, 0.07), transparent 70%);
}
.ambient__grid {
    position: absolute; inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(180, 141, 76, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180, 141, 76, 0.032) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 77%, transparent 100%);
}

.page-shell {
    position: relative;
    z-index: 1;
    min-height: 100svh;
    height: 100dvh;
    display: grid;
    grid-template-rows: var(--header-h) 1.8rem minmax(0, 1fr) auto;
}

.site-header {
    position: relative;
    z-index: 12;
    height: var(--header-h);
    padding: 0 var(--page-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(180, 141, 76, 0.08);
    background: rgba(8, 11, 18, 0.82);
    backdrop-filter: blur(14px);
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    color: var(--home-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -0.025em;
}
.brand img { width: 2rem; height: 2rem; flex: 0 0 auto; }
.brand__text strong { color: var(--gold-highlight); font-weight: 820; }

.primary-nav { display: flex; align-items: center; gap: 0.2rem; }
.nav-link {
    margin: 0;
    min-height: 2.3rem;
    border: 0;
    border-radius: 0.6rem;
    padding: 0.45rem 0.72rem;
    background: transparent;
    color: var(--home-muted-strong);
    font: inherit;
    font-size: 0.79rem;
    font-weight: 620;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease;
}
.nav-link:hover { color: var(--home-text); background: rgba(255,255,255,0.04); }

.install-placeholder {
    min-height: 2.2rem;
    margin: 0 0 0 0.45rem;
    border: 1px solid rgba(232,187,104, 0.2);
    border-radius: 999px;
    padding: 0.4rem 0.72rem;
    background: rgba(232,187,104, 0.045);
    color: rgba(245, 241, 234, 0.65);
    font: inherit;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: not-allowed;
}
.install-placeholder span { margin-left: 0.35rem; color: var(--home-muted); font-size: 0.62rem; font-weight: 600; }

.menu-toggle {
    position: relative;
    display: none;
    width: 2.55rem;
    height: 2.55rem;
    margin: 0;
    border: 1px solid var(--home-line);
    border-radius: 0.75rem;
    padding: 0.65rem;
    background: rgba(255,255,255,0.025);
    color: var(--home-text);
}
.menu-toggle span:not(.sr-only) {
    position: absolute;
    top: 50%;
    left: 0.65rem;
    right: 0.65rem;
    display: block;
    height: 1.5px;
    margin: 0;
    background: currentColor;
    transform-origin: center;
    transition: transform 180ms ease, opacity 180ms ease;
}
.menu-toggle span:not(.sr-only):nth-of-type(2) { transform: translateY(-6px); }
.menu-toggle span:not(.sr-only):nth-of-type(3) { transform: translateY(-0.75px); }
.menu-toggle span:not(.sr-only):nth-of-type(4) { transform: translateY(4.5px); }

.ticker {
    min-width: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(180, 141, 76, 0.07);
    background: rgba(16, 21, 33, 0.5);
}
.ticker__viewport { height: 100%; display: flex; align-items: center; overflow: hidden; }
.ticker__track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 1.35rem;
    padding-inline: 1rem;
    color: #aaa092;
    font-size: 0.67rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    animation: ticker-move 26s linear infinite;
}
.ticker__track i { width: 0.23rem; height: 0.23rem; border-radius: 50%; background: var(--gold-primary); box-shadow: 0 0 0.8rem rgba(232,187,104,0.5); }
.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker--linked{display:block;color:inherit;text-decoration:none}.ticker--linked:focus-visible{outline:2px solid var(--gold-primary);outline-offset:2px}
.ticker--speed-8 .ticker__track{animation-duration:8s}
.ticker--speed-9 .ticker__track{animation-duration:9s}
.ticker--speed-10 .ticker__track{animation-duration:10s}
.ticker--speed-11 .ticker__track{animation-duration:11s}
.ticker--speed-12 .ticker__track{animation-duration:12s}
.ticker--speed-13 .ticker__track{animation-duration:13s}
.ticker--speed-14 .ticker__track{animation-duration:14s}
.ticker--speed-15 .ticker__track{animation-duration:15s}
.ticker--speed-16 .ticker__track{animation-duration:16s}
.ticker--speed-17 .ticker__track{animation-duration:17s}
.ticker--speed-18 .ticker__track{animation-duration:18s}
.ticker--speed-19 .ticker__track{animation-duration:19s}
.ticker--speed-20 .ticker__track{animation-duration:20s}
.ticker--speed-21 .ticker__track{animation-duration:21s}
.ticker--speed-22 .ticker__track{animation-duration:22s}
.ticker--speed-23 .ticker__track{animation-duration:23s}
.ticker--speed-24 .ticker__track{animation-duration:24s}
.ticker--speed-25 .ticker__track{animation-duration:25s}
.ticker--speed-26 .ticker__track{animation-duration:26s}
.ticker--speed-27 .ticker__track{animation-duration:27s}
.ticker--speed-28 .ticker__track{animation-duration:28s}
.ticker--speed-29 .ticker__track{animation-duration:29s}
.ticker--speed-30 .ticker__track{animation-duration:30s}
.ticker--speed-31 .ticker__track{animation-duration:31s}
.ticker--speed-32 .ticker__track{animation-duration:32s}
.ticker--speed-33 .ticker__track{animation-duration:33s}
.ticker--speed-34 .ticker__track{animation-duration:34s}
.ticker--speed-35 .ticker__track{animation-duration:35s}
.ticker--speed-36 .ticker__track{animation-duration:36s}
.ticker--speed-37 .ticker__track{animation-duration:37s}
.ticker--speed-38 .ticker__track{animation-duration:38s}
.ticker--speed-39 .ticker__track{animation-duration:39s}
.ticker--speed-40 .ticker__track{animation-duration:40s}
.ticker--speed-41 .ticker__track{animation-duration:41s}
.ticker--speed-42 .ticker__track{animation-duration:42s}
.ticker--speed-43 .ticker__track{animation-duration:43s}
.ticker--speed-44 .ticker__track{animation-duration:44s}
.ticker--speed-45 .ticker__track{animation-duration:45s}
.ticker--speed-46 .ticker__track{animation-duration:46s}
.ticker--speed-47 .ticker__track{animation-duration:47s}
.ticker--speed-48 .ticker__track{animation-duration:48s}
.ticker--speed-49 .ticker__track{animation-duration:49s}
.ticker--speed-50 .ticker__track{animation-duration:50s}
.ticker--speed-51 .ticker__track{animation-duration:51s}
.ticker--speed-52 .ticker__track{animation-duration:52s}
.ticker--speed-53 .ticker__track{animation-duration:53s}
.ticker--speed-54 .ticker__track{animation-duration:54s}
.ticker--speed-55 .ticker__track{animation-duration:55s}
.ticker--speed-56 .ticker__track{animation-duration:56s}
.ticker--speed-57 .ticker__track{animation-duration:57s}
.ticker--speed-58 .ticker__track{animation-duration:58s}
.ticker--speed-59 .ticker__track{animation-duration:59s}
.ticker--speed-60 .ticker__track{animation-duration:60s}
@keyframes ticker-move { to { transform: translateX(-50%); } }

.home-main {
    width: min(100%, 76rem);
    min-height: 0;
    margin-inline: auto;
    padding: clamp(0.55rem, 1.3vh, 0.9rem) var(--page-x);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(0.5rem, 1.25vh, 0.85rem);
}

.ad-slot {
    width: min(100%, 56rem);
    min-height: clamp(2.85rem, 6.2vh, 3.7rem);
    margin: 0 auto;
    border: 1px solid rgba(180, 141, 76, 0.15);
    border-radius: 0.85rem;
    padding: 0.6rem clamp(0.85rem, 2vw, 1.2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    background: linear-gradient(90deg, rgba(255,255,255,0.018), rgba(232,187,104,0.028), rgba(255,255,255,0.018));
    color: var(--home-muted);
    font: inherit;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.ad-slot:hover { border-color: rgba(232,187,104,0.31); background: rgba(232,187,104,0.045); transform: translateY(-1px); }
.ad-slot__label { color: #b98f4c; font-size: 0.61rem; font-weight: 820; letter-spacing: 0.13em; }
.ad-slot__cta { color: #aaa092; font-size: 0.72rem; font-weight: 650; }
.ad-slot__cta span { color: var(--gold-primary); }

.generator {
    width: min(100%, 48rem);
    min-height: 0;
    margin: 0 auto;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
}
.generator__intro { margin-bottom: clamp(0.75rem, 1.8vh, 1.15rem); }
.generator__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #aaa092;
    font-size: clamp(0.62rem, 1vw, 0.72rem);
    font-weight: 760;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}
.generator__eyebrow > span { width: 0.38rem; height: 0.38rem; border-radius: 50%; background: var(--gold-primary); box-shadow: 0 0 1rem rgba(232,187,104,0.65); }
.generator h1 {
    margin: clamp(0.42rem, 1vh, 0.7rem) 0 0;
    color: var(--home-text);
    font-size: clamp(1.85rem, 4.6vw, 3.3rem);
    font-weight: 690;
    letter-spacing: -0.052em;
    line-height: 0.98;
}
.generator h1 strong { color: var(--gold-highlight); font-weight: 820; }
.generator__intro > p { margin: 0.45rem 0 0; color: var(--home-muted); font-size: clamp(0.79rem, 1.35vw, 0.92rem); }

.number-stage {
    width: min(100%, 33rem);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.42rem, 1vw, 0.7rem);
    perspective: 900px;
}
.digit-card {
    position: relative;
    aspect-ratio: 0.82;
    min-width: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(232, 187, 104, 0.21);
    border-radius: clamp(0.9rem, 1.8vw, 1.25rem);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.045), transparent 40%),
        #1c1916;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.045),
        inset 0 -1px 0 rgba(0,0,0,0.35),
        0 1.2rem 3rem rgba(0,0,0,0.18);
    transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.digit-card::before {
    content: "";
    position: absolute;
    inset: 0 12% auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,187,104,0.66), transparent);
    opacity: 0.6;
}
.digit-card::after {
    content: "";
    position: absolute;
    width: 68%; height: 34%; left: 16%; bottom: -18%;
    border-radius: 50%;
    background: rgba(232,187,104, 0.055);
    filter: blur(0.8rem);
}
.digit-card__value {
    color: #f5f1ea;
    font-variant-numeric: tabular-nums;
    font-size: clamp(3rem, 7.4vw, 5.5rem);
    font-weight: 520;
    letter-spacing: -0.06em;
    line-height: 1;
    text-shadow: 0 0 1.8rem rgba(232,187,104, 0.12);
}
.number-stage.is-previewing .digit-card { animation: preview-pulse 560ms cubic-bezier(.2,.8,.2,1) both; border-color: rgba(232,187,104,0.36); }
.number-stage.is-previewing .digit-card:nth-child(2) { animation-delay: 60ms; }
.number-stage.is-previewing .digit-card:nth-child(3) { animation-delay: 120ms; }
.number-stage.is-previewing .digit-card:nth-child(4) { animation-delay: 180ms; }
@keyframes preview-pulse { 50% { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 1.5rem 3rem rgba(0,0,0,0.22), 0 0 2rem rgba(232,187,104,0.07); } }

.generator__actions { margin-top: clamp(0.82rem, 1.8vh, 1.15rem); }
.primary-cta {
    min-width: clamp(12.6rem, 25vw, 15.4rem);
    min-height: 3rem;
    margin: 0;
    border: 1px solid rgba(232, 187, 104, 0.55);
    border-radius: 0.82rem;
    padding: 0.72rem 0.8rem 0.72rem 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, #f4d48e, #f4d48e 75%);
    color: #1c1916;
    font: inherit;
    font-size: 0.73rem;
    font-weight: 870;
    letter-spacing: 0.075em;
    cursor: pointer;
    box-shadow: 0 0.6rem 2.3rem rgba(232, 187, 104, 0.12), inset 0 1px 0 rgba(255,255,255,0.55);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.primary-cta:hover { transform: translateY(-2px); filter: brightness(1.03); box-shadow: 0 0.85rem 2.6rem rgba(232, 187, 104, 0.18); }
.primary-cta:active { transform: translateY(0); }
.primary-cta__icon { width: 1.65rem; height: 1.65rem; border-radius: 0.55rem; display: grid; place-items: center; background: rgba(7,16,23,0.12); font-size: 1rem; }
.preview-note { margin: 0.45rem 0 0; color: #b98f4c; font-size: clamp(0.62rem, 1vw, 0.7rem); line-height: 1.35; }

.site-footer {
    min-height: 0;
    padding: 0.32rem var(--page-x) max(0.32rem, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(180, 141, 76, 0.07);
    color: #b98f4c;
    background: rgba(8, 11, 18, 0.72);
}
.responsibility { margin: 0; max-width: 100%; color: #d7b87b; font-size: 0.76rem; line-height: 1.35; text-align: center; overflow-wrap:normal; }

.modal-layer { position: relative; z-index: 20; }
.modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    padding: clamp(1rem, 4vw, 2rem);
    display: grid;
    place-items: center;
    background: rgba(3, 6, 11, 0.76);
    backdrop-filter: blur(14px);
}
.modal[hidden] { display: none; }
.modal__surface {
    position: relative;
    width: min(100%, 36rem);
    max-height: min(84dvh, 42rem);
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(180, 141, 76, 0.2);
    border-radius: 1.35rem;
    padding: clamp(1.35rem, 4vw, 2rem);
    background:
        radial-gradient(circle at 88% 2%, rgba(232,187,104,0.07), transparent 13rem),
        #1c1916;
    box-shadow: 0 2rem 6rem rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.04);
    animation: modal-in 170ms ease-out both;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(0.985); } }
.modal__close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 2.35rem;
    height: 2.35rem;
    margin: 0;
    border: 1px solid var(--home-line);
    border-radius: 0.75rem;
    padding: 0;
    background: rgba(255,255,255,0.025);
    color: #aaa092;
    font: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.modal__eyebrow { margin: 0 3rem 0.45rem 0; color: var(--gold-primary); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.modal h2 { margin: 0 3rem 1.25rem 0; color: var(--home-text); font-size: clamp(1.65rem, 4vw, 2.3rem); letter-spacing: -0.04em; line-height: 1.05; }
.modal__content > p { margin: 0 0 1rem; color: #aaa092; font-size: 0.91rem; line-height: 1.7; }
.modal__content strong { color: #eaf4fb; }
.modal__notice { padding: 0.8rem 0.9rem; border: 1px solid rgba(232,187,104,0.12); border-radius: 0.8rem; background: rgba(232,187,104,0.035); color: #e8bb68 !important; font-size: 0.76rem !important; line-height: 1.55 !important; }
.steps { display: grid; gap: 0.7rem; margin: 1.2rem 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.75rem; align-items: start; padding: 0.8rem 0; border-top: 1px solid rgba(180,141,76,0.09); }
.steps li > span { color: #f4d48e; font-size: 0.66rem; font-weight: 840; letter-spacing: 0.1em; }
.steps strong { font-size: 0.88rem; }
.steps p { margin: 0.2rem 0 0; color: #e8bb68; font-size: 0.78rem; line-height: 1.5; }
.faq-list details { border-top: 1px solid rgba(180,141,76,0.1); }
.faq-list details:last-child { border-bottom: 1px solid rgba(180,141,76,0.1); }
.faq-list summary { padding: 0.9rem 0; color: #dfe8f1; font-size: 0.86rem; font-weight: 700; cursor: pointer; }
.faq-list details p { margin: -0.25rem 0 0.9rem; color: #aaa092; font-size: 0.8rem; line-height: 1.55; }
.modal__metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; margin: 1.1rem 0; }
.modal__metric-row span { min-width: 0; padding: 0.8rem 0.55rem; border: 1px solid rgba(180,141,76,0.1); border-radius: 0.75rem; background: rgba(255,255,255,0.018); color: #aaa092; font-size: 0.68rem; font-weight: 680; text-align: center; }
body.modal-open { overflow: hidden; }

.build-badge {
    position: fixed;
    right: 0.55rem;
    bottom: 0.35rem;
    z-index: 2;
    color: rgba(101,114,133,0.36);
    font-size: 0.49rem;
    letter-spacing: 0.06em;
    pointer-events: none;
}

@media (max-width: 1180px) {
    .menu-toggle { display: block; }
    .primary-nav {
        position: absolute;
        top: calc(var(--header-h) - 0.35rem);
        right: var(--page-x);
        width: min(19rem, calc(100vw - (var(--page-x) * 2)));
        padding: 0.5rem;
        display: none;
        align-items: stretch;
        max-height: calc(100dvh - var(--header-h) - 0.5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 1px solid rgba(180,141,76,0.16);
        border-radius: 1rem;
        background: rgba(13,18,28,0.98);
        box-shadow: 0 1.2rem 3rem rgba(0,0,0,0.35);
    }
    .primary-nav.is-open { display: grid; }
    .nav-link { width: 100%; min-height: 2.7rem; padding: 0.65rem 0.75rem; text-align: left; }
    .install-placeholder { width: 100%; margin: 0.35rem 0 0; text-align: left; }
    .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-of-type(2) { transform: translateY(-0.75px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-of-type(3) { opacity: 0; transform: translateY(-0.75px) scaleX(0.35); }
    .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-of-type(4) { transform: translateY(-0.75px) rotate(-45deg); }
}

@media (max-width: 640px) {
    :root { --header-h: 3.65rem; --page-x: clamp(0.8rem, 4vw, 1.15rem); }
    .page-shell { grid-template-rows: var(--header-h) 1.65rem minmax(0, 1fr) auto; }
    .brand { font-size: 0.92rem; gap: 0.55rem; }
    .brand img { width: 1.8rem; height: 1.8rem; }
    .home-main { padding-top: 0.45rem; padding-bottom: 0.55rem; gap: 0.48rem; }
    .ad-slot { min-height: 2.65rem; border-radius: 0.72rem; gap: 0.55rem; }
    .ad-slot__label { font-size: 0.53rem; }
    .ad-slot__cta { font-size: 0.62rem; }
    .generator__intro { margin-bottom: 0.75rem; }
    .generator h1 { font-size: clamp(1.75rem, 8.5vw, 2.45rem); }
    .generator__intro > p { margin-top: 0.35rem; }
    .number-stage { width: min(100%, 27rem); gap: clamp(0.34rem, 2vw, 0.55rem); }
    .digit-card { border-radius: clamp(0.72rem, 3vw, 0.95rem); }
    .digit-card__value { font-size: clamp(2.65rem, 17vw, 4.35rem); }
    .generator__actions { margin-top: 0.78rem; }
    .primary-cta { min-height: 2.85rem; min-width: min(100%, 14.5rem); }
    .responsibility { font-size: 0.72rem; }
    .modal__surface { padding: 1.25rem; border-radius: 1.1rem; }
    .modal__metric-row { grid-template-columns: 1fr; }
    .build-badge { display: none; }
}

@media (max-width: 360px) {
    .brand__text { font-size: 0.84rem; }
    .ticker__track { font-size: 0.61rem; }
    .ad-slot { padding-inline: 0.55rem; }
    .ad-slot__label { letter-spacing: 0.09em; }
    .generator__eyebrow { font-size: 0.56rem; }
    .generator__intro > p { font-size: 0.74rem; }
    .preview-note { font-size: 0.58rem; }
}

@media (max-height: 720px) and (min-width: 641px) {
    :root { --header-h: 3.45rem; }
    .page-shell { grid-template-rows: var(--header-h) 1.55rem minmax(0, 1fr) auto; }
    .site-header { backdrop-filter: blur(10px); }
    .home-main { padding-top: 0.4rem; padding-bottom: 0.4rem; gap: 0.45rem; }
    .ad-slot { min-height: 2.6rem; }
    .generator__intro { margin-bottom: 0.6rem; }
    .generator h1 { font-size: clamp(1.8rem, 4vw, 2.65rem); }
    .generator__intro > p { margin-top: 0.28rem; font-size: 0.8rem; }
    .number-stage { width: min(100%, 27rem); }
    .generator__actions { margin-top: 0.65rem; }
    .primary-cta { min-height: 2.7rem; }
    .preview-note { margin-top: 0.28rem; font-size: 0.6rem; }
}

@media (max-width: 640px) and (max-height: 700px) {
    .page-shell { display: block; min-height: 100dvh; }
    .site-header { height: var(--header-h); position: relative; }
    .ticker { height: 1.6rem; }
    .home-main { min-height: auto; padding-top: 0.55rem; padding-bottom: 0.65rem; }
    .generator { padding: 0.75rem 0; }
}

@media (orientation: landscape) and (max-height: 520px) {
    .page-shell { display: block; }
    .site-header { height: 3.4rem; }
    .ticker { height: 1.5rem; }
    .home-main { min-height: auto; padding-block: 0.5rem; }
    .generator { padding: 0.75rem 0; }
    .number-stage { width: min(52vw, 25rem); }
}

@media (prefers-reduced-motion: reduce) {
    .ticker__track,
    .number-stage.is-previewing .digit-card,
    .modal__surface { animation: none !important; }
    .ticker__track { transform: none; }
    .ambient__orb { display: none; }
    .ad-slot,
    .digit-card,
    .primary-cta,
    .menu-toggle span { transition: none !important; }
}

/* Block 03: functional daily-number states. */
.generator__actions [hidden] { display: none !important; }
.primary-cta:disabled { cursor: wait; opacity: 0.7; transform: none; filter: saturate(0.78); }
.share-cta {
    min-height: 2.9rem;
    min-width: min(100%, 14.5rem);
    margin: 0;
    border: 1px solid rgba(232,187,104, 0.24);
    border-radius: 0.9rem;
    padding: 0.65rem 0.85rem 0.65rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(232,187,104, 0.055);
    color: #e8dfd0;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 820;
    letter-spacing: 0.045em;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.share-cta:hover { transform: translateY(-1px); border-color: rgba(232,187,104, 0.42); background: rgba(232,187,104, 0.085); }
.share-cta__icon { font-size: 1rem; color: var(--gold-primary); }
.daily-result { margin: 0.55rem 0 0; color: #e8dfd0; font-size: 0.72rem; line-height: 1.35; }
.daily-result strong { color: #f2fbff; letter-spacing: 0.13em; }
.countdown { margin: 0.2rem 0 0; color: #e8bb68; font-size: 0.68rem; line-height: 1.35; }
.countdown strong { margin-left: 0.3rem; color: #aaa092; font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.number-stage.is-generating .digit-card { border-color: rgba(232,187,104, 0.25); box-shadow: 0 0.8rem 2.2rem rgba(0, 0, 0, 0.2), inset 0 0 1.4rem rgba(232,187,104, 0.025); }
.number-stage.is-generating .digit-card__value { animation: digit-breathe 520ms ease-in-out infinite alternate; }
.number-stage.is-settling .digit-card { transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.number-stage.is-settling .digit-card.is-locked { transform: translateY(-2px); border-color: rgba(232,187,104, 0.42); box-shadow: 0 0.85rem 2.4rem rgba(0,0,0,0.23), 0 0 1.3rem rgba(232,187,104,0.06); }
@keyframes digit-breathe { from { transform: translateY(1px); opacity: 0.7; } to { transform: translateY(-1px); opacity: 1; } }

@media (max-width: 640px) {
    .daily-result { font-size: 0.68rem; }
    .countdown { font-size: 0.64rem; }
}

@media (prefers-reduced-motion: reduce) {
    .number-stage.is-generating .digit-card__value { animation: none !important; }
    .number-stage.is-settling .digit-card.is-locked { transform: none; }
    .share-cta { transition: none !important; }
}

/* Block 04: functional direct-ad inventory. */
.ad-slot--campaign{padding:.25rem .55rem;overflow:hidden;text-decoration:none;cursor:pointer}.ad-slot--campaign:hover{transform:none}.ad-creative{display:grid;width:100%;height:100%;place-items:center}.ad-creative[hidden]{display:none!important}.ad-creative picture{display:grid;width:100%;height:100%;place-items:center}.ad-slot--campaign .ad-creative img{display:block;width:100%;max-width:100%;height:clamp(2.2rem,5.2vh,3.15rem);object-fit:contain}
.advertising-form{display:grid;gap:.72rem;margin-top:.9rem}.ad-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}.advertising-form label{display:grid;gap:.3rem;color:#e8dfd0;font-size:.75rem;font-weight:680}.advertising-form label>span{color:#b98f4c;font-weight:540}.advertising-form input,.advertising-form select,.advertising-form textarea{width:100%;min-height:2.55rem;padding:.58rem .68rem;border:1px solid rgba(180,141,76,.17);border-radius:.65rem;background:#1c1916;color:var(--home-text);font:inherit}.advertising-form textarea{min-height:4.2rem;resize:vertical}.advertising-form input:focus-visible,.advertising-form select:focus-visible,.advertising-form textarea:focus-visible{outline:2px solid var(--home-focus);outline-offset:2px}.ad-form-consent{display:flex!important;align-items:flex-start;gap:.55rem;line-height:1.45}.ad-form-consent input{width:auto;min-height:auto;margin-top:.16rem}.ad-form-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.ad-form-submit{margin:0;min-height:2.7rem;border:1px solid rgba(232,187,104,.26);border-radius:.7rem;background:rgba(232,187,104,.11);color:#e8dfd0;font:inherit;font-size:.8rem;font-weight:780}.ad-form-submit:disabled{opacity:.55;cursor:wait}.ad-form-status{min-height:1.2rem;margin:0!important;color:#aaa092!important;font-size:.76rem!important;line-height:1.45!important}.ad-form-status.is-error{color:#ffc2ca!important}.ad-form-whatsapp{justify-self:start;color:var(--gold-highlight);font-size:.78rem;font-weight:720}
@media(max-width:640px){.ad-form-grid{grid-template-columns:1fr}.ad-slot--campaign .ad-creative img{height:2.25rem}}
@media(prefers-reduced-motion:reduce){[data-ad-rotation] .ad-creative{transition:none!important}}

/* BLOQUE 06 — consentimiento analítico opcional */
.consent-banner{position:fixed;z-index:18;left:max(1rem,env(safe-area-inset-left));right:max(1rem,env(safe-area-inset-right));bottom:max(1rem,env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:center;max-width:62rem;margin:0 auto;padding:.9rem 1rem;border:1px solid rgba(232,187,104,.24);border-radius:1rem;background:rgba(11,17,27,.97);box-shadow:0 1.25rem 4rem rgba(0,0,0,.4);backdrop-filter:blur(14px)}.consent-banner[hidden]{display:none}.consent-banner strong{display:block;color:#f3fbff;font-size:.9rem}.consent-banner p{margin:.25rem 0 0;color:#aaa092;font-size:.75rem;line-height:1.45}.consent-actions{display:flex;gap:.45rem;align-items:center;flex-wrap:wrap;justify-content:flex-end}.consent-primary,.consent-secondary,.consent-link,.consent-save{min-height:2.35rem;padding:.52rem .72rem;border-radius:.65rem;font:inherit;font-size:.73rem;cursor:pointer}.consent-primary,.consent-save{border:1px solid #b98f4c;background:#56442e;color:#e8dfd0}.consent-secondary{border:1px solid #56442e;background:#1c1916;color:#e8dfd0}.consent-link{border:0;background:transparent;color:#f4d48e;text-decoration:underline;text-underline-offset:.18rem}.consent-preferences{display:grid;gap:.65rem;margin-top:.8rem}.consent-pref-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem;border:1px solid rgba(187,182,171,.18);border-radius:.75rem;background:#1c1916}.consent-pref-row span{display:grid;gap:.16rem}.consent-pref-row strong{font-size:.82rem}.consent-pref-row small{color:#e8bb68;font-size:.7rem}.consent-pref-row input{width:1.2rem;height:1.2rem;accent-color:#f4d48e}.consent-required{color:#e8bb68;font-size:.68rem;white-space:nowrap}.consent-feedback{min-height:1.1rem;margin:0;color:#f4d48e;font-size:.72rem}
@media(max-width:720px){.consent-banner{position:static;grid-template-columns:1fr;gap:.7rem;left:auto;right:auto;bottom:auto;max-width:none;margin:.4rem .7rem .65rem;padding:.8rem}.consent-actions{justify-content:flex-start}.consent-primary,.consent-secondary,.consent-link{flex:1 1 auto}}
@media(orientation:landscape) and (max-height:520px){.consent-banner{position:static;grid-template-columns:minmax(0,1fr) auto;left:auto;right:auto;bottom:auto;max-width:none;margin:.35rem .7rem .6rem;padding:.72rem .8rem}.consent-actions{justify-content:flex-end}}
@media(max-width:360px){.consent-actions{display:grid;grid-template-columns:1fr 1fr}.consent-link{grid-column:1/-1}.consent-pref-row{align-items:flex-start}.consent-required{white-space:normal;text-align:right}}

/* Block 07 install + progressive legal links */
.install-placeholder:not([hidden]){display:inline-flex;align-items:center;gap:.45rem}.install-placeholder span{font-size:.62rem;opacity:.7}.modal__notice a,.ad-form-consent a{color:#f4d48e}.modal__legal-section{padding:.3rem 0}.modal__legal-section h3{font-size:.92rem;margin:.1rem 0 .35rem;color:#edf6ff}

/* RC3: restrained champagne accents, editorial surfaces and real-sized advertising. */
:root {
    --gold-primary: #d6b783;
    --gold-highlight: #f0d6a5;
    --home-focus: #ffe0a7;
    --home-text: #f4f1eb;
    --home-muted: #aaa092;
    --home-line-strong: rgba(215, 183, 131, .34);
}
.ambient { background: radial-gradient(circle at 50% 43%, rgba(144,107,61,.10),transparent 30rem),linear-gradient(180deg,#1c1916,#1c1916 55%,#1c1916); }
.brand__text strong,.generator h1 strong { color: #f0d6a5; }
.public-home a:focus-visible,.public-home button:focus-visible { outline-color: var(--home-focus); }
.page-shell.no-ticker { grid-template-rows:var(--header-h) minmax(0,1fr) auto; }
.home-main { width:min(100%,80rem); grid-template-rows:auto;grid-auto-rows:auto;align-content:center;gap:clamp(.5rem,1.15vh,1rem); }
.ad-slot { width:min(100%,60rem); height:clamp(6.875rem,15vh,9.375rem); min-height:6.875rem; flex-direction:column; gap:.52rem;
    background:linear-gradient(115deg,rgba(249,225,181,.05),rgba(18,26,39,.72) 48%,rgba(249,225,181,.036));
    border-color:rgba(210,177,124,.21); border-radius:1rem;box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
.ad-slot:hover { border-color:rgba(218,185,133,.42);background:rgba(217,184,131,.065); }
.ad-slot__label { font-size:clamp(.67rem,1.2vw,.8rem);color:#c5b38e;letter-spacing:.15em; }
.ad-slot__cta { font-size:clamp(.84rem,1.6vw,1.05rem);color:#f2e7d6;font-weight:730; }
.ad-slot--campaign {padding:.45rem .75rem;}
.ad-slot--campaign .ad-creative,.ad-slot--campaign .ad-creative picture { width:100%;height:100%; }
.ad-slot--campaign .ad-creative img { height:100%;max-height:100%;width:100%;object-fit:contain; }
.ad-slot__cta span { color:#dfbe84; }
.site-footer { padding-bottom:max(.32rem,env(safe-area-inset-bottom)); }
.public-version { display:inline-block;margin-left:.55rem;color:#e8c58c;font-size:.7rem;font-weight:760;white-space:nowrap; }
.build-badge { display:none!important; }
/* Measured ticker: two contiguous identical groups, exact measured travel distance. */
.ticker__track {gap:0;padding:0;display:flex;flex:0 0 auto;align-items:center;animation:ticker-continuous var(--ticker-duration,26s) linear infinite;will-change:transform;}
.ticker__group { flex:0 0 auto;display:inline-flex;align-items:center;gap:1.35rem;padding-right:1.35rem;width:max-content;white-space:nowrap; }
.ticker__item {display:inline-block;white-space:nowrap;}
.ticker__group i { flex:0 0 .23rem;width:.23rem;height:.23rem;border-radius:50%;background:#d6b783;box-shadow:0 0 .75rem rgba(218,185,129,.35); }
.ticker__track.ticker--paused {animation:none!important;transform:translate3d(0,0,0)!important;}
@keyframes ticker-continuous { from {transform:translate3d(0,0,0);} to {transform:translate3d(calc(-1 * var(--ticker-distance, 1000px)),0,0);} }
.modal__surface { width:min(100%,52rem);max-height:86dvh;scrollbar-width:none;-ms-overflow-style:none;animation-duration:210ms; }
.modal__surface::-webkit-scrollbar {display:none;width:0;height:0;}
.modal-scroll-cue {position:fixed;bottom:clamp(1.15rem,5vh,3rem);left:50%;transform:translateX(-50%);pointer-events:none;background:#1c1916;border:1px solid rgba(215,183,130,.35);color:#f3dfb8;font-size:.74rem;padding:.45rem .8rem;border-radius:999px;box-shadow:0 .6rem 2rem #05070daa;}
.modal-scroll-cue[hidden] {display:none;}
.share-feedback {margin:.55rem auto 0!important;padding:.6rem .95rem;border-radius:.8rem;max-width:24rem;min-height:2.3rem;border:1px solid rgba(224,189,130,.38);background:rgba(174,126,62,.16);color:#ffe7bd;font-size:.84rem;font-weight:760;box-shadow:0 .35rem 1.25rem rgba(0,0,0,.16);}
.share-feedback[hidden] {display:none!important;}.share-feedback[data-kind="error"] {background:rgba(148,54,67,.19);border-color:#ad616e;color:#ffe0e2;}
.number-stage.is-settling .digit-card.is-locked { border-color:rgba(225,188,124,.62);box-shadow:0 .85rem 2.4rem rgba(0,0,0,.2),0 0 1rem rgba(208,156,79,.09); }
@media(max-width:1024px){.ad-slot{height:clamp(6.25rem,12.2vh,8.125rem);min-height:6.25rem;width:min(100%,58rem);} }
@media(max-width:640px){.home-main{gap:.6rem;}.ad-slot{height:clamp(5.625rem,12.5vh,7.5rem);min-height:5.625rem;width:100%;padding:.55rem .6rem;}.ad-slot--campaign .ad-creative img{height:100%;max-height:100%;}.modal__surface{max-height:calc(100dvh - 1.4rem);width:100%;}.site-footer{padding-bottom:max(.32rem,env(safe-area-inset-bottom));}.responsibility{overflow-wrap:break-word}.consent-banner{margin-inline:var(--page-x);max-width:100%;}.share-feedback{font-size:.79rem;} }
@media(max-width:360px){.ad-slot{height:5.7rem;min-height:5.7rem;}.ad-slot__cta{font-size:.8rem;}.home-main{padding-inline:.8rem;}.site-footer{padding-inline:.55rem;} }
@media(prefers-reduced-motion:reduce){.ticker__track{animation:none!important;}.modal__surface{animation:none!important;}.number-stage.is-settling .digit-card{transition:none!important;} }
/* Keep creative artwork inside its responsive advertising frame. */
/* Mobile menu must remain operable above the static consent panel without overlaying the CTA. */
.site-header{z-index:24;}

/* RC5 — two-slot layout, measured ticker, vertical budget, roller animation and mobile PWA CTA. */
.page-shell{grid-template-rows:1.8rem var(--header-h) minmax(0,1fr) auto;}
.page-shell.no-ticker{grid-template-rows:var(--header-h) minmax(0,1fr) auto;}
.ticker:hover .ticker__track{animation-play-state:running;}
.ticker__track.ticker--measuring{animation:none!important;transform:translate3d(0,0,0)!important;}

.home-main{width:min(100%,80rem);gap:clamp(.38rem,1vh,.82rem);padding-block:clamp(.38rem,1vh,.75rem);}
.ad-slot{width:min(100%,60rem);height:clamp(7.8rem,15.6vh,10.625rem);min-height:0;}
.ad-slot--campaign .ad-creative img{height:100%;max-height:100%;}
.generator__intro{margin-bottom:clamp(.45rem,1vh,.8rem);}
.generator__actions{position:relative;margin-top:clamp(.5rem,1.2vh,.82rem);display:flex;align-items:center;justify-content:center;gap:.48rem;flex-wrap:wrap;}
.preview-note,.daily-result,.countdown,.share-feedback{flex-basis:100%;}

.digit-card.is-rolling{border-color:rgba(224,189,129,.42);box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 1rem 2.5rem rgba(0,0,0,.18),0 0 1.2rem rgba(218,185,129,.07);}
.digit-card.is-rolling .digit-card__value{animation:rc5-digit-roll 110ms cubic-bezier(.2,.7,.3,1) infinite;filter:blur(.15px);}
.digit-card.is-locked .digit-card__value{animation:rc5-digit-lock 220ms cubic-bezier(.2,.8,.2,1) both;filter:none;}
@keyframes rc5-digit-roll{0%{transform:translateY(-13%) scale(.98);opacity:.66}50%{transform:translateY(8%) scale(1.02);opacity:1}100%{transform:translateY(18%) scale(.98);opacity:.72}}
@keyframes rc5-digit-lock{0%{transform:translateY(-10%) scale(.96);opacity:.72}65%{transform:translateY(2%) scale(1.045);opacity:1}100%{transform:none;opacity:1}}

.primary-cta{position:relative;overflow:visible;}
.primary-cta.is-ready{animation:rc5-cta-breathe 2.8s ease-in-out infinite;}
.primary-cta__hint{position:absolute;right:-1.1rem;top:-1rem;font-size:1.15rem;filter:drop-shadow(0 .2rem .45rem #0008);opacity:0;pointer-events:none;}
.primary-cta.is-ready .primary-cta__hint{animation:rc5-cta-hint 3.6s ease-in-out 1.2s infinite;}
@keyframes rc5-cta-breathe{0%,100%{box-shadow:0 .6rem 2.3rem rgba(208,156,79,.12),inset 0 1px 0 rgba(255,255,255,.5)}50%{box-shadow:0 .7rem 2.7rem rgba(208,156,79,.25),0 0 1.1rem rgba(240,214,165,.13),inset 0 1px 0 rgba(255,255,255,.58)}}
@keyframes rc5-cta-hint{0%,18%,100%{opacity:0;transform:translate3d(0,-.1rem,0) rotate(-7deg)}28%,52%{opacity:.95;transform:translate3d(-.28rem,.22rem,0) rotate(-12deg)}65%{opacity:0;transform:translate3d(-.05rem,0,0)}}
.sound-toggle{width:2.65rem;height:2.65rem;border:1px solid rgba(215,183,131,.28);border-radius:.76rem;background:#1c1916;color:#f2dfbd;display:inline-grid;place-items:center;font:inherit;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.03);}
.sound-toggle:hover{border-color:rgba(226,194,139,.52);background:#1c1916;}

.install-placeholder--mobile{display:none;min-height:2.15rem;margin-left:auto;padding:.36rem .58rem;border-color:rgba(215,183,131,.28);background:rgba(215,183,131,.065);color:#f0dfbf;cursor:pointer;white-space:nowrap;}
.install-placeholder--mobile span{margin-left:.25rem;color:#aa9a7f;font-size:.58rem;}

@media(max-height:900px) and (min-width:641px){
  .ad-slot{height:clamp(6.6rem,14.5vh,8.75rem)}
  .generator h1{font-size:clamp(1.7rem,3.7vw,2.75rem)}
  .generator__intro>p{margin-top:.3rem}
  .number-stage{width:min(100%,29rem)}
  .digit-card__value{font-size:clamp(3rem,6.4vw,4.7rem)}
  .site-footer{padding-top:.32rem}
}
@media(max-height:780px) and (min-width:641px){
  :root{--header-h:3.35rem}
  .page-shell{grid-template-rows:1.45rem var(--header-h) minmax(0,1fr) auto}
  .page-shell.no-ticker{grid-template-rows:var(--header-h) minmax(0,1fr) auto}
  .ticker{height:1.45rem}
  .ad-slot{height:clamp(5.7rem,13.8vh,7rem)}
  .home-main{gap:.3rem;padding-block:.28rem}
  .generator__intro{margin-bottom:.35rem}.generator__eyebrow{font-size:.59rem}.generator__intro>p{font-size:.73rem}
  .number-stage{width:min(100%,24.5rem)}
  .generator__actions{margin-top:.38rem}.preview-note{margin-top:.2rem}
}
@media(max-width:760px){
  .install-placeholder--mobile:not([hidden]){display:inline-flex;align-items:center;justify-content:center;}
  .site-header{gap:.45rem}.brand{margin-right:auto}.menu-toggle{flex:0 0 auto}.install-placeholder--mobile{flex:0 0 auto;}
}
@media(max-width:640px){
  .page-shell{grid-template-rows:1.55rem var(--header-h) minmax(0,1fr) auto}.page-shell.no-ticker{grid-template-rows:var(--header-h) minmax(0,1fr) auto}
  .ad-slot{height:clamp(6rem,14.6vh,8.4rem);min-height:0}
  .home-main{gap:.38rem;padding-top:.34rem;padding-bottom:.4rem}
  .generator__intro{margin-bottom:.42rem}.generator__actions{margin-top:.48rem}
  .sound-toggle{width:2.5rem;height:2.5rem}.primary-cta__hint{right:-.72rem;top:-.85rem;font-size:1rem}
  .site-footer{padding-top:.32rem}.responsibility{font-size:.72rem;line-height:1.3}
}
@media(max-width:390px){.brand__text{font-size:.8rem}.install-placeholder--mobile{font-size:.65rem;padding-inline:.45rem}.install-placeholder--mobile span{display:none}}
@media(max-width:340px){.install-placeholder--mobile{font-size:.61rem}.brand__text{max-width:6.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:640px) and (max-height:700px){.ad-slot{height:5.25rem}.generator{padding:.35rem 0}.generator__intro{margin-bottom:.3rem}.number-stage{width:min(100%,23rem)}}
@media(orientation:landscape) and (max-height:520px){.ad-slot{height:4.8rem}.generator{padding:.25rem 0}.generator__intro{margin-bottom:.2rem}.generator__intro>p{display:none}.number-stage{width:min(48vw,20rem)}.site-footer{padding-top:.18rem}.responsibility{font-size:.72rem}}
@media(prefers-reduced-motion:reduce){.digit-card.is-rolling .digit-card__value,.digit-card.is-locked .digit-card__value,.primary-cta.is-ready,.primary-cta.is-ready .primary-cta__hint{animation:none!important}.primary-cta__hint{display:none!important}}

/* RC6: identidad Noir Gold sin alterar dimensiones de la estructura aprobada */
:root{--rc6-gold:#e7b861;--rc6-ivory:#f5f1ea}
body.public-home{background:#1c1916;color:var(--rc6-ivory)}
.digit-card{border-color:rgba(231,184,97,.65)!important;background:linear-gradient(155deg,#36302a 0%,#19191b 31%,#1c1916 72%,#25201c 100%)!important;box-shadow:inset 0 1px 1px #e7b86173,0 12px 24px #0006!important}
.digit-card__value{color:#f3ca78!important;text-shadow:0 1px 12px #e7b86130}
.primary-cta{background:linear-gradient(120deg,#ffe2a0,#d7a34d)!important;color:#1b1610!important;box-shadow:0 7px 24px #caa45c2b!important}
.ad-slot{border:1px solid #a88542!important}

/* RC6 Noir Gold design layer: preserves earlier accessible layouts while replacing RC5 blue/cyan visual inheritance. */
:root{--home-bg:#1c1916;--home-surface:#1c1916;--home-surface-raised:#292620;--home-line:rgba(231,184,97,.23);--home-line-strong:rgba(231,184,97,.5);--home-text:#f5f1ea;--home-muted:#bbb6ab;--home-muted-strong:#e0d8c8;--gold-primary:#e7b861;--gold-highlight:#f3ca78;--gold-deep:#d7a34d;--home-focus:#ffe2a0}
.ambient{background:radial-gradient(ellipse at 52% 38%,#503b241c,transparent 53%),linear-gradient(180deg,#1c1916,#1c1916 60%,#1c1916)}
.ambient__orb--one{background:radial-gradient(circle,#a2782e12,transparent 69%)}.ambient__orb--two{background:radial-gradient(circle,#d5a74b0b,transparent 69%)}
.ambient__grid{opacity:.075;filter:sepia(1)}
.site-header{background:#0b0d12ef;border-color:#cca86129}
.brand__text strong{color:#f3ca78}
.ad-slot{width:min(100%,71rem);border:1px solid #a88542!important;background:linear-gradient(135deg,#292620,#1c1916);border-radius:1rem;box-shadow:inset 0 0 0 1px #edc58310,0 .5rem 1.6rem #0005}
.ad-slot--campaign{padding:0!important}
.ad-slot--campaign .ad-creative,.ad-slot--campaign picture{width:100%;height:100%;display:block;overflow:hidden}
.ad-slot--campaign .ad-creative img{display:block;width:100%;height:100%!important;max-height:none!important;object-fit:cover;object-position:center center;}
.ad-slot--campaign .ad-creative[hidden]{display:none!important}
.ad-slot__label{color:#d6b476}.ad-slot__cta{color:#f5e5c3;font-size:clamp(.83rem,1.8vw,1.1rem)}
.digit-card{background:linear-gradient(148deg,#443a2e 0%,#292620 16%,#1c1916 56%,#292521 100%)!important;border:1px solid #d2a95f!important;border-radius:1.12rem;box-shadow:inset 0 2px 1px #fce2ae6b,inset 2px 0 1px #f8d38d23,inset 0 -6px 14px #0008,0 15px 30px #0008,0 0 19px #d4a4521c!important}
.digit-card::before{pointer-events:none}
.digit-card__value{color:#f3ca78!important;text-shadow:0 1px 0 #6a4921,0 3px 14px #f1b85836;font-weight:800}
.primary-cta{overflow:hidden;min-height:3rem;border:1px solid #ffdfa1!important;border-radius:999px;background:linear-gradient(178deg,#ffe5ad,#eac37b 57%,#bd8b39)!important;color:#1a1510!important;text-shadow:none;box-shadow:inset 0 2px 1px #fff7dc,0 .4rem 1.5rem #d6a45342!important}
.primary-cta__hint{display:none!important}
.install-placeholder--mobile{width:auto!important;min-width:max-content;max-width:100%;margin:0!important;padding:.52rem .67rem!important;border:1px solid #f8d59b!important;border-radius:.65rem!important;background:linear-gradient(155deg,#ffe2a0,#c99740)!important;color:#19140f!important;font-weight:750!important;box-shadow:0 4px 15px #d1a24c24}
.site-header .brand{min-width:0;margin-right:auto}.site-header .brand img{flex-shrink:0}
.sound-toggle{width:auto;height:auto;display:inline-flex;align-items:center;gap:.6rem;padding:.75rem 1rem;color:#f1d4a0;border-color:#d6a76055;background:#202021}
.sound-toggle span{display:inline-block}
.generator__eyebrow,.generator h1 strong{color:#f3ca78}
.campaign-device-previews img{object-fit:cover}
@media(max-width:1024px){.install-placeholder--mobile:not([hidden]){display:inline-flex;align-items:center;justify-content:center}.site-header{gap:.5rem}.site-header .brand{flex:1 1 auto}.site-header .brand__text{white-space:normal}.site-header .menu-toggle{flex:0 0 auto}}
@media(max-width:640px){.site-header{padding-inline:.65rem!important;gap:.4rem}.brand{gap:.4rem}.brand img{width:1.5rem;height:1.5rem}.install-placeholder--mobile{font-size:.66rem!important;padding:.4rem .5rem!important}.site-header .brand__text{font-size:clamp(.68rem,3vw,.92rem)}.ad-slot{width:100%;height:clamp(6.75rem,15vh,9.2rem);min-height:0}.ad-slot--campaign .ad-creative img{object-position:center}.home-main{gap:clamp(.35rem,1.1vh,.7rem)}}
@media(max-width:350px){.site-header .brand__text{max-width:5.7rem;white-space:normal;line-height:1.05}.install-placeholder--mobile{font-size:.58rem!important;padding:.36rem .42rem!important}}
@media(prefers-reduced-motion:reduce){.digit-card__value{animation:none!important}}

/* RC6-R1 per-creative focal composition, consistent across both public tools. */
.ad-slot--campaign .ad-creative img{object-position:var(--ad-focus-x,50%) var(--ad-focus-y,50%)}
@media(max-width:640px){.ad-slot--campaign .ad-creative img{object-position:var(--ad-mobile-focus-x,50%) var(--ad-mobile-focus-y,50%)}}
.rotation-control{display:flex;gap:.8rem;align-items:center;padding:.7rem .9rem;border:1px solid #5e4829;border-radius:.75rem;background:#181611;color:#f5e4c8;font-size:.91rem;cursor:pointer}
.rotation-control input{width:1.12rem;height:1.12rem;accent-color:#e7b861}

/* RC6 R2 · unified premium Noir Gold surface and responsive ad budget */
:root{--noir-bg:#0a0b0f;--noir-surface:#15171c;--gold-primary:#e8bb68;--gold-highlight:#f4d48e;--gold-deep:#b8873e;--home-bg:var(--noir-bg);--home-surface:var(--noir-surface);--home-surface-raised:#202023;--home-text:#f5f1ea;--home-muted:#bcb4a5;--home-muted-strong:#e1d4be;--home-focus:#f4d48e}
body.public-home,.ambient{background-color:var(--noir-bg)}
.generator__intro{margin-bottom:clamp(.3rem,.75vh,.65rem)}
.generator__intro>p{display:none}
.generator__actions{margin-top:clamp(.4rem,1vh,.7rem)}
.generator h1 strong,.brand__text strong,.share-cta__icon{color:var(--gold-highlight)}
.share-cta:not(.bingo-actions .share-cta){border:1px solid #e7bc74;background:linear-gradient(160deg,#f7dd9c,#c69645);color:#1b160f;font-weight:800;box-shadow:0 .25rem .9rem #a4783229}
.share-cta:not(.bingo-actions .share-cta) .share-cta__icon{color:#35230d}
.consent-banner{border-color:#94703b;background:#111112f5}
.consent-primary,.consent-save{background:linear-gradient(150deg,#f4d48e,#bd8d42);border-color:#e9be73;color:#21170e;font-weight:800}
.consent-secondary{border-color:#82704e;background:#242017;color:#f5e6c8}
.consent-link{color:#f4d48e}
.consent-pref-row input{accent-color:#e8bb68}
.modal__eyebrow,.modal__content a,.ad-form-whatsapp{color:#e8bb68}
.ad-form-submit{border-color:#c09652;background:#33281a;color:#f8e4b8}
.home-main{width:min(100%,85rem);gap:clamp(.25rem,.65vh,.65rem);padding-block:clamp(.25rem,.65vh,.5rem)}
.ad-slot{width:min(100%,75rem);height:clamp(8rem,17vh,12.5rem);min-height:0}
.ad-slot--campaign{padding:0!important}
.ad-slot--campaign .ad-creative img{height:100%!important;width:100%!important;object-fit:cover}
.number-stage{width:min(100%,31rem)}
.generator{width:min(100%,43rem)}
@media(max-width:1024px){.ad-slot{height:clamp(7rem,14.5vh,10rem)}.number-stage{width:min(100%,29rem)}}
@media(max-width:640px){.ad-slot{height:clamp(7rem,16vh,9.8rem)}.number-stage{width:min(100%,min(82vw,25rem))}.generator h1{font-size:clamp(1.65rem,6vw,2.3rem)}.home-main{gap:.25rem}.generator__intro{margin-bottom:.3rem}}
@media(max-width:640px) and (max-height:700px){.ad-slot{height:clamp(5.8rem,15vh,7.6rem)}.number-stage{width:min(100%,19.8rem)}}
@media(orientation:landscape) and (max-height:520px){.ad-slot{height:5rem}.generator{padding:.2rem 0}}
@media(prefers-reduced-motion:reduce){.ticker__track{animation:none!important}}

/* RC10 R9: the ad + generator + ad column is one intrinsic-size visual group.
   The flexible central row centers that group, placing surplus height OUTSIDE it.
   minmax(max-content,1fr) allows dynamic notices to expand the document naturally. */
.page-shell{height:auto;min-height:100dvh;grid-template-rows:auto auto minmax(max-content,1fr) auto}
.page-shell.no-ticker{grid-template-rows:auto minmax(max-content,1fr) auto}
/* Only an in-flow consent banner occupies a grid row. On tablet/desktop
   its fixed-position panel must not create an implicit empty track. */
@media (max-width:720px), (orientation:landscape) and (max-height:520px){
 .page-shell:has(>.consent-banner:not([hidden])){grid-template-rows:auto auto auto minmax(max-content,1fr) auto}
 .page-shell.no-ticker:has(>.consent-banner:not([hidden])){grid-template-rows:auto auto minmax(max-content,1fr) auto}
}
.home-main,.home-main:has(>.bingo-generator),.home-main:has(>.ad-slot--campaign),
.home-main:has(>.generator:first-child),.home-main:has(>.generator:last-child){
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:.65rem;width:min(100%,76rem);height:auto;min-height:0;
 padding:clamp(.55rem,1.2dvh,.95rem) var(--page-x);
}
.home-main>.generator,.home-main:has(>.ad-slot--campaign)>.generator{flex:0 0 auto;min-width:0;padding-block:clamp(.2rem,.6dvh,.6rem)}
.home-main>.ad-slot,.home-main>.ad-slot:not(.ad-slot--campaign),
.home-main>.ad-slot--campaign,.home-main:has(>.bingo-generator)>.ad-slot:not(.ad-slot--campaign){
 box-sizing:border-box;width:min(355px,100%);height:auto!important;min-height:0!important;max-height:none!important;
 aspect-ratio:16/9;align-self:center;flex:0 0 auto;margin:0;
 border-radius:.8rem;overflow:hidden;
}
.home-main>.ad-slot:not(.ad-slot--campaign){display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:.35rem;padding:.5rem .6rem;background:#171718;border:1px solid #816334;}
.home-main>.ad-slot--campaign,.home-main>.ad-slot--campaign:hover{
 display:block;padding:0!important;border:0!important;outline-offset:3px;background:transparent!important;
 box-shadow:none!important;transform:none!important;
}
.ad-slot--campaign .ad-creative:not([hidden]),.ad-slot--campaign .ad-creative:not([hidden]) picture{
 display:block;width:100%;height:100%!important;overflow:hidden;
}
.ad-slot--campaign .ad-creative{position:relative;}
.ad-slot--campaign .ad-creative[hidden]{display:none!important;}
.ad-slot--campaign .ad-creative img,.home-main>.ad-slot--campaign .ad-creative img{
 display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
 object-fit:contain!important;object-position:center!important;border-radius:inherit;
}
.ad-creative__video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;
 opacity:0;pointer-events:none;border-radius:inherit;background:transparent;}
.ad-creative__video.is-playing{opacity:1}
@media(max-width:640px){
 .home-main,.home-main:has(>.bingo-generator),.home-main:has(>.ad-slot--campaign){gap:.65rem;padding-inline:max(.65rem,env(safe-area-inset-left),env(safe-area-inset-right));}
 .home-main:has(>.bingo-generator)>.bingo-generator{margin-block:.25rem}
}
@media(orientation:landscape) and (max-height:520px){
 .home-main,.home-main:has(>.bingo-generator),.home-main:has(>.ad-slot--campaign){gap:.5rem;}
}

/* Four-number CTA: one measured 8px gap at every viewport; Bingo stays unchanged. */
.home-main > .generator:not(.bingo-generator) > .generator__actions{margin-top:8px}

/* Short viewport refinement: reduce only margins, never component dimensions. */
@media(max-width:640px) and (max-height:740px){
 .home-main,.home-main:has(>.bingo-generator),.home-main:has(>.ad-slot--campaign){gap:.5rem;padding-block:1px 5px}
 .home-main>.generator,.home-main:has(>.ad-slot--campaign)>.generator{padding-block:0}
 .generator__intro{margin-bottom:0}
 .generator h1{margin-top:0}
 .bingo-generator > .generator__actions{margin-top:0}
 .home-main > .generator:not(.bingo-generator) > .generator__actions{row-gap:3px}
 .preview-note{margin-top:0}
 .home-main:has(>.bingo-generator)>.bingo-generator{margin-block:0}
 .home-main>.bingo-generator .bingo-stage{margin-block:.15rem}
}

/* RC10 R4: holder is layout-only; the ad and placeholder keep identical 16:9 geometry. */
.home-main>.ad-slot-holder{position:relative;box-sizing:border-box;width:min(355px,100%);aspect-ratio:16/9;flex:0 0 auto;align-self:center;margin:0;min-width:0}
.home-main>.ad-slot-holder>.ad-slot--campaign{width:100%;height:100%!important;aspect-ratio:16/9;display:block}
.ad-sound-toggle{position:absolute;z-index:2;right:.5rem;bottom:.5rem;width:2.45rem;height:2.45rem;min-width:2.45rem;min-height:2.45rem;border:1px solid #d8b778;border-radius:50%;background:rgba(14,14,17,.90);color:#f4d48e;display:grid;place-items:center;font-size:1.15rem;cursor:pointer;touch-action:manipulation}
.ad-sound-toggle{padding:0;box-sizing:border-box}
.ad-sound-toggle [data-ad-sound-icon]{width:1.25rem;height:1.25rem;display:grid;place-items:center;line-height:0;pointer-events:none}
.ad-sound-toggle [data-ad-sound-icon] svg{display:block;width:1.25rem;height:1.25rem;overflow:visible;pointer-events:none}
.ad-sound-toggle [data-ad-sound-icon] svg[hidden]{display:none}
.ad-sound-toggle[hidden]{display:none!important}
.ad-sound-toggle:focus-visible{outline:3px solid #f4d48e;outline-offset:2px}
.ad-sound-toggle:hover{background:#28231a}
/* The main track is intrinsic when tall and flexible when short, including consent and ticker states.
   Footer stays an intrinsic row; the main centers its three children without distortion. */
