/* ============================================================
   CCG GAMES — ULTRA NEON EXPERIENCE
   ------------------------------------------------------------
   • Shared styling for Games index & Single Game pages
   • Neon gradients, glassmorphism panels, crisp spacing
   • Accordion upgraded with buttery transitions
   • Download/manual buttons presented as luxe ctas
   ============================================================ */

:root {
    --ccg-deep-glass: rgba(12, 16, 28, 0.82);
    --ccg-surface-glass: rgba(20, 28, 46, 0.78);
    --ccg-border: rgba(255, 255, 255, 0.12);
    --ccg-bright: rgba(var(--accent-rgb), 0.8);
    --ccg-bright-2: rgba(255, 255, 255, 0.75);
    --ccg-soft: rgba(255, 255, 255, 0.5);
    --ccg-panel-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
    --ccg-blur: blur(12px);
    --ui-density: 1;
    --ui-font-scale: 1;
    --ui-glow-strength: 1;
    --ui-radius-scale: 1;
    --game-box3d-glow-rgb: var(--accent-rgb);
    --game-box3d-edge: rgba(255, 255, 255, 0.22);
    --game-box3d-halo-opacity: 0.45;
}

body[data-ccg-mode="c64"] {
    --ui-density: 0.94;
    --ui-font-scale: 0.96;
    --ui-glow-strength: 1.1;
    --ui-radius-scale: 0.92;
    --game-box3d-glow-rgb: 0, 240, 255;
    --game-box3d-halo-opacity: 0.5;
}

body[data-ccg-mode="amiga"] {
    --ui-density: 1.06;
    --ui-font-scale: 1.04;
    --ui-glow-strength: 0.85;
    --ui-radius-scale: 1.05;
    --game-box3d-glow-rgb: 255, 62, 181;
    --game-box3d-halo-opacity: 0.4;
}

/* ============================================================
   GAMES INDEX — HERO + TOOLS
   ============================================================ */

.ccg-page--games-index .games-hero,
.ccg-page--games-index .games-tools,
.ccg-page--games-index .games-library {
    width: min(1180px, 95vw);
}

.ccg-page--games-index .games-hero {
    margin: var(--ccg-hero-offset) auto 10px;
    padding: calc(24px * var(--ui-density)) calc(28px * var(--ui-density));
    border-radius: calc(18px * var(--ui-radius-scale));
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(135deg,
            rgba(var(--accent-rgb),0.16),
            rgba(255,255,255,0.03)),
        var(--ccg-surface-glass);
    border: 1px solid var(--ccg-border);
    box-shadow: var(--ccg-panel-shadow);
}

.ccg-page--games-index .games-hero::after {
    content: "";
    position: absolute;
    inset: -60% 10% auto;
    height: 180%;
    width: 320px;
    background: radial-gradient(circle at center,
        rgba(var(--accent-rgb),0.35),
        rgba(var(--accent-rgb),0.0) 65%);
    filter: blur(40px);
    opacity: 0.6;
}

.ccg-page--games-index .games-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: calc(8px * var(--ui-density));
}

.ccg-page--games-index .games-hero__title {
    font-family: var(--ccg-font-main);
    letter-spacing: 0.16em;
    font-size: clamp(calc(1.55rem * var(--ui-font-scale)), 2vw + 0.8rem, calc(2.35rem * var(--ui-font-scale)));
    margin: 0;
    text-transform: uppercase;
}

.ccg-page--games-index .games-hero__subtitle {
    margin: 0;
    color: var(--ccg-soft);
    font-size: calc(1rem * var(--ui-font-scale));
}

.ccg-page--games-index .games-hero__stats {
    display: inline-flex;
    align-items: center;
    gap: calc(8px * var(--ui-density));
    padding: calc(8px * var(--ui-density)) calc(12px * var(--ui-density));
    border-radius: calc(12px * var(--ui-radius-scale));
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--ccg-border);
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ------------------------------------------------------------
   Search + Alpha strip
   ------------------------------------------------------------ */

.ccg-page--games-index .games-tools {
    width: min(1200px, 96%);
    margin: 8px auto 20px;
    display: grid;
    gap: calc(14px * var(--ui-density));
}

.games-search {
    display: flex;
    align-items: center;
    gap: calc(10px * var(--ui-density));
    padding: calc(12px * var(--ui-density)) calc(14px * var(--ui-density));
    border-radius: calc(14px * var(--ui-radius-scale));
    background: var(--ccg-deep-glass);
    border: 1px solid var(--ccg-border);
    box-shadow: var(--ccg-panel-shadow);
    backdrop-filter: var(--ccg-blur);
}

.games-search input[type="search"] {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ccg-border);
    border-radius: calc(12px * var(--ui-radius-scale));
    padding: calc(12px * var(--ui-density)) calc(14px * var(--ui-density));
    color: #fff;
    font-size: calc(1rem * var(--ui-font-scale));
    font-family: var(--ccg-font-body);
}

.games-search input[type="search"]:focus-visible {
    outline: none;
    border-color: rgba(var(--accent-rgb), 0.7);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb),0.35);
}

#gamesSearchClear {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--ccg-border);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: calc(12px * var(--ui-radius-scale));
    font-size: 1.1rem;
    cursor: pointer;
}

#gamesSearchClear:hover {
    background: rgba(var(--accent-rgb), 0.24);
}

.games-filter {
    display: flex;
    flex-direction: column;
    gap: calc(8px * var(--ui-density));
    padding: calc(12px * var(--ui-density)) calc(14px * var(--ui-density));
    border-radius: calc(14px * var(--ui-radius-scale));
    background: var(--ccg-deep-glass);
    border: 1px solid var(--ccg-border);
    box-shadow: var(--ccg-panel-shadow);
    backdrop-filter: var(--ccg-blur);
}

.games-filter__controls {
    display: flex;
    flex-wrap: wrap;
    gap: calc(10px * var(--ui-density));
}

.games-filter__btn {
    flex: 1 1 160px;
    padding: calc(10px * var(--ui-density)) calc(16px * var(--ui-density));
    border-radius: 999px;
    border: 1px solid var(--ccg-border);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-family: var(--ccg-font-body);
    font-size: calc(0.95rem * var(--ui-font-scale));
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.games-filter__btn.is-active,
.games-filter__btn:hover,
.games-filter__btn:focus-visible {
    border-color: rgba(var(--accent-rgb), 0.7);
    box-shadow: 0 12px 26px rgba(0,0,0,0.6), 0 0 14px rgba(var(--accent-rgb),0.28);
    transform: translateY(-1px);
    outline: none;
}

.games-filter__status {
    color: var(--ccg-soft);
    font-size: calc(0.92rem * var(--ui-font-scale));
    letter-spacing: 0.04em;
}

.games-filter__range {
    display: grid;
    gap: calc(10px * var(--ui-density));
    padding: calc(12px * var(--ui-density)) calc(12px * var(--ui-density));
    border-radius: calc(12px * var(--ui-radius-scale));
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255,255,255,0.08);
}

.games-filter__range.is-active {
    border-color: rgba(var(--accent-rgb), 0.5);
    box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.18);
}

.games-filter__range.is-idle .games-filter__year-row,
.games-filter__range.is-idle .games-filter__range-toggle {
    opacity: 0.75;
}

.games-filter__range-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--ccg-font-main);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: calc(0.75rem * var(--ui-font-scale));
    color: var(--ccg-soft);
}

.games-filter__range-value {
    font-family: var(--ccg-font-body);
    font-size: calc(0.9rem * var(--ui-font-scale));
    letter-spacing: 0.04em;
    color: #fff;
}

.games-filter__year-row {
    display: grid;
    grid-template-columns: 1fr minmax(120px, 160px);
    gap: calc(12px * var(--ui-density));
    align-items: end;
}

.games-filter__year-slider input[type="range"] {
    width: 100%;
    accent-color: rgba(var(--accent-rgb), 0.85);
    height: 44px;
}

.games-filter__year-input {
    display: grid;
    gap: 6px;
    font-family: var(--ccg-font-body);
    font-size: calc(0.8rem * var(--ui-font-scale));
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ccg-soft);
}

