/* ============================================
   Patchlight Playroom - style.css
   Mobile-first | CSS Variables | Dark/Light
   ============================================ */

/* ─── Box Model ─────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

img, video, iframe, embed, object, svg {
    max-width: 100%;
    height: auto;
}

pre, code { max-width: 100%; overflow-x: auto; }
p, li, td, th { overflow-wrap: break-word; }
input, textarea, select { max-width: 100%; }

/* ─── CSS Variables ─────────────────────────── */
:root {
    --background: #f0f4ff;
    --foreground: #0a0e1a;
    --card: #e8eeff;
    --card-foreground: #0a0e1a;
    --popover: #ffffff;
    --popover-foreground: #0a0e1a;
    --primary: #0099cc;
    --primary-foreground: #ffffff;
    --secondary: #dde8ff;
    --secondary-foreground: #0a0e1a;
    --muted: #e2e8f8;
    --muted-foreground: #3d4f7a;
    --accent: #7acc00;
    --accent-foreground: #0a0e1a;
    --destructive: #ef4444;
    --destructive-foreground: #ffffff;
    --border: #c5d3f0;
    --input: #dde8ff;
    --ring: #0099cc;

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Typography */
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Source Serif 4', Georgia, serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Header */
    --header-height: 68px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
    --glow-primary: 0 0 24px rgba(0, 153, 204, 0.35);
    --glow-accent: 0 0 24px rgba(122, 204, 0, 0.35);
}

[data-theme="dark"] {
    --background: #05050f;
    --foreground: #e8f0ff;
    --card: #0d0d1e;
    --card-foreground: #e8f0ff;
    --popover: #0a0a1a;
    --popover-foreground: #e8f0ff;
    --primary: #00d4ff;
    --primary-foreground: #030308;
    --secondary: #0f0f22;
    --secondary-foreground: #c0ccee;
    --muted: #0c0c1c;
    --muted-foreground: #7a8ab5;
    --accent: #a8ff3e;
    --accent-foreground: #050510;
    --destructive: #f43f5e;
    --destructive-foreground: #ffffff;
    --border: #1a1a35;
    --input: #0d0d1e;
    --ring: #00d4ff;

    --glow-primary: 0 0 32px rgba(0, 212, 255, 0.45);
    --glow-accent: 0 0 32px rgba(168, 255, 62, 0.4);
}

/* ─── Base / Reset ──────────────────────────── */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--foreground);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent); }
ul { margin: 0; padding: 0; list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
strong { font-weight: 600; }

/* ─── Container ─────────────────────────────── */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 768px) {
    .container { padding: 0 var(--space-6); }
}

@media (min-width: 1024px) {
    .container { padding: 0 var(--space-8); }
}

/* ─── Utility ───────────────────────────────── */
.accent-blue { color: var(--primary); }
.accent-lime { color: var(--accent); }

.w-full { width: 100%; }

/* ─── Focus States ──────────────────────────── */
:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ─── Scrollbar (dark) ──────────────────────── */
[data-theme="dark"] ::-webkit-scrollbar { width: 8px; height: 8px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--muted); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.6rem 1.4rem;
    background: var(--primary);
    color: var(--primary-foreground);
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid var(--primary);
    text-decoration: none;
    transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    min-height: 44px;
    white-space: nowrap;
}
.btn-primary:hover {
    background: transparent;
    color: var(--primary);
    box-shadow: var(--glow-primary);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.6rem 1.4rem;
    background: transparent;
    color: var(--foreground);
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    text-decoration: none;
    transition: border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    min-height: 44px;
    white-space: nowrap;
}
.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--glow-primary);
    transform: translateY(-1px);
}

.btn-text-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: none;
    border: none;
    color: var(--muted-foreground);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    padding: 0.6rem 0;
    min-height: 44px;
    transition: color var(--transition-fast);
}
.btn-text-link:hover { color: var(--accent); }
.btn-text-link svg { transition: transform var(--transition-fast); }
.btn-text-link:hover svg { transform: translateX(4px); }

.btn-lg {
    font-size: var(--font-size-base);
    padding: 0.8rem 2rem;
    min-height: 52px;
}

.btn-wishlist {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--foreground);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: border-color var(--transition-fast), color var(--transition-fast);
    min-height: 44px;
    white-space: nowrap;
}
.btn-wishlist:hover {
    border-color: var(--destructive);
    color: var(--destructive);
}
.btn-wishlist svg { flex-shrink: 0; }

.btn-view-game {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary);
    text-decoration: none;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
    min-height: 36px;
    white-space: nowrap;
}
.btn-view-game:hover {
    background: transparent;
    color: var(--primary);
    box-shadow: var(--glow-primary);
}

