/* ============================================================
   HOME HERO ART & PAGE BASICS
============================================================ */

.home-hero {
    --home-hero-art-c64: image-set(
        url("../images/hero/ccg-hero-c64.png") type("image/png")
    );
    --home-hero-art-amiga: image-set(
        url("../images/hero/ccg-hero-amiga.png") type("image/png")
    );

    margin-top: clamp(18px, 4vw, 52px);
    padding: 12px 0 14px;
    touch-action: pan-y;
    isolation: isolate;
}

.ccg-main--home {
    padding-top: clamp(18px, 5vw, 44px);
}

html[data-ccg-page="home"] {
    scroll-behavior: auto;
}

/* ============================================================
   HOME PRE-PAINT GPU GUARD
============================================================ */

html[data-ccg-page="home"].ccg-prepaint .ccg-bg,
html[data-ccg-page="home"].ccg-prepaint .ccg-bg-starfield,
html[data-ccg-page="home"].ccg-prepaint .ccg-bg-starfield::after,
html[data-ccg-page="home"].ccg-prepaint .ccg-bg-grid,
html[data-ccg-page="home"].ccg-prepaint .ccg-bg-crt-overlay,
html[data-ccg-page="home"].ccg-prepaint .home-hero__bg,
html[data-ccg-page="home"].ccg-prepaint .home-hero__scanlines,
html[data-ccg-page="home"].ccg-prepaint .home-hero__crt-overlay,
html[data-ccg-page="home"].ccg-prepaint .home-hero__visual-glow,
html[data-ccg-page="home"].ccg-prepaint .home-hero__visual-overlay,
html[data-ccg-page="home"].ccg-prepaint .home-bottom-cta__beam,
html[data-ccg-page="home"].ccg-prepaint .home-visitor-callout__beam {
    opacity: 0;
    filter: none;
    transform: none;
}

html.ccg-mobile-defer-visuals .home-hero__bg {
    opacity: 0;
    filter: none;
    transform: none;
    background-image: none;
}

html.ccg-mobile-defer-visuals .home-hero__scanlines,
html.ccg-mobile-defer-visuals .home-hero__crt-overlay,
html.ccg-mobile-defer-visuals .home-hero__visual-glow,
html.ccg-mobile-defer-visuals .home-hero__visual-overlay {
    opacity: 0;
}

/* ============================================================
   HOME HEADER NAV — NEON EXTRAORDINAIRE PANEL
============================================================ */

html[data-ccg-page="home"] .ccg-header-inner {
    position: relative;
    isolation: isolate;
    overflow: clip;
    overflow-clip-margin: 18px;
}

html[data-ccg-page="home"] .ccg-header-actions {
    overflow: clip;
    overflow-clip-margin: 14px;
}

html[data-ccg-page="home"] .ccg-header-inner::before {
    content: "";
    position: absolute;
    inset: -14px -10px -18px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(6, 10, 22, 0.92), rgba(4, 8, 18, 0.78)),
        radial-gradient(circle at 18% 20%, rgba(var(--accent-rgb), 0.18), transparent 55%),
        radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.08), transparent 50%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.72),
        0 0 26px rgba(var(--accent-rgb), 0.32);
    pointer-events: none;
    z-index: 0;
}

html[data-ccg-page="home"] .ccg-header-inner::after {
    content: "";
    position: absolute;
    inset: -6px -4px -12px;
    border-radius: 24px;
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    box-shadow:
        inset 0 0 20px rgba(var(--accent-rgb), 0.18),
        inset 0 0 32px rgba(0, 0, 0, 0.6);
    opacity: 0.65;
    pointer-events: none;
    z-index: 0;
}

html[data-ccg-page="home"] .ccg-header-inner > * {
    position: relative;
    z-index: 1;
}

html[data-ccg-page="home"] .ccg-nav {
    position: relative;
}

html[data-ccg-page="home"] .ccg-nav::before {
    content: "";
    position: absolute;
    inset: -12px -10px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 10%, rgba(var(--accent-rgb), 0.25), transparent 60%),
        linear-gradient(160deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35));
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

html[data-ccg-page="home"] .ccg-nav__bar,
html[data-ccg-page="home"] .ccg-nav__list,
html[data-ccg-page="home"] .ccg-nav__more {
    position: relative;
    z-index: 1;
}

html[data-ccg-page="home"] .ccg-nav__link,
html[data-ccg-page="home"] .ccg-nav__more-toggle {
    position: relative;
    overflow: hidden;
}

/* Home nav button colours now inherit from the global mode system in ccg-mode.css. */

html[data-ccg-page="home"] .ccg-nav__link:focus-visible,
html[data-ccg-page="home"] .ccg-nav__more-toggle:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.55);
    outline-offset: 2px;
}

html[data-ccg-page="home"] .ccg-header-socials {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    background:
        linear-gradient(140deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.35)),
        radial-gradient(circle at 30% 20%, rgba(var(--accent-rgb), 0.2), transparent 55%);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.6),
        0 0 18px rgba(var(--accent-rgb), 0.28);
}

@media (max-width: 900px) {
    html[data-ccg-page="home"] .ccg-header-inner::before {
        inset: -10px -6px -14px;
        border-radius: 22px;
    }

    html[data-ccg-page="home"] .ccg-header-inner::after {
        inset: -4px -2px -10px;
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-ccg-page="home"] .ccg-nav__link,
    html[data-ccg-page="home"] .ccg-nav__more-toggle,
    html[data-ccg-page="home"] .ccg-header-socials a {
        transition: none;
        transform: none;
    }
}

@media (max-width: 820px) {
    .home-video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {

    /* 1. Remove horizontal padding from the video container */
    .home-featured-videos {
        padding-left: 0;
        padding-right: 0;
    }

    /* 2. Re-apply padding INSIDE the card body instead */
    .home-video-card {
        margin-inline: 12px;
    }

    /* 3. Ensure iframe is mathematically centred */
    .home-featured-video-media {
        margin-left: auto;
        margin-right: auto;
    }

    /* 4. Button alignment polish */
    .home-video-card__links {
        justify-content: center;
    }

    .home-video-card__links .ccg-link {
        min-width: 160px;
    }
}

.home-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.home-highlight-card {
    min-height: 180px;
    background: radial-gradient(circle at 30% 20%, rgba(var(--accent-rgb), 0.18), transparent 46%),
                linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.65));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 18px 42px rgba(0,0,0,0.7), 0 0 18px rgba(var(--accent-rgb),0.28);
}

.home-featured-videos {
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(140deg, rgba(0,0,0,0.86), rgba(0,0,0,0.72));
    box-shadow: 0 18px 42px rgba(0,0,0,0.72), inset 0 0 0 1px rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    display: grid;
    gap: 14px;
}

.home-featured-videos__title {
    margin: 0 0 6px;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
}

.home-featured-videos__text {
    margin: 0;
    color: var(--ccg-text-soft);
}

.home-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.home-video-card {
    --home-video-accent: rgba(var(--accent-rgb, 108, 94, 181), 0.3);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0,0,0,0.88), rgba(0,0,0,0.72));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 42px rgba(0,0,0,0.7), 0 0 18px var(--home-video-accent);
    display: grid;
    gap: 0;
    pointer-events: auto;
    z-index: 2;
}

.home-featured-videos .home-video-card:nth-child(1) {
    --home-video-accent: rgba(0, 220, 255, 0.35);
    box-shadow: 0 18px 42px rgba(0,0,0,0.7), 0 0 22px rgba(0, 220, 255, 0.35);
    border-color: rgba(0, 220, 255, 0.18);
}

.home-featured-videos .home-video-card:nth-child(2) {
    --home-video-accent: rgba(148, 170, 200, 0.28);
    box-shadow: 0 18px 42px rgba(0,0,0,0.7), 0 0 18px rgba(148, 170, 200, 0.28);
    border-color: rgba(148, 170, 200, 0.22);
}

.home-featured-videos .home-video-card + .home-video-card {
    box-shadow:
        0 18px 42px rgba(0,0,0,0.7),
        0 0 18px var(--home-video-accent),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

@media (min-width: 821px) {
    .home-featured-videos .home-video-card + .home-video-card {
        box-shadow:
            0 18px 42px rgba(0,0,0,0.7),
            0 0 18px var(--home-video-accent),
            inset 1px 0 0 rgba(255,255,255,0.08);
    }
}

.home-video-card__media {
    position: relative;
    min-height: 0;
    background: radial-gradient(circle at 22% 26%, var(--home-video-accent), transparent 52%);
    z-index: 1;
    pointer-events: auto;
}

.home-featured-video-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: #000;
    pointer-events: auto;
    touch-action: manipulation;
    display: block;
    margin: 0;
    justify-self: stretch;
    align-self: stretch;
}

.home-featured-video-media iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    margin: 0 auto;
    position: relative;
    left: 0;
    right: 0;
}

.home-video-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.home-video-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    pointer-events: none;
}

