/*
 * AnkerGames Complete Theme Stylesheet
 * Replicating exact animations, dark/light theme, Ken Burns hero slider,
 * tile hover reveals, and cinematic epic collection cards.
 */

:root {
    --color-gray-50: oklch(0.984 0.003 248.234);
    --color-gray-100: oklch(0.968 0.007 248.084);
    --color-gray-200: oklch(0.929 0.013 255.561);
    --color-gray-300: oklch(0.869 0.02 252.937);
    --color-gray-400: oklch(0.711 0.035 256.803);
    --color-gray-500: oklch(0.554 0.041 257.428);
    --color-gray-600: oklch(0.446 0.037 257.291);
    --color-gray-700: oklch(0.372 0.039 257.296);
    --color-gray-800: oklch(0.279 0.037 260.038);
    --color-gray-900: oklch(0.208 0.04 265.759);
    --color-gray-950: oklch(0.129 0.041 264.7);

    --color-primary-50: oklch(0.896 0.0215 262.887);
    --color-primary-100: oklch(0.866 0.03225 262.887);
    --color-primary-200: oklch(0.816 0.05375 262.887);
    --color-primary-300: oklch(0.746 0.09675 262.887);
    --color-primary-400: oklch(0.626 0.16125 262.887);
    --color-primary-500: oklch(0.546 0.215 262.887);
    --color-primary-600: oklch(0.476 0.2365 262.887);
    --color-primary-700: oklch(0.416 0.215 262.887);
    --color-primary-800: oklch(0.356 0.1763 262.887);
    --color-primary-900: oklch(0.296 0.1419 262.887);
    --color-primary-950: oklch(0.166 0.086 262.887);

    --theme-color: oklch(0.546 0.215 262.887);
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-body: #f8fafc;
    --text-body: #0f172a;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
}

html.dark {
    --color-gray-50: oklch(0.984 0.003 248.234);
    --color-gray-100: oklch(0.968 0.007 248.084);
    --color-gray-200: oklch(0.929 0.013 255.561);
    --color-gray-300: oklch(0.869 0.02 252.937);
    --color-gray-400: oklch(0.711 0.035 256.803);
    --color-gray-500: oklch(0.554 0.041 257.428);
    --color-gray-600: oklch(0.446 0.037 257.291);
    --color-gray-700: oklch(0.372 0.039 257.296);
    --color-gray-800: oklch(0.279 0.037 260.038);
    --color-gray-900: oklch(0.208 0.04 265.759);
    --color-gray-950: oklch(0.129 0.041 264.7);

    --theme-color: oklch(0.693 0.132 232.828);
    --primary-color: #2aa9e0;
    --primary-hover: #38bdf8;
    --bg-body: #0b0f19;
    --text-body: #f1f5f9;
    --card-bg: #111827;
    --border-color: #1f2937;
}

/* Base resets & typography */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

img, picture {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.custom-container {
    width: 100%;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .custom-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .custom-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* --- HEADER & NAVIGATION --- */
.site-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

html.dark .site-header {
    background-color: rgba(11, 15, 25, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--text-body);
}

.brand-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-highlight {
    color: var(--primary-color);
}

.header-nav {
    display: none;
    align-items: center;
    gap: 0.35rem;
}

@media (min-width: 1024px) {
    .header-nav {
        display: flex;
    }
}

.nav-link {
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

html.dark .nav-link {
    color: #94a3b8;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.08);
}

html.dark .nav-link:hover, html.dark .nav-link.active {
    color: #ffffff;
    background-color: rgba(42, 169, 224, 0.12);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-trigger-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 0.5rem;
    background-color: #e2e8f0;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

html.dark .search-trigger-btn {
    background-color: #1e293b;
    color: #94a3b8;
}

.search-trigger-btn:hover {
    color: var(--text-body);
    background-color: #cbd5e1;
}

html.dark .search-trigger-btn:hover {
    background-color: #334155;
    color: #ffffff;
}

.kbd-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
    background-color: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-family: monospace;
}

html.dark .kbd-badge {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Quantum Portal / Random Game Button */
.quantum-portal-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(147, 51, 234, 0.1));
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--primary-color);
    transition: all 0.25s ease;
}

.quantum-portal-btn:hover {
    transform: rotate(180deg) scale(1.08);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.35);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 0.5rem;
    color: #64748b;
    transition: all 0.2s ease;
}