.games-filter__year-input input[type="number"] {
    width: 100%;
    border-radius: calc(10px * var(--ui-radius-scale));
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.35);
    color: #fff;
    padding: calc(8px * var(--ui-density)) calc(10px * var(--ui-density));
    font-family: var(--ccg-font-body);
    font-size: calc(0.92rem * var(--ui-font-scale));
}

.games-filter__year-input input[type="number"]:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.6);
    outline-offset: 2px;
    border-color: rgba(var(--accent-rgb), 0.7);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2);
}

.games-filter__range-toggle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: calc(10px * var(--ui-density));
}

.games-filter__range-btn {
    min-height: 44px;
    padding: calc(8px * var(--ui-density)) calc(12px * var(--ui-density));
    border-radius: 999px;
    border: 1px solid var(--ccg-border);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-family: var(--ccg-font-body);
    font-size: calc(0.82rem * var(--ui-font-scale));
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.games-filter__range-btn.is-active,
.games-filter__range-btn:hover,
.games-filter__range-btn:focus-visible {
    border-color: rgba(var(--accent-rgb), 0.7);
    box-shadow: 0 12px 26px rgba(0,0,0,0.6), 0 0 14px rgba(var(--accent-rgb),0.28);
    transform: translateY(-1px);
    outline: none;
}

.games-filter__range-hint {
    font-size: calc(0.82rem * var(--ui-font-scale));
    color: var(--ccg-soft);
}

.games-grid__more-wrap {
    display: flex;
    justify-content: center;
    margin: 16px 0 8px;
}

.games-grid__more-btn {
    min-width: 220px;
}


.games-alpha {
    padding: calc(14px * var(--ui-density));
    border-radius: calc(14px * var(--ui-radius-scale));
    background: var(--ccg-deep-glass);
    border: 1px solid var(--ccg-border);
    box-shadow: var(--ccg-panel-shadow);
    backdrop-filter: var(--ccg-blur);
}

#gamesAlphaStrip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
    gap: calc(8px * var(--ui-density));
}

.games-alpha__btn {
    width: 100%;
    padding: calc(10px * var(--ui-density)) 0;
    border-radius: calc(12px * var(--ui-radius-scale));
    border: 1px solid var(--ccg-border);
    background: linear-gradient(180deg,
        rgba(255,255,255,0.12),
        rgba(255,255,255,0.04));
    color: #fff;
    font-family: var(--ccg-font-main);
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.games-alpha__btn.is-busy {
    border-color: rgba(var(--accent-rgb), 0.5);
    box-shadow: 0 10px 22px rgba(0,0,0,0.5), 0 0 12px rgba(var(--accent-rgb),0.24);
    font-weight: 600;
}

.games-alpha__btn.is-muted {
    opacity: 0.5;
}

.games-alpha__btn.active,
.games-alpha__btn:hover,
.games-alpha__btn:focus-visible {
    border-color: rgba(var(--accent-rgb), 0.7);
    box-shadow: 0 18px 30px rgba(0,0,0,0.6), 0 0 calc(18px * var(--ui-glow-strength)) rgba(var(--accent-rgb),0.45);
    outline: none;
    transform: translateY(-1px);
}

.games-alpha__btn.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.games-alpha__btn.is-disabled:hover,
.games-alpha__btn.is-disabled:focus-visible {
    border-color: var(--ccg-border);
    box-shadow: none;
}

/* ============================================================
   GAMES INDEX — ACCORDION
   ============================================================ */

.games-library {
    width: min(1200px, 96%);
    margin: 0 auto 42px;
    display: grid;
    gap: calc(14px * var(--ui-density));
}

.games-focus-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: calc(10px * var(--ui-density)) calc(16px * var(--ui-density));
    border-radius: calc(12px * var(--ui-radius-scale));
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255,255,255,0.12);
    font-family: var(--ccg-font-main);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: calc(0.78rem * var(--ui-font-scale));
    color: var(--ccg-soft);
}

.games-focus-panel__label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #fff;
}

.games-focus-panel__count {
    font-family: var(--ccg-font-body);
    letter-spacing: 0.08em;
    color: var(--ccg-soft);
}

.games-accordion__section {
    border: 1px solid var(--ccg-border);
    border-radius: calc(16px * var(--ui-radius-scale));
    background:
        radial-gradient(circle at 20% 14%, rgba(var(--accent-rgb),0.14), transparent 50%),
        var(--ccg-surface-glass);
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0,0,0,0.65);
    position: relative;
    isolation: isolate;
    scroll-margin-top: max(90px, var(--ccg-hero-offset));
    transition: border-color 200ms ease, box-shadow 220ms ease, transform 220ms ease, filter 220ms ease;
}

.games-accordion__section:not(.is-open) {
    filter: saturate(0.92);
}

.games-accordion__section.is-open {
    border-color: rgba(var(--accent-rgb), 0.55);
    box-shadow: 0 30px 70px rgba(0,0,0,0.8), 0 0 calc(32px * var(--ui-glow-strength)) rgba(var(--accent-rgb),0.28);
    transform: translateY(-2px);
    animation: ccgAccordionPop 540ms ease;
}

.games-accordion__section::after {
    content: "";
    position: absolute;
    inset: -12px;
    background: radial-gradient(circle at 75% 50%, rgba(var(--accent-rgb),0.2), transparent 60%);
    filter: blur(28px);
    z-index: -1;
    opacity: 0;
    transition: opacity 260ms ease;
}

.games-accordion__section.is-open::after,
.games-accordion__section.is-energized::after {
    opacity: 1;
}

.games-accordion__header {
    width: 100%;
    background: transparent;
    border: none;
    padding: calc(18px * var(--ui-density)) calc(22px * var(--ui-density));
    color: #fff;
    font-family: var(--ccg-font-main);
    letter-spacing: 0.14em;
    font-size: calc(1rem * var(--ui-font-scale));
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 180ms ease, filter 180ms ease;
}

.games-accordion__header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb),0.18), transparent);
    opacity: 0;
    transition: opacity 240ms ease;
}

.games-accordion__letter {
    display: inline-flex;
    align-items: center;
    gap: calc(12px * var(--ui-density));
    position: relative;
}

.games-accordion__letter::before {
    content: "";
    width: 28px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg,
        rgba(var(--accent-rgb),0.0),
        rgba(var(--accent-rgb),0.9),
        rgba(var(--accent-rgb),0.0));
    opacity: 0.7;
}

.games-accordion__chevron {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--ccg-border);
    display: grid;
    place-items: center;
    transition: transform 180ms ease, border-color 180ms ease;
    font-weight: 700;
}

.games-accordion__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ccg-font-body);
    font-size: calc(0.72rem * var(--ui-font-scale));
    letter-spacing: 0.16em;
    color: var(--ccg-soft);
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.games-accordion__section.is-open .games-accordion__meta,
.games-accordion__header:hover .games-accordion__meta,
.games-accordion__header:focus-visible .games-accordion__meta {
    opacity: 1;
    transform: translateY(0);
}

.games-accordion__section.is-open .games-accordion__chevron {
    transform: rotate(180deg);
    border-color: rgba(var(--accent-rgb), 0.7);
}

.games-accordion__hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: calc(4px * var(--ui-density)) calc(10px * var(--ui-density));
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.35);
    color: var(--ccg-soft);
    font-size: calc(0.68rem * var(--ui-font-scale));
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.games-accordion__hint::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.8);
    box-shadow: 0 0 10px rgba(var(--accent-rgb),0.6);
}

.games-accordion__section.is-open .games-accordion__header::after,
.games-accordion__section.is-energized .games-accordion__header::after {
    opacity: 1;
}

.games-accordion__content {
    height: 0;
    overflow: hidden;
    transition: height 320ms ease, opacity 260ms ease, padding 240ms ease;
    background: rgba(0, 0, 0, 0.32);
    border-top: 1px solid var(--ccg-border);
    opacity: 0;
    padding: 0 calc(16px * var(--ui-density));
}

.games-accordion__section.is-open .games-accordion__content {
    padding: calc(12px * var(--ui-density)) calc(16px * var(--ui-density)) calc(18px * var(--ui-density));
}

.games-accordion__content.is-visible {
    opacity: 1;
}

