/* ============================================================
   CCG UI REGRESSION POLISH — 2026-08-07
   ------------------------------------------------------------
   Reported desktop/mobile fixes plus scoped home-page polish.
============================================================ */

/* ------------------------------------------------------------
   BUTTON HOVER — KEEP LABELS VISIBLE, USE THE STRIKING CTA CUE
   Existing home blue/red CTAs are intentionally left untouched.
------------------------------------------------------------ */

@media (hover: hover) and (pointer: fine) {
    body[data-ccg-mode="c64"] .ccg-btn:not(.ccg-btn-blue):not(.ccg-btn-red):hover,
    body[data-ccg-mode="c64"] .ccg-btn:not(.ccg-btn-blue):not(.ccg-btn-red):focus-visible {
        color: #eaffff !important;
        border-color: rgba(0, 208, 255, 0.96) !important;
        background:
            linear-gradient(135deg, rgba(0, 208, 255, 0.20), rgba(0, 208, 255, 0.08)) !important;
        box-shadow:
            0 0 0 1px rgba(0, 208, 255, 0.30),
            0 0 12px rgba(0, 208, 255, 0.46),
            0 10px 26px rgba(0, 0, 0, 0.52) !important;
        text-shadow: 0 0 8px rgba(0, 208, 255, 0.52) !important;
    }

    body[data-ccg-mode="amiga"] .ccg-btn:not(.ccg-btn-blue):not(.ccg-btn-red):hover,
    body[data-ccg-mode="amiga"] .ccg-btn:not(.ccg-btn-blue):not(.ccg-btn-red):focus-visible {
        color: #15101d !important;
        border-color: #f3f5fa !important;
        background:
            linear-gradient(90deg, rgba(88, 232, 255, 0.34), rgba(255, 79, 189, 0.40)),
            linear-gradient(180deg, #eef1f5, #aab3c0) !important;
        box-shadow:
            inset 1px 1px 0 rgba(255, 255, 255, 0.86),
            inset -1px -1px 0 rgba(25, 29, 40, 0.68),
            0 0 0 1px rgba(255, 79, 189, 0.34),
            0 0 16px rgba(255, 79, 189, 0.42),
            0 10px 24px rgba(0, 0, 0, 0.48) !important;
        text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.62) !important;
    }

    body[data-ccg-mode="c64"] .ccg-btn:not(.ccg-btn-blue):not(.ccg-btn-red):hover :where(span, strong, small),
    body[data-ccg-mode="c64"] .ccg-btn:not(.ccg-btn-blue):not(.ccg-btn-red):focus-visible :where(span, strong, small),
    body[data-ccg-mode="amiga"] .ccg-btn:not(.ccg-btn-blue):not(.ccg-btn-red):hover :where(span, strong, small),
    body[data-ccg-mode="amiga"] .ccg-btn:not(.ccg-btn-blue):not(.ccg-btn-red):focus-visible :where(span, strong, small) {
        color: inherit !important;
    }
}

/* ------------------------------------------------------------
   MORE/MODE SHIMMER CONTAINMENT
------------------------------------------------------------ */

.ccg-header :is(.ccg-nav__link, .ccg-nav__more-toggle, .ccg-nav-toggle, .ccg-mode-toggle) {
    overflow: hidden !important;
    isolation: isolate;
}

.ccg-nav__more-toggle::before,
.ccg-nav-toggle::before {
    inset: 0 !important;
    max-width: 100% !important;
}

/* ------------------------------------------------------------
   PUBLISHER CARDS — NEVER BLEED INTO A NEIGHBOURING GRID CELL
------------------------------------------------------------ */