html.dark .theme-toggle-btn {
    color: #fbbf24;
}

.theme-toggle-btn:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

html.dark .theme-toggle-btn:hover {
    background-color: #1e293b;
    color: #fde68a;
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover svg {
    transform: rotate(25deg);
}

.mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 0.5rem;
    color: var(--text-body);
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* --- MOBILE SIDEBAR DRAWER --- */
.mobile-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 49;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    overflow-y: auto;
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar-nav-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 0.6rem;
    transition: all 0.15s ease;
}

html.dark .sidebar-nav-item a {
    color: #94a3b8;
}

.sidebar-nav-item a:hover {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.08);
}

html.dark .sidebar-nav-item a:hover {
    color: #ffffff;
    background-color: rgba(42, 169, 224, 0.12);
}

/* --- HERO BANNER SLIDER --- */
.hero-slider-section {
    position: relative;
    margin-bottom: 2rem;
    padding-top: 0.5rem;
}

.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 800;
    min-height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    isolation: isolate;
    background-color: #0b0f19;
}

@media (max-width: 768px) {
    .slider-container {
        min-height: 460px;
        aspect-ratio: auto;
    }
}

.slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.02);
    display: flex;
    align-items: center;
}

.slide-item.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.slide-image-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.slide-item.active .slide-bg-img {
    animation: ken-burns 8s ease-out forwards;
}

.slide-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

@keyframes ken-burns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

/* Multi-layered cinematic overlays */
.slide-overlay-left {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(11, 15, 25, 0.96) 0%, rgba(11, 15, 25, 0.85) 25%, rgba(11, 15, 25, 0.55) 50%, rgba(11, 15, 25, 0.15) 75%, transparent 100%);
    z-index: 1;
}

.slide-overlay-bottom {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.45) 30%, transparent 60%);
    z-index: 1;
}

.slide-overlay-radial {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 120% 100% at 70% 50%, transparent 40%, rgba(11, 15, 25, 0.6) 100%);
    z-index: 1;
}

/* Edge blending */
.slider-edge-blend {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    border-radius: 1rem;
}

.slider-edge-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(to bottom, rgba(11, 15, 25, 0.8), transparent);
}

.slider-edge-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.8), transparent);
}

/* Slide Content */
.slide-content-box {
    position: relative;
    z-index: 3;
    max-width: 720px;
    padding: 2.5rem 2rem;
    color: #ffffff;
}

@media (min-width: 1024px) {
    .slide-content-box {
        padding: 3.5rem 3rem;
    }
}

.slide-item.active .slide-logo {
    animation: slideUpFade 0.5s ease-out 0.1s both;
}

.slide-item.active .slide-meta {
    animation: slideUpFade 0.5s ease-out 0.2s both;
}

.slide-item.active .slide-desc {
    animation: slideUpFade 0.5s ease-out 0.3s both;
}

.slide-item.active .slide-cta-row {
    animation: slideUpFade 0.5s ease-out 0.4s both;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

@media (min-width: 640px) {
    .slide-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .slide-title {
        font-size: 3.25rem;
    }
}

.slide-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.badge-version {
    background-color: #10b981;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 0.375rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge-platform {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 0.375rem;
}

.slide-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-cta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 0.625rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    transition: all 0.25s ease;
}

.btn-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
    filter: brightness(1.1);
}