.home-video-card__thumb {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: grid;
    place-items: center;
    isolation: isolate;
}

.home-video-card__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.45));
    mix-blend-mode: normal;
    opacity: 0.45;
    transition: opacity 160ms ease;
    z-index: 0;
    pointer-events: none;
}

.home-video-card__play {
    position: relative;
    z-index: 1;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.32);
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.08);
    transition: transform 120ms ease, box-shadow 160ms ease;
    pointer-events: auto;
}

.home-video-card__play:hover,
.home-video-card__play:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.2);
}

.home-video-card__play:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.home-video-card__iframe {
    display: none;
    pointer-events: none;
}

.home-video-card.is-playing .home-video-card__thumb {
    display: none;
}

.home-video-card.is-playing .home-video-card__overlay {
    display: none;
    pointer-events: none;
}

.home-video-card.is-playing .home-video-card__iframe {
    display: block;
    pointer-events: auto;
}

@media (hover: none) and (pointer: coarse) {
    .home-featured-videos,
    .home-video-grid,
    .home-video-card,
    .home-video-card:active,
    .home-video-card:focus-within,
    .home-video-card__media,
    .home-featured-video-media {
        transform: none;
        scale: 1;
        zoom: 1;
        filter: none;
        backdrop-filter: none;
        will-change: auto;
    }

    .home-featured-video-media,
    .home-video-card__iframe {
        min-width: 44px;
        min-height: 44px;
    }

    .home-featured-video-media {
        position: relative;
        isolation: isolate;
        pointer-events: auto;
        touch-action: manipulation;
    }

    .home-video-card.is-playing,
    .home-video-card.is-playing:focus-within,
    .home-video-card.is-playing:active {
        transform: none;
        filter: none;
        will-change: auto;
    }

    .home-video-card.is-playing .home-featured-video-media {
        position: relative;
        isolation: isolate;
        z-index: 2;
        touch-action: manipulation;
        transform: none;
        filter: none;
        will-change: auto;
    }

    .home-video-card.is-playing .home-video-card__media {
        position: relative;
        isolation: isolate;
        z-index: 2;
        transform: none;
        filter: none;
        will-change: auto;
    }

    .home-video-card__iframe {
        pointer-events: auto;
        touch-action: manipulation;
        position: relative;
        z-index: 4;
        box-sizing: border-box;
        transform: none;
        scale: 1;
        zoom: 1;
    }

    .home-video-card.is-playing .home-video-card__overlay,
    .home-video-card.is-playing .home-video-card__thumb {
        pointer-events: none;
    }
}

.home-video-card .ccg-card__body {
    display: grid;
    gap: 6px;
}

.home-video-card .ccg-card__text {
    word-spacing: -0.04em;
}

.home-video-card__label {
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
}

.home-video-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.home-video-card__links .ccg-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ccg-text-light);
    background: linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(0,0,0,0.55));
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 6px 14px rgba(0,0,0,0.75), 0 0 14px rgba(var(--accent-rgb), 0.22);
    transition:
        transform 0.32s var(--ccg-ease-out),
        box-shadow 0.36s var(--ccg-ease-out),
        background 0.32s ease,
        border-color 0.32s ease;
}

.home-video-card__links .ccg-link:hover,
.home-video-card__links .ccg-link:focus-visible {
    transform: translateY(-2px);
    box-shadow:
        0 16px 34px rgba(0,0,0,0.9),
        0 0 34px rgba(var(--accent-rgb), 0.55);
    border-color: rgba(var(--accent-rgb), 0.85);
}

.home-video-card__links .ccg-link:active {
    transform: translateY(0) scale(0.98);
    box-shadow:
        0 8px 18px rgba(0,0,0,0.85),
        0 0 18px rgba(var(--accent-rgb), 0.45);
}

.home-video-card__links a[aria-disabled="true"] {
    opacity: 0.55;
    pointer-events: none;
}

.home-video-card--loading .home-video-card__media {
    background: linear-gradient(120deg, rgba(255,255,255,0.05), rgba(255,255,255,0.12), rgba(255,255,255,0.05));
    height: 180px;
    padding: 0;
    animation: pulse-loading 1.8s ease-in-out infinite;
}

@keyframes pulse-loading {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* ============================================================
   CURATED LINKS
  ============================================================ */

.home-curated-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.home-curated-card {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0,0,0,0.88), rgba(0,0,0,0.72));
    box-shadow: 0 14px 34px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
}

.home-curated-card::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at var(--glow-x,50%) var(--glow-y,50%), rgba(var(--accent-rgb),0.28), transparent 48%);
    opacity: 0.5;
    transition: opacity 200ms ease;
}

/* ============================================================
   MOBILE + LITE EXPERIENCE
  ============================================================ */

.ccg-body.ccg-mobile-lite .home-highlight-card,
.ccg-body.ccg-mobile-lite .home-link-tile {
    box-shadow: 0 12px 28px rgba(0,0,0,0.6);
    backdrop-filter: none;
}

.home-curated-card:hover::before,
.home-curated-card:focus-visible::before {
    opacity: 0.85;
}

.home-curated__label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.home-curated__text {
    color: var(--ccg-text-soft);
}

.home-curated__cta {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(var(--accent-rgb),0.9);
}

.home-genre-tile {
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, rgba(0,0,0,0.86), rgba(0,0,0,0.72));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 38px rgba(0,0,0,0.65), inset 0 0 24px rgba(var(--accent-rgb),0.16);
}

.home-genre-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 22%, rgba(var(--accent-rgb),0.24), transparent 45%);
    opacity: 0.85;
}

.home-genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.home-genres-grid--gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 900px) {
    .home-genres-grid--gallery {
        grid-template-columns: 1fr;
    }
}

.home-genre-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: 180px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0,0,0,0.86), rgba(0,0,0,0.74));
    box-shadow:
        0 18px 42px rgba(0,0,0,0.72),
        0 0 22px rgba(var(--accent-rgb),0.26),
        inset 0 0 0 1px rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.07);
    isolation: isolate;
    transition: transform 180ms ease, box-shadow 220ms ease;
}

.home-genre-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(var(--accent-rgb),0.12), transparent 50%),
        radial-gradient(circle at 10% 20%, rgba(var(--accent-rgb),0.18), transparent 42%);
    opacity: 0.65;
    z-index: 0;
}

.home-genre-card:hover,
.home-genre-card:focus-visible {
    transform: translateY(-3px);
    box-shadow:
        0 24px 48px rgba(0,0,0,0.78),
        0 0 28px rgba(var(--accent-rgb),0.32),
        inset 0 0 0 1px rgba(var(--accent-rgb),0.22);
    outline: none;
}

.home-genre-card:hover::before,
.home-genre-card:focus-visible::before {
    opacity: 0.9;
}

.home-genre-card__thumb {
    position: relative;
    min-height: 100%;
    background-size: cover;
    background-position: center;
    filter: saturate(1.15) brightness(1.05);
}

.home-genre-card__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.08), rgba(0,0,0,0.35));
    mix-blend-mode: normal;
    transition: opacity 200ms ease;
}

.home-genre-card:hover .home-genre-card__thumb::after,
.home-genre-card:focus-visible .home-genre-card__thumb::after {
    opacity: 0.75;
}

.home-genre-card__body {
    position: relative;
    padding: 18px 18px 18px;
    display: grid;
    gap: 8px;
    align-content: center;
    z-index: 1;
}

.home-genre-card__title {
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-genre-card__text {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.5;
}

.home-genre-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(var(--accent-rgb),0.92);
    text-shadow: 0 0 12px rgba(var(--accent-rgb),0.35);
}

.home-genre-card__cta::after {
    content: "→";
    transform: translateY(1px);
}

@media (max-width: 640px) {
    .home-genre-card {
        grid-template-columns: 1fr;
    }

    .home-genre-card__thumb {
        min-height: 180px;
    }
}

/* ============================================================
   HOME — HERO + FEATURE REFRESH
============================================================ */

/* Desktop home clarity: keep the fixed universe behind content
   without the mix-blend screen wash from the grid layer. */
@media (min-width: 821px) {
    html[data-ccg-page="home"] .ccg-bg-grid {
        mix-blend-mode: normal;
        opacity: 0.03;
    }

    html[data-ccg-page="home"] .ccg-bg-starfield {
        opacity: 0.18;
    }

    html[data-ccg-page="home"] .ccg-bg-starfield::after {
        opacity: 0.05;
    }
}

.home-hero,
.home-hero__frame {
    overscroll-behavior: auto;
    touch-action: auto;
}

