/* Shared styling for the two brand key pages (scooby/, nenyoo/).
   Minimal and centred, matching the Scooby portal: near-black ground, one
   card, restrained borders, a single light primary action. */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0a0c;
    --surface: #131316;
    --surface-2: #1a1a1e;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #f4f4f5;
    --muted: #8b8b93;
    --accent: #10b981;
    --danger: #f87171;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* Transparent so the themed ::before/::after layers show through.
       html carries the base colour (set inline in each page head). */
    background: transparent;
    color: var(--text);
    min-height: 100vh;
    min-height: 100svh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

/* Header */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
}
.topbar .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.topbar .brand img { width: 30px; height: 30px; border-radius: 8px; }
.topbar .brand strong { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.topbar .back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s ease;
}
.topbar .back-link:hover { color: var(--text); }

/* Centred column */
.container {
    width: 100%;
    max-width: 560px;
    /* auto on all sides centres vertically too, without clipping when the
       revealed state grows past the viewport. */
    margin: auto;
    padding: 48px 20px 40px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(40px, env(safe-area-inset-bottom));
}

.container, .key-layout > *, .side-panel, .card { min-width: 0; }
.container { overflow-wrap: anywhere; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.logo-section { text-align: center; margin-bottom: 24px; }
.logo { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 16px; }
.brand-name { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.brand-tagline { color: var(--muted); font-size: 14px; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Card */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
}

.key-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.key-label { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.key-label i { color: var(--muted); font-size: 15px; }
.key-timer { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.key-timer i { font-size: 12px; }

.product-art { border-radius: 12px; overflow: hidden; margin-bottom: 18px; border: 1px solid var(--border); background: var(--surface-2); }
.product-art img { width: 100%; max-height: 160px; object-fit:contain; display: block; }

.scope-note {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 20px;
}
.scope-note strong { color: var(--text); font-weight: 600; }

.key-field-label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }

.key-output {
    display: block;
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.06em;
    text-align: center;
    word-break: break-all;
    transition: filter 0.2s ease, border-color 0.15s ease;
}
/* Only an actual key is hidden. Status text ("COMPLETE VERIFICATION",
   "GENERATING KEY") has to stay readable, so the blur is gated on .has-key,
   which key.js adds the moment a key is issued. */
.key-output.has-key {
    cursor: pointer;
    filter: blur(7px);
    user-select: none;
}
.key-output.has-key:hover,
.key-output.has-key:focus-visible,
.key-output.has-key.revealed {
    filter: blur(0);
    user-select: text;
    border-color: var(--border-strong);
}

.key-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}
.key-hint kbd {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1px 6px;
    font-family: inherit;
    font-size: 11px;
    color: var(--text);
}

.ghost-button {
    flex: 0 0 auto;
    padding: 13px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.ghost-button:hover { color: var(--text); border-color: var(--border-strong); }

.timer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
    margin-top: 20px;
}
.timer strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.timer-track { height: 4px; background: rgba(255, 255, 255, 0.07); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.timer-fill { height: 100%; width: 0; background: var(--accent); transition: width 1s linear; }

.key-actions { display: flex; gap: 10px; margin-top: 18px; }
.key-actions > * { min-width: 0; min-height: 48px; }
.primary-button {
    flex: 1;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #f4f4f5;
    color: #101012;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s ease;
}
.primary-button:hover:not(:disabled) { opacity: 0.88; }
.primary-button:disabled { opacity: 0.4; cursor: not-allowed; }

.message {
    display: none;
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: 10px;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: var(--danger);
    font-size: 13px;
}
.message.show { display: block; }

/* Secondary links */
.button-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.btn {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--muted);
    background: transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
    min-height: 44px;
}
.btn:hover { color: var(--text); border-color: var(--border-strong); }
.btn i { font-size: 13px; }

/* Ads: no frame, no label - just the slot sitting above the footer. */
.ad-slot {
    margin: 88px 0 24px;
    text-align: center;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.footer { text-align: center; padding-bottom: 8px; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-copyright { color: var(--muted); font-size: 12px; opacity: 0.7; }

/* Blocker bait. Must keep non-zero size and stay off display:none, or key.js
   reports a false positive. Blockers zero it via the class names. */
.adsbox { width: 1px; height: 1px; position: fixed; left: -9999px; bottom: 0; }

@media (max-width: 560px) {
    .topbar { padding: 16px 18px; }
    .container {
        padding: 28px max(16px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    }
    .card { padding: 22px; }
    .key-output { font-size: 13px; padding: 15px; }
    .btn { flex: 1 1 100%; }
}

/* selector.js toggles these two panels with .hidden. Without this rule both
   render at once and the product list leaks to visitors who skipped the steps. */
.hidden { display: none !important; }

.product-grid { display: flex; flex-direction: column; gap: 10px; }
.product-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.15s ease;
}
.product-link:hover { border-color: var(--border-strong); }
.product-link img { width: 44px; height: 44px; border-radius: 9px; object-fit:contain; flex-shrink: 0; }
.product-link span { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
.product-link strong { font-size: 15px; font-weight: 600; color: var(--text); }
.product-link b { color: var(--muted); font-weight: 400; }

.loader-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 12px 14px;
    min-width: 0;
    min-height: 48px;
    white-space: normal;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s ease;
}
.loader-download:hover { border-color: var(--border-strong); }
.loader-download[hidden] { display: none; }

.redeem-note {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    font-size: 13px;
    color: var(--muted);
}
.redeem-note strong { color: var(--text); font-weight: 600; }
.redeem-note ol { margin: 10px 0 10px 18px; padding: 0; }
.redeem-note li { margin-bottom: 5px; }
.redeem-note p { margin: 0; }

/* ------------------------------------------------------------------
   Nenyoo theme. Matches nenyoomenu.com: near-black ground, violet
   light-ribbons drifting behind the content, faint starfield. Scoped to
   .brand-nenyoo so the Scooby pages keep their plain look.
   ------------------------------------------------------------------ */
body.brand-nenyoo {
    --bg: #050506;
    --surface: #0f0f14;
    --surface-2: #16161d;
    --border: rgba(168, 85, 247, 0.16);
    --border-strong: rgba(168, 85, 247, 0.38);
    --accent: #a855f7;
}

/* Drifting violet ribbons. Transform-only, so it stays off the paint path. */
body.brand-nenyoo::before {
    content: "";
    position: fixed;
    inset: -25%;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(42% 30% at 72% 28%, rgba(168, 85, 247, 0.30), transparent 62%),
        radial-gradient(36% 46% at 24% 62%, rgba(139, 92, 246, 0.24), transparent 64%),
        radial-gradient(30% 26% at 86% 78%, rgba(217, 70, 239, 0.20), transparent 60%);
    filter: blur(42px);
    will-change: transform;
    animation: nenyooDrift 26s ease-in-out infinite alternate;
}

@keyframes nenyooDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(2.5%, -2.5%, 0) scale(1.1); }
    100% { transform: translate3d(-2%, 2%, 0) scale(1.04); }
}

/* Faint starfield, slowly panning. */
body.brand-nenyoo::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
    background-image:
        radial-gradient(1px 1px at 18% 24%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1px 1px at 68% 16%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1px 1px at 42% 72%, rgba(255, 255, 255, 0.40), transparent),
        radial-gradient(1px 1px at 86% 58%, rgba(255, 255, 255, 0.30), transparent),
        radial-gradient(1px 1px at 8% 84%, rgba(255, 255, 255, 0.32), transparent);
    background-size: 360px 360px;
    animation: nenyooStars 120s linear infinite;
}

@keyframes nenyooStars {
    from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
    to   { background-position: 360px 360px, 360px 360px, 360px 360px, 360px 360px, 360px 360px; }
}

/* Glassy panels so the ribbons read through the card. */
body.brand-nenyoo .card,
body.brand-nenyoo .ad-placement {
    background: rgba(16, 16, 22, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
body.brand-nenyoo .topbar {
    background: rgba(5, 5, 6, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
body.brand-nenyoo .brand-name {
    background: linear-gradient(120deg, #fff 30%, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.brand-nenyoo .status-badge {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.28);
    color: #c084fc;
}
body.brand-nenyoo .status-dot { background: #a855f7; }
body.brand-nenyoo .timer-fill { background: linear-gradient(90deg, #a855f7, #d946ef); }

@media (prefers-reduced-motion: reduce) {
    body.brand-nenyoo::before,
    body.brand-nenyoo::after { animation: none; }
}

/* ------------------------------------------------------------------
   Scooby theme. Same technique as the Nenyoo backdrop but in the brand's
   emerald, kept dimmer so the minimal layout still reads as the focus.
   ------------------------------------------------------------------ */
body.brand-scooby::before {
    content: "";
    position: fixed;
    inset: -25%;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(40% 30% at 26% 26%, rgba(16, 185, 129, 0.22), transparent 62%),
        radial-gradient(34% 44% at 76% 62%, rgba(45, 212, 191, 0.16), transparent 64%),
        radial-gradient(28% 26% at 58% 88%, rgba(99, 102, 241, 0.16), transparent 60%);
    filter: blur(42px);
    will-change: transform;
    animation: scoobyDrift 28s ease-in-out infinite alternate;
}

@keyframes scoobyDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-2.5%, 2%, 0) scale(1.09); }
    100% { transform: translate3d(2%, -2.5%, 0) scale(1.04); }
}

body.brand-scooby::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.45;
    background-image:
        radial-gradient(1px 1px at 22% 28%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 64% 18%, rgba(255, 255, 255, 0.32), transparent),
        radial-gradient(1px 1px at 38% 76%, rgba(255, 255, 255, 0.38), transparent),
        radial-gradient(1px 1px at 88% 54%, rgba(255, 255, 255, 0.28), transparent),
        radial-gradient(1px 1px at 12% 88%, rgba(255, 255, 255, 0.3), transparent);
    background-size: 380px 380px;
    animation: scoobyStars 140s linear infinite;
}

@keyframes scoobyStars {
    from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
    to   { background-position: 380px 380px, 380px 380px, 380px 380px, 380px 380px, 380px 380px; }
}

body.brand-scooby .card,
body.brand-scooby .ad-placement {
    background: rgba(19, 19, 22, 0.74);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
body.brand-scooby .brand-name {
    background: linear-gradient(120deg, #fff 30%, #6ee7b7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    body.brand-scooby::before,
    body.brand-scooby::after { animation: none; }
}

/* Centred action bar. Sits outside the card as its own pill so the card stays
   focused on the key itself. */
.taskbar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    width: max-content;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(19, 19, 22, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.taskbar .btn {
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 14px;
    background: transparent;
    white-space: nowrap;
}
.taskbar .btn i { width: 16px; text-align: center; }
.taskbar .btn:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.04); }

/* Not enough room beside the centred column: fall back to a bar under it. */
@media (max-width: 1120px) {
    .taskbar {
        position: static;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: fit-content;
        max-width: 100%;
        margin: 18px auto 0;
        border-radius: 999px;
    }
    .taskbar .btn { justify-content: center; border-radius: 999px; padding: 10px 18px; }
}

@media (max-width: 480px) {
    .taskbar { width: 100%; border-radius: 16px; }
    .taskbar .btn { flex: 1 1 auto; }
}

/* Site-style footer, matching the layout on nenyoomenu.com: brand left,
   copyright, link row, back-to-top right. Collapses to stacked on mobile. */
.site-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 88px;
    padding: 32px 4px 24px;
    border-top: 1px solid var(--border);
}
.site-footer .foot-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    white-space: nowrap;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
}
.site-footer .foot-brand img { width: 22px; height: 22px; object-fit: contain; }
.site-footer .foot-copy { color: var(--muted); font-size: 12px; white-space: nowrap; flex: 0 0 auto; }
.site-footer .foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-left: auto;
    min-width: 0;
}
.site-footer .foot-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.15s ease;
}
.site-footer .foot-links a:hover { color: var(--text); }
.site-footer .foot-top { color: var(--muted); font-size: 13px; text-decoration: none; white-space: nowrap; }
.site-footer .foot-top:hover { color: var(--text); }

@media (max-width: 620px) {
    .site-footer { flex-direction: column; align-items: flex-start; flex-wrap: wrap; gap: 14px; }
    .site-footer .foot-links { flex-wrap: wrap; }
    .site-footer .foot-links { margin-left: 0; gap: 14px; }
    .site-footer { margin-top: 44px; }
    .ad-slot { margin-top: 44px; }
    .taskbar .btn { white-space: normal; text-align: center; }
}


/* Key card with the redeem steps alongside it. The column only exists on the
   key pages, so the container widens just for them. */
.key-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}
.container:has(.key-layout) { max-width: 920px; }

.side-panel { display: flex; flex-direction: column; gap: 12px; }
.side-panel .redeem-note { margin-top: 0; }
.side-panel .loader-download { margin-top: 0; }

@media (max-width: 900px) {
    .key-layout { grid-template-columns: minmax(0, 1fr); }
    .container:has(.key-layout) { max-width: 560px; }
}

/* ==================================================================
   Entry pages. The two brands get deliberately different shapes:
   Scooby runs a numbered step rail, Nenyoo a single countdown ring.
   ================================================================== */

/* -- Scooby: step rail ------------------------------------------- */
.entry-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    text-align: left;
}
.entry-head img { width: 52px; height: 52px; border-radius: 14px; flex: 0 0 auto; }
.entry-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.entry-head p { color: var(--muted); font-size: 14px; margin: 0; }
.entry-head .status-badge { margin: 0 0 0 auto; flex: 0 0 auto; }