.games-system-group {
    display: grid;
    gap: calc(12px * var(--ui-density));
    padding: calc(10px * var(--ui-density)) 0 calc(6px * var(--ui-density));
}

.games-system-group__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: calc(0.82rem * var(--ui-font-scale));
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ccg-soft);
}

.games-system-group__title::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(var(--accent-rgb),0.0), rgba(var(--accent-rgb),0.9));
}

@media (prefers-reduced-motion: reduce) {
    .games-accordion__content {
        transition: none;
        height: auto;
    }
}

@keyframes ccgAccordionPop {
    0% { transform: translateY(0); filter: drop-shadow(0 0 0 rgba(var(--accent-rgb),0.0)); }
    40% { transform: translateY(-3px); filter: drop-shadow(0 0 18px rgba(var(--accent-rgb),0.32)); }
    100% { transform: translateY(-2px); filter: drop-shadow(0 0 0 rgba(var(--accent-rgb),0.0)); }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: calc(16px * var(--ui-density));
    align-items: start;
    align-content: start;
}

.games-library--single-result .games-grid {
    grid-template-columns: minmax(220px, 320px);
    justify-content: center;
}

.games-library--single-result .ccg-game-card {
    width: 100%;
    max-width: 320px;
    justify-self: center;
}

.games-library--single-result .games-system-group {
    justify-items: center;
}

.ccg-game-card {
    display: grid;
    gap: calc(10px * var(--ui-density));
    padding: calc(14px * var(--ui-density));
    border-radius: calc(14px * var(--ui-radius-scale));
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--ccg-border);
    box-shadow: 0 18px 38px rgba(0,0,0,0.65);
    transition:
        transform var(--ccg-hover-duration) var(--ccg-ease-out-lux),
        box-shadow var(--ccg-hover-duration) var(--ccg-ease-out-lux),
        border-color var(--ccg-hover-duration) var(--ccg-ease-out-lux);
}

.ccg-game-card:hover,
.ccg-game-card:focus-visible {
    border-color: rgba(var(--accent-rgb),0.75);
    box-shadow: 0 26px 60px rgba(0,0,0,0.8), 0 0 26px rgba(var(--accent-rgb),0.35);
    transform: translateY(-2px);
    outline: none;
}

.ccg-game-card__thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    height: auto;
    align-self: start;
}

.ccg-game-card__thumb img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: block;
    object-fit: cover;
    object-position: center;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.08),
        0 8px 18px rgba(0,0,0,0.55);
}

.ccg-game-card__title {
    margin: 0;
    font-size: calc(1.05rem * var(--ui-font-scale));
    letter-spacing: 0.03em;
    line-height: 1.3;
}

.ccg-game-card__meta {
    color: var(--ccg-soft);
    font-size: calc(0.9rem * var(--ui-font-scale));
    line-height: 1.28;
}

@media (prefers-reduced-motion: reduce) {
    .ccg-game-card:hover,
    .ccg-game-card:focus-visible {
        transform: none;
        filter: contrast(1.02) brightness(1.01);
    }
}

#gamesEmptyState {
    padding: calc(20px * var(--ui-density)) calc(16px * var(--ui-density));
    text-align: center;
    border-radius: calc(14px * var(--ui-radius-scale));
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(var(--accent-rgb),0.4);
}

@media (max-width: 720px) {
    .games-filter__range-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .games-filter__year-row {
        grid-template-columns: 1fr;
    }

    .games-focus-panel {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   SINGLE GAME — HERO & PANELS
   ============================================================ */

html[data-ccg-page="single-game"] {
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100%;
    max-height: none;
    position: static;
}

html[data-ccg-page="single-game"] body {
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100%;
    max-height: none;
    position: static;
}

html[data-ccg-page="single-game"] :where(.ccg-page,
       .ccg-main,
       main,
       .game-shell) {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    position: static;
}

.ccg-page--single-game {
    transition: opacity 220ms ease;
}

@media (min-width: 900px) {
    .ccg-page--single-game {
        --ccg-hero-offset: clamp(36px, 2.8vw + 20px, 84px);
    }

    .ccg-page--single-game .game-hero {
        min-height: clamp(220px, 24vw, 360px);
        margin: 8px auto 6px;
        padding: 1.3rem 1.6rem 1.7rem;
    }

    .ccg-page--single-game .game-hero__content {
        align-items: flex-start;
        text-align: left;
    }

    .ccg-page--single-game .game-hero__content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .ccg-page--single-game .game-hero__content > .game-hero__title,
    .ccg-page--single-game .game-hero__content > .game-hero__title-row,
    .ccg-page--single-game .game-hero__content > .game-hero__meta,
    .ccg-page--single-game .game-hero__content > .game-hero__rating,
    .ccg-page--single-game .game-hero__content > .game-hero__badges {
        grid-column: 1 / -1;
    }

    .ccg-page--single-game .game-hero__content > .game-section,
    .ccg-page--single-game .game-hero__content > .ccg-behind-pixels-inline {
        align-self: stretch;
        height: auto;
    }

    .ccg-page--single-game .game-hero__meta,
    .ccg-page--single-game .game-hero__badges {
        justify-content: flex-start;
    }

    .ccg-page--single-game .game-hero__title-row {
        justify-content: flex-start;
    }
}

@media (max-width: 1200px) and (min-width: 901px) {
    .ccg-page--single-game .game-hero--has-box3d .game-hero__inner {
        grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr);
        grid-template-areas:
            "media content"
            "box content";
        align-items: start;
    }

    .ccg-page--single-game .game-hero--has-box3d .game-hero__box3d {
        justify-self: start;
        margin-top: 0.35rem;
    }
}

@media (min-width: 1024px) {
    .ccg-page--single-game .game-hero {
        padding: 1.35rem 1.6rem 1.7rem;
    }

    .ccg-page--single-game .game-hero__content {
        gap: 0.7rem;
    }

    .ccg-page--single-game .game-hero .game-section {
        padding: 10px 12px;
    }

    .ccg-page--single-game .ccg-behind-pixels-inline {
        padding: 8px 12px;
    }
}

@media (min-width: 1200px) {
    .ccg-page--single-game .game-hero__inner {
        gap: clamp(1.2rem, 2vw, 2rem);
    }

    .ccg-page--single-game .game-hero--has-box3d .game-hero__inner {
        grid-template-columns: minmax(240px, 0.9fr) minmax(0, 3.2fr) minmax(220px, 0.85fr);
    }
}

@media (min-width: 1400px) {
    .ccg-page--single-game .game-hero {
        padding: 1.45rem 2.1rem 1.9rem;
    }

    .ccg-page--single-game .game-hero__title {
        font-size: clamp(2.1rem, 1.4vw + 1.6rem, 3rem);
    }
}

.game-hero__rating {
    margin-top: 4px;
}

body:not(.ccg-single-ready) .ccg-page--single-game {
    opacity: 0;
    visibility: hidden;
}

.ccg-loading-single .ccg-main--single-game,
.ccg-loading-single #gameNotFound {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ccg-page--single-game .ccg-main {
    width: 100%;
    max-width: min(1600px, 94vw);
    margin-left: auto;
    margin-right: auto;
    left: auto;
    right: auto;
    box-sizing: border-box;
    overflow: visible;
    transform: none;
}

@media (min-width: 821px) {
    .ccg-page--single-game .ccg-main,
    .ccg-page--single-game .game-shell {
        margin-left: auto;
        margin-right: auto;
        transform: none;
    }
}