.home-hero__frame {
    position: relative;
    overflow: hidden;
    width: min(1100px, 100%);
    margin-inline: auto;
    border-radius: 26px;
    padding: clamp(24px, 4vw, 40px);
    min-height: clamp(420px, 68vh, 640px);
    background:
        radial-gradient(circle at 18% 18%, rgba(var(--accent-rgb),0.22), transparent 42%),
        radial-gradient(circle at 82% 24%, rgba(120,183,255,0.16), transparent 38%),
        linear-gradient(145deg, rgba(3,8,18,0.92), rgba(12,14,28,0.78));
    box-shadow:
        0 24px 52px rgba(0,0,0,0.82),
        0 0 32px rgba(var(--accent-rgb),0.34),
        inset 0 0 0 1px rgba(255,255,255,0.06);
    isolation: isolate;
    touch-action: pan-y;
}


.home-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.24;
    transition: opacity 420ms ease, transform 620ms ease;
    filter: saturate(1.12) contrast(1.05);
    will-change: opacity, transform;
    pointer-events: none;
    touch-action: pan-y;
}

.home-hero__bg--c64 {
    background-image: linear-gradient(rgba(0,0,0,0.48), rgba(0,0,0,0.65)), var(--home-hero-art-c64);
}

.home-hero__bg--amiga {
    background-image: linear-gradient(rgba(0,0,0,0.48), rgba(0,0,0,0.65)), var(--home-hero-art-amiga);
}

body[data-ccg-mode="c64"] .home-hero[data-hero-mode="c64"] .home-hero__bg--c64,
body[data-ccg-mode="amiga"] .home-hero[data-hero-mode="amiga"] .home-hero__bg--amiga {
    opacity: 0.76;
    transform: scale(1.02);
}

.home-hero__scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.08),
        rgba(255,255,255,0.08) 1px,
        rgba(0,0,0,0) 2px,
        rgba(0,0,0,0) 3px
    );
    z-index: 0;
    mix-blend-mode: normal;
    opacity: 0.08;
    pointer-events: none;
    touch-action: pan-y;
}

.home-hero__crt-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(
            ellipse at center,
            rgba(255,255,255,0.022) 0%,
            rgba(0,0,0,0.26) 62%,
            rgba(0,0,0,0.56) 100%
        ),
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.016),
            rgba(255,255,255,0.016) 1px,
            transparent 1px,
            transparent 3px
        );
    mix-blend-mode: normal;
    opacity: 0.12;
    pointer-events: none;
    touch-action: pan-y;
}

@media (min-width: 821px) {
    .home-hero__scanlines {
        opacity: 0.06;
    }

    .home-hero__crt-overlay {
        opacity: 0.09;
    }
}

.home-hero__content {
    position: relative;
    z-index: 3;
    display: grid;
    gap: clamp(18px, 2vw, 28px);
    max-width: 1180px;
    padding: clamp(22px, 3vw, 30px);
    border-radius: 18px;
    background:
        linear-gradient(120deg, rgba(0,0,0,0.78), rgba(9,10,26,0.68)),
        radial-gradient(circle at 20% 30%, rgba(var(--accent-rgb),0.18), transparent 55%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 18px 40px rgba(0,0,0,0.72),
        0 0 28px rgba(var(--accent-rgb),0.26),
        inset 0 0 0 1px rgba(255,255,255,0.05);
    isolation: isolate;
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: auto;
}

.home-hero__content,
.home-hero__copy,
.home-hero__actions,
.home-hero__title,
.home-hero__tagline,
.home-hero__bullets,
.home-hero__cta {
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.page-home .home-hero__content {
    pointer-events: none;
}

body.page-home .home-hero__actions,
body.page-home .home-hero__actions a,
body.page-home .home-hero__actions button,
body.page-home .home-hero__mobile-cta,
body.page-home .home-random-cta {
    pointer-events: auto;
}

.home-hero__content::before,
.home-hero__content::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 14px;
    pointer-events: none;
    z-index: 0;
}

.home-hero__content::before {
    border: 1px dashed rgba(255,255,255,0.09);
    opacity: 0.82;
}

.home-hero__content::after {
    inset: 6px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(var(--accent-rgb),0.16), rgba(255,255,255,0.04), rgba(var(--accent-rgb),0.18));
    mix-blend-mode: normal;
    filter: none;
    opacity: 0.18;
    animation: homeHudSweep 9s ease-in-out infinite;
}

.home-hero__content > * {
    position: relative;
    z-index: 1;
}

html.ccg-perf-paused .home-hero__bg {
    filter: none;
}

html.ccg-perf-paused .home-hero__scanlines {
    mix-blend-mode: normal;
    opacity: 0.12;
}

html.ccg-perf-paused .home-hero__content {
    backdrop-filter: none;
}

html.ccg-perf-paused .home-hero__content::after {
    animation: none;
    filter: none;
    mix-blend-mode: normal;
    opacity: 0.35;
}

.home-hero__layout {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: min(5vw, 26px);
    align-items: center;
    justify-items: center;
    text-align: center;
}

.home-hero__copy {
    display: grid;
    gap: 14px;
    align-content: center;
    align-items: center;
    max-width: min(760px, 100%);
    position: relative;
    z-index: 2;
}

.home-hero__mode-line {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding-right: 0;
    isolation: isolate;
}

.home-hero__mode-line::after {
    content: "";
    position: absolute;
    inset: auto 0 -6px 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(var(--accent-rgb),0.55), rgba(120,183,255,0.65), rgba(var(--accent-rgb),0.55));
    box-shadow: 0 0 18px rgba(var(--accent-rgb),0.62);
    opacity: 0.8;
}

.home-hero__mode-line span {
    position: relative;
    z-index: 1;
}

.home-hero__mode-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0,0,0,0.72), rgba(0,0,0,0.54));
    border: 1px solid rgba(255,255,255,0.12);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e8f2ff;
    box-shadow:
        inset 0 0 0 1px rgba(var(--accent-rgb),0.26),
        0 0 18px rgba(var(--accent-rgb),0.22);
    backdrop-filter: none;
}

.home-hero__badge {
    display: none;
}

.home-hero__title {
    font-family: var(--ccg-font-hero);
    letter-spacing: 0.1em;
    line-height: 1.16;
    text-transform: uppercase;
    color: #f2f6ff;
    text-shadow:
        0 14px 32px rgba(0,0,0,0.82),
        0 0 32px rgba(120,183,255,0.55),
        0 0 54px rgba(var(--accent-rgb),0.35);
    animation: homeTitleGlow 7s ease-in-out infinite;
    text-wrap: balance;
}

.home-hero__tagline {
    max-width: 720px;
    font-size: 1.08rem;
    line-height: 1.5;
    letter-spacing: 0.04em;
    color: #d9e2ff;
    background: rgba(0,0,0,0.45);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    text-shadow: 0 0 12px rgba(0,0,0,0.65);
    text-wrap: balance;
}

.home-hero__bullets {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 10px 14px;
    list-style: none;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
    color: #e5ecff;
    font-size: 0.98rem;
}

.home-hero__bullets li::before {
    content: "✦";
    color: rgba(var(--accent-rgb),0.9);
    margin-right: 8px;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
    width: min(720px, 100%);
    margin-inline: auto;
}

.home-hero__mobile-cta {
    display: none;
    width: 100%;
    justify-content: center;
}

.home-random-cta {
    position: relative;
    display: grid;
    gap: 6px;
    width: min(340px, 100%);
    margin: 0 auto;
    padding: 16px 20px;
    border-radius: 18px;
    border: 1px solid rgba(var(--accent-rgb), 0.6);
    background:
        linear-gradient(150deg, rgba(10, 16, 30, 0.95), rgba(4, 8, 18, 0.9)),
        radial-gradient(circle at 20% 20%, rgba(var(--accent-rgb), 0.25), transparent 55%);
    color: #f4f9ff;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 800;
    font-family: var(--ccg-font-main);
    box-shadow:
        0 18px 34px rgba(0,0,0,0.78),
        0 0 24px rgba(var(--accent-rgb), 0.35),
        inset 0 0 0 1px rgba(255,255,255,0.08);
    text-align: center;
    isolation: isolate;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.home-random-cta::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), 0.45), transparent 60%);
    opacity: 0.45;
    filter: blur(18px);
    transition: opacity 200ms ease;
    pointer-events: none;
}

.home-random-cta::after {
    content: "";
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(circle, rgba(255,255,255,0.65), transparent 45%),
        radial-gradient(circle at 70% 30%, rgba(var(--accent-rgb), 0.7), transparent 55%);
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
}

.home-random-cta__label {
    font-size: 1.02rem;
    text-shadow:
        0 0 18px rgba(var(--accent-rgb), 0.6),
        0 2px 6px rgba(0,0,0,0.65);
}

.home-random-cta__status {
    min-height: 0.9em;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: rgba(222, 238, 255, 0.68);
}

.home-random-cta.is-launching .home-random-cta__status {
    color: rgba(255, 255, 255, 0.92);
}

.home-random-cta:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.7);
    outline-offset: 3px;
}

.home-random-cta:active {
    transform: translateY(1px) scale(0.98);
    box-shadow:
        0 12px 24px rgba(0,0,0,0.68),
        0 0 20px rgba(var(--accent-rgb), 0.35);
}