.btn-secondary-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-secondary-action:hover {
    color: #ffffff;
    transform: translateX(4px);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

/* Slider Pagination Dots */
.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 2rem;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slider-dot {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider-dot.active {
    width: 48px;
    background-color: var(--primary-color);
}

/* --- SOCIAL CHANNELS BAR --- */
.social-channels-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-pill.discord {
    background-color: #5865F2;
}

.social-pill.discord:hover {
    background-color: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
}

.social-pill.telegram {
    background-color: #229ED9;
}

.social-pill.telegram:hover {
    background-color: #1c88bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(34, 158, 217, 0.4);
}

/* --- SECTION HEADINGS --- */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 1280px) {
    .section-title {
        font-size: 1.4rem;
    }
}

.section-badge-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.825rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 0.5rem;
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.section-badge-action:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* --- RESPONSIVE GAMES GRID --- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .games-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1536px) {
    .games-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

/* ================================================================
   EXACT GAME TILE & TEXT ANIMATION (ANKERGAMES POSTER CARD)
   ================================================================ */

.game-card-article {
    position: relative;
    border-radius: 0.375rem;
    transition: transform 0.2s ease;
}

.ui-post-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 0.375rem;
    background-color: #e2e8f0;
    clip-path: inset(0 round 0.375rem);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 300ms ease-out, filter 120ms ease-out, transform 0.2s ease;
}

html.dark .ui-post-frame {
    background-color: #1e293b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.game-card-article:hover .ui-post-frame,
.game-card-article:focus-within .ui-post-frame {
    box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.35);
}

.game-card-article:active .ui-post-frame {
    filter: brightness(0.94);
    transform: scale(0.985);
}

/* Card Poster Image */
.card-poster-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease-out;
}

.game-card-article:hover .card-poster-img {
    transform: scale(1.04);
}

/* Hover Tint Overlay */
.ui-post-reveal-tint {
    position: absolute;
    inset: -2px;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease-out;
}

.game-card-article:hover .ui-post-reveal-tint,
.game-card-article:focus-within .ui-post-reveal-tint {
    opacity: 1;
}

/* Bottom Dark Gradient for Text Legibility */
.ui-post-reveal-gradient {
    position: absolute;
    inset-inline: -2px;
    bottom: -2px;
    height: calc(52% + 4px);
    z-index: 2;
    background: linear-gradient(to top, rgb(0, 0, 0) 0%, rgb(0, 0, 0) 20%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease-out;
}

.game-card-article:hover .ui-post-reveal-gradient,
.game-card-article:focus-within .ui-post-reveal-gradient {
    opacity: 1;
}

/* Top-Right Version Pill Animation */
.ui-post-reveal-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 3;
    max-width: 75%;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.game-card-article:hover .ui-post-reveal-badge,
.game-card-article:focus-within .ui-post-reveal-badge {
    opacity: 1;
    transform: translateY(0);
}

.version-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    padding: 0 0.5rem;
    border-radius: 0.25rem;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #ffffff;
    background-color: #10b981;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tile Bottom Text Animation */
.ui-post-reveal-info {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 3;
    padding: 0.75rem 0.75rem 0.75rem 0.75rem;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.game-card-article:hover .ui-post-reveal-info,
.game-card-article:focus-within .ui-post-reveal-info {
    opacity: 1;
    transform: translateY(0);
}

.tile-category {
    margin-bottom: 0.25rem;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tile-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

@media (min-width: 640px) {
    .tile-title {
        font-size: 14px;
    }
}

.tile-meta-row {
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    font-variant-numeric: tabular-nums;
}

.tile-meta-sep {
    display: inline-block;
    width: 1px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.25);
}

/* Entire Card Clickable Link */
.card-anchor-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: 0.375rem;
    outline: none;
}

.card-anchor-cover:focus-visible {
    box-shadow: 0 0 0 3px var(--primary-color);
}

/* Touch / Mobile behavior: Reveal is persistent so mobile users see title clearly */
@media (hover: none) {
    .ui-post-reveal-tint {
        opacity: 0.15 !important;
    }
    .ui-post-reveal-gradient {
        opacity: 1 !important;
    }
    .ui-post-reveal-badge {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    .ui-post-reveal-info {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* ================================================================
   UPCOMING GAMES SECTION
   ================================================================ */
.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .upcoming-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .upcoming-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .upcoming-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.upcoming-card {
    position: relative;
    display: block;
    height: 140px;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: #1e293b;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.upcoming-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.upcoming-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.upcoming-card:hover .upcoming-thumb {
    transform: scale(1.08);
}

.upcoming-dark-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.6) 100%);
    transition: opacity 0.3s ease;
}

.upcoming-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
}