html[data-ccg-page="single-game"] .ccg-page--single-game {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.game-hero,
.game-section,
.game-media,
.related-carousel {
    width: 100%;
    max-width: min(1600px, 94vw);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.ccg-page--single-game .game-shell {
    width: 100%;
    max-width: min(1600px, 94vw);
    margin-left: auto;
    margin-right: auto;
    left: auto;
    right: auto;
    box-sizing: border-box;
    overflow: visible;
    transform: none;
}

.ccg-page--single-game .game-shell > .game-hero,
.ccg-page--single-game .game-shell > .game-section,
.ccg-page--single-game .game-shell > .game-media,
.ccg-page--single-game .game-shell > .related-carousel {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.game-hero {
    position: relative;
    margin: 8px auto 6px;
    padding: 1.2rem 1.4rem 1.6rem;
    border-radius: 18px;
    height: auto;
    max-height: none;
    overflow: hidden;
    background: radial-gradient(circle at 18% 20%, rgba(var(--accent-rgb),0.18), rgba(0,0,0,0.78)), #05070d;
    border: 1px solid rgba(var(--accent-rgb),0.32);
    box-shadow: var(--ccg-panel-shadow);
}

.game-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 8, 16, 0.2) 0%, rgba(5, 8, 16, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

/* OMEGA VISUAL CLARITY UPGRADE */
.ccg-page--single-game .game-hero::after {
    background: linear-gradient(180deg, rgba(5, 8, 16, 0.15) 0%, rgba(5, 8, 16, 0.52) 100%);
}

.game-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    filter: blur(8px) saturate(1.08);
    transform: scale(1.06);
    z-index: 0;
}

/* OMEGA VISUAL CLARITY UPGRADE */
.ccg-page--single-game .game-hero__bg {
    opacity: 0.48;
    filter: blur(8px) saturate(1.1) contrast(1.04);
}

.game-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 2.8fr);
    gap: clamp(1rem, 2vw, 2rem);
    align-items: start;
    justify-content: stretch;
    width: 100%;
}

.game-hero__media {
    width: 100%;
    max-width: clamp(220px, 26vw, 340px);
    justify-self: start;
}

.game-hero__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 18px 40px rgba(0,0,0,0.7);
    background: rgba(0,0,0,0.35);
}

.game-hero--has-box3d .game-hero__inner {
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 3fr) minmax(220px, 0.85fr);
    grid-template-areas: "media content box";
    align-items: start;
}

.game-hero--has-box3d .game-hero__media {
    grid-area: media;
}

.game-hero--has-box3d .game-hero__content {
    grid-area: content;
}

.game-hero__box3d {
    grid-area: box;
    width: 100%;
    max-width: clamp(200px, 22vw, 260px);
    aspect-ratio: 2 / 3;
    overflow: visible;
    flex-shrink: 0;
    justify-self: end;
    align-self: start;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: stretch;
    padding: 0.25rem;
    border-radius: 20px;
    background: radial-gradient(circle at 30% 20%, rgba(var(--game-box3d-glow-rgb), 0.12), rgba(0,0,0,0.65));
    box-shadow: 0 18px 36px rgba(0,0,0,0.55);
}

.game-hero__box3d[hidden] {
    display: none;
}

.game-hero__box3d::before {
    content: "";
    position: absolute;
    inset: -12% -12%;
    border-radius: 22px;
    background: radial-gradient(circle at 50% 22%,
        rgba(var(--game-box3d-glow-rgb), calc(var(--game-box3d-halo-opacity) + 0.12)),
        rgba(var(--game-box3d-glow-rgb), 0) 72%);
    filter: blur(calc(26px * var(--ui-glow-strength)));
    opacity: 0.85;
    z-index: 0;
    pointer-events: none;
    transition: opacity 220ms ease, filter 220ms ease;
}

.game-hero__box3d::after {
    content: "";
    position: absolute;
    inset: 10% 8% 6%;
    border-radius: 16px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 55%);
    opacity: 0.35;
    mix-blend-mode: screen;
    z-index: 0;
    pointer-events: none;
}

.game-hero__box3d-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 2 / 3;
    object-fit: contain;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.25));
    filter:
        drop-shadow(0 18px 32px rgba(0,0,0,0.55))
        drop-shadow(0 10px 20px rgba(0,0,0,0.4))
        drop-shadow(0 0 22px rgba(var(--game-box3d-glow-rgb), 0.3))
        drop-shadow(0 0 36px rgba(var(--game-box3d-glow-rgb), 0.22));
    box-shadow:
        inset 0 0 18px rgba(var(--game-box3d-glow-rgb), 0.12),
        0 0 24px rgba(var(--game-box3d-glow-rgb), 0.18);
    transition: transform 220ms ease-out;
    transform-origin: center center;
    position: relative;
    z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
    .ccg-page--single-game .game-hero__box3d:hover .game-hero__box3d-img {
        transform: scale(1.05);
    }

    .ccg-page--single-game .game-hero__box3d:hover {
        cursor: zoom-in;
    }
}

@media (hover: none), (pointer: coarse) {
    .ccg-page--single-game .game-hero__box3d,
    .ccg-page--single-game .game-hero__box3d:hover,
    .ccg-page--single-game .game-hero__box3d:hover .game-hero__box3d-img,
    .ccg-page--single-game .game-hero__box3d .game-hero__box3d-img {
        transform: none;
        cursor: default;
    }
}

.game-hero__content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    min-width: 0;
}

.game-hero__title {
    margin: 0;
    font-family: var(--ccg-font-main);
    letter-spacing: 0.14em;
    font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
    line-height: 1.18;
    text-shadow: 0 12px 30px rgba(0,0,0,0.65);
}

.game-hero__meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    align-content: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(0,0,0,0.45);
    border: 1px solid var(--ccg-border);
    font-weight: 700;
    line-height: 1.2;
    font-size: 0.85rem;
}

.game-meta__item {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.game-meta__sep {
    color: var(--ccg-soft);
    text-shadow: 0 0 10px rgba(var(--accent-rgb),0.3);
}

.game-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.game-hero__title { order: 1; }
.game-hero__meta { order: 2; }
.game-hero__rating { order: 3; }
.ccg-behind-pixels-inline { order: 4; }
.game-verdict { order: 5; }
#game-description-section { order: 6; }
.game-hero__badges { order: 7; }

.game-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.45);
    background: rgba(var(--accent-rgb), 0.16);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
}

.game-badge--rating {
    background: rgba(255, 196, 64, 0.22);
    border-color: rgba(255, 196, 64, 0.7);
    color: #ffd975;
}

.game-badge--top {
    background: rgba(255, 64, 129, 0.2);
    border-color: rgba(255, 64, 129, 0.6);
    color: #ff8bbd;
}

/* ------------------------------------------------------------
   Inline credits (Behind the Pixels)
   ------------------------------------------------------------ */

.ccg-behind-pixels-inline {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(5, 8, 16, 0.55);
    border: 1px solid var(--ccg-border);
    box-shadow: 0 12px 34px rgba(0,0,0,0.45);
}

.ccg-behind-pixels-inline__title {
    margin: 0;
    font-family: var(--ccg-font-main);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--ccg-soft);
}

.ccg-behind-pixels-inline__list {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    row-gap: 6px;
}

.ccg-behind-pixels-inline__list dt {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ccg-soft);
}

.ccg-behind-pixels-inline__list dd {
    margin: 0;
    color: var(--ccg-bright-2);
}

/* ------------------------------------------------------------
   Sections (description, video, downloads)
   ------------------------------------------------------------ */

.game-section {
    margin: 10px auto;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--ccg-surface-glass);
    border: 1px solid var(--ccg-border);
    box-shadow: var(--ccg-panel-shadow), 0 0 18px rgba(var(--accent-rgb), 0.12);
}

.game-hero .game-section {
    margin: 0;
    padding: 12px 14px;
    background: rgba(5, 10, 18, 0.6);
    box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}

.ccg-page--single-game .game-section--related {
    display: block;
    visibility: visible;
    opacity: 1;
    height: auto;
    overflow: visible;
    transform: none;
    animation: none;
}

.game-section__title {
    margin: 0 0 8px;
    font-family: var(--ccg-font-main);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    line-height: 1.22;
}

.game-section__kicker {
    color: var(--ccg-soft);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin: 0 0 6px;
}

.game-description {
    line-height: 1.7;
    color: var(--ccg-bright-2);
    font-size: 1.02rem;
}

.game-not-found {
    margin: 18px auto;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.game-not-found__panel {
    padding: 28px 24px;
    text-align: center;
}

.game-not-found__kicker {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ccg-soft);
    font-size: 0.85rem;
}