.home-random-cta.is-launching {
    border-color: rgba(var(--accent-rgb), 0.9);
    box-shadow:
        0 20px 40px rgba(0,0,0,0.82),
        0 0 34px rgba(var(--accent-rgb), 0.6);
}

.home-random-cta.is-launching::after {
    animation: homeRandomBurst 520ms ease-out forwards;
}

.home-random-cta.is-disabled,
.home-random-cta:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow:
        0 12px 24px rgba(0,0,0,0.62),
        0 0 12px rgba(var(--accent-rgb), 0.2);
}

@media (prefers-reduced-motion: no-preference) {
    .home-random-cta {
        animation: homeRandomPulse 2.8s ease-in-out infinite;
    }

    .home-random-cta.is-launching {
        animation: homeRandomGlow 420ms ease-out forwards;
    }
}

@keyframes homeRandomPulse {
    0%, 100% {
        transform: translateY(0);
        box-shadow:
            0 16px 32px rgba(0,0,0,0.76),
            0 0 20px rgba(var(--accent-rgb), 0.32);
    }
    50% {
        transform: translateY(-1px);
        box-shadow:
            0 20px 38px rgba(0,0,0,0.82),
            0 0 28px rgba(var(--accent-rgb), 0.5);
    }
}

@keyframes homeRandomGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.08); }
}

@keyframes homeRandomBurst {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }
    45% {
        opacity: 0.85;
        transform: scale(1.05);
    }
    100% {
        opacity: 0;
        transform: scale(1.4);
    }
}

@keyframes homeHeroShimmer {
    0% {
        opacity: 0;
        transform: translateY(-12px);
    }
    40% {
        opacity: 0.6;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(8px);
    }
}

@keyframes homeModePulse {
    0%, 100% {
        box-shadow:
            0 0 12px rgba(var(--accent-rgb), 0.45),
            inset 0 0 0 1px rgba(255,255,255,0.15);
    }
    50% {
        box-shadow:
            0 0 20px rgba(var(--accent-rgb), 0.7),
            inset 0 0 0 1px rgba(255,255,255,0.22);
    }
}

.home-hero__cta {
    position: relative;
    display: inline-flex;
    flex: 1 1 220px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 220px;
    max-width: 240px;
    min-height: 52px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
    padding: 16px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.24);
    background: linear-gradient(145deg, rgba(22,28,44,0.94), rgba(10,14,26,0.84));
    color: #f2f6ff;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.1),
        0 12px 30px rgba(0,0,0,0.58),
        0 0 20px rgba(var(--accent-rgb),0.22);
    transition: transform 200ms ease, box-shadow 220ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
    text-shadow: 0 0 12px rgba(0,0,0,0.55);
    text-align: center;
    isolation: isolate;
    will-change: transform;
}

.ccg-btn--neon {
    position: relative;
    overflow: hidden;
}

.ccg-btn--neon::before {
    content: "";
    position: absolute;
    inset: -35%;
    background:
        radial-gradient(circle at 18% 22%, rgba(255,255,255,0.18), transparent 56%),
        radial-gradient(circle at 82% 70%, rgba(var(--accent-rgb),0.32), transparent 60%);
    opacity: 0.55;
}

.ccg-btn--neon::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: inherit;
    z-index: 1;
}

.ccg-btn--neon span,
.ccg-btn--neon {
    position: relative;
    z-index: 2;
}

.home-hero__cta:hover,
.home-hero__cta:focus-visible {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(var(--accent-rgb),0.55);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.12),
        0 18px 36px rgba(0,0,0,0.7),
        0 0 30px rgba(var(--accent-rgb),0.4);
    outline: none;
}

.home-hero__cta--solid {
    background: linear-gradient(145deg, rgba(var(--accent-rgb),0.68), rgba(16,20,34,0.88));
    color: #0a1020;
    border-color: rgba(var(--accent-rgb),0.75);
    text-shadow: 0 0 12px rgba(255,255,255,0.35);
    box-shadow:
        0 0 26px rgba(var(--accent-rgb),0.48),
        inset 0 0 0 1px rgba(255,255,255,0.2),
        0 14px 34px rgba(0,0,0,0.62);
}

.home-hero__cta--ghost {
    background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(16,20,34,0.78));
    color: #f3f6ff;
    border-color: rgba(255,255,255,0.3);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.18),
        0 12px 26px rgba(0,0,0,0.48),
        0 0 16px rgba(255,255,255,0.14);
}

.home-hero__cta--featured {
    border-color: rgba(var(--accent-rgb),0.82);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.24),
        0 0 32px rgba(var(--accent-rgb),0.58),
        0 16px 38px rgba(0,0,0,0.68);
}

.home-hero__cta--featured:hover,
.home-hero__cta--featured:focus-visible {
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.3),
        0 0 40px rgba(var(--accent-rgb),0.7),
        0 18px 40px rgba(0,0,0,0.72);
}

.home-hero__cta--random {
    background: linear-gradient(145deg, rgba(var(--accent-rgb),0.62), rgba(20,24,36,0.86));
    color: #0a1020;
    border-color: rgba(var(--accent-rgb),0.74);
    box-shadow:
        0 0 22px rgba(var(--accent-rgb),0.44),
        inset 0 0 0 1px rgba(255,255,255,0.18),
        0 14px 30px rgba(0,0,0,0.62);
    text-shadow: 0 0 12px rgba(255,255,255,0.32);
}

body[data-ccg-mode="amiga"] .home-hero__cta--solid {
    background: linear-gradient(145deg, rgba(255,41,224,0.68), rgba(26,18,40,0.88));
    border-color: rgba(255, 120, 238, 0.76);
    color: #14091f;
}

body[data-ccg-mode="amiga"] .home-hero__cta--ghost {
    color: #ffe3ff;
    border-color: rgba(255, 214, 255, 0.34);
}

@keyframes homeHudSweep {
    0% { opacity: 0.58; transform: translateX(-12%); }
    50% { opacity: 0.92; transform: translateX(6%); }
    100% { opacity: 0.58; transform: translateX(-12%); }
}

@keyframes homeBadgePulse {
    0%, 100% { box-shadow: 0 0 18px rgba(var(--accent-rgb),0.4), inset 0 0 0 1px rgba(255,255,255,0.16); }
    50% { box-shadow: 0 0 28px rgba(var(--accent-rgb),0.75), inset 0 0 0 1px rgba(255,255,255,0.2); }
}

@keyframes homeTitleGlow {
    0%, 100% { text-shadow: 0 14px 32px rgba(0,0,0,0.82), 0 0 32px rgba(120,183,255,0.4), 0 0 54px rgba(var(--accent-rgb),0.28); }
    50% { text-shadow: 0 14px 32px rgba(0,0,0,0.82), 0 0 42px rgba(120,183,255,0.7), 0 0 64px rgba(var(--accent-rgb),0.48); }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__bg,
    .home-hero__content::after,
    .home-hero__badge,
    .home-hero__title,
    .ccg-btn--neon::before {
        animation: none;
    }

    .home-hero__bg,
    .home-hero__cta,
    .home-hero__content {
        transition-duration: 0ms;
    }
}

.home-hero__visual {
    position: absolute;
    inset: -6% -8%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.32;
    filter: saturate(1.08);
}

html[data-ccg-page="home"] .home-hero__visual {
    display: none;
}

.home-hero__visual-plate {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    overflow: hidden;
    background: none;
    box-shadow: none;
    pointer-events: none;
}

.home-hero__visual-img {
    position: absolute;
    inset: 0;
    background-image: var(--home-hero-art-c64);
    background-size: cover;
    background-position: center;
    filter: blur(0.2px) drop-shadow(0 18px 40px rgba(0,0,0,0.6));
    transform: none;
    transition: opacity 320ms ease, transform 340ms ease;
    pointer-events: none;
}

body[data-ccg-mode="amiga"] .home-hero[data-hero-mode="amiga"] .home-hero__visual-img {
    background-image: var(--home-hero-art-amiga);
}

.home-hero__visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0,0,0,0.35), rgba(0,0,0,0.15)),
                linear-gradient(180deg, rgba(0,0,0,0.05) 48%, rgba(0,0,0,0.75));
    mix-blend-mode: multiply;
    pointer-events: none;
}

.home-hero__visual-glow {
    display: none;
}

.home-section--neon-links {
    margin-top: 10px;
}

.home-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.home-action-card {
    position: relative;
    display: block;
    padding: 1px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(120,183,255,0.5), rgba(194,139,255,0.5));
    box-shadow:
        0 18px 44px rgba(0,0,0,0.75),
        0 0 22px rgba(var(--accent-rgb),0.28);
    isolation: isolate;
    text-decoration: none;
    color: inherit;
}