.btn-open-collection {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.5rem 1.1rem;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.25);
    text-decoration: none;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    min-height: 40px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-open-collection:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.btn-reset {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--muted-foreground);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: color var(--transition-fast), border-color var(--transition-fast);
    min-height: 40px;
}
.btn-reset:hover {
    color: var(--destructive);
    border-color: var(--destructive);
}

.btn-subscribe {
    flex-shrink: 0;
    padding: 0 1.2rem;
    min-height: 44px;
}

/* ══════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.badge-trending {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    border: 1px solid rgba(255, 107, 53, 0.4);
}
.badge-editor {
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary);
    border: 1px solid rgba(0, 212, 255, 0.3);
}
[data-theme="dark"] .badge-editor {
    background: rgba(0, 212, 255, 0.1);
}
.badge-new, .badge-new-release {
    background: rgba(168, 255, 62, 0.15);
    color: var(--accent);
    border: 1px solid rgba(168, 255, 62, 0.3);
}
[data-theme="dark"] .badge-new,
[data-theme="dark"] .badge-new-release {
    background: rgba(168, 255, 62, 0.1);
}
.badge-hidden {
    background: rgba(192, 132, 252, 0.15);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.3);
}
.badge-coming-soon {
    background: rgba(255, 209, 102, 0.15);
    color: #ffd166;
    border: 1px solid rgba(255, 209, 102, 0.3);
}

/* ══════════════════════════════════════════════
   GLASS CARD
   ══════════════════════════════════════════════ */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
}

[data-theme="dark"] .glass-card {
    background: rgba(13, 13, 30, 0.75);
    border-color: rgba(255, 255, 255, 0.07);
}

/* ══════════════════════════════════════════════
   SECTION HEADERS
   ══════════════════════════════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.section-overtitle {
    display: inline-block;
    font-family: var(--font-display);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: var(--space-3);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(var(--font-size-2xl), 5vw, var(--font-size-4xl));
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--foreground);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto var(--space-3);
}

.section-desc {
    font-size: var(--font-size-sm);
    color: var(--muted-foreground);
}

/* ══════════════════════════════════════════════
   SEO ACCORDION
   ══════════════════════════════════════════════ */
.seo-accordion {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-8);
}

.seo-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--muted);
    color: var(--muted-foreground);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    transition: background var(--transition-fast), color var(--transition-fast);
    user-select: none;
}
.seo-accordion-trigger::-webkit-details-marker { display: none; }
.seo-accordion-trigger:hover {
    background: var(--secondary);
    color: var(--foreground);
}
.seo-accordion[open] .seo-accordion-trigger svg {
    transform: rotate(180deg);
}
.seo-accordion-trigger svg { transition: transform var(--transition-base); flex-shrink: 0; }

.seo-accordion-content {
    padding: var(--space-5);
    background: var(--card);
    font-size: var(--font-size-sm);
    color: var(--muted-foreground);
    line-height: 1.7;
}
.seo-accordion-content p { margin-bottom: var(--space-4); }
.seo-accordion-content h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--foreground);
    margin: var(--space-5) 0 var(--space-2);
    font-family: var(--font-body);
}
.seo-accordion-content h3:first-child { margin-top: 0; }
.seo-accordion-content strong { color: var(--foreground); }

/* ══════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(240, 244, 255, 0.9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background var(--transition-slow);
}

[data-theme="dark"] .site-header {
    background: rgba(5, 5, 15, 0.92);
    border-bottom-color: var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--space-4);
}

/* Logo */
.header-logo a,
.footer-logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-size: var(--font-size-lg);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.logo-quantum { color: var(--primary); }
.logo-shelf { color: var(--foreground); }

/* Desktop nav */
.header-nav { display: none; }

@media (min-width: 1024px) {
    .header-nav {
        display: flex;
        align-items: center;
    }
    .header-nav ul {
        display: flex;
        align-items: center;
        gap: var(--space-1);
    }
    .header-nav a {
        display: inline-flex;
        align-items: center;
        padding: 0.5rem 0.85rem;
        font-size: var(--font-size-sm);
        font-weight: 500;
        color: var(--muted-foreground);
        text-decoration: none;
        border-radius: var(--radius-md);
        transition: color var(--transition-fast), background var(--transition-fast);
        min-height: 44px;
    }
    .header-nav a:hover {
        color: var(--foreground);
        background: var(--muted);
    }
}