.upcoming-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--primary-color);
    color: #ffffff;
}

.upcoming-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    transition: color 0.2s ease;
}

.upcoming-card:hover .upcoming-title {
    color: var(--primary-color);
}

/* ================================================================
   CINEMATIC EPIC COLLECTIONS (FAN COLLAGE CARDS)
   ================================================================ */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
    .collections-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .collections-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.cl-hub {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    isolation: isolate;
    display: block;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

@media (max-width: 1023px) {
    .cl-hub {
        aspect-ratio: 2 / 1;
    }
}

@media (max-width: 639px) {
    .cl-hub {
        aspect-ratio: 21 / 9;
    }
}

.cl-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.cl-blur {
    position: absolute;
    inset: -18%;
    z-index: 0;
}

.cl-blur img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(24px) saturate(1.6) brightness(0.65);
    transform: scale(1.08);
}

.cl-cover {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cl-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
    filter: saturate(1.05);
}

/* Dynamic Poster Fan Collage */
.cl-collage {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.cl-collage .p {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 78%;
    width: auto;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 18px 34px -12px rgba(0, 0, 0, 0.9);
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, box-shadow 0.4s ease;
}

.cl-collage .p img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 1 Game in Collection: Center single poster proudly */
.cl-collage.has-1 .p,
.cl-collage .p:only-child {
    transform: translate(-50%, -50%);
    opacity: 1;
    z-index: 2;
    height: 82%;
    box-shadow: 0 22px 45px -12px rgba(0, 0, 0, 0.95);
}

/* 2 Games in Collection: Dual angled posters */
.cl-collage.has-2 .p:nth-child(1) {
    transform: translate(-50%, -50%) translateX(-24%) rotate(-6deg);
    opacity: 0.88;
    z-index: 1;
    height: 78%;
}

.cl-collage.has-2 .p:nth-child(2) {
    transform: translate(-50%, -50%) translateX(24%) rotate(6deg);
    opacity: 1;
    z-index: 2;
    height: 80%;
}

/* 3+ Games in Collection: 3-Poster Fan Stack */
.cl-collage.has-3 .p:nth-child(1),
.cl-collage:not(.has-1):not(.has-2) .p:nth-child(1) {
    transform: translate(-50%, -50%) translateX(-48%) rotate(-9deg);
    opacity: 0.65;
    z-index: 1;
}

.cl-collage.has-3 .p:nth-child(2),
.cl-collage:not(.has-1):not(.has-2) .p:nth-child(2) {
    transform: translate(-50%, -50%);
    opacity: 1;
    z-index: 2;
    height: 80%;
}

.cl-collage.has-3 .p:nth-child(3),
.cl-collage:not(.has-1):not(.has-2) .p:nth-child(3) {
    transform: translate(-50%, -50%) translateX(48%) rotate(9deg);
    opacity: 0.65;
    z-index: 1;
}

/* Custom placeholder when a game has no uploaded cover image */
.p-custom-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0.75rem;
    text-align: center;
    color: #94a3b8;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.p-custom-placeholder svg {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.4));
}

.p-placeholder-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.cl-cover-fallback {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, #1e293b 0%, #090d16 100%);
}

/* Shading gradients */
.cl-veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(0deg, rgba(2, 5, 10, 0.95) 5%, rgba(2, 5, 10, 0.55) 45%, rgba(2, 5, 10, 0.08) 75%, rgba(2, 5, 10, 0.3) 100%);
}