.home-action-card::before {
    content: "";
    position: absolute;
    inset: -25%;
    background: radial-gradient(circle at var(--glow-x,50%) var(--glow-y,50%), rgba(var(--accent-rgb),0.35), transparent 50%);
    filter: blur(18px);
    opacity: 0.6;
    transition: opacity 200ms ease, transform 200ms ease;
    pointer-events: none;
    z-index: 0;
}

.home-action-card__content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    padding: 18px 18px 20px;
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(0,0,0,0.92), rgba(0,0,0,0.78));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    min-height: 160px;
}

/* ============================================================
   NEON VISITOR CALLOUT
============================================================ */

.home-visitor-callout {
    margin: var(--ccg-section-gap) auto 6px;
    padding: 1px;
    max-width: 1020px;
    position: relative;
    isolation: isolate;
}

.home-visitor-callout__inner {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: clamp(18px, 3vw, 28px) clamp(18px, 4vw, 34px);
    text-align: center;
    background:
        radial-gradient(circle at 18% 24%, rgba(var(--accent-rgb),0.22), transparent 48%),
        radial-gradient(circle at 82% 32%, rgba(120,183,255,0.18), transparent 42%),
        linear-gradient(120deg, rgba(4,6,18,0.92), rgba(10,16,32,0.82));
    box-shadow:
        0 18px 42px rgba(0,0,0,0.78),
        0 0 30px rgba(var(--accent-rgb),0.32),
        inset 0 0 0 1px rgba(255,255,255,0.06);
}

.home-visitor-callout__beam {
    position: absolute;
    inset: -30%;
    background: conic-gradient(from 90deg, rgba(120,183,255,0.05), rgba(194,139,255,0.08), rgba(120,183,255,0.05));
    filter: blur(8px) saturate(1.1);
    transform: rotate(12deg);
    animation: homeVisitorSweep 9s linear infinite;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.home-visitor-callout__kicker {
    margin: 0;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(232,236,255,0.86);
    font-size: 0.82rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}

.home-visitor-callout__headline {
    margin: 8px auto 0;
    font-size: clamp(1.28rem, 2.6vw, 1.8rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 800;
    color: #dff3ff;
    position: relative;
    z-index: 1;
    text-shadow:
        0 0 16px rgba(120,183,255,0.8),
        0 0 34px rgba(194,139,255,0.72),
        0 0 62px rgba(120,183,255,0.6);
}

.home-visitor-callout__headline--interactive {
    cursor: pointer;
}

.home-visitor-callout__headline--pulse {
    animation: homeVisitorPulse 1.8s ease-in-out 2;
}

@keyframes homeVisitorPulse {
    0%, 100% { text-shadow: 0 0 14px rgba(120,183,255,0.7), 0 0 30px rgba(194,139,255,0.62), 0 0 56px rgba(120,183,255,0.54); }
    50% { text-shadow: 0 0 20px rgba(120,183,255,0.92), 0 0 46px rgba(194,139,255,0.78), 0 0 70px rgba(120,183,255,0.7); }
}

@keyframes homeVisitorSweep {
    from { transform: rotate(12deg); }
    to { transform: rotate(372deg); }
}

@media (prefers-reduced-motion: reduce) {
    .home-visitor-callout__beam,
    .home-visitor-callout__headline,
    .home-visitor-callout__headline--pulse {
        animation: none;
    }
}

/* ============================================================
   HOME FOOTER MINI STATS (MOBILE-ONLY DISPLAY)
============================================================ */

.ccg-footer__mini-stats {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 2px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(214, 230, 255, 0.75);
}

.ccg-footer__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(6, 12, 24, 0.6);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.ccg-footer__stat-divider {
    opacity: 0.5;
}

@media (max-width: 640px) {
    .home-hero__actions {
        grid-template-columns: 1fr;
    }

    .home-bottom-cta__actions {
        grid-template-columns: 1fr;
        width: 100%;
    }
}

.home-action-card__eyebrow {
    font-size: 0.86rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 0 12px rgba(var(--accent-rgb),0.35);
}

.home-action-card__title {
    font-size: 1.18rem;
    letter-spacing: 0.06em;
}

.home-action-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(var(--accent-rgb),0.92);
}

.home-action-card__cta::after {
    content: "→";
    transform: translateY(1px);
}

.home-action-card:hover,
.home-action-card:focus-visible {
    box-shadow:
        0 24px 52px rgba(0,0,0,0.8),
        0 0 32px rgba(var(--accent-rgb),0.35);
    outline: none;
}

.home-action-card:hover::before,
.home-action-card:focus-visible::before {
    opacity: 0.95;
    transform: scale(1.02);
}

.home-action-card:focus-visible .home-action-card__content {
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),0.32), 0 0 0 3px rgba(var(--accent-rgb),0.28);
}

@media (max-width: 640px) {
    .home-action-card__content {
        min-height: 0;
        padding: 18px;
    }
}

.home-hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 6px;
}

.home-hero-card {
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-alpha: 0.28;

    padding: 1px;
    border-radius: 18px;
    background: radial-gradient(140% 120% at var(--glow-x) var(--glow-y), rgba(var(--accent-rgb), var(--glow-alpha)), rgba(0,0,0,0.4));
    box-shadow:
        0 18px 48px rgba(0,0,0,0.78),
        0 0 28px rgba(var(--accent-rgb), 0.26);
    overflow: hidden;
    position: relative;
}

.home-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 90% at var(--glow-x) var(--glow-y), rgba(var(--accent-rgb), 0.45), transparent 55%),
        linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0));
    mix-blend-mode: screen;
    opacity: 0.7;
}

.home-hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),0.18);
    pointer-events: none;
}

.home-hero-card--tron {
    background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(0,0,0,0.78));
    border: 1px solid rgba(120,183,255,0.25);
    box-shadow:
        0 20px 44px rgba(0,0,0,0.82),
        0 0 32px rgba(120,183,255,0.35);
}

.home-hero-card--tron::before {
    mix-blend-mode: screen;
}

.home-hero-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(120,183,255,0.35), rgba(194,139,255,0.32));
    color: #0c1224;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255,255,255,0.35);
    box-shadow: 0 0 18px rgba(120,183,255,0.6), inset 0 0 0 1px rgba(255,255,255,0.3);
}

.home-hero-card .ccg-card__body {
    position: relative;
    z-index: 1;
    padding: 18px 18px 20px;
    background: rgba(0,0,0,0.82);
    border-radius: 16px;
}

.home-hero-card .ccg-card__title {
    font-size: 1rem;
    letter-spacing: 0.08em;
}

/* ============================================================
   TAGLINE
============================================================ */

.home-tagline {
    margin: 18px 0 4px;
}

/* ============================================================
   FEATURED HIGHLIGHTS
============================================================ */

.home-section {
    margin: var(--ccg-section-gap) 0;
    position: relative;
}

.home-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.home-section__title {
    font-family: var(--ccg-font-main);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.home-section__divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--accent-rgb),0.4), rgba(255,255,255,0.12), rgba(255,255,255,0));
    box-shadow: 0 0 14px rgba(var(--accent-rgb),0.32);
}

.home-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.home-highlight-card {
    position: relative;
    overflow: hidden;
    min-height: 160px;
    background: radial-gradient(circle at 30% 20%, rgba(var(--accent-rgb), 0.18), transparent 46%),
                linear-gradient(135deg, rgba(0,0,0,0.88), rgba(0,0,0,0.72));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 18px 42px rgba(0,0,0,0.7), 0 0 18px rgba(var(--accent-rgb),0.28);
    transition: transform 180ms ease, box-shadow 220ms ease;
}

.home-highlight-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(ellipse at var(--glow-x, 50%) var(--glow-y, 50%), rgba(var(--accent-rgb), 0.25), transparent 55%);
    opacity: 0.28;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.home-highlight-card:hover::before,
.home-highlight-card:focus-visible::before {
    opacity: 0.75;
}

.home-highlight-card:hover,
.home-highlight-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.78), 0 0 28px rgba(var(--accent-rgb),0.32);
    outline: none;
}

/* ============================================================
   FEATURED GAME
============================================================ */

.home-feature-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    position: relative;
    z-index: 1;
    width: 100%;
    pointer-events: auto;
    touch-action: manipulation;
}

.home-feature-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.04);
}

.home-feature-card .ccg-card__body {
    padding: 14px 14px 18px;
    display: grid;
    gap: 8px;
    background: linear-gradient(145deg, rgba(0,0,0,0.86), rgba(0,0,0,0.72));
}

.home-feature-card .ccg-card__title {
    margin: 0;
    letter-spacing: 0.1em;
    font-size: 1.02rem;
}

.home-feature-card .ccg-card__text {
    margin: 0;
    color: var(--ccg-text-soft);
}

/* ============================================================
   FEATURED VIDEO
============================================================ */

.home-feature-video {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(0,0,0,0.9), rgba(0,0,0,0.78));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 38px rgba(0,0,0,0.75), 0 0 24px rgba(var(--accent-rgb),0.2);
    position: relative;
    overflow: hidden;
}