.step-rail { list-style: none; display: flex; flex-direction: column; gap: 0; margin: 0 0 22px; padding: 0; }
.step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    opacity: 0.45;
    transition: opacity 0.3s ease;
}
.step:last-child { border-bottom: 0; }
.step.done, .step.active { opacity: 1; }
.step-no {
    flex: 0 0 auto;
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    font-size: 12px; font-weight: 600;
    color: var(--muted);
}
.step.done .step-no { background: var(--accent); border-color: var(--accent); color: #05130d; }
.step.active .step-no { border-color: var(--accent); color: var(--accent); }
.step strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.step small { color: var(--muted); font-size: 13px; }

/* -- Nenyoo: countdown ring -------------------------------------- */
.ring-wrap { position: relative; width: 168px; height: 168px; margin: 0 auto 26px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.ring .ring-bg { stroke: rgba(255, 255, 255, 0.08); }
.ring .ring-fg {
    stroke: var(--accent);
    stroke-dasharray: 452;
    stroke-dashoffset: 452;
    transition: stroke-dashoffset 1s linear;
}
.ring-num {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    text-align: center;
}
.ring-num small { display: block; margin-top: 8px; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.entry-lede { text-align: center; margin-bottom: 26px; }
.entry-lede h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.entry-lede p { color: var(--muted); font-size: 14px; margin: 0; }

@media (max-width: 520px) {
    .entry-head { flex-wrap: wrap; }
    .entry-head .status-badge { margin-left: 0; }
    .ring-wrap { width: 140px; height: 140px; }
    .ring-num { font-size: 38px; }
}

/* ==================================================================
   Refined backdrops. Replaces the earlier single-blob drift with a
   layered aurora plus a two-density starfield. Still transform and
   opacity only, so nothing here touches layout or paint cost.
   ================================================================== */

body.brand-nenyoo::before {
    inset: -35%;
    background:
        radial-gradient(38% 26% at 68% 22%, rgba(168, 85, 247, 0.34), transparent 64%),
        radial-gradient(30% 34% at 22% 56%, rgba(124, 58, 237, 0.26), transparent 66%),
        radial-gradient(26% 22% at 84% 74%, rgba(217, 70, 239, 0.22), transparent 62%),
        radial-gradient(44% 30% at 46% 92%, rgba(79, 70, 229, 0.20), transparent 70%),
        radial-gradient(20% 18% at 12% 14%, rgba(236, 72, 153, 0.14), transparent 60%);
    filter: blur(56px) saturate(1.15);
    animation: auroraDrift 34s ease-in-out infinite alternate;
}

body.brand-scooby::before {
    inset: -35%;
    background:
        radial-gradient(36% 26% at 28% 20%, rgba(16, 185, 129, 0.30), transparent 64%),
        radial-gradient(30% 34% at 78% 54%, rgba(45, 212, 191, 0.22), transparent 66%),
        radial-gradient(26% 22% at 16% 78%, rgba(34, 197, 94, 0.18), transparent 62%),
        radial-gradient(44% 30% at 54% 94%, rgba(79, 70, 229, 0.18), transparent 70%),
        radial-gradient(20% 18% at 88% 12%, rgba(56, 189, 248, 0.14), transparent 60%);
    filter: blur(56px) saturate(1.12);
    animation: auroraDriftAlt 38s ease-in-out infinite alternate;
}

/* Organic motion: the rotation keeps the blobs from sliding as one sheet. */
@keyframes auroraDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
    50%  { transform: translate3d(3%, -2.5%, 0) scale(1.12) rotate(4deg); }
    100% { transform: translate3d(-2.5%, 2%, 0) scale(1.05) rotate(-3deg); }
}
@keyframes auroraDriftAlt {
    0%   { transform: translate3d(0, 0, 0) scale(1.04) rotate(-2deg); }
    50%  { transform: translate3d(-3%, 2%, 0) scale(1.13) rotate(3deg); }
    100% { transform: translate3d(2%, -2.5%, 0) scale(1) rotate(0deg); }
}

/* Two star densities so the field reads as having depth. */
body.brand-nenyoo::after,
body.brand-scooby::after {
    opacity: 0.5;
    background-image:
        radial-gradient(1.4px 1.4px at 18% 24%, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(1.4px 1.4px at 68% 16%, rgba(255, 255, 255, 0.40), transparent),
        radial-gradient(1.4px 1.4px at 42% 72%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1px 1px at 86% 58%, rgba(255, 255, 255, 0.30), transparent),
        radial-gradient(1px 1px at 8% 84%, rgba(255, 255, 255, 0.28), transparent),
        radial-gradient(1px 1px at 55% 38%, rgba(255, 255, 255, 0.24), transparent),
        radial-gradient(1px 1px at 32% 8%, rgba(255, 255, 255, 0.22), transparent);
    background-size: 420px 420px, 420px 420px, 420px 420px, 260px 260px, 260px 260px, 260px 260px, 260px 260px;
    animation: starPan 160s linear infinite, starPulse 9s ease-in-out infinite;
}

@keyframes starPan {
    from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
    to   { background-position: 420px 420px, 420px 420px, 420px 420px, 260px 260px, 260px 260px, 260px 260px, 260px 260px; }
}
@keyframes starPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.32; } }

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

@media (max-width: 380px) {
    .card { padding: 18px; }
    .key-actions { flex-wrap: wrap; }
    .key-actions .primary-button { flex-basis: 100%; }
    .key-actions .ghost-button { flex: 1; }
    .timer { flex-wrap: wrap; }
}