.cl-mark {
    position: absolute;
    right: 16px;
    top: 6px;
    z-index: 2;
    line-height: 1;
    color: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    font-size: 72px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

/* Card Body & HUD */
.cl-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cl-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.cl-hud {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.cl-hud .u {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cl-hud svg {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}

.cl-hud b {
    color: #ffffff;
    font-weight: 600;
}

.cl-hud .bar {
    width: 1px;
    height: 11px;
    background: rgba(255, 255, 255, 0.22);
}

.cl-peek {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(2, 5, 10, 0.75);
    border: 1px solid rgba(42, 169, 224, 0.4);
    color: var(--primary-color);
    opacity: 0;
    transform: translate(4px, -4px);
    transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Animation - Fan Posters Out */
@media (hover: hover) {
    .cl-hub:hover {
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.9);
    }
    .cl-hub:hover .cl-cover img {
        transform: scale(1.08);
    }
    /* Hover for 1 Game: Centered zoom */
    .cl-hub:hover .cl-collage.has-1 .p,
    .cl-hub:hover .cl-collage .p:only-child {
        transform: translate(-50%, -55%) scale(1.06);
        opacity: 1;
        box-shadow: 0 28px 55px -10px rgba(0, 0, 0, 1), 0 0 25px rgba(37, 99, 235, 0.4);
    }
    /* Hover for 2 Games: Dual spread */
    .cl-hub:hover .cl-collage.has-2 .p:nth-child(1) {
        transform: translate(-50%, -50%) translateX(-40%) rotate(-10deg);
        opacity: 0.95;
    }
    .cl-hub:hover .cl-collage.has-2 .p:nth-child(2) {
        transform: translate(-50%, -55%) translateX(40%) rotate(10deg);
        opacity: 1;
    }
    /* Hover for 3+ Games: 3-card fan spread */
    .cl-hub:hover .cl-collage.has-3 .p:nth-child(1),
    .cl-hub:hover .cl-collage:not(.has-1):not(.has-2) .p:nth-child(1) {
        transform: translate(-50%, -50%) translateX(-66%) rotate(-13deg);
        opacity: 0.85;
    }
    .cl-hub:hover .cl-collage.has-3 .p:nth-child(3),
    .cl-hub:hover .cl-collage:not(.has-1):not(.has-2) .p:nth-child(3) {
        transform: translate(-50%, -50%) translateX(66%) rotate(13deg);
        opacity: 0.85;
    }
    .cl-hub:hover .cl-collage.has-3 .p:nth-child(2),
    .cl-hub:hover .cl-collage:not(.has-1):not(.has-2) .p:nth-child(2) {
        transform: translate(-50%, -56%);
    }
    .cl-hub:hover .cl-peek {
        opacity: 1;
        transform: none;
    }
}

/* --- FOOTER DIRECTORY --- */
.site-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--card-bg);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.footer-center {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-body);
    margin-bottom: 1rem;
}

.footer-desc {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

html.dark .footer-desc {
    color: #94a3b8;
}

.footer-genres-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin-bottom: 2rem;
}

.footer-genre-link {
    color: #64748b;
    font-size: 0.85rem;
    transition: color 0.15s ease;
}

html.dark .footer-genre-link {
    color: #94a3b8;
}

.footer-genre-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-bottom-copy {
    font-size: 0.8rem;
    color: #94a3b8;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

/* --- SEARCH MODAL --- */
.search-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem 1rem 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.search-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.search-dialog {
    width: 100%;
    max-width: 640px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal-backdrop.active .search-dialog {
    transform: translateY(0) scale(1);
}

.search-input-header {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    gap: 0.75rem;
}

.search-input-field {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.05rem;
    color: var(--text-body);
}

.search-results-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 0.75rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s ease;
}

.search-result-item:hover {
    background-color: rgba(37, 99, 235, 0.08);
}

html.dark .search-result-item:hover {
    background-color: rgba(42, 169, 224, 0.12);
}

.search-result-thumb {
    width: 44px;
    height: 58px;
    border-radius: 0.3rem;
    object-fit: cover;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================================================
   INTERACTIVE CATEGORY TABS & SCROLL MARGIN OFFSETS
   ================================================================ */
html {
    scroll-behavior: smooth;
}

.games-section,
#trending-section,
#latest-section,
#upcoming-section,
#collections-section,
.hero-slider-section {
    scroll-margin-top: 85px;
}

.category-tabs-nav-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem 1.25rem;
    margin-bottom: 2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.category-tabs-nav-bar::-webkit-scrollbar {
    display: none;
}

.cat-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cat-tab-btn svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.cat-tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.cat-tab-btn:hover svg {
    transform: scale(1.1);
}

.cat-tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff !important;
    box-shadow: 0 4px 16px -2px rgba(37, 99, 235, 0.5);
}

.cat-tab-btn.active svg {
    color: #ffffff !important;
}

html.dark .cat-tab-btn {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.08);
}

html.dark .cat-tab-btn:hover {
    border-color: var(--primary-color);
}

html.dark .cat-tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff !important;
}