.game-not-found__title {
    margin: 0 0 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-not-found__copy {
    margin: 0;
    color: var(--ccg-bright-2);
}

.game-not-found__slug {
    color: var(--ccg-bright);
    font-weight: 600;
}

.game-not-found__actions {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

/* ------------------------------------------------------------
   Media panel
   ------------------------------------------------------------ */

.game-media {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.game-media__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "video video"
        "downloads links";
    gap: 16px;
    align-items: start;
}

.game-media__grid .game-section {
    margin: 0;
    background: rgba(5, 10, 18, 0.7);
}

.game-media__item--video {
    grid-area: video;
}

.game-media__item--downloads {
    grid-area: downloads;
}

.game-media__item--links {
    grid-area: links;
}

.game-media__item--downloads,
.game-media__item--links {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.game-media__item--downloads .game-section__kicker,
.game-media__item--downloads .game-section__title,
.game-media__item--links .game-section__kicker,
.game-media__item--links .game-section__title {
    justify-content: center;
    text-align: center;
    width: 100%;
}

.game-media__item--links .game-media__kicker,
.game-media__item--links .game-media__title {
    text-align: center;
    width: 100%;
}

.game-media__item--video .game-section__kicker,
.game-media__item--video .game-section__title {
    justify-content: center;
    text-align: center;
    width: 100%;
}

.game-media__item--video .game-video {
    max-width: 980px;
    margin: 0 auto;
}

.game-media__kicker {
    margin: 0 0 6px;
    color: var(--ccg-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.game-media__title {
    margin: 0 0 12px;
    font-family: var(--ccg-font-main);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.game-media__links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* ------------------------------------------------------------
   Credits panel
   ------------------------------------------------------------ */

.game-credits__list {
    display: grid;
    grid-template-columns: minmax(120px, 180px) 1fr;
    gap: 8px 16px;
    margin: 0;
}

.game-credits__list dt {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ccg-soft);
}

.game-credits__list dd {
    margin: 0;
    color: var(--ccg-bright-2);
}

/* ------------------------------------------------------------
   Verdict panel
   ------------------------------------------------------------ */

.game-verdict__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-verdict__score {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #ffd975;
    text-shadow: 0 0 20px rgba(255, 217, 117, 0.35);
}

.game-verdict__reason {
    margin: 0;
    color: var(--ccg-bright-2);
    line-height: 1.6;
}

/* ------------------------------------------------------------
   Share button (inline title)
   ------------------------------------------------------------ */

.game-hero__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.game-hero__title-row .game-hero__title {
    margin: 0;
}

.ccg-btn--share {
    min-height: 36px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(var(--accent-rgb), 0.55);
    background: rgba(var(--accent-rgb), 0.16);
    color: #fff;
    box-shadow: 0 10px 22px rgba(0,0,0,0.65), 0 0 16px rgba(var(--accent-rgb), 0.32);
}

.ccg-btn--share:hover,
.ccg-btn--share:focus-visible {
    border-color: rgba(var(--accent-rgb), 0.9);
    box-shadow: 0 12px 28px rgba(0,0,0,0.72), 0 0 18px rgba(var(--accent-rgb), 0.45);
}

.ccg-btn--share .ccg-btn__icon {
    font-size: 0.85rem;
    line-height: 1;
}

.ccg-btn--login-required {
    border-color: rgba(255, 184, 77, 0.85);
    background: linear-gradient(135deg, rgba(255, 174, 43, 0.24), rgba(53, 205, 255, 0.2));
    box-shadow: 0 12px 26px rgba(0,0,0,0.72), 0 0 20px rgba(255, 184, 77, 0.38);
    animation: ccgFavouriteLoginPulse 1.4s ease-in-out infinite;
}

.ccg-btn--login-required .ccg-btn__label {
    display: block;
    letter-spacing: 0.08em;
}

.ccg-btn--login-required .ccg-btn__meta {
    display: block;
    margin-top: 2px;
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    text-transform: none;
    color: rgba(255, 249, 235, 0.88);
}

@keyframes ccgFavouriteLoginPulse {
    0%,
    100% {
        box-shadow: 0 12px 26px rgba(0,0,0,0.72), 0 0 16px rgba(255, 184, 77, 0.28);
    }
    50% {
        box-shadow: 0 14px 30px rgba(0,0,0,0.78), 0 0 24px rgba(53, 205, 255, 0.42);
    }
}

.game-share__status {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ccg-bright-2);
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 200ms ease, transform 200ms ease;
}

.game-share__status.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ccg-main > .ccg-share {
    margin: 1.5rem auto 8px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(5, 8, 16, 0.6);
    border: 1px solid var(--ccg-border);
    box-shadow: var(--ccg-panel-shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 3;
}

.ccg-main > .ccg-share .ccg-share-btn {
    font-family: var(--ccg-font-body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 999px;
    padding: 10px 16px;
    border: 1px solid rgba(var(--accent-rgb), 0.4);
    background: rgba(var(--accent-rgb), 0.12);
    color: #fff;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ccg-main > .ccg-share .ccg-share-btn:hover,
.ccg-main > .ccg-share .ccg-share-btn:focus-visible {
    border-color: rgba(var(--accent-rgb), 0.9);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.25);
    transform: translateY(-1px);
}

.ccg-main > .ccg-share .ccg-share-btn.is-copied {
    border-color: rgba(var(--accent-rgb), 0.8);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.25);
}

.ccg-main > .ccg-share .ccg-share-fallback {
    display: none;
}

.game-media-anchor {
    height: 0;
    width: 100%;
    overflow: hidden;
}

.ccg-share-copy-buffer {
    position: absolute;
    left: -9999px;
    top: 0;
}

/* ------------------------------------------------------------
   Game footer CTA layout
   ------------------------------------------------------------ */

body[data-ccg-mode="c64"] {
    --ccg-support-rgb: 255, 198, 120;
}

body[data-ccg-mode="amiga"] {
    --ccg-support-rgb: 255, 155, 220;
}

.ccg-footer--game {
    margin-top: clamp(24px, 4vw, 48px);
}

.ccg-footer-inner--game {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    text-align: center;
}

.ccg-footer--game .ccg-footer__col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.ccg-footer__tagline,
.ccg-footer__note {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ccg-soft);
}

.ccg-footer__btn {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 16px;
    text-align: center;
    gap: 4px;
    flex-direction: column;
}

.ccg-footer__btn-icon {
    font-size: 1.1rem;
}

.ccg-footer__btn-subtext {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    opacity: 0.75;
}

.ccg-footer__btn--support {
    border-color: rgba(var(--ccg-support-rgb), 0.55);
    box-shadow:
        0 12px 26px rgba(0,0,0,0.78),
        0 0 20px rgba(var(--ccg-support-rgb), 0.35);
}

.ccg-footer__btn--support:hover,
.ccg-footer__btn--support:focus-visible {
    border-color: rgba(var(--ccg-support-rgb), 0.85);
    box-shadow:
        0 16px 32px rgba(0,0,0,0.82),
        0 0 26px rgba(var(--ccg-support-rgb), 0.55);
}

@media (min-width: 860px) {
    .ccg-footer-inner--game {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        text-align: left;
    }

    .ccg-footer--game .ccg-footer__col {
        align-items: flex-start;
    }

    .ccg-footer__col--center {
        align-items: center;
        text-align: center;
    }
}

.game-video__frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--ccg-border);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

@media (hover: none) and (pointer: coarse) {
    .game-video {
        position: relative;
        isolation: isolate;
        transform: none;
        scale: 1;
        zoom: 1;
    }

    .game-video__frame {
        position: relative;
        z-index: 2;
        pointer-events: auto;
        touch-action: manipulation;
        transform: none;
        scale: 1;
        zoom: 1;
        filter: none;
        will-change: auto;
        box-sizing: border-box;
        min-width: 44px;
        min-height: 44px;
    }
}

.game-video__actions,
.game-downloads__actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.game-manual-inline {
    margin-top: 14px;
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.7);
    background: linear-gradient(160deg, rgba(12, 14, 24, 0.96), rgba(8, 10, 18, 0.92));
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.75),
        0 0 26px rgba(var(--accent-rgb), 0.35);
    overflow: hidden;
}

.game-manual-inline__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.45);
    background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.22), rgba(255, 255, 255, 0.03));
}

.game-manual-inline__title {
    margin: 0;
    font-size: 0.86rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f3f7ff;
}