/* CTA block */
.header-cta {
    display: none;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

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

.btn-explore-header { display: none; }
@media (min-width: 1024px) {
    .btn-explore-header { display: inline-flex; }
}

/* Theme toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted-foreground);
    transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
    flex-shrink: 0;
}
.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--muted);
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--foreground);
    transition: border-color var(--transition-fast);
}
.hamburger:hover { border-color: var(--primary); }
.hamburger span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--background);
    border-top: 1px solid var(--border);
    padding: var(--space-6) var(--space-4);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
}
.mobile-menu.is-open {
    transform: translateX(0);
}
.mobile-menu nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}
.mobile-nav-link {
    display: block;
    padding: var(--space-4);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--foreground);
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    min-height: 56px;
    display: flex;
    align-items: center;
}
.mobile-nav-link:hover {
    background: var(--muted);
    border-color: var(--border);
    color: var(--primary);
}
.mobile-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}

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

/* ══════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════ */
.hero-section {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-height);
    overflow: hidden;
}

/* Animated bg */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    max-width: 100%;
    overflow: hidden;
}

.hero-glow-blue {
    width: min(600px, 100vw);
    height: min(600px, 100vw);
    top: -100px;
    right: -150px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.18), transparent 70%);
}

.hero-glow-lime {
    width: min(400px, 80vw);
    height: min(400px, 80vw);
    bottom: 10%;
    left: -100px;
    background: radial-gradient(circle, rgba(168, 255, 62, 0.12), transparent 70%);
}

[data-theme="dark"] .hero-glow-blue {
    background: radial-gradient(circle, rgba(0, 212, 255, 0.22), transparent 70%);
}
[data-theme="dark"] .hero-glow-lime {
    background: radial-gradient(circle, rgba(168, 255, 62, 0.15), transparent 70%);
}

/* Cinematic image */
.hero-cinematic {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-cinematic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.3;
}
[data-theme="dark"] .hero-cinematic-img { opacity: 0.25; }

.hero-cinematic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(240, 244, 255, 0.6) 60%,
        var(--background) 100%
    );
}
[data-theme="dark"] .hero-cinematic-overlay {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(5, 5, 15, 0.7) 60%,
        var(--background) 100%
    );
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
    padding-top: var(--space-16);
    padding-bottom: var(--space-12);
    flex: 1;
}

@media (min-width: 1024px) {
    .hero-content {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        padding-top: var(--space-20);
    }
}

/* Hero text */
.hero-text {
    flex: 1;
    max-width: 640px;
}

.hero-overtitle {
    font-family: var(--font-display);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: var(--space-4);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-6);
    color: var(--foreground);
}
.hero-headline .accent-lime {
    text-shadow: 0 0 30px rgba(168, 255, 62, 0.4);
}
[data-theme="dark"] .hero-headline .accent-lime {
    text-shadow: 0 0 40px rgba(168, 255, 62, 0.5);
}

.hero-sub {
    font-size: var(--font-size-lg);
    color: var(--muted-foreground);
    line-height: 1.65;
    margin-bottom: var(--space-8);
    max-width: 520px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.hero-social-proof {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}
.hero-social-proof span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--muted-foreground);
    font-weight: 500;
}
.hero-social-proof svg { color: var(--accent); flex-shrink: 0; }

/* Preview Cards */
.hero-preview-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
    max-width: 320px;
    flex-shrink: 0;
    align-self: flex-start;
}

@media (min-width: 480px) {
    .hero-preview-cards {
        flex-direction: row;
        max-width: 100%;
    }
}

@media (min-width: 1024px) {
    .hero-preview-cards {
        flex-direction: column;
        max-width: 280px;
        position: sticky;
        top: calc(var(--header-height) + var(--space-6));
    }
}

.preview-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.preview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-primary);
}
.preview-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

@media (min-width: 480px) and (max-width: 1023px) {
    .preview-card { flex: 1; min-width: 0; }
    .preview-card-img { height: 110px; }
}

.preview-card-content {
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.preview-card-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.preview-card-rating {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--font-size-xs);
    color: var(--muted-foreground);
    font-weight: 500;
}
.preview-card-rating svg { color: #fbbf24; flex-shrink: 0; }

/* SEO block */
.hero-seo-block {
    position: relative;
    z-index: 2;
    padding: var(--space-12) 0;
    border-top: 1px solid var(--border);
}

.seo-text-block {
    max-width: 800px;
}
.seo-heading {
    font-family: var(--font-body);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: var(--space-5);
    line-height: 1.3;
}
.seo-text-block p {
    font-size: var(--font-size-sm);
    color: var(--muted-foreground);
    line-height: 1.75;
    margin-bottom: var(--space-4);
}
.seo-text-block strong { color: var(--foreground); }

/* ══════════════════════════════════════════════
   CATALOG SECTION
   ══════════════════════════════════════════════ */
.catalog-section {
    padding: var(--space-20) 0;
    background: var(--background);
    position: relative;
}

.catalog-seo-intro { margin-bottom: var(--space-6); }

/* Filter Bar */
.filter-bar {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .filter-bar {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

.filter-groups {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    flex: 1;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    flex: 1;
    min-width: 120px;
}

.filter-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted-foreground);
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--input);
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    font-size: var(--font-size-sm);
    font-family: var(--font-body);
    cursor: pointer;
    min-height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a8ab5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    max-width: 100%;
}
.filter-select:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.filter-actions {
    display: flex;
    align-items: flex-end;
    gap: var(--space-3);
    flex-shrink: 0;
}