/* Flame Download Pill on Trending Cards */
.download-flame-pill {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    font-size: 10px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #f97316;
    padding: 2.5px 7px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 3.5px;
    border: 1px solid rgba(249, 115, 22, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.02em;
}

/* Single Collection Archive Hero */
.collection-header-hero {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    isolation: isolate;
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .collection-header-hero .cl-body {
        padding: 1.5rem 1.25rem !important;
    }
    .collection-header-hero h1 {
        font-size: 1.85rem !important;
    }
    .collection-header-hero .cl-mark {
        font-size: 70px !important;
        right: 12px !important;
    }
}

/* ================================================================
   MODERN NUMERIC PAGINATION
   ================================================================ */
.mft-pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3.5rem 0 1.5rem;
}

.mft-pagination-nav ul.page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.mft-pagination-nav li {
    display: inline-block;
}

.mft-pagination-nav .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.95rem;
    border-radius: 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-body);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mft-pagination-nav .page-numbers:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.mft-pagination-nav .page-numbers.current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff !important;
    box-shadow: 0 4px 14px -2px rgba(37, 99, 235, 0.5);
}

.mft-pagination-nav .page-numbers.dots {
    border: none;
    background: transparent;
    color: #94a3b8;
    box-shadow: none;
}

/* ================================================================
   SINGLE GAME / POST PAGE (MATCHING WASTELAND-3 ANKERGAMES)
   ================================================================ */

/* Hero Banner & Layout */
.single-game-hero {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background-color: #0b0f19;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.single-hero-bg-blur {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.32) blur(10px);
    transform: scale(1.08);
    pointer-events: none;
}

.single-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0b0f19 0%, rgba(11, 15, 25, 0.8) 50%, rgba(11, 15, 25, 0.4) 100%);
    pointer-events: none;
}

.single-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 2.25rem;
    align-items: flex-end;
}

.single-poster-wrap {
    width: 200px;
    aspect-ratio: 2 / 3;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

.single-poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-meta-col {
    flex: 1;
    min-width: 300px;
}

/* Steam CTA Card */
.steam-cta-card {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 1.15rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(23, 29, 37, 0.95), rgba(30, 42, 56, 0.95));
    border: 1px solid rgba(102, 192, 244, 0.3);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.25s ease;
    margin: 1rem 0;
    max-width: 480px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.steam-cta-card:hover {
    border-color: #66c0f4;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 192, 244, 0.25);
}

.steam-cta-card svg {
    color: #66c0f4;
    flex-shrink: 0;
}

.steam-cta-card .sub {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
}

.steam-cta-card .title {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #66c0f4;
}

/* Screenshots Gallery */
.screenshots-gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 3rem;
}

@media (min-width: 640px) {
    .screenshots-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .screenshots-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.screenshot-thumb-item {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.screenshot-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-thumb-item:hover img {
    transform: scale(1.08);
}

.screenshot-zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.screenshot-thumb-item:hover .screenshot-zoom-overlay {
    opacity: 1;
}

/* System Requirements Specifications */
.sys-req-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.sys-req-row {
    display: flex;
    flex-direction: column;
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s ease;
}

@media (min-width: 640px) {
    .sys-req-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.sys-req-row:hover {
    background-color: rgba(37, 99, 235, 0.06);
}

html.dark .sys-req-row:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.sys-req-key {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.sys-req-val {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-body);
}

/* Step-by-Step Installation Box */
.install-steps-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2.5rem 0;
}

.install-step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
}

.install-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ================================================================
   UNIFIED SYSTEM REQUIREMENTS & HOW TO INSTALL CONTAINER
   ================================================================ */
.req-install-unified-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 960px) {
    .req-install-unified-container {
        grid-template-columns: 1fr 1fr;
    }
}