.game-manual-inline__close {
    border: 1px solid rgba(var(--accent-rgb), 0.6);
    border-radius: 10px;
    background: rgba(4, 7, 14, 0.75);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.68rem;
    line-height: 1;
    padding: 10px 12px;
    cursor: pointer;
}

.game-manual-inline__close:hover,
.game-manual-inline__close:focus-visible {
    background: rgba(var(--accent-rgb), 0.2);
    box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.35);
    outline: none;
}

.game-manual-inline__frame {
    width: 100%;
    height: min(80vh, 920px);
    max-height: 80vh;
    border: 0;
    display: block;
    background: #04060d;
    overflow: auto;
}

@media (max-width: 768px) {
    .game-manual-inline {
        margin-top: 12px;
    }

    .game-manual-inline__header {
        padding: 10px 12px;
    }

    .game-manual-inline__close {
        padding: 10px;
    }

    .game-manual-inline__frame {
        height: min(70vh, 640px);
    }
}

.game-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    min-height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg,
        rgba(var(--accent-rgb),0.28),
        rgba(255,255,255,0.06));
    border: 1px solid rgba(var(--accent-rgb),0.65);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
    line-height: 1;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.game-pill:hover,
.game-pill:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.8), 0 0 20px rgba(var(--accent-rgb),0.4);
    outline: none;
}

.game-pill .ccg-btn__icon {
    width: 1.1rem;
    height: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.1rem;
}

.game-pill .ccg-btn__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

.game-pill .ccg-btn__label {
    line-height: 1;
}

/* ------------------------------------------------------------
   Single Game UX Enhancements
   ------------------------------------------------------------ */

.ccg-scroll-progress {
    position: fixed;
    top: env(safe-area-inset-top);
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1200;
    pointer-events: none;
}

.ccg-scroll-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
        rgba(var(--accent-rgb), 0.8),
        rgba(255, 255, 255, 0.7));
    box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.5);
    transition: width 120ms ease;
}

.game-toc {
    width: min(1100px, 96%);
    margin: 6px auto 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(5, 10, 18, 0.6);
    border: 1px solid var(--ccg-border);
    box-shadow: var(--ccg-panel-shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.game-section,
.game-hero,
.game-facts {
    scroll-margin-top: 110px;
}

.game-toc[hidden] {
    display: none;
}

.game-toc__btn {
    border: 1px solid rgba(var(--accent-rgb), 0.45);
    background: rgba(var(--accent-rgb), 0.12);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-family: var(--ccg-font-body);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.game-toc__btn:hover,
.game-toc__btn:focus-visible {
    border-color: rgba(var(--accent-rgb), 0.85);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.25);
    transform: translateY(-1px);
    outline: none;
}

.game-facts {
    width: min(1100px, 96%);
    margin: 10px auto 14px;
    border-radius: 18px;
    background:
        linear-gradient(155deg, rgba(var(--accent-rgb), 0.18), rgba(8, 12, 22, 0.92) 34%, rgba(5, 8, 16, 0.95)),
        rgba(5, 8, 16, 0.84);
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.48), 0 0 18px rgba(var(--accent-rgb), 0.2);
    overflow: hidden;
}

.game-facts[hidden] {
    display: none;
}

.game-facts__inner {
    display: grid;
    gap: 16px;
    padding: clamp(14px, 2vw, 20px);
}

.game-facts__header {
    display: grid;
    gap: 4px;
}

.game-facts__header .game-section__kicker {
    margin: 0;
}

.game-facts__header .game-section__title {
    margin: 0;
}

.game-facts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.game-facts__item {
    display: grid;
    gap: 6px;
    padding: 12px 13px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.12), rgba(12, 18, 30, 0.58));
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.game-facts__label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ccg-soft);
}

.game-facts__value {
    font-size: 0.95rem;
    color: var(--ccg-bright-2);
}

.game-facts__hardware {
    display: grid;
    gap: 10px;
    padding-top: 2px;
}

.game-facts__hardware-title {
    margin: 0;
    font-family: var(--ccg-font-main);
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-quick-actions {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    transform: translate(-50%, calc(-1 * var(--ccg-quick-actions-lift, 0px)));
    display: flex;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 14px;
    background: rgba(6, 10, 18, 0.78);
    border: 1px solid rgba(var(--accent-rgb), 0.32);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55), 0 0 10px rgba(var(--accent-rgb), 0.18);
    z-index: 1150;
    backdrop-filter: blur(12px);
    transition: transform 160ms ease;
}

.game-quick-actions[hidden] {
    display: none;
}

.game-quick-actions button {
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    background: rgba(var(--accent-rgb), 0.1);
    color: #fff;
    font-family: var(--ccg-font-body);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.game-quick-actions button[data-action] {
    --quick-glow: var(--accent-rgb);
    border-color: rgba(var(--quick-glow), 0.45);
    background: rgba(var(--quick-glow), 0.16);
    box-shadow: 0 0 14px rgba(var(--quick-glow), 0.25);
}

.game-quick-actions button[data-action="video"] {
    --quick-glow: 0, 198, 255;
}

.game-quick-actions button[data-action="share"] {
    --quick-glow: 0, 220, 200;
}

.game-quick-actions button[data-action="subscribe"] {
    --quick-glow: 255, 74, 92;
}

.game-quick-actions button[data-action="support"] {
    --quick-glow: 255, 183, 64;
}

.game-quick-actions button:hover,
.game-quick-actions button:focus-visible {
    border-color: rgba(var(--quick-glow), 0.8);
    box-shadow: 0 0 0 1px rgba(var(--quick-glow), 0.25), 0 0 16px rgba(var(--quick-glow), 0.35);
    transform: translateY(-1px);
    outline: none;
}

.game-quick-actions button:disabled,
.game-quick-actions button.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.ccg-back-to-top-wrap {
    position: fixed;
    right: 18px;
    bottom: calc(90px + env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    gap: 10px;
    z-index: 1150;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
}

.ccg-back-to-top-wrap.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ccg-back-to-top {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(var(--accent-rgb), 0.5);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(0,0,0,0.6), 0 0 16px rgba(var(--accent-rgb), 0.2);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    display: grid;
    place-items: center;
}

.ccg-back-to-top-wrap[hidden] {
    display: none;
}

.ccg-back-to-top__label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(var(--accent-rgb), 0.85);
    opacity: 0.7;
    text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.45);
    white-space: nowrap;
    pointer-events: none;
}

.ccg-back-to-top:hover,
.ccg-back-to-top:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(var(--accent-rgb), 0.9);
    box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 18px rgba(var(--accent-rgb), 0.35);
    outline: none;
}

.ccg-modal-counter {
    position: absolute;
    top: 14px;
    right: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(var(--accent-rgb), 0.4);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    z-index: 2;
}

.ccg-modal-counter[hidden] {
    display: none;
}

.game-empty {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(var(--accent-rgb), 0.35);
    color: var(--ccg-soft);
    font-size: 0.95rem;
    text-align: center;
}

/* ------------------------------------------------------------
   Screenshots & Related
   ------------------------------------------------------------ */

.game-screenshots__strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.game-screenshot-thumb {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--ccg-border);
    background: rgba(0,0,0,0.3);
    box-shadow: 0 18px 38px rgba(0,0,0,0.7);
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.game-screenshot-thumb:hover,
.game-screenshot-thumb:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(0,0,0,0.8), 0 0 18px rgba(var(--accent-rgb),0.35);
    outline: none;
}

.related-carousel {
    --related-card-size: clamp(176px, 22vw, 210px);
    --related-gap: 14px;
    position: relative;
    display: block;
}

.related-carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 14px;
    border: 1px solid var(--ccg-border);
    background: rgba(255,255,255,0.02);
    padding: 10px 52px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 52px;
}

.related-carousel__track {
    display: flex;
    gap: var(--related-gap);
    padding: 4px 4px 10px;
    width: max-content;
    min-width: 100%;
}

.related-carousel .related-card {
    flex: 0 0 var(--related-card-size);
    max-width: var(--related-card-size);
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 14px;
    padding: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(7, 11, 28, 0.9) 100%);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(var(--accent-rgb), 0.08);
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.related-carousel .related-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(var(--accent-rgb), 0.22);
}