.sort-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.catalog-count {
    font-size: var(--font-size-sm);
    color: var(--muted-foreground);
    margin-bottom: var(--space-6);
}
.catalog-count strong { color: var(--foreground); }

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-10);
}

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

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

/* Game Card */
.game-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    position: relative;
}
.game-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.game-card-cover-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    flex-shrink: 0;
}
.game-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}
.game-card:hover .game-card-img { transform: scale(1.04); }

.game-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    z-index: 2;
}

.quick-look-btn {
    position: absolute;
    bottom: var(--space-3);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.2);
    white-space: nowrap;
    transition: opacity var(--transition-base), transform var(--transition-base);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-height: 36px;
}
.game-card:hover .quick-look-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.game-card-body {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-2);
}

.platform-icons {
    display: flex;
    gap: var(--space-2);
    color: var(--muted-foreground);
}

.game-title {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--foreground);
    margin: 0;
    line-height: 1.3;
}

.game-desc {
    font-size: var(--font-size-xs);
    color: var(--muted-foreground);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    flex: 1;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
    background: var(--muted);
    color: var(--muted-foreground);
    border: 1px solid var(--border);
    text-transform: uppercase;
}

.game-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--foreground);
}
.game-rating svg { color: #fbbf24; }

/* Catalog Footer CTA */
.catalog-footer-cta {
    text-align: center;
    padding: var(--space-10) var(--space-4);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}
.catalog-footer-cta p {
    font-size: var(--font-size-base);
    color: var(--muted-foreground);
    margin: 0;
}

/* ─── Quick View Modal ───────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}
.modal-overlay[hidden] { display: none; }

.modal-content {
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--muted);
    color: var(--foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), color var(--transition-fast);
    z-index: 1;
    border: 1px solid var(--border);
}
.modal-close:hover {
    background: var(--destructive);
    color: var(--destructive-foreground);
    border-color: var(--destructive);
}

.modal-inner { padding-top: var(--space-2); }

/* ══════════════════════════════════════════════
   COLLECTIONS SECTION
   ══════════════════════════════════════════════ */
.collections-section {
    padding: var(--space-20) 0;
    background: var(--secondary);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .collections-section {
    background: var(--muted);
}

.collections-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.collections-intro {
    max-width: 800px;
    margin: 0 auto var(--space-10);
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--muted-foreground);
    line-height: 1.75;
}
.collections-intro strong { color: var(--foreground); }

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

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

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

/* Shelf Card */
.shelf-card {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    position: relative;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.shelf-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.shelf-card-inner {
    position: relative;
    aspect-ratio: 16/10;
    min-height: 260px;
    overflow: hidden;
}

.shelf-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform var(--transition-slow);
}
.shelf-card:hover .shelf-bg-img { transform: scale(1.05); }

.shelf-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.15) 100%
    );
}
.shelf-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--shelf-color, #00d4ff) 0%, transparent 60%);
    opacity: 0.15;
}

.shelf-bookmark {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background var(--transition-fast), color var(--transition-fast);
    z-index: 2;
}
.shelf-bookmark:hover {
    background: var(--shelf-color, #00d4ff);
    border-color: transparent;
    color: #000;
}
.shelf-bookmark.is-saved svg { fill: currentColor; }

.shelf-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-5);
    gap: var(--space-4);
}

.shelf-top { display: flex; flex-direction: column; gap: var(--space-2); }

.shelf-title {
    font-family: var(--font-display);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin: 0;
}

.shelf-desc {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.8);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.shelf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.mood-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.shelf-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.shelf-count {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Collections More / Wishlist CTA */
.collections-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    text-align: center;
    margin-bottom: var(--space-10);
}
.collections-more p {
    font-size: var(--font-size-sm);
    color: var(--muted-foreground);
    margin: 0;
}

.collections-wishlist-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--space-10) var(--space-6);
    text-align: center;
}

@media (min-width: 768px) {
    .collections-wishlist-cta {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.wishlist-cta-content h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-2);
    font-family: var(--font-body);
}
.wishlist-cta-content p {
    font-size: var(--font-size-sm);
    color: var(--muted-foreground);
    margin: 0;
}

.wishlist-cta-actions {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: center;
}

/* ══════════════════════════════════════════════
   DISCOVERY FEED SECTION
   ══════════════════════════════════════════════ */