.home-feature-video::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(var(--accent-rgb),0.18), transparent 50%);
    pointer-events: none;
}

.home-feature-video__thumb {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(0,0,0,0.7), rgba(0,0,0,0.45)), var(--home-hero-art-c64);
    background-size: cover;
    background-position: center;
    box-shadow: 0 14px 32px rgba(0,0,0,0.7), 0 0 18px rgba(var(--accent-rgb),0.22);
}

.home-feature-video__link {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: white;
    text-decoration: none;
    background: radial-gradient(circle at 50% 45%, rgba(0,0,0,0.32), rgba(0,0,0,0.78));
    backdrop-filter: none;
    transition: background 200ms ease, transform 200ms ease;
}

.home-feature-video__link:hover,
.home-feature-video__link:focus-visible {
    background: radial-gradient(circle at 50% 45%, rgba(var(--accent-rgb),0.25), rgba(0,0,0,0.78));
    transform: scale(1.01);
    outline: none;
}

.home-feature-video__cta {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: linear-gradient(135deg, rgba(var(--accent-rgb),0.4), rgba(var(--accent-rgb),0.2));
    box-shadow: var(--ccg-neon-main);
}

.home-feature-video__body {
    position: relative;
    display: grid;
    gap: 10px;
    align-content: center;
}

.home-feature-video__eyebrow {
    letter-spacing: 0.12em;
    font-size: 0.82rem;
    text-transform: uppercase;
    color: rgba(var(--accent-rgb),0.9);
}

.home-feature-video__title {
    font-size: 1.4rem;
    letter-spacing: 0.06em;
}

.home-feature-video__copy {
    color: var(--ccg-text-soft);
    line-height: 1.6;
}

/* ============================================================
   CURATED LINKS
============================================================ */

.home-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.home-link-tile {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 14px;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, rgba(0,0,0,0.88), rgba(0,0,0,0.7));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 14px 30px rgba(0,0,0,0.7), 0 0 18px rgba(var(--accent-rgb),0.18);
    overflow: hidden;
}

.home-link-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 20%, rgba(var(--accent-rgb),0.2), transparent 40%);
    opacity: 0.8;
    pointer-events: none;
}

.home-link-tile:hover,
.home-link-tile:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(0,0,0,0.78), 0 0 24px rgba(var(--accent-rgb),0.26);
    outline: none;
}

.home-link-tile__label {
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-link-tile__desc {
    color: var(--ccg-text-soft);
}

/* ============================================================
   BOTTOM CTA
============================================================ */

.home-bottom-cta {
    position: relative;
    margin: var(--ccg-section-gap) auto 8px;
    padding: 22px;
    border-radius: 18px;
    background: radial-gradient(circle at 20% 18%, rgba(var(--accent-rgb),0.22), transparent 42%),
                radial-gradient(circle at 80% 10%, rgba(255,255,255,0.16), transparent 38%),
                linear-gradient(135deg, rgba(0,0,0,0.9), rgba(0,0,0,0.76));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 22px 48px rgba(0,0,0,0.78), 0 0 22px rgba(var(--accent-rgb),0.28);
    overflow: hidden;
    isolation: isolate;
    contain: paint;
}

/* HOME CTA BEAM CLARITY LOCK
   Keep the beam inside its section so it never hazes the page. */
.home-bottom-cta__beam {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 35%, rgba(120,183,255,0.18), transparent 48%);
    filter: blur(18px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}

.home-bottom-cta__content {
    position: relative;
    display: grid;
    gap: 10px;
    text-align: center;
    align-items: center;
    justify-items: center;
    z-index: 1;
}

.home-bottom-cta__eyebrow {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: rgba(255, 105, 235, 0.9);
    text-shadow:
        0 0 10px rgba(255, 105, 235, 0.45),
        0 0 18px rgba(255, 105, 235, 0.25);
}

.home-bottom-cta__headline {
    font-size: clamp(1.3rem, 2.3vw, 1.8rem);
    letter-spacing: 0.08em;
    text-align: center;
    max-width: 760px;
}

.home-bottom-cta__copy {
    color: var(--ccg-text-soft);
    max-width: 740px;
    line-height: 1.68;
    text-align: center;
}

.home-bottom-cta__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    width: min(820px, 100%);
    margin-inline: auto;
}

.home-bottom-cta__actions .home-cta-btn {
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 16px 22px;
    letter-spacing: 0.14em;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.24);
    background: linear-gradient(145deg, rgba(22,28,44,0.94), rgba(10,14,26,0.84));
    color: #f2f6ff;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.1),
        0 12px 26px rgba(0,0,0,0.58),
        0 0 18px rgba(var(--accent-rgb),0.2);
}

.home-bottom-cta__actions .home-cta-btn.ccg-btn--neon {
    background: linear-gradient(145deg, rgba(var(--accent-rgb),0.64), rgba(16,20,34,0.88));
    color: #f5f8ff;
    text-shadow: 0 0 12px rgba(255,255,255,0.35);
    border-color: rgba(var(--accent-rgb),0.74);
}

.home-bottom-cta__actions .home-cta-btn.ccg-btn--neon::before {
    inset: -40%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.16), transparent 52%),
        radial-gradient(circle at 80% 70%, rgba(var(--accent-rgb),0.32), transparent 60%);
}

.home-bottom-cta__actions .home-cta-main {
    font-size: 0.96rem;
    padding-inline: 28px;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.16),
        0 14px 30px rgba(0,0,0,0.6),
        0 0 24px rgba(var(--accent-rgb),0.36);
}

html[data-ccg-mode="amiga"] .home-bottom-cta__actions .home-cta-main {
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.14),
        0 12px 26px rgba(0,0,0,0.6),
        0 0 16px rgba(var(--accent-rgb),0.24);
}

.home-bottom-cta__actions .home-cta-btn:hover,
.home-bottom-cta__actions .home-cta-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.18),
        0 16px 30px rgba(0,0,0,0.62),
        0 0 24px rgba(var(--accent-rgb),0.34);
}

.home-bottom-cta__actions .home-cta-main:hover,
.home-bottom-cta__actions .home-cta-main:focus-visible {
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.22),
        0 18px 34px rgba(0,0,0,0.64),
        0 0 30px rgba(var(--accent-rgb),0.42);
}

html[data-ccg-mode="amiga"] .home-bottom-cta__actions .home-cta-btn:hover,
html[data-ccg-mode="amiga"] .home-bottom-cta__actions .home-cta-btn:focus-visible,
html[data-ccg-mode="amiga"] .home-bottom-cta__actions .home-cta-main:hover,
html[data-ccg-mode="amiga"] .home-bottom-cta__actions .home-cta-main:focus-visible {
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.16),
        0 14px 28px rgba(0,0,0,0.62),
        0 0 18px rgba(var(--accent-rgb),0.24);
}

.home-bottom-cta__actions .home-cta-btn:active {
    transform: translateY(1px);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.14),
        0 10px 22px rgba(0,0,0,0.56),
        0 0 14px rgba(var(--accent-rgb),0.2);
}

.home-bottom-cta__return {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.home-return-top {
    padding: 12px 20px;
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: linear-gradient(145deg, rgba(8,12,22,0.92), rgba(4,6,12,0.78));
    color: rgba(220,230,255,0.9);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.08),
        0 8px 18px rgba(0,0,0,0.6);
}

.home-return-top:hover,
.home-return-top:focus-visible {
    border-color: rgba(var(--accent-rgb),0.4);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.12),
        0 12px 24px rgba(0,0,0,0.68),
        0 0 18px rgba(var(--accent-rgb),0.24);
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (min-width: 1024px) {
    .home-hero {
        padding-bottom: 6px;
    }

    .home-hero__frame {
        padding: clamp(20px, 3vw, 32px);
        min-height: clamp(360px, 54vh, 560px);
    }

    .home-section {
        margin: 18px 0;
    }

    .home-visitor-callout {
        margin: clamp(18px, 3vw, 32px) auto 4px;
    }

    .home-bottom-cta {
        margin: 18px auto 6px;
        padding: 18px;
    }

    .home-bottom-cta__return {
        margin-top: 10px;
    }
}

@media (max-width: 1024px) {
    .home-hero {
        margin-top: clamp(36px, 6vw, 78px);
        padding-top: 14px;
    }

    .home-hero__frame {
        padding: 24px;
    }

    .home-hero__layout {
        grid-template-columns: 1fr;
    }

    .home-feature-card,
    .home-feature-video {
        grid-template-columns: 1fr;
    }

    .home-feature-card__art,
    .home-feature-video__thumb {
        height: 240px;
    }
}