.ccg-publishers-main,
.ccg-publishers-section,
.ccg-publisher-grid,
.ccg-publisher-grid--featured {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.ccg-publisher-grid,
.ccg-publisher-grid--featured {
    width: 100% !important;
    overflow: hidden !important;
}

.ccg-publisher-grid > *,
.ccg-publisher-card,
.ccg-publisher-card--has-logo {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.ccg-publisher-card__logo,
.ccg-publisher-grid--featured .ccg-publisher-card__logo {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    align-self: stretch !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.ccg-publisher-card__logo img {
    width: auto !important;
    max-width: 92% !important;
}

.ccg-publisher-card__name,
.ccg-publisher-card__meta,
.ccg-publisher-card__count {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
    .ccg-publisher-grid--featured {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .ccg-publisher-grid,
    .ccg-publisher-grid--featured {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 500px) {
    .ccg-publisher-grid,
    .ccg-publisher-grid--featured {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .ccg-publisher-card__logo,
    .ccg-publisher-grid--featured .ccg-publisher-card__logo {
        margin-left: -16px !important;
        margin-right: -16px !important;
    }
}

/* ------------------------------------------------------------
   ZZAP TOP PROGRESS — GUARANTEE IT READS AS AN OVERLAY
------------------------------------------------------------ */

.zzap-loading:not([hidden]) {
    box-sizing: border-box !important;
    inset: 0 0 auto !important;
    z-index: 2147483000 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.zzap-loading--painted .zzap-loading__track {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 12px rgba(var(--accent-rgb), 0.28);
}

/* ------------------------------------------------------------
   HOME — STREAMLINED DISCOVERY HIERARCHY
------------------------------------------------------------ */

html[data-ccg-page="home"] .home-hero__actions--streamlined {
    display: flex !important;
    width: min(560px, 100%);
    gap: 14px;
    margin: 4px auto 0;
}

html[data-ccg-page="home"] .home-hero__actions--streamlined .home-hero__cta {
    flex: 1 1 220px;
    max-width: none;
}

html[data-ccg-page="home"] .home-section--streamlined {
    width: min(1120px, calc(100% - 24px));
    margin-inline: auto;
}

html[data-ccg-page="home"] .home-section__header--focused {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

html[data-ccg-page="home"] .home-section__eyebrow,
html[data-ccg-page="home"] .home-highlight-card__eyebrow {
    display: block;
    margin: 0 0 7px;
    color: rgba(var(--accent-rgb), 0.92);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

html[data-ccg-page="home"] .home-section__intro {
    max-width: 620px;
    margin: 8px auto 0;
    color: rgba(226, 235, 255, 0.72);
    font-size: 0.94rem;
    line-height: 1.55;
}

html[data-ccg-page="home"] .home-highlights-grid--focused {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
}

html[data-ccg-page="home"] .home-highlight-card--feature {
    position: relative;
    min-height: 238px;
    overflow: hidden;
    border: 1px solid rgba(var(--accent-rgb), 0.30);
    background:
        linear-gradient(155deg, rgba(var(--accent-rgb), 0.14), transparent 48%),
        radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.08), transparent 30%),
        linear-gradient(145deg, rgba(3, 8, 20, 0.97), rgba(6, 13, 29, 0.88));
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.62),
        0 0 22px rgba(var(--accent-rgb), 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.035);
    transform: translateZ(0);
}

html[data-ccg-page="home"] .home-highlight-card--feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.00), rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.00));
    transform: translateX(-110%);
    transition: transform 520ms ease;
    pointer-events: none;
}

html[data-ccg-page="home"] .home-highlight-card--feature .ccg-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: clamp(22px, 3vw, 30px);
}

html[data-ccg-page="home"] .home-highlight-card--feature .ccg-card__title {
    margin: 0;
    font-size: clamp(1.08rem, 1.8vw, 1.34rem);
    letter-spacing: 0.06em;
}

html[data-ccg-page="home"] .home-highlight-card--feature .ccg-card__text {
    margin: 0;
    color: rgba(232, 238, 255, 0.78);
    line-height: 1.55;
}

html[data-ccg-page="home"] .home-highlight-card__cta {
    display: inline-block;
    margin-top: 8px;
    color: rgba(244, 249, 255, 0.94);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
    html[data-ccg-page="home"] .home-highlight-card--feature:hover,
    html[data-ccg-page="home"] .home-highlight-card--feature:focus-visible {
        transform: translateY(-4px);
        border-color: rgba(var(--accent-rgb), 0.72);
        box-shadow:
            0 24px 48px rgba(0, 0, 0, 0.72),
            0 0 30px rgba(var(--accent-rgb), 0.30),
            inset 0 0 0 1px rgba(255, 255, 255, 0.06);
        outline: none;
    }

    html[data-ccg-page="home"] .home-highlight-card--feature:hover::before,
    html[data-ccg-page="home"] .home-highlight-card--feature:focus-visible::before {
        transform: translateX(110%);
    }
}

html[data-ccg-page="home"] .home-featured-videos {
    margin-top: clamp(28px, 4vw, 44px);
}

/* ------------------------------------------------------------
   HOME — COMPACT SUPPORT STRIP
------------------------------------------------------------ */

html[data-ccg-page="home"] .home-cta-upgrade--streamlined {
    width: min(1060px, calc(100% - 24px));
    margin: clamp(26px, 5vw, 52px) auto;
    padding: clamp(20px, 3vw, 30px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    background:
        radial-gradient(circle at 12% 20%, rgba(var(--accent-rgb), 0.16), transparent 42%),
        linear-gradient(135deg, rgba(4, 9, 22, 0.94), rgba(8, 14, 30, 0.88));
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.58),
        0 0 24px rgba(var(--accent-rgb), 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

html[data-ccg-page="home"] .home-support-strip__title {
    margin: 0 0 6px;
    color: #f2f6ff;
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

html[data-ccg-page="home"] .home-support-strip__text {
    max-width: 680px;
    margin: 0;
    color: rgba(230, 237, 255, 0.74);
    line-height: 1.5;
}

html[data-ccg-page="home"] .home-support-strip__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

html[data-ccg-page="home"] .home-support-strip__actions .ccg-btn {
    min-width: 138px;
    justify-content: center;
}

/* ------------------------------------------------------------
   HOME — SIGNATURE CALLOUT, NOW A SLIM DIVIDER
------------------------------------------------------------ */

html[data-ccg-page="home"] .home-visitor-callout--compact {
    width: min(920px, calc(100% - 24px));
    margin: 12px auto clamp(18px, 4vw, 34px);
    padding: 0;
}

html[data-ccg-page="home"] .home-visitor-callout--compact .home-visitor-callout__inner {
    padding: clamp(14px, 2vw, 20px) clamp(16px, 4vw, 30px);
    border-radius: 10px;
}

html[data-ccg-page="home"] .home-visitor-callout--compact .home-visitor-callout__kicker {
    font-size: 0.70rem;
    letter-spacing: 0.18em;
}

html[data-ccg-page="home"] .home-visitor-callout--compact .home-visitor-callout__headline {
    margin: 5px 0 0;
    font-size: clamp(1.12rem, 3vw, 1.72rem);
    line-height: 1.25;
    letter-spacing: 0.11em;
}

/* ------------------------------------------------------------
   HOME — COMPACT FOOTER, NO DIRECTORY-LIKE BUTTON WALL
------------------------------------------------------------ */

html[data-ccg-page="home"] .ccg-footer--home-compact {
    width: min(980px, calc(100% - 24px));
    max-width: 980px;
    margin-inline: auto;
    padding: clamp(18px, 3vw, 26px);
    text-align: center;
}

html[data-ccg-page="home"] .ccg-footer-home-brand {
    color: rgba(244, 248, 255, 0.94);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

html[data-ccg-page="home"] .ccg-footer-home-summary {
    max-width: 680px;
    margin: 8px auto 12px;
    color: rgba(228, 235, 255, 0.62);
    font-size: 0.78rem;
    line-height: 1.5;
}

.ccg-footer-mini-nav {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    width: 100%;
    margin: 12px auto 8px;
}

.ccg-footer-mini-nav a {
    color: rgba(230, 237, 255, 0.72) !important;
    font-size: 0.72rem;
    line-height: 1.35;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 140ms ease, border-color 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .ccg-footer-mini-nav a:hover,
    .ccg-footer-mini-nav a:focus-visible {
        color: #fff !important;
        border-bottom-color: rgba(var(--accent-rgb), 0.72);
        outline: none;
    }
}

html[data-ccg-page="home"] .ccg-footer__counter-wrap {
    margin: 8px auto;
}

html[data-ccg-page="home"] .ccg-footer__text {
    margin-top: 8px;
    font-size: 0.70rem;
    line-height: 1.45;
    color: rgba(225, 232, 252, 0.52);
}

/* ------------------------------------------------------------
   HOME — MOBILE DENSITY
------------------------------------------------------------ */

@media (max-width: 820px) {
    html[data-ccg-page="home"] .home-hero--streamlined .home-hero__frame {
        min-height: auto;
        padding: 14px 10px 18px;
    }

    html[data-ccg-page="home"] .home-hero--streamlined .home-hero__content {
        padding: 20px 14px;
    }

    html[data-ccg-page="home"] .home-hero__actions--streamlined {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    html[data-ccg-page="home"] .home-hero__actions--streamlined .home-hero__cta {
        min-width: 0;
        width: 100%;
        max-width: none;
        min-height: 48px;
        padding: 12px 10px;
        font-size: 0.76rem;
        letter-spacing: 0.09em;
    }

    html[data-ccg-page="home"] .home-highlights-grid--focused {
        grid-template-columns: 1fr;
    }

    html[data-ccg-page="home"] .home-highlight-card--feature {
        min-height: 0;
    }

    html[data-ccg-page="home"] .home-highlight-card--feature .ccg-card__body {
        padding: 22px 18px;
    }

    html[data-ccg-page="home"] .home-cta-upgrade--streamlined {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }

    html[data-ccg-page="home"] .home-support-strip__actions {
        justify-content: center;
    }

    html[data-ccg-page="home"] .home-support-strip__actions .ccg-btn {
        flex: 1 1 140px;
        min-width: 0;
    }

    html[data-ccg-page="home"] .home-visitor-callout--compact {
        margin-top: 4px;
    }

    .ccg-footer-mini-nav {
        gap: 8px 12px;
    }
}

@media (max-width: 480px) {
    html[data-ccg-page="home"] .home-hero__actions--streamlined {
        grid-template-columns: 1fr;
    }

    html[data-ccg-page="home"] .home-section--streamlined,
    html[data-ccg-page="home"] .home-cta-upgrade--streamlined,
    html[data-ccg-page="home"] .home-visitor-callout--compact,
    html[data-ccg-page="home"] .ccg-footer--home-compact {
        width: calc(100% - 16px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-ccg-page="home"] .home-highlight-card--feature,
    html[data-ccg-page="home"] .home-highlight-card--feature::before,
    .ccg-footer-mini-nav a {
        transition: none;
    }
}

/* ============================================================
   HOME — COMPACT OMEGA FLOW
   ------------------------------------------------------------
   A single final density layer for the home hero, discovery
   routes, support prompt, visitor control and floating dock.
============================================================ */

html[data-ccg-page="home"] .ccg-main--home {
    padding-top: 8px !important;
    padding-bottom: 18px !important;
}

html[data-ccg-page="home"] .ccg-main--home > section {
    margin-block: clamp(10px, 1.6vw, 20px) !important;
}

html[data-ccg-page="home"] .home-hero--streamlined {
    margin-top: 8px !important;
    margin-bottom: 6px !important;
    padding-block: 6px;
}

html[data-ccg-page="home"] .home-hero--streamlined .home-hero__frame {
    width: min(1120px, calc(100% - 20px));
    min-height: clamp(300px, 42vh, 410px);
    padding: clamp(14px, 2vw, 22px);
    border-radius: 18px;
}

html[data-ccg-page="home"] .home-hero--streamlined .home-hero__content {
    gap: 12px;
    padding: clamp(16px, 2.2vw, 24px);
    border-radius: 14px;
}

html[data-ccg-page="home"] .home-hero--streamlined .home-hero__content::before {
    inset: 8px;
    border-radius: 10px;
}

html[data-ccg-page="home"] .home-hero--streamlined .home-hero__content::after {
    inset: 4px;
}

html[data-ccg-page="home"] .home-hero--streamlined .home-hero__copy {
    gap: 10px;
    max-width: min(820px, 100%);
}

html[data-ccg-page="home"] .home-hero--streamlined .home-hero__mode-pill {
    padding: 8px 13px;
    font-size: 0.78rem;
}

html[data-ccg-page="home"] .home-hero--streamlined .home-hero__mode-line::after {
    bottom: -4px;
    height: 2px;
}

html[data-ccg-page="home"] .home-hero--streamlined .home-hero__title {
    max-width: 820px;
    margin: 4px auto;
    font-size: clamp(2rem, 4.2vw, 3.35rem);
    line-height: 1.02;
    letter-spacing: 0.075em;
}

html[data-ccg-page="home"] .home-hero--streamlined .home-hero__tagline {
    max-width: 760px;
    margin: 0 auto;
    padding: 9px 13px;
    border-radius: 8px;
    font-size: clamp(0.88rem, 1.4vw, 1rem);
    line-height: 1.42;
}

html[data-ccg-page="home"] .home-hero__actions--streamlined {
    width: min(500px, 100%);
    gap: 9px;
    margin-top: 2px;
}

html[data-ccg-page="home"] .home-hero__actions--streamlined .home-hero__cta {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 0.73rem;
    letter-spacing: 0.09em;
}

html[data-ccg-page="home"] .ccg-omega-divider {
    margin-block: 8px;
    min-height: 20px;
}

html[data-ccg-page="home"] .home-section--streamlined {
    width: min(1120px, calc(100% - 20px));
}

html[data-ccg-page="home"] .home-section__header--focused {
    margin-bottom: 12px;
}

html[data-ccg-page="home"] .home-section__header--focused .home-section__eyebrow {
    margin-bottom: 4px;
}

html[data-ccg-page="home"] .home-section__header--focused .home-section__title {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.12;
}

html[data-ccg-page="home"] .home-section__header--focused .home-section__intro {
    margin-top: 6px;
    font-size: 0.86rem;
    line-height: 1.4;
}

html[data-ccg-page="home"] .home-section__header--focused .home-section__divider {
    width: min(520px, 80%);
    margin: 9px auto 0;
}

html[data-ccg-page="home"] .home-explore-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

html[data-ccg-page="home"] .home-explore-grid .home-highlight-card--feature {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    min-height: 148px;
    border-radius: 6px;
}

html[data-ccg-page="home"] .home-highlight-card__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-left: 12px;
    border: 1px solid rgba(var(--accent-rgb), 0.56);
    background:
        linear-gradient(145deg, rgba(var(--accent-rgb), 0.18), rgba(2, 8, 18, 0.86));
    color: rgba(222, 248, 255, 0.96);
    box-shadow:
        inset 0 0 12px rgba(var(--accent-rgb), 0.12),
        0 0 16px rgba(var(--accent-rgb), 0.20);
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

html[data-ccg-page="home"] .home-highlight-card__icon svg {
    width: 24px;
    height: 24px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html[data-ccg-page="home"] .home-explore-grid .home-highlight-card--feature .ccg-card__body {
    min-height: 0;
    justify-content: center;
    gap: 4px;
    padding: 14px 14px 14px 8px;
}

html[data-ccg-page="home"] .home-explore-grid .home-highlight-card__eyebrow {
    margin-bottom: 1px;
    font-size: 0.62rem;
    letter-spacing: 0.13em;
}

html[data-ccg-page="home"] .home-explore-grid .home-highlight-card--feature .ccg-card__title {
    font-size: clamp(0.96rem, 1.45vw, 1.16rem);
    line-height: 1.18;
}

html[data-ccg-page="home"] .home-explore-grid .home-highlight-card--feature .ccg-card__text {
    font-size: 0.76rem;
    line-height: 1.4;
}

html[data-ccg-page="home"] .home-explore-grid .home-highlight-card__cta {
    justify-self: start;
    margin-top: 4px;
    padding: 5px 8px;
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    background: rgba(var(--accent-rgb), 0.08);
    font-size: 0.64rem;
    letter-spacing: 0.07em;
}

html[data-ccg-page="home"] .home-cta-upgrade--streamlined {
    width: min(1060px, calc(100% - 20px));
    margin: 14px auto !important;
    padding: 15px 18px;
    gap: 18px;
}

html[data-ccg-page="home"] .home-support-strip__title {
    margin-bottom: 3px;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
}

html[data-ccg-page="home"] .home-support-strip__text {
    font-size: 0.82rem;
    line-height: 1.4;
}

html[data-ccg-page="home"] .home-support-strip__actions {
    gap: 7px;
}

html[data-ccg-page="home"] .home-support-strip__actions .ccg-btn {
    min-width: 128px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 3px;
    font-size: 0.70rem;
}

html[data-ccg-page="home"] .home-support-strip__actions .ccg-btn::before {
    margin-right: 6px;
    font-size: 0.82rem;
}

html[data-ccg-page="home"] .home-support-strip__actions .ccg-btn-blue::before {
    content: "♥";
}

html[data-ccg-page="home"] .home-support-strip__actions .ccg-btn-red::before {
    content: "▶";
}

html[data-ccg-page="home"] .home-visitor-callout--compact {
    width: min(780px, calc(100% - 20px));
    margin: 6px auto 12px !important;
}

html[data-ccg-page="home"] .home-visitor-callout--compact .home-visitor-callout__inner {
    padding: 10px 14px;
    border-radius: 6px;
}

html[data-ccg-page="home"] .home-visitor-callout__kicker {
    font-size: 0.58rem !important;
}

html[data-ccg-page="home"] .home-visitor-callout__headline--interactive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    max-width: 100%;
    margin: 3px auto 0 !important;
    padding: 6px 12px;
    border: 1px solid transparent;
    background: transparent;
    color: #eaf8ff;
    cursor: pointer;
    animation: homeStayPrompt 3.8s ease-in-out infinite;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

html[data-ccg-page="home"] .home-visitor-callout__headline--interactive::before {
    content: "▶";
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 1px solid rgba(var(--accent-rgb), 0.55);
    color: rgba(var(--accent-rgb), 0.98);
    font-size: 0.58rem;
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.28);
}

html[data-ccg-page="home"] .home-visitor-callout__headline--interactive:hover,
html[data-ccg-page="home"] .home-visitor-callout__headline--interactive:focus-visible {
    border-color: rgba(var(--accent-rgb), 0.48);
    background: rgba(var(--accent-rgb), 0.08);
    outline: none;
    transform: translateY(-1px);
}

html[data-ccg-page="home"] .home-visitor-callout__headline--interactive.home-visitor-callout__headline--pulse {
    animation: homeVisitorPulse 1.8s ease-in-out 2;
}

@keyframes homeStayPrompt {
    0%, 100% {
        text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.42), 0 0 24px rgba(var(--accent-rgb), 0.18);
        box-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
    }
    50% {
        text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.78), 0 0 34px rgba(var(--accent-rgb), 0.34);
        box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.11);
    }
}

html[data-ccg-page="home"] .ccg-footer--home-compact {
    width: min(980px, calc(100% - 20px));
    margin: 4px auto calc(76px + env(safe-area-inset-bottom));
    padding: 14px 18px 12px !important;
    border: 1px solid rgba(var(--accent-rgb), 0.34);
    border-top-color: rgba(var(--accent-rgb), 0.72);
    border-radius: 0;
    background:
        linear-gradient(135deg, rgba(var(--accent-rgb), 0.10), transparent 38%),
        linear-gradient(180deg, rgba(4, 10, 22, 0.94), rgba(2, 6, 15, 0.96));
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.54),
        0 0 22px rgba(var(--accent-rgb), 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

html[data-ccg-page="home"] .ccg-footer-home__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    text-align: left;
}

html[data-ccg-page="home"] .ccg-footer-home-summary {
    max-width: 620px;
    margin: 4px 0 0;
    font-size: 0.72rem;
    line-height: 1.4;
}

html[data-ccg-page="home"] .ccg-footer__counter-wrap {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

html[data-ccg-page="home"] .ccg-footer-home__status {
    color: rgba(220, 232, 250, 0.64);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html[data-ccg-page="home"] .ccg-footer__counter {
    min-width: 76px;
    padding: 7px 10px;
    border-radius: 2px;
    font-size: 0.82rem;
    letter-spacing: 0.11em;
}

html[data-ccg-page="home"] .ccg-footer__text {
    margin-top: 9px;
    padding: 8px 0 0;
    border-top: 1px solid rgba(var(--accent-rgb), 0.15);
    font-size: 0.64rem;
}

html[data-ccg-page="home"].ccg-has-floating-nav .ccg-main--home {
    padding-bottom: 18px !important;
}

html[data-ccg-page="home"].ccg-has-floating-nav .ccg-footer--home-compact {
    padding-bottom: 12px !important;
}

html[data-ccg-page="home"] .ccg-floating-nav {
    bottom: calc(9px + env(safe-area-inset-bottom));
    width: min(650px, calc(100% - 20px));
}

html[data-ccg-page="home"] .ccg-floating-nav__bar {
    position: relative;
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(var(--accent-rgb), 0.68);
    border-radius: 4px;
    background:
        linear-gradient(135deg, rgba(var(--accent-rgb), 0.11), transparent 34%),
        rgba(2, 7, 17, 0.95);
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.72),
        0 0 24px rgba(var(--accent-rgb), 0.30),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

html[data-ccg-page="home"] .ccg-floating-nav__bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.95), transparent);
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.62);
    pointer-events: none;
}

html[data-ccg-page="home"] .ccg-floating-nav__btn {
    min-height: 43px;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 7px;
    border-radius: 2px;
    border-color: rgba(var(--accent-rgb), 0.22);
    background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.11), rgba(0, 0, 0, 0.54));
    font-size: 0.60rem;
    letter-spacing: 0.075em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

html[data-ccg-page="home"] .ccg-floating-nav__icon {
    font-size: 0.90rem;
}

html[data-ccg-page="home"] .ccg-floating-nav__btn[data-ccg-floating-top] {
    border-color: rgba(var(--accent-rgb), 0.72);
    background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.30), rgba(0, 0, 0, 0.55));
}