.feed-section {
    padding: var(--space-20) 0;
    background: var(--background);
    position: relative;
}

/* Live feed label */
.live-feed-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--destructive);
    animation: livePulse 2s ease infinite;
    flex-shrink: 0;
}
.live-text {
    font-family: var(--font-display);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--destructive);
}
@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.6); }
    50% { box-shadow: 0 0 0 6px rgba(244, 63, 94, 0); }
}

.feed-intro-text {
    max-width: 800px;
    margin: 0 auto var(--space-10);
    font-size: var(--font-size-sm);
    color: var(--muted-foreground);
    line-height: 1.75;
    text-align: center;
}
.feed-intro-text strong { color: var(--foreground); }

/* Featured */
.feed-featured {
    margin-bottom: var(--space-12);
}

.feed-featured-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    transition: box-shadow var(--transition-base);
}
.feed-featured-card:hover { box-shadow: var(--glow-primary); }

@media (min-width: 768px) {
    .feed-featured-card { grid-template-columns: 1fr 1fr; }
}

.feed-featured-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

@media (min-width: 768px) {
    .feed-featured-img-wrap { aspect-ratio: auto; min-height: 280px; }
}

.feed-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}
.feed-featured-card:hover .feed-featured-img { transform: scale(1.04); }

.feed-badge-large {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    font-size: var(--font-size-xs);
    padding: 0.3rem 0.75rem;
}

.feed-featured-content {
    padding: var(--space-6) var(--space-7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-4);
}

.feed-date {
    font-size: var(--font-size-xs);
    color: var(--muted-foreground);
    font-weight: 500;
    display: block;
}

.feed-featured-title {
    font-size: clamp(var(--font-size-lg), 2.5vw, var(--font-size-2xl));
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--foreground);
    line-height: 1.3;
    margin: 0;
}

.feed-featured-desc {
    font-size: var(--font-size-sm);
    color: var(--muted-foreground);
    line-height: 1.7;
    margin: 0;
}

/* Feed Groups */
.feed-group {
    margin-bottom: var(--space-12);
}

.feed-group-title {
    font-family: var(--font-body);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
}

.feed-cards-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

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

@media (min-width: 1024px) {
    .feed-cards-row { grid-template-columns: repeat(3, 1fr); }
}

/* Scrollable row for 4+ items */
.feed-cards-scroll {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-3);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.feed-cards-scroll .feed-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

@media (min-width: 1024px) {
    .feed-cards-scroll {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        overflow-x: visible;
        scroll-snap-type: none;
    }
    .feed-cards-scroll .feed-card {
        flex: none;
        width: auto;
    }
}

/* Feed Card */
.feed-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.feed-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.feed-card-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    flex-shrink: 0;
}
.feed-card-img-wrap .badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
}
.feed-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}
.feed-card:hover .feed-card-img { transform: scale(1.05); }

.feed-card-content {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex: 1;
}

.feed-card-title {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--foreground);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-card-desc {
    font-size: var(--font-size-xs);
    color: var(--muted-foreground);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin: 0;
}

.feed-read-more {
    display: inline-flex;
    align-items: center;
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    margin-top: auto;
    padding-top: var(--space-2);
    transition: color var(--transition-fast);
}
.feed-read-more:hover { color: var(--accent); }

/* Upcoming card variant */
.feed-card-upcoming {
    border-style: dashed;
    border-color: var(--muted-foreground);
    opacity: 0.9;
}
.feed-card-upcoming:hover { border-style: solid; opacity: 1; }

/* Email CTA */
.feed-email-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--space-6) var(--space-8);
    margin-bottom: var(--space-12);
    border-left: 4px solid var(--primary);
}

@media (min-width: 768px) {
    .feed-email-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.email-cta-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    color: var(--primary);
}
.email-cta-content > div { display: flex; flex-direction: column; gap: var(--space-1); }
.email-cta-title {
    font-weight: 700;
    font-size: var(--font-size-base);
    color: var(--foreground);
    margin: 0;
}
.email-cta-sub {
    font-size: var(--font-size-sm);
    color: var(--muted-foreground);
    margin: 0;
}

.email-cta-form {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    width: 100%;
    max-width: 420px;
    flex-shrink: 0;
}

.email-input {
    flex: 1;
    min-width: 200px;
    padding: 0.6rem 1rem;
    background: var(--input);
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-family: var(--font-body);
    min-height: 44px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.email-input::placeholder { color: var(--muted-foreground); }
.email-input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

/* Feed Footer CTA */
.feed-footer-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
}
.feed-footer-cta p {
    font-size: var(--font-size-base);
    color: var(--muted-foreground);
    margin: 0;
}