.related-card__title {
    min-height: 2.4em;
    line-height: 1.25;
    font-weight: 600;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.related-card__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--accent-rgb), 0.34);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.68rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(233, 244, 255, 0.92);
    background: rgba(9, 16, 36, 0.72);
    white-space: nowrap;
}

.related-card__tag--reason {
    border-color: rgba(var(--accent-rgb), 0.55);
    background: rgba(var(--accent-rgb), 0.18);
    color: #e7f7ff;
}

.related-carousel .related-card:hover,
.related-carousel .related-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(var(--accent-rgb), 0.55);
    box-shadow: 0 22px 36px rgba(0, 0, 0, 0.58), 0 0 16px rgba(var(--accent-rgb), 0.3);
    outline: none;
}

.related-carousel__viewport::-webkit-scrollbar {
    height: 8px;
}

.related-carousel__viewport::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-rgb), 0.35);
    border-radius: 99px;
}

.related-carousel__nav {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    border: 1px solid var(--ccg-border);
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 22px;
    display: grid;
    place-items: center;
    position: absolute;
    top: calc(50% - 25px);
    transform: none !important;
    z-index: 4;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-drag: none;
    transition: box-shadow 140ms ease, opacity 140ms ease, filter 140ms ease, border-color 140ms ease;
}

.related-carousel__nav[disabled],
.related-carousel__nav[aria-disabled="true"] {
    opacity: 0.34;
    filter: saturate(0.6);
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}

.related-carousel__nav--prev { left: 10px; }

.related-carousel__nav--next { right: 10px; }

.related-carousel__nav:focus-visible {
    border-color: rgba(var(--accent-rgb), 0.8);
    box-shadow: 0 16px 32px rgba(0,0,0,0.6), 0 0 14px rgba(var(--accent-rgb),0.4);
    filter: brightness(1.06);
    opacity: 1;
    transform: none !important;
    outline: none;
}

@media (hover: hover) and (pointer: fine) {
    .related-carousel__nav:hover {
        border-color: rgba(var(--accent-rgb), 0.8);
        box-shadow: 0 16px 32px rgba(0,0,0,0.6), 0 0 14px rgba(var(--accent-rgb),0.4);
        filter: brightness(1.06);
        opacity: 1;
        transform: none !important;
    }

    .related-carousel__nav:active {
        transform: scale(0.97) !important;
        border-color: rgba(var(--accent-rgb), 0.95);
        box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.5), 0 12px 24px rgba(0,0,0,0.55);
        filter: brightness(1.12);
        opacity: 0.94;
    }
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.related-card {
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--ccg-border);
    display: grid;
    gap: 8px;
    transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.related-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    background: rgba(0,0,0,0.4);
    display: block;
}

.related-card:hover,
.related-card:focus-visible {
    border-color: rgba(var(--accent-rgb),0.7);
    box-shadow: 0 20px 42px rgba(0,0,0,0.75), 0 0 16px rgba(var(--accent-rgb),0.32);
    transform: translateY(-1px);
    outline: none;
}