@media (hover: hover) and (pointer: fine) {
    html[data-ccg-page="home"] .ccg-floating-nav__btn:hover {
        transform: translateY(-1px);
        border-color: rgba(var(--accent-rgb), 0.72);
        box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.20), inset 0 0 10px rgba(var(--accent-rgb), 0.10);
    }
}

@media (max-width: 820px) {
    html[data-ccg-page="home"] .ccg-main--home {
        padding-top: 5px !important;
        padding-bottom: 12px !important;
    }

    html[data-ccg-page="home"] .home-hero--streamlined {
        margin-top: 5px !important;
    }

    html[data-ccg-page="home"] .home-hero--streamlined .home-hero__frame {
        width: calc(100% - 12px);
        min-height: auto;
        padding: 9px;
        border-radius: 13px;
    }

    html[data-ccg-page="home"] .home-hero--streamlined .home-hero__content {
        padding: 14px 11px;
    }

    html[data-ccg-page="home"] .home-hero--streamlined .home-hero__title {
        font-size: clamp(1.48rem, 7vw, 2.3rem);
        letter-spacing: 0.055em;
    }

    html[data-ccg-page="home"] .home-hero--streamlined .home-hero__tagline {
        padding: 8px 10px;
        font-size: 0.84rem;
    }

    html[data-ccg-page="home"] .home-hero__actions--streamlined {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px;
    }

    html[data-ccg-page="home"] .home-hero__actions--streamlined .home-hero__cta {
        min-height: 42px;
        padding: 9px 7px;
        font-size: 0.67rem;
    }

    html[data-ccg-page="home"] .home-explore-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    html[data-ccg-page="home"] .home-explore-grid .home-highlight-card--feature {
        grid-template-columns: 48px minmax(0, 1fr);
        min-height: 108px;
    }

    html[data-ccg-page="home"] .home-highlight-card__icon {
        width: 38px;
        height: 38px;
        margin-left: 8px;
    }

    html[data-ccg-page="home"] .home-highlight-card__icon svg {
        width: 21px;
        height: 21px;
    }

    html[data-ccg-page="home"] .home-explore-grid .home-highlight-card--feature .ccg-card__body {
        padding: 11px 10px 11px 6px;
    }

    html[data-ccg-page="home"] .home-cta-upgrade--streamlined {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 12px;
        text-align: left;
    }

    html[data-ccg-page="home"] .home-support-strip__actions {
        justify-content: flex-end;
    }

    html[data-ccg-page="home"] .home-support-strip__actions .ccg-btn {
        flex: 0 1 auto;
        min-width: 108px;
    }

    html[data-ccg-page="home"] .ccg-footer-home__grid {
        grid-template-columns: 1fr;
        gap: 9px;
        text-align: center;
    }

    html[data-ccg-page="home"] .ccg-footer-home-summary {
        margin-inline: auto;
    }

    html[data-ccg-page="home"] .ccg-footer__counter-wrap {
        justify-content: center;
    }

    html[data-ccg-page="home"] .ccg-floating-nav {
        width: calc(100% - 12px);
        bottom: calc(6px + env(safe-area-inset-bottom));
    }

    html[data-ccg-page="home"] .ccg-floating-nav__bar {
        gap: 4px;
        padding: 5px;
    }

    html[data-ccg-page="home"] .ccg-floating-nav__btn {
        grid-template-columns: 1fr;
        gap: 2px;
        min-height: 46px;
        padding: 5px 2px;
        font-size: 0.55rem;
        letter-spacing: 0.045em;
    }

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

@media (max-width: 560px) {
    html[data-ccg-page="home"] .home-cta-upgrade--streamlined {
        grid-template-columns: 1fr;
        gap: 9px;
        text-align: center;
    }

    html[data-ccg-page="home"] .home-support-strip__actions {
        justify-content: center;
    }

    html[data-ccg-page="home"] .home-support-strip__actions .ccg-btn {
        flex: 1 1 120px;
    }

    html[data-ccg-page="home"] .home-visitor-callout__headline--interactive {
        gap: 7px;
        padding-inline: 6px;
        font-size: clamp(0.92rem, 5vw, 1.2rem) !important;
        letter-spacing: 0.075em !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-ccg-page="home"] .home-visitor-callout__headline--interactive,
    html[data-ccg-page="home"] .home-visitor-callout__headline--interactive.home-visitor-callout__headline--pulse {
        animation: none;
    }
}

/* Former runtime formatting polish: available before first paint. */

html[data-ccg-page="home"] .home-section__header--focused {
    display: block !important;
    width: 100% !important;
    max-width: 760px !important;
    margin-inline: auto !important;
    text-align: center !important;
}

html[data-ccg-page="home"] .home-section__header--focused .home-section__eyebrow {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 0 8px !important;
    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
    overflow-wrap: normal !important;
}

html[data-ccg-page="home"] .home-section__header--focused .home-section__title {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
}

html[data-ccg-page="home"] .home-section__header--focused .home-section__intro {
    display: block !important;
    width: min(620px, 100%) !important;
    margin: 10px auto 0 !important;
    text-align: center !important;
}

html[data-ccg-page="home"] .home-highlights-grid--focused .home-feature-card {
    display: grid !important;
    grid-template-rows: auto 1fr !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    text-decoration: none !important;
    border: 1px solid rgba(var(--accent-rgb), 0.32) !important;
    background:
        linear-gradient(150deg, rgba(var(--accent-rgb), 0.10), transparent 48%),
        linear-gradient(145deg, rgba(3, 8, 20, 0.97), rgba(6, 13, 29, 0.90)) !important;
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.62),
        0 0 22px rgba(var(--accent-rgb), 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.035) !important;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 220ms ease !important;
}