@media (max-width: 820px) {
    .home-hero__content {
        padding: 16px;
        gap: 14px;
    }

    .home-hero__frame,
    .home-hero__content {
        overflow: visible;
    }

    .home-hero__content::after,
    .home-hero__scanlines,
    .home-hero__visual {
        display: none;
    }

    .home-hero__bg {
        opacity: 0.2;
        animation: none;
        transition: none;
    }

    .home-hero__title {
        font-size: clamp(1.6rem, 4.8vw, 2.3rem);
        line-height: 1.1;
        word-break: break-word;
        text-shadow: none;
        animation: none;
    }

    .home-hero__tagline {
        margin-inline: auto;
    }

    .home-hero__actions {
        width: 100%;
        gap: 10px;
        justify-content: center;
    }
}

.ccg-mobile-lite .home-hero__content::after,
.ccg-mobile-lite .home-hero__scanlines,
.ccg-mobile-lite .home-hero__visual {
    display: none;
}

.ccg-mobile-lite .home-hero__bg {
    opacity: 0.2;
    animation: none;
    transition: none;
}

.ccg-mobile-lite .home-hero__title {
    font-size: clamp(1.6rem, 4.8vw, 2.3rem);
    line-height: 1.1;
    word-break: break-word;
    text-shadow: none;
    animation: none;
}

.ccg-mobile-lite .home-hero__content {
    padding: 16px;
    gap: 14px;
}

@media (max-width: 768px) {
    .home-hero {
        margin-top: clamp(34px, 6vw + 4px, 72px);
        padding-top: 12px;
        padding-bottom: 6px;
    }

    .ccg-main--home {
        padding-top: 14px;
    }

    .home-hero__frame {
        min-height: auto;
        padding: 16px;
    }

    .home-hero__mode-line {
        flex-direction: column;
        align-items: center;
    }

    .home-hero__actions {
        display: none;
    }

    .home-hero__mobile-cta {
        display: flex;
    }

    .home-hero-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .home-feature-video,
    .home-feature-card {
        padding: 16px;
    }

    .home-feature-card {
        padding: 0;
    }
}

@media (max-width: 540px) {
    .home-hero {
        margin-top: clamp(44px, 9vw + 8px, 96px);
        padding-top: 18px;
    }

    .ccg-main--home {
        padding-top: 16px;
    }

    .home-hero__frame {
        padding: 18px;
    }

    .home-hero__visual-plate {
        aspect-ratio: 16 / 11;
    }

    .home-hero__badge {
        width: 100%;
        justify-content: center;
    }

    .home-feature-card__title,
    .home-feature-video__title {
        font-size: 1.3rem;
    }

    .home-feature-video__thumb,
    .home-feature-card__art {
        height: 200px;
    }
}

@media (max-width: 520px) {
    .home-tagline {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }

    .home-tagline__text {
        justify-items: center;
    }

    .home-hero__actions {
        width: 100%;
    }

    .home-hero__cta {
        width: 100%;
        max-width: none;
        text-align: center;
    }
}

@media (max-width: 820px) {
    .home-featured-videos .home-video-card__media {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .home-featured-videos .home-featured-video-media {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
    }

    .home-featured-videos .home-featured-video-media > iframe,
    .home-featured-videos .home-video-card__iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        transform: none;
        display: block;
    }
}

/* ============================================================
   MOBILE HARD FIX — FEATURED VIDEO GEOMETRY
   Fixes iframe clipping + off-screen rendering
============================================================ */

@media (max-width: 820px) {

    /* 1. Let the featured video section span the viewport */
    .home-featured-videos {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    /* 2. Remove card side margins that cause clipping */
    .home-featured-videos .home-video-card {
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
    }

    /* 3. Ensure the media container is true full-width */
    .home-featured-videos .home-video-card__media {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    /* 4. Lock the video viewport */
    .home-featured-videos .home-featured-video-media {
        width: 100%;
        aspect-ratio: 16 / 9;
        position: relative;
        overflow: hidden;
    }

    /* 5. Hard-pin the iframe */
    .home-featured-videos iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        max-width: 100%;
        display: block;
    }
}

/* ============================================================
   MOBILE TEXT TIGHTENING — VIDEO METADATA
============================================================ */

@media (max-width: 820px) {
    .home-video-card .ccg-card__text {
        word-spacing: normal;
        letter-spacing: 0.04em;
        line-height: 1.4;
    }
}

/* ============================================================
   OMEGA POLISH — FEATURED GAMEPLAY VIDEOS (VISUAL ONLY)
   No logic changes • No layout breakage • Safe override layer
============================================================ */

/* SECTION HEADER — MAKE IT FEEL FEATURED */
.home-featured-videos__copy {
    text-align: center;
    padding-bottom: 10px;
}

.home-featured-videos__title {
    font-size: clamp(1.35rem, 2.6vw, 1.6rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 6px;
    text-shadow:
        0 0 18px rgba(var(--accent-rgb), 0.55),
        0 0 32px rgba(var(--accent-rgb), 0.35);
}

.home-featured-videos__text {
    max-width: 720px;
    margin-inline: auto;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

/* CARD TITLE — CENTER + PROMOTE */
.home-video-card .ccg-card__title {
    text-align: center;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* METADATA — DE-EMPHASISE */
.home-video-card .ccg-card__label,
.home-video-card .ccg-card__text {
    text-align: center;
    opacity: 0.75;
}

/* PLATFORM IDENTITY — MAKE IT OBVIOUS */
.home-featured-videos .home-video-card:nth-child(1) {
    --home-video-accent: rgba(0, 210, 255, 0.45);
    box-shadow:
        0 22px 48px rgba(0,0,0,0.78),
        0 0 32px rgba(0, 210, 255, 0.55);
}

.home-featured-videos .home-video-card:nth-child(2) {
    --home-video-accent: rgba(255, 80, 220, 0.38);
    box-shadow:
        0 22px 48px rgba(0,0,0,0.78),
        0 0 32px rgba(255, 80, 220, 0.45);
}

/* BUTTON ROW — BALANCED & PREMIUM */
.home-video-card__links {
    justify-content: center;
    margin-top: 8px;
}

.home-video-card__links .ccg-link {
    min-width: 160px;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    box-shadow:
        0 10px 26px rgba(0,0,0,0.85),
        0 0 22px rgba(var(--accent-rgb), 0.45);
}

.home-video-card__links .ccg-link:hover,
.home-video-card__links .ccg-link:focus-visible {
    transform: translateY(-2px);
    box-shadow:
        0 18px 42px rgba(0,0,0,0.9),
        0 0 42px rgba(var(--accent-rgb), 0.75);
}

/* MOBILE — STACK CLEANLY */
@media (max-width: 820px) {
    .home-featured-videos__title {
        font-size: 1.25rem;
    }

    .home-video-card .ccg-card__title {
        font-size: 1rem;
    }

    .home-video-card__links {
        flex-direction: column;
    }

    .home-video-card__links .ccg-link {
        width: 100%;
    }
}

/* ============================================================
   OMEGA WOW — FEATURED GAMEPLAY VIDEOS (PHASE 2)
   Cinematic depth • Zero layout risk • Append-only
============================================================ */

/* SECTION SPOTLIGHT — SUBTLE ENERGY FIELD */
.home-featured-videos {
    position: relative;
    overflow: hidden;
}

.home-featured-videos::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 30% 25%, rgba(var(--accent-rgb), 0.18), transparent 45%),
        radial-gradient(circle at 70% 65%, rgba(255,255,255,0.08), transparent 40%);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

/* ENSURE CONTENT STAYS ABOVE */
.home-featured-videos > * {
    position: relative;
    z-index: 1;
}

/* CARD FRAME — PREMIUM EDGE */
.home-featured-videos .home-video-card {
    position: relative;
}

.home-featured-videos .home-video-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow:
        inset 0 0 0 1px rgba(var(--accent-rgb), 0.22),
        inset 0 0 18px rgba(var(--accent-rgb), 0.18);
    opacity: 0.65;
}

/* THUMBNAIL — MICRO-CONTRAST POLISH */
.home-video-card__thumb {
    filter: saturate(1.12) contrast(1.06);
    transition: filter 240ms ease;
}

/* Keep a single, consistent "Collections" label on all viewport sizes. */
.home-collections .collections-short {
    display: none;
}

/* DESKTOP HOVER — ENERGY LIFT (SAFE) */
@media (hover: hover) and (pointer: fine) {
    .home-featured-videos .home-video-card:hover {
        transform: translateY(-3px);
        box-shadow:
            0 28px 56px rgba(0,0,0,0.82),
            0 0 48px var(--home-video-accent);
    }

    .home-featured-videos .home-video-card:hover .home-video-card__thumb {
        filter: saturate(1.18) contrast(1.1);
    }
}

/* PLATFORM GLOW BREATHING — VERY SUBTLE */
@media (prefers-reduced-motion: no-preference) {
    .home-featured-videos .home-video-card:nth-child(1),
    .home-featured-videos .home-video-card:nth-child(2) {
        animation: homeFeaturedGlow 7.5s ease-in-out infinite;
    }
}

@keyframes homeFeaturedGlow {
    0%, 100% {
        box-shadow:
            0 22px 48px rgba(0,0,0,0.78),
            0 0 28px var(--home-video-accent);
    }
    50% {
        box-shadow:
            0 26px 54px rgba(0,0,0,0.82),
            0 0 42px var(--home-video-accent);
    }
}

/* MOBILE — NO MOTION, NO LIFT */
@media (max-width: 820px) {
    .home-featured-videos::before,
    .home-featured-videos .home-video-card::after {
        display: none;
    }
}

/* ============================================================
   MOBILE UX COMPRESSION + HERO POLISH
============================================================ */

@media (max-width: 768px) {
    .home-hero__content {
        padding: 14px;
        gap: 12px;
    }

    .ccg-page--home {
        min-height: auto;
    }

    .home-hero__frame {
        min-height: auto;
    }

    .home-hero__mobile-cta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 6px;
    }

    .home-discovery-strip {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        width: min(420px, 100%);
        padding: 10px;
        border-radius: 16px;
        border: 1px solid rgba(var(--accent-rgb), 0.38);
        background:
            linear-gradient(150deg, rgba(12, 18, 32, 0.78), rgba(6, 10, 20, 0.66)),
            radial-gradient(circle at 15% 20%, rgba(var(--accent-rgb), 0.22), transparent 55%);
        box-shadow:
            0 12px 26px rgba(0, 0, 0, 0.65),
            0 0 18px rgba(var(--accent-rgb), 0.3);
        backdrop-filter: blur(14px) saturate(1.2);
        -webkit-backdrop-filter: blur(14px) saturate(1.2);
    }

    .home-discovery-strip__link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 48px;
        padding: 10px 12px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: #f4f7ff;
        text-decoration: none;
        font-size: 0.82rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        text-align: center;
        background: linear-gradient(150deg, rgba(10, 16, 30, 0.85), rgba(6, 10, 20, 0.68));
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
        transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    }

    .home-discovery-strip__link:active {
        transform: translateY(1px) scale(0.98);
    }

    .home-discovery-strip__link:focus-visible {
        outline: 2px solid rgba(var(--accent-rgb), 0.6);
        outline-offset: 2px;
    }

    .home-discovery-strip__icon {
        font-size: 0.95rem;
        line-height: 1;
        filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.35));
    }

    .home-discovery-strip__label {
        line-height: 1.2;
    }

    .home-hero__tagline {
        font-size: 1rem;
        padding: 10px 12px;
    }

    .home-hero__frame::after {
        content: "";
        position: absolute;
        inset: 10px;
        border-radius: 20px;
        background: linear-gradient(120deg, transparent, rgba(255,255,255,0.14), transparent);
        opacity: 0;
        animation: homeHeroShimmer 1.6s ease-out 1;
        pointer-events: none;
    }

    .home-hero__bg {
        transform: translate3d(0, var(--home-hero-parallax, 0px), 0) scale(1.04);
    }

    .home-hero__mode-pill {
        animation: homeModePulse 3.4s ease-in-out infinite;
    }

    .home-section {
        margin: 18px 0;
    }

    .home-section__header {
        margin-bottom: 10px;
    }

    .home-highlights-grid {
        gap: 12px;
    }

    .home-highlight-card {
        min-height: 150px;
    }

    .home-featured-videos {
        margin-top: 14px;
        padding: 12px;
        gap: 12px;
    }

    .home-featured-videos__copy {
        padding-bottom: 6px;
    }

    .home-featured-videos__text {
        font-size: 0.88rem;
    }

    .home-visitor-callout {
        margin: 16px auto 2px;
    }

    .home-visitor-callout__inner {
        padding: 14px 14px;
    }

    .ccg-main--home + .ccg-omega-divider {
        margin: 0 auto;
    }

    .home-cta-btn--collections {
        font-size: 0.9rem;
        letter-spacing: 0.08em;
        padding-inline: 12px;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .home-visitor-callout__headline {
        margin-top: 6px;
        letter-spacing: 0.16em;
    }

    .ccg-omega-divider {
        margin: 8px auto;
    }

    .home-bottom-cta + .ccg-omega-divider,
    .home-visitor-callout + .ccg-omega-divider {
        display: none;
    }

    html[data-ccg-page="home"] .ccg-footer {
        margin-top: 4px;
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .ccg-footer__mini-stats {
        display: flex;
    }
}

@media (max-width: 480px) {
    .home-discovery-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: min(360px, 100%);
        padding: 10px;
    }

    .home-discovery-strip__link:last-child {
        grid-column: 1 / -1;
    }

    .home-discovery-strip__link.home-collections {
        font-size: 0.78rem;
        letter-spacing: 0.08em;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .home-discovery-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        width: min(440px, 100%);
        padding: 12px;
    }
}
html[data-ccg-page="home"] body#top {
    background: linear-gradient(135deg, #05070d 0%, #050812 48%, #05070d 100%);
}