.req-card-box,
.install-card-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.card-box-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.card-box-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-body);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-box-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.25);
    padding: 4px 10px;
    border-radius: 9999px;
    letter-spacing: 0.04em;
}

.antivirus-notice-box {
    margin-top: auto;
    padding: 1rem 1.15rem;
    border-radius: 0.85rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #f59e0b;
    font-size: 0.85rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.antivirus-notice-box svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ================================================================
   REVIEWS & RATING SYSTEM (ANKERGAMES COMMUNITY ENGINE)
   ================================================================ */
.reviews-rating-section {
    margin-bottom: 4rem;
}

.reviews-hud-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .reviews-hud-grid {
        grid-template-columns: 1fr 1.35fr;
    }
}

@media (min-width: 1080px) {
    .reviews-hud-grid {
        grid-template-columns: 1fr 1.4fr 1.1fr;
    }
}

.reviews-hud-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Score Card */
.score-card-inner {
    text-align: center;
}

.big-rating-score {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text-body);
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}

.stars-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #eab308;
    margin-bottom: 0.5rem;
}

.stars-row svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.score-meta-text {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.recommend-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-size: 12px;
    font-weight: 700;
}

/* Rating Spread Breakdown Bars */
.rating-spread-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.rating-spread-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.spread-star-label {
    width: 55px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: var(--text-body);
}

.spread-track {
    flex: 1;
    height: 9px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.spread-fill {
    height: 100%;
    background: linear-gradient(90deg, #eab308, #f59e0b);
    border-radius: 9999px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.spread-count {
    width: 45px;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

/* Sentiment Card */
.sentiment-metrics-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sentiment-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.85rem;
    border-radius: 0.75rem;
    background: rgba(148, 163, 184, 0.06);
}

.sentiment-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
}

.sentiment-badge.positive {
    color: #10b981;
}

.sentiment-badge.neutral {
    color: #94a3b8;
}

.sentiment-badge.critical {
    color: #f43f5e;
}

.sentiment-val {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-body);
}

/* Review Form */
.review-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2.25rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.star-rating-picker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0.5rem 0 1rem;
}

.star-picker-btn {
    background: none;
    border: none;
    padding: 0;
    color: #475569;
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease;
}

.star-picker-btn:hover,
.star-picker-btn.active {
    color: #eab308;
    transform: scale(1.15);
}

.star-picker-btn svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.review-input-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .review-input-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.review-input-field,
.review-textarea-field {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-body);
    font-size: 0.95rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-input-field:focus,
.review-textarea-field:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Reviews List & Items */
.reviews-feed-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.reviews-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-filter-btn {
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-filter-btn.active,
.review-filter-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
}

.reviews-stream-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.player-review-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.15rem;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.review-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-profile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.reviewer-avatar-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.reviewer-meta-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reviewer-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reviewer-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-body);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-size: 11px;
    font-weight: 700;
}

.review-timestamp {
    font-size: 12px;
    color: #64748b;
}

.review-stars-pill {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #eab308;
    background: rgba(234, 179, 8, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
}

.review-stars-pill svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.review-body-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-body);
    margin: 0 0 1.25rem;
}

.review-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.helpful-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.helpful-vote-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

/* ================================================================
   SCREENSHOT LIGHTBOX MODAL
   ================================================================ */
.screenshot-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.screenshot-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.screenshot-modal-dialog {
    position: relative;
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-modal-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 0.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    object-fit: contain;
}

.screenshot-modal-close {
    position: absolute;
    top: -1.25rem;
    right: -1.25rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.screenshot-modal-close:hover {
    transform: scale(1.1);
    background: var(--primary-color);
}