.related-card__meta {
    color: var(--ccg-soft);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 900px) {
    .game-quick-actions {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 16px;
        padding: 8px;
    }

    .ccg-back-to-top {
        right: 14px;
        bottom: calc(96px + env(safe-area-inset-bottom));
    }

    .game-hero__inner {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .game-hero__media { order: 1; }
    .game-hero__content { order: 2; }

    .game-hero__media {
        width: min(360px, 92vw);
        justify-self: center;
    }

    .game-hero__content {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .game-hero--has-box3d .game-hero__inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "content"
            "box";
        justify-items: center;
        width: 100%;
        max-width: 100%;
    }

    .game-hero--has-box3d .game-hero__box3d {
        width: min(60vw, 240px);
        justify-self: center;
        margin-top: 0.5rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .game-hero__meta {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .game-media__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "video"
            "downloads"
            "links";
    }
}

@media (max-width: 768px) {
    /* MOBILE SCROLL STABILITY LOCK — DO NOT MODIFY */
    /* Audit notes: scroll resistance traced to html/body, .ccg-page, .ccg-main, main,
       .game-shell, and horizontal carousels retaining overflow/height/position locks. */
    html[data-ccg-page="single-game"],
    html[data-ccg-page="single-game"] body {
        height: auto;
        min-height: 100%;
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden;
        position: static;
        overscroll-behavior: auto;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: auto;
    }

    html[data-ccg-page="single-game"] body.ccg-body--locked {
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .ccg-page--single-game {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
        position: static;
        contain: none;
        isolation: auto;
    }

    .ccg-page--single-game :where(.ccg-main,
           main,
           .game-shell,
           .game-container,
           .game-wrapper,
           .game-content,
           .ccg-footer) {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: unset;
        max-height: none;
        overflow: visible;
        position: static;
        contain: none;
        isolation: auto;
        transform: none;
    }

    .ccg-page--single-game :where(.game-hero,
           .game-hero__inner,
           .game-hero__content,
           .game-section,
           .game-media,
           .game-media__grid,
           .game-verdict,
           .game-description,
           .game-facts,
           .game-credits__list,
           .game-media__item--video,
           .game-media__item--downloads,
           .game-media__item--links,
           .game-screenshots,
           .game-screenshots__strip,
           .game-section--related,
           .related-carousel) {
        height: auto;
        min-height: unset;
        max-height: none;
        overflow: visible;
        contain: none;
        transform: none;
    }

    .game-toc {
        padding: 10px;
    }

    .game-toc__btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .game-quick-actions {
        left: 50%;
        width: min(92vw, 520px);
        justify-content: space-between;
        pointer-events: auto;
        touch-action: manipulation;
    }

    .game-quick-actions button {
        flex: 1 1 auto;
        padding: 6px 8px;
        touch-action: manipulation;
    }

    .ccg-page--single-game .ccg-main {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-inline: 0;
        overflow: visible;
        height: auto;
        min-height: unset;
        max-height: none;
        box-sizing: border-box;
    }

    .ccg-page--single-game .game-shell {
        width: 100%;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
        padding-inline: clamp(16px, 5vw, 24px);
        position: relative;
        z-index: 1;
        isolation: isolate;
        height: auto;
        min-height: unset;
        max-height: none;
        overflow: visible;
        box-sizing: border-box;
    }

    html[data-ccg-page="single-game"] .ccg-page--single-game .game-toc {
        position: relative;
        z-index: 1305;
        isolation: isolate;
        will-change: transform;
        transform: translateZ(0);
    }

    .ccg-page--single-game .game-hero,
    .ccg-page--single-game .game-section,
    .ccg-page--single-game .game-media,
    .ccg-page--single-game .related-carousel,
    .ccg-page--single-game .related-carousel__viewport,
    .ccg-page--single-game .related-carousel__track {
        width: 100%;
        max-width: 720px;
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
    }

    .ccg-page--single-game .related-carousel__viewport {
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        overscroll-behavior-x: contain;
        overscroll-behavior-y: none;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .ccg-page--single-game .related-carousel__track {
        width: max-content;
        min-width: 100%;
        box-sizing: border-box;
        max-width: none;
    }

    .ccg-page--single-game .related-carousel .related-card,
    .ccg-page--single-game .related-carousel .ccg-game-card {
        flex: 0 0 auto;
        max-width: 85vw;
        box-sizing: border-box;
    }

    .game-hero__inner,
    .game-media__grid,
    .game-screenshots__strip {
        max-width: 100%;
        box-sizing: border-box;
    }

    .game-hero__meta,
    .game-video__actions,
    .game-downloads__actions {
        display: flex;
        flex-wrap: wrap;
    }

    .game-hero__badges {
        justify-content: center;
        align-items: center;
    }

    .game-media__links-list {
        justify-content: center;
        align-items: center;
    }

    .game-hero__content,
    .game-hero__meta,
    .game-meta__item,
    .ccg-rating,
    .ccg-rating__label,
    .ccg-rating__status,
    .ccg-rating__reason {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .game-hero__title {
        white-space: normal;
        max-width: 100%;
    }

    .ccg-behind-pixels-inline__list {
        grid-template-columns: 1fr;
    }

    .ccg-behind-pixels-inline__list dt {
        font-size: 0.74rem;
    }
}

@media (max-width: 600px) {
    .ccg-page--single-game .game-hero {
        padding: 1.5rem 1.25rem 1.75rem;
    }

    .ccg-page--single-game .game-section {
        padding: 12px 14px;
    }

    .ccg-page--single-game .related-carousel__viewport {
        padding: 10px 18px;
        scroll-padding-inline: 18px;
    }
}

@media (max-width: 480px) {
    .game-quick-actions {
        gap: 6px;
        padding: 6px 8px;
    }

    .game-quick-actions button {
        font-size: 0.64rem;
        letter-spacing: 0.09em;
    }

    .ccg-back-to-top {
        width: 40px;
        height: 40px;
    }

    .ccg-back-to-top__label {
        font-size: 0.64rem;
        letter-spacing: 0.06em;
    }

    .ccg-page--single-game .ccg-main {
        padding-inline: 0;
    }

    .ccg-page--single-game .game-shell {
        padding-inline: 14px;
    }

    .ccg-page--single-game .game-hero {
        padding: 1.35rem 1.1rem 1.6rem;
    }

    .ccg-page--single-game .game-section {
        padding: 12px;
    }

    .ccg-page--single-game .related-carousel__viewport {
        padding: 10px 12px;
        scroll-padding-inline: 12px;
    }
}

@media (max-width: 720px) {
    .games-search { flex-direction: column; align-items: stretch; }
    .games-hero, .games-tools, .games-library { width: 100%; }
    .ccg-page--games-index .games-hero__inner {
        text-align: center;
        justify-items: center;
    }

    .ccg-page--games-index .games-hero__subtitle {
        max-width: 420px;
    }

    .ccg-page--games-index .games-hero__stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    #gamesAlphaStrip { grid-template-columns: repeat(auto-fit, minmax(52px, 1fr)); }

    .related-carousel {
        overflow: visible;
    }

    .related-carousel__viewport {
        overflow-x: auto;
        overflow-y: hidden;
    }

    .related-carousel__nav {
        z-index: 3;
    }

    .ccg-page--games-index .ccg-game-card__title,
    .ccg-page--single-game .ccg-game-card__title {
        /* Mobile clip fix: base card styles rely on tight spacing; allow multi-line titles to expand. */
        font-size: clamp(0.95rem, 3.4vw, 1.05rem);
        line-height: 1.35;
        letter-spacing: 0.08em;
        white-space: normal;
        overflow-wrap: anywhere;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .game-hero__title {
        /* Mobile clip fix: hero titles must wrap without being cut off on narrow screens. */
        font-size: clamp(1.45rem, 4.6vw, 2rem);
        line-height: 1.25;
        letter-spacing: 0.1em;
        word-break: normal;
        white-space: normal;
        overflow-wrap: anywhere;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .related-carousel {
        --related-card-size: min(82vw, 310px);
        --related-gap: 12px;
    }

    .related-carousel .related-card .related-card__title {
        /* Mobile clip fix: base rule clamps titles with overflow hidden; remove clamp to show full text. */
        font-size: clamp(0.85rem, 3.6vw, 1rem);
        line-height: 1.35;
        min-height: 0;
        height: auto;
        max-height: none;
        display: block;
        overflow: visible;
        white-space: normal;
        overflow-wrap: anywhere;
        -webkit-line-clamp: unset;
        -webkit-box-orient: initial;
    }
}

@media (prefers-reduced-motion: reduce) {
    .games-accordion__content,
    .games-alpha__btn,
    .ccg-game-card,
    .game-pill,
    .game-screenshot-thumb,
    .related-card {
        transition: none;
    }
}

/* ============================================================
   OMEGA POLISH — GAMES INDEX (VISUAL ONLY)
   Append-only • Zero logic risk • Zero layout change
============================================================ */

/* HERO — TERMINAL AUTHORITY */
.ccg-page--games-index .games-hero__title {
    text-shadow:
        0 0 22px rgba(var(--accent-rgb), 0.55),
        0 0 44px rgba(var(--accent-rgb), 0.25);
}

.ccg-page--games-index .games-hero__stats {
    box-shadow:
        inset 0 0 0 1px rgba(var(--accent-rgb), 0.25),
        0 12px 28px rgba(0,0,0,0.6);
}

/* HERO — SUBTLE SCANLINE ENERGY */
.ccg-page--games-index .games-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.04),
            rgba(255,255,255,0.04) 1px,
            transparent 1px,
            transparent 3px
        );
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

/* ENSURE HERO CONTENT STAYS ABOVE */
.ccg-page--games-index .games-hero__inner {
    position: relative;
    z-index: 1;
}

/* GAME CARDS — SCAN CLARITY */
.ccg-game-card__title {
    text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.25);
}

/* GAME CARDS — PREMIUM FRAME */
.ccg-game-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 16px rgba(var(--accent-rgb), 0.18);
    opacity: 0.6;
}

/* DESKTOP ONLY — ELEVATED HOVER ENERGY */
@media (hover: hover) and (pointer: fine) {
    .ccg-game-card:hover {
        transform: translateY(-3px);
        box-shadow:
            0 30px 70px rgba(0,0,0,0.85),
            0 0 42px rgba(var(--accent-rgb), 0.45);
    }
}

/* ALPHABET STRIP — FEATURED FEEL */
.games-alpha {
    position: relative;
}

.games-alpha::after {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(var(--accent-rgb), 0.18),
        transparent 55%
    );
    opacity: 0.45;
    pointer-events: none;
}

/* MOBILE — HARD SAFETY */
@media (max-width: 820px) {
    .ccg-game-card::after,
    .games-alpha::after,
    .ccg-page--games-index .games-hero::before {
        display: none;
    }
}

.game-section--user-rating {
  margin-top: 1rem;
}

.ccg-user-rating__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.6rem 0;
  align-items: center;
}

.ccg-user-rating__controls input[type='text'],
.ccg-user-rating__controls input[type='number'] {
  border: 1px solid rgba(104, 225, 255, 0.35);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: rgba(7, 15, 35, 0.85);
  color: #e8fbff;
}

.ccg-user-rating__status {
  color: #9cd8ea;
  min-height: 1.4rem;
}


/* ============================================================
   GAME BUTTON CONTRACT LOCK
   ------------------------------------------------------------
   Prevents legacy rounded button styles from overriding unified
   CCG button contract on game pages.
============================================================ */
.game-page button,
.game-cta {
    border-radius: 0 !important;
    filter: none !important;
}

/* Prevent legacy rounding */
button,
.ccg-btn,
.game-cta {
    border-radius: 0 !important;
}

[data-ccg-favourite-btn].is-active {
  border-color: rgba(255, 215, 0, 0.7);
}

[data-ccg-favourite-btn].is-busy {
  opacity: 0.75;
}

/* ============================================================
   AFFILIATE PRODUCTS — SINGLE GAME (CENTRALISED)
   ============================================================ */

.affiliate-products-section {
    margin-top: clamp(16px, 2.6vw, 26px);
}

.affiliate-products-inner {
    display: grid;
    gap: 14px;
}

.affiliate-products-title {
    margin: 0;
}

.affiliate-products-disclosure {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
    line-height: 1.45;
}

.affiliate-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(10px, 1.6vw, 16px);
}

.affiliate-product-card {
    display: grid;
    gap: 10px;
    padding: clamp(12px, 1.8vw, 16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(var(--accent-rgb), 0.12), rgba(12, 20, 36, 0.6)),
        rgba(12, 14, 24, 0.55);
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.affiliate-product-card:hover,
.affiliate-product-card:focus-within {
    transform: translateY(-2px);
    border-color: rgba(var(--accent-rgb), 0.45);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.affiliate-product-card__media {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.affiliate-product-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.35));
}

.affiliate-product-card__title {
    margin: 0;
    font-family: var(--ccg-font-main);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.affiliate-product-card__description {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    line-height: 1.45;
}

.affiliate-product-card__cta.ccg-btn {
    justify-content: center;
    margin-top: 2px;
    text-align: center;
    width: 100%;
}

@media (max-width: 768px) {
    .affiliate-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .affiliate-products-grid {
        grid-template-columns: 1fr;
    }
}