html[data-ccg-page="home"] .home-highlights-grid--focused .home-feature-card > img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #050914 !important;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.24) !important;
}

html[data-ccg-page="home"] .home-highlights-grid--focused .home-feature-card .ccg-card__body {
    display: grid !important;
    align-content: start !important;
    gap: 8px !important;
    padding: 20px !important;
}

html[data-ccg-page="home"] .home-highlights-grid--focused .home-feature-card .ccg-card__title {
    margin: 0 !important;
    color: #f3f7ff !important;
    font-size: clamp(1.05rem, 1.8vw, 1.28rem) !important;
    line-height: 1.25 !important;
}

html[data-ccg-page="home"] .home-highlights-grid--focused .home-feature-card .ccg-card__text {
    margin: 0 !important;
    color: rgba(226, 235, 255, 0.76) !important;
    line-height: 1.45 !important;
}

html[data-ccg-page="home"] .home-highlights-grid--focused .home-feature-card--loading .ccg-card__body {
    min-height: 150px !important;
    place-content: center !important;
    text-align: center !important;
}

@media (hover: hover) and (pointer: fine) {
    html[data-ccg-page="home"] .home-highlights-grid--focused .home-feature-card:hover,
    html[data-ccg-page="home"] .home-highlights-grid--focused .home-feature-card:focus-visible {
        transform: translateY(-4px) !important;
        border-color: rgba(var(--accent-rgb), 0.72) !important;
        box-shadow:
            0 24px 48px rgba(0, 0, 0, 0.72),
            0 0 30px rgba(var(--accent-rgb), 0.30),
            inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
        outline: none !important;
    }
}