/* =========================================
   HOME CTA UPGRADE (MATCH COMPOSER STYLE)
   ========================================= */

.home-cta-upgrade {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 40px 0 30px; /* reduced bottom spacing */
}

.cta-card {
  background: rgba(5, 15, 30, 0.85);
  border: 1px solid rgba(0, 200, 255, 0.25);
  padding: 22px;
  text-align: center;
  transition: all 0.25s ease;
}

.cta-card:hover {
  border-color: rgba(0, 200, 255, 0.6);
  box-shadow: 0 0 18px rgba(0, 200, 255, 0.2);
}

.cta-text {
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.5;
  color: #cfeaff;
}

/* Ensure buttons match composer pages */
.home-cta-upgrade .ccg-btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.ccg-btn-blue {
  border: 1px solid #00d0ff;
  color: #00d0ff;
}

.ccg-btn-blue:hover {
  background: rgba(0, 208, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 208, 255, 0.4);
}

.ccg-btn-red {
  border: 1px solid #ff2d55;
  color: #ff2d55;
}

.ccg-btn-red:hover {
  background: rgba(255, 45, 85, 0.1);
  box-shadow: 0 0 10px rgba(255, 45, 85, 0.4);
}

/* MOBILE */
@media (max-width: 768px) {
  .home-cta-upgrade {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* =========================================
   🎯 CONTROLLED SPACING (NOT OVER-TIGHT)
   ========================================= */

/* Reduce ONLY large section gaps */
.home-section,
section {
  margin-top: 60px !important;
  margin-bottom: 60px !important;
}

/* Hero stays premium */
.hero-section {
  margin-bottom: 50px !important;
}

/* Reduce inner padding slightly */
.section-inner {
  padding-top: 30px !important;
  padding-bottom: 30px !important;
}

/* Tighten text blocks slightly */
.hero-section p {
  margin-bottom: 18px;
}

/* =========================================
   🎯 CTA GROUPING (MAJOR UX WIN)
   ========================================= */

.hero-buttons,
.cta-row,
.button-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 25px;
}

/* Ensure buttons feel grouped */
.hero-buttons a,
.hero-buttons button {
  min-width: 180px;
}

/* =========================================
   🎯 BUTTON HIERARCHY (SUBTLE, NOT LOUD)
   ========================================= */

/* PRIMARY (Random / Browse) */
.btn-primary-omega {
  background: linear-gradient(135deg, #00e6ff, #0088ff);
  box-shadow: 0 0 12px rgba(0,255,255,0.5);
  transition: all 0.2s ease;
}

.btn-primary-omega:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 20px rgba(0,255,255,0.8);
}

/* SECONDARY */
.btn-secondary-omega {
  opacity: 0.9;
  transition: all 0.2s ease;
}

.btn-secondary-omega:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* UTILITY (Support / Subscribe) */
.btn-utility-omega {
  opacity: 0.75;
  font-size: 0.9rem;
}

/* =========================================
   🎯 FEATURED CARDS — ADD ENERGY
   ========================================= */

.featured-card,
.game-card {
  transition: all 0.25s ease;
}

.featured-card:hover,
.game-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 18px rgba(0,255,255,0.35);
}

/* =========================================
   🎯 SECTION FLOW (REMOVE “FLOATING GAPS”)
   ========================================= */

.section-divider {
  height: 1px;
  width: 70%;
  margin: 45px auto;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0,255,255,0.5),
    transparent
  );
}

/* =========================================
   🎯 MID-PAGE CTA IMPROVEMENT
   ========================================= */

/* “Explore the games” section buttons */
.home-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Slight lift so they feel clickable */
.home-cta-buttons a {
  transition: all 0.2s ease;
}

.home-cta-buttons a:hover {
  transform: translateY(-2px);
}

/* =========================================
   🎯 FOOTER CTA — LESS DETACHED
   ========================================= */

.footer-cta {
  margin-top: 40px !important;
}

/* =========================================
   📱 MOBILE REFINEMENT (IMPORTANT)
   ========================================= */

@media (max-width: 768px) {

  .home-section,
  section {
    margin-top: 40px !important;
    margin-bottom: 40px !important;
  }

  .hero-buttons,
  .cta-row {
    gap: 8px;
  }

}