/* ══════════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════════ */
.about-section {
    padding: var(--space-20) 0;
    background: var(--secondary);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .about-section {
    background: var(--muted);
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.4;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
}

@media (min-width: 1024px) {
    .about-layout { grid-template-columns: 1fr 380px; }
}

/* About main */
.about-main {
    min-width: 0;
}

.about-mission {
    margin: var(--space-6) 0;
    padding: var(--space-5) var(--space-6);
    border-left: 4px solid var(--accent);
    background: var(--card);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.about-mission p {
    font-family: var(--font-display);
    font-size: clamp(var(--font-size-base), 2.5vw, var(--font-size-xl));
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.5;
    margin: 0;
    font-style: normal;
}

.about-story {
    font-size: var(--font-size-base);
    color: var(--muted-foreground);
    line-height: 1.75;
    margin-bottom: var(--space-8);
}

/* Principles */
.editorial-principles { margin-bottom: var(--space-8); }

.principles-title {
    font-family: var(--font-body);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: var(--space-5);
}

.principles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

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

.principle-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.principle-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.principle-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.principle-card h4 {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--foreground);
    font-family: var(--font-body);
    margin: 0;
}

.principle-card p {
    font-size: var(--font-size-xs);
    color: var(--muted-foreground);
    line-height: 1.65;
    margin: 0;
}

.about-seo-extended { margin-top: var(--space-6); }

/* Trust / Right column */
.about-trust {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
    align-self: start;
}

@media (max-width: 1023px) {
    .about-trust { position: static; }
}

.trust-signals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.trust-stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    transition: border-color var(--transition-fast);
}
.trust-stat:hover { border-color: var(--primary); }

.trust-number {
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    font-weight: 900;
    line-height: 1;
}

.trust-label {
    font-size: var(--font-size-xs);
    color: var(--muted-foreground);
    line-height: 1.4;
}

.about-visual {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--border);
}
.about-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Community block */
.community-block {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
}

.community-title {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.community-block > p {
    font-size: var(--font-size-sm);
    color: var(--muted-foreground);
    margin-bottom: var(--space-4);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.45rem 0.9rem;
    background: var(--muted);
    color: var(--muted-foreground);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    min-height: 40px;
}
.social-link:hover {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

/* Final CTA */
.about-final-cta {
    position: relative;
    margin-top: var(--space-16);
    text-align: center;
    padding: var(--space-16) var(--space-6);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--card);
}

.final-cta-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.08), transparent 70%);
}
[data-theme="dark"] .final-cta-glow {
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.12), transparent 70%);
}

.final-cta-title {
    font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
    margin-bottom: var(--space-3);
    position: relative;
}

.final-cta-sub {
    font-size: var(--font-size-base);
    color: var(--muted-foreground);
    margin-bottom: var(--space-8);
    position: relative;
}

.final-cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
    background: var(--muted);
    border-top: 1px solid var(--border);
}

[data-theme="dark"] .site-footer {
    background: #030308;
}

.footer-inner {
    padding-top: var(--space-16);
    padding-bottom: var(--space-12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

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

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 2fr; }
}

/* Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-logo-link {
    text-decoration: none;
    display: inline-flex;
}

.footer-tagline {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
}

.footer-brand-desc {
    font-size: var(--font-size-sm);
    color: var(--muted-foreground);
    line-height: 1.65;
    margin: 0;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--card);
    color: var(--muted-foreground);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.footer-social-link:hover {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

/* Footer cols */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-col-title {
    font-family: var(--font-display);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--foreground);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-links a,
.affiliate-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color var(--transition-fast);
    padding: var(--space-1) 0;
    min-height: 36px;
}
.footer-links a:hover,
.affiliate-link:hover { color: var(--primary); }

/* Newsletter */
.footer-newsletter { gap: var(--space-4); }

.footer-newsletter-desc {
    font-size: var(--font-size-sm);
    color: var(--muted-foreground);
    margin: 0;
}

.footer-email-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-email-input {
    padding: 0.6rem 1rem;
    background: var(--input);
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-family: var(--font-body);
    min-height: 44px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    width: 100%;
}
.footer-email-input::placeholder { color: var(--muted-foreground); }
.footer-email-input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.footer-subscribe-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid var(--primary);
    font-family: var(--font-body);
    min-height: 44px;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
}
.footer-subscribe-btn:hover {
    background: transparent;
    color: var(--primary);
    box-shadow: var(--glow-primary);
}

.footer-newsletter-fine {
    font-size: var(--font-size-xs);
    color: var(--muted-foreground);
    margin: 0;
}

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: var(--space-5) 0;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    font-size: var(--font-size-xs);
    color: var(--muted-foreground);
    margin: 0;
}