html[data-ccg-page="publisher-index"] .ccg-publishers-search > .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 760px) {
    html[data-ccg-page="home"] .home-section--streamlined {
        width: min(100% - 24px, 1120px) !important;
    }

    html[data-ccg-page="home"] .home-section__header--focused {
        margin-bottom: 18px !important;
        padding-inline: 8px !important;
    }

    html[data-ccg-page="home"] .home-section__header--focused .home-section__title {
        font-size: clamp(1.65rem, 8vw, 2.15rem) !important;
        line-height: 1.08 !important;
        letter-spacing: 0.035em !important;
    }

    html[data-ccg-page="home"] .home-section__header--focused .home-section__intro {
        font-size: 0.94rem !important;
        line-height: 1.45 !important;
    }

    html[data-ccg-page="home"] .home-highlights-grid--focused {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
    }

    html[data-ccg-page="home"] .home-highlight-card--feature {
        min-height: 0 !important;
    }

    html[data-ccg-page="home"] .home-highlight-card--feature .ccg-card__body {
        min-height: 190px !important;
        padding: 24px 22px !important;
    }

    html[data-ccg-page="home"] .home-highlights-grid--focused .home-feature-card .ccg-card__body {
        padding: 18px 18px 20px !important;
    }

    html[data-ccg-page="publisher-index"] .ccg-publishers-main {
        width: min(100% - 20px, 1400px) !important;
        padding-top: 14px !important;
    }

    html[data-ccg-page="publisher-index"] .ccg-publishers-hero {
        padding: 22px 18px !important;
    }

    html[data-ccg-page="publisher-index"] .ccg-publishers-hero__title {
        font-size: clamp(2rem, 10vw, 2.85rem) !important;
        line-height: 1.04 !important;
    }

    html[data-ccg-page="publisher-index"] .ccg-publishers-hero__intro {
        margin-top: 16px !important;
        font-size: 1rem !important;
        line-height: 1.55 !important;
    }

    html[data-ccg-page="publisher-index"] .ccg-publishers-hero__stats {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-top: 20px !important;
    }

    html[data-ccg-page="publisher-index"] .ccg-publishers-hero__stats span {
        display: flex !important;
        min-width: 0 !important;
        min-height: 58px !important;
        justify-content: center !important;
        padding: 10px !important;
        text-align: center !important;
        line-height: 1.25 !important;
    }

    html[data-ccg-page="publisher-index"] .ccg-publisher-breadcrumbs {
        margin-top: 12px !important;
        padding: 10px 0 !important;
    }

    html[data-ccg-page="publisher-index"] .ccg-publishers-tools {
        margin: 16px 0 28px !important;
        padding: 14px !important;
        gap: 10px !important;
    }

    html[data-ccg-page="publisher-index"] .ccg-publishers-search input {
        min-height: 52px !important;
        padding: 12px 14px !important;
    }

    html[data-ccg-page="publisher-index"] .ccg-publishers-visible-count {
        text-align: center !important;
    }
}