.footer-bottom-tagline {
    font-size: var(--font-size-xs);
    color: var(--muted-foreground);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom-links a {
    font-size: var(--font-size-xs);
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.footer-bottom-links a:hover { color: var(--primary); }

/* ══════════════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════
   RESPONSIVE TWEAKS
   ══════════════════════════════════════════════ */
@media (max-width: 767px) {
    .hero-preview-cards {
        flex-direction: column;
        max-width: 100%;
    }
    .hero-preview-cards .preview-card {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    .hero-preview-cards .preview-card-img {
        width: 96px;
        height: 72px;
        flex-shrink: 0;
    }
    .hero-preview-cards .preview-card-content {
        flex: 1;
    }
}

@media (min-width: 480px) and (max-width: 1023px) {
    .hero-preview-cards {
        flex-direction: row;
        align-items: stretch;
    }
    .hero-preview-cards .preview-card {
        flex: 1;
        flex-direction: column;
        min-width: 0;
    }
    .hero-preview-cards .preview-card-img {
        width: 100%;
        height: 120px;
    }
}

/* Ensure header theme-toggle is always visible */
@media (max-width: 1023px) {
    .header-cta {
        display: flex;
        gap: var(--space-3);
    }
    .btn-wishlist { display: none; }
    .btn-explore-header { display: none; }
}

/* ══════════════════════════════════════════════
   PRINT
   ══════════════════════════════════════════════ */
@media print {
    .site-header,
    .hero-bg,
    .hero-canvas,
    .hamburger,
    .mobile-menu,
    .theme-toggle { display: none !important; }
    body { background: #fff; color: #000; }
}
/* PATCHLIGHT BASE FROM FIRST PASS */
:root {
    --background: #f7efe2;
    --foreground: #172235;
    --card: #fffaf0;
    --card-foreground: #172235;
    --popover: #fffaf0;
    --popover-foreground: #172235;
    --primary: #265f91;
    --primary-foreground: #ffffff;
    --secondary: #e8dccb;
    --secondary-foreground: #172235;
    --muted: #efe5d5;
    --muted-foreground: #687184;
    --accent: #c77912;
    --accent-foreground: #fffaf0;
    --border: #d6c7b7;
    --input: #fffaf0;
    --ring: #265f91;
    --font-body: 'Sora', system-ui, sans-serif;
    --font-display: 'Source Serif 4', Georgia, serif;
    --radius-sm: 0.45rem;
    --radius-md: 0.9rem;
    --radius-lg: 1.4rem;
    --radius-xl: 2rem;
    --radius-2xl: 3rem;
    --glow-primary: 0 18px 50px rgba(38,95,145,0.16);
    --glow-accent: 0 18px 50px rgba(199,121,18,0.15);
}

[data-theme="dark"] {
    --background: #172235;
    --foreground: #fff7ea;
    --card: #20304a;
    --card-foreground: #fff7ea;
    --popover: #20304a;
    --popover-foreground: #fff7ea;
    --primary: #8cc8ff;
    --primary-foreground: #102033;
    --secondary: #2a3b59;
    --secondary-foreground: #fff7ea;
    --muted: #263650;
    --muted-foreground: #bbc8d6;
    --accent: #f5a524;
    --accent-foreground: #241504;
    --border: #4c6382;
    --input: #20304a;
    --ring: #f5a524;
    --glow-primary: 0 20px 55px rgba(140,200,255,0.16);
    --glow-accent: 0 20px 55px rgba(245,165,36,0.15);
}

body {
    background-image:
        radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 28rem),
        radial-gradient(circle at 88% 28%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 30rem);
}

.site-header {
    border-bottom: 0;
    box-shadow: 0 10px 30px rgba(23,34,53,0.08);
}

.logo-text,
h1, h2, h3, h4 {
    letter-spacing: -0.035em;
}

.logo-quantum,
.logo-shelf {
    font-family: var(--font-display);
    font-weight: 700;
}

.logo-shelf {
    color: var(--accent);
}

.btn-primary,
.btn-wishlist {
    border-radius: var(--radius-2xl);
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-foreground);
    box-shadow: 0 8px 0 color-mix(in srgb, var(--accent) 50%, black);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 11px 0 color-mix(in srgb, var(--accent) 50%, black);
}

.hero-headline,
.section-title,
.seo-heading,
.final-cta-title {
    font-size: clamp(2.6rem, 6vw, 5.6rem);
    line-height: 0.94;
    font-family: var(--font-display);
}

.accent-lime {
    color: var(--accent);
}

.hero-cinematic-img {
    filter: sepia(0.16) saturate(0.78) contrast(0.95);
}

.glass-card,
.game-card,
.shelf-card,
.feed-card,
.feed-featured-card,
.about-card,
.principle-card {
    border-radius: 2rem 0.75rem 2rem 0.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--glow-primary);
}

.game-card:nth-child(even),
.shelf-card:nth-child(odd),
.feed-card:nth-child(even) {
    border-radius: 0.75rem 2rem 0.75rem 2rem;
}

.game-card:hover,
.shelf-card:hover,
.feed-card:hover,
.feed-featured-card:hover {
    transform: translateY(-7px) rotate(-0.4deg);
    border-color: var(--accent);
    box-shadow: 10px 14px 0 color-mix(in srgb, var(--accent) 20%, transparent);
}

.section-overtitle,
.hero-overtitle,
.badge,
.filter-label {
    font-family: 'IBM Plex Mono', monospace;
}

.hero-seo-block,
.wishlist-cta,
.about-mission,
.community-card,
.newsletter-card {
    border-radius: var(--radius-2xl);
}

@media (max-width: 767px) {
    .hero-headline,
    .section-title,
    .seo-heading,
    .final-cta-title {
        font-size: clamp(2.3rem, 12vw, 4rem);
    }
}

/* PATCHLIGHT PLAYROOM - UNIQUE SECOND THEME */
:root {
    --background: #fbf1df;
    --foreground: #18251c;
    --card: #fffaf0;
    --card-foreground: #18251c;
    --popover: #fffaf0;
    --popover-foreground: #18251c;
    --primary: #167d68;
    --primary-foreground: #ffffff;
    --secondary: #e8dfc8;
    --secondary-foreground: #18251c;
    --muted: #efe5cf;
    --muted-foreground: #61705e;
    --accent: #d74f3a;
    --accent-foreground: #fffaf0;
    --border: #d7c5a4;
    --input: #fffaf0;
    --ring: #167d68;
    --font-body: 'Space Grotesk', system-ui, sans-serif;
    --font-display: 'Fraunces', Georgia, serif;
    --radius-sm: 0.2rem;
    --radius-md: 0.45rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.35rem;
    --glow-primary: 0 12px 36px rgba(22,125,104,0.16);
    --glow-accent: 0 12px 36px rgba(215,79,58,0.16);
}

[data-theme="dark"] {
    --background: #18251c;
    --foreground: #fff4df;
    --card: #223528;
    --card-foreground: #fff4df;
    --popover: #223528;
    --popover-foreground: #fff4df;
    --primary: #73d9bb;
    --primary-foreground: #0f2018;
    --secondary: #2b4031;
    --secondary-foreground: #fff4df;
    --muted: #263b2d;
    --muted-foreground: #bad0bf;
    --accent: #ff6f59;
    --accent-foreground: #2a100b;
    --border: #58705d;
    --input: #223528;
    --ring: #ff6f59;
    --glow-primary: 0 14px 42px rgba(115,217,187,0.14);
    --glow-accent: 0 14px 42px rgba(255,111,89,0.18);
}

body {
    background-image:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 38%),
        radial-gradient(circle at 90% 22%, color-mix(in srgb, var(--primary) 11%, transparent), transparent 24rem);
}

.site-header {
    border-bottom: 3px solid var(--accent);
    box-shadow: none;
}

.logo-quantum,
.logo-shelf,
h1, h2, h3, h4 {
    font-family: var(--font-display);
}

.logo-shelf {
    color: var(--accent);
    font-style: italic;
}

.btn-primary,
.btn-wishlist {
    border-radius: 0.35rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-foreground);
    box-shadow: 6px 6px 0 color-mix(in srgb, var(--primary) 80%, black);
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 9px 9px 0 color-mix(in srgb, var(--primary) 80%, black);
}

.hero-headline,
.section-title,
.seo-heading,
.final-cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    line-height: 0.9;
    font-style: italic;
}

.accent-lime {
    color: var(--accent);
}

.glass-card,
.game-card,
.shelf-card,
.feed-card,
.feed-featured-card,
.about-card,
.principle-card {
    border-radius: 1rem;
    border: 2px solid var(--border);
    box-shadow: 7px 8px 0 color-mix(in srgb, var(--primary) 16%, transparent);
}

.game-card:nth-child(even),
.shelf-card:nth-child(odd),
.feed-card:nth-child(even) {
    transform: rotate(-0.35deg);
}

.game-card:hover,
.shelf-card:hover,
.feed-card:hover,
.feed-featured-card:hover {
    transform: translateY(-7px) rotate(0);
    border-color: var(--accent);
    box-shadow: 10px 12px 0 color-mix(in srgb, var(--accent) 24%, transparent);
}

.section-overtitle,
.hero-overtitle,
.badge,
.filter-label {
    font-family: 'Azeret Mono', monospace;
}

@media (max-width: 767px) {
    .hero-headline,
    .section-title,
    .seo-heading,
    .final-cta-title {
        font-size: clamp(2.3rem, 12vw, 3.9rem);
    }
}
