:root {
    /* Theme Variables - Default (Dark) */
    --primary: #00F2FF;
    --secondary: #FF003C;
    --accent: #8A2BE2;
    --bg-main: #0D0D12;
    --bg-soft: #14141E;
    --bg-glass: rgba(20, 20, 30, 0.7);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-main: #E2E2F0;
    --text-muted: #8E8E9E;
    --text-bright: #FFFFFF;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

    /* Layout Tokens */
    --container-max-width: 1800px;
    --header-height: 90px;
    --br-sm: 8px;
    --br-md: 16px;
    --br-lg: 24px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
    --ts: 0.3s;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--primary), var(--accent));
    --grad-dark: linear-gradient(180deg, rgba(13, 13, 18, 0) 0%, rgba(13, 13, 18, 1) 100%);
    --liquid-speed: 20s;

    /* Premium Effects Pulse */

    /* Premium Effects Pulse */
    --pulse-glow: 0 0 15px var(--primary);
}

/* --- Premium Quality-Only Features --- */

/* Hide by default or on mobile */
.grain-overlay,
.scroll-progress-container {
    display: none;
    pointer-events: none;
}

@media (pointer: fine) {

    /* Cinematic Grain */
    body:not(.performance-mode) .grain-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 9999;
        /* Using a generated noise pattern */
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3e%3cfilter id='noiseFilter'%3e%3cfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3e%3c/filter%3e%3crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3e%3c/svg%3e");
        opacity: 0.04;
        mix-blend-mode: overlay;
        animation: grain-dance 8s steps(10) infinite;
        pointer-events: none;
    }

    @keyframes grain-dance {

        0%,
        100% {
            transform: translate(0, 0);
        }

        10% {
            transform: translate(-1%, -1%);
        }

        20% {
            transform: translate(1%, 1%);
        }

        30% {
            transform: translate(-2%, 0);
        }

        40% {
            transform: translate(2%, -2%);
        }

        50% {
            transform: translate(-1%, 2%);
        }

        60% {
            transform: translate(1%, -1%);
        }

        70% {
            transform: translate(0, 1%);
        }

        80% {
            transform: translate(-2%, -1%);
        }

        90% {
            transform: translate(1%, 2%);
        }
    }

    /* Scroll Progress */
    body:not(.performance-mode) .scroll-progress-container {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: transparent;
        z-index: 10001;
        pointer-events: none;
    }

    body:not(.performance-mode) .scroll-progress-bar {
        height: 100%;
        background: var(--grad-primary);
        width: 0%;
        box-shadow: 0 0 10px var(--primary);
        transition: width 0.1s ease;
    }
}




@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}

/* ============================================
   PREMIUM LIGHT MODE — Modern & Sophisticated
   ============================================ */
[data-theme="light"] {
    /* Core palette – pearl → lavender → indigo */
    --primary:        #4f46e5;   /* indigo-600  */
    --secondary:      #e11d48;   /* rose-600    */
    --accent:         #7c3aed;   /* violet-600  */
    --bg-main:        #f5f4fa;   /* soft lavender pearl */
    --bg-soft:        #ffffff;
    --bg-glass:       rgba(255, 255, 255, 0.78);
    --border-glass:   rgba(79, 70, 229, 0.10);
    --text-main:      #1e1b4b;   /* indigo-950  */
    --text-muted:     #6b7280;   /* gray-500    */
    --text-bright:    #0f0e2e;
    --shadow:         0 8px 40px rgba(79, 70, 229, 0.08), 0 2px 8px rgba(0,0,0,0.04);
    --grad-primary:   linear-gradient(135deg, #4f46e5, #7c3aed);
    --pulse-glow:     0 0 18px rgba(79, 70, 229, 0.35);
}

/* ── Background canvas ─────────────────────── */
[data-theme="light"] body {
    background: #f5f4fa;
}

[data-theme="light"] .liquid-container {
    background: linear-gradient(145deg, #ede9fe 0%, #f0f4ff 40%, #faf5ff 70%, #f5f4fa 100%);
}

[data-theme="light"] .liquid-orb {
    mix-blend-mode: multiply;
    opacity: 0.18;
}

[data-theme="light"] .orb-1 { background: radial-gradient(circle, #818cf8, #4f46e5); }
[data-theme="light"] .orb-2 { background: radial-gradient(circle, #a78bfa, #7c3aed); }
[data-theme="light"] .orb-3 { background: radial-gradient(circle, #f9a8d4, #e11d48); opacity: 0.10; }

[data-theme="light"] .glass-refraction {
    background: radial-gradient(circle at 50% 50%, transparent, rgba(245, 244, 250, 0.6));
}

/* ── Header ────────────────────────────────── */
[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(79, 70, 229, 0.12);
    box-shadow: 0 4px 30px rgba(79, 70, 229, 0.08), 0 1px 0 rgba(255,255,255,0.9) inset;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

[data-theme="light"] .header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 40px rgba(79, 70, 229, 0.12), 0 1px 0 rgba(255,255,255,1) inset;
}

[data-theme="light"] .logo-text {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .logo-accent {
    color: #4f46e5;
}

[data-theme="light"] .nav-link {
    color: #374151;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: #4f46e5;
}

[data-theme="light"] .nav-link.active::after {
    background: var(--grad-primary);
}

[data-theme="light"] .mobile-nav-toggle {
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.20);
    color: #4f46e5;
}

[data-theme="light"] .mobile-nav-toggle:hover {
    background: rgba(79, 70, 229, 0.15);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.25);
}

/* ── Glassmorphism cards ───────────────────── */
[data-theme="light"] .glassmorphism {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(79, 70, 229, 0.10);
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.06), 0 1px 0 rgba(255,255,255,0.9) inset;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

/* ── Hero section ──────────────────────────── */
[data-theme="light"] .hero {
    background: transparent;
}

[data-theme="light"] .hero-badge {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.10), rgba(124, 58, 237, 0.10));
    border-color: rgba(79, 70, 229, 0.25);
    color: #4f46e5;
}

[data-theme="light"] .hero-title {
    color: #1e1b4b;
    text-shadow: none;
}

[data-theme="light"] .hero-title .primary-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .hero-desc {
    color: #475569;
}

[data-theme="light"] .hero-stats .stat-value {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Buttons ───────────────────────────────── */
[data-theme="light"] .btn-primary {
    background: var(--grad-primary);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.40), 0 1px 0 rgba(255,255,255,0.2) inset;
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.55), 0 1px 0 rgba(255,255,255,0.2) inset;
    transform: translateY(-3px) scale(1.02);
}

[data-theme="light"] .btn-outline {
    border-color: rgba(79, 70, 229, 0.40);
    color: #4f46e5;
}

[data-theme="light"] .btn-outline:hover {
    background: rgba(79, 70, 229, 0.08);
    border-color: #4f46e5;
}

[data-theme="light"] .btn-premium-cta {
    background: rgba(79, 70, 229, 0.06);
    color: #4f46e5;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.08);
}

[data-theme="light"] .btn-premium-cta::before {
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #4f46e5);
}

[data-theme="light"] .btn-premium-cta:hover {
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.30);
}

/* ── Section general ───────────────────────── */
[data-theme="light"] .section {
    background: transparent;
}

[data-theme="light"] .section-badge {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.10), rgba(124, 58, 237, 0.10));
    border-color: rgba(79, 70, 229, 0.25);
    color: #4f46e5;
}

[data-theme="light"] .section-title {
    color: #1e1b4b;
}

[data-theme="light"] .section-subtitle {
    color: #6b7280;
}

/* ── Mission cards ─────────────────────────── */
[data-theme="light"] .card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(79, 70, 229, 0.10);
    box-shadow: 0 4px 24px rgba(79, 70, 229, 0.06);
}

[data-theme="light"] .card:hover {
    border-color: rgba(79, 70, 229, 0.25);
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.14);
    transform: translateY(-6px);
}

[data-theme="light"] .card-icon {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(124, 58, 237, 0.12));
    color: #4f46e5;
}

[data-theme="light"] .card-title {
    color: #1e1b4b;
}

[data-theme="light"] .card-text {
    color: #6b7280;
}

/* ── Games / Showcase ──────────────────────── */
[data-theme="light"] .game-card,
[data-theme="light"] .game-showcase-card {
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(79, 70, 229, 0.10);
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.08);
}

[data-theme="light"] .game-badge-pill {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
}

[data-theme="light"] .feat-tag {
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.20);
    color: #4f46e5;
}

[data-theme="light"] .future-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(124, 58, 237, 0.05));
    border: 1px dashed rgba(79, 70, 229, 0.20);
}

/* ── Story / Lore section ──────────────────── */
[data-theme="light"] .story-content-side {
    background: linear-gradient(160deg, #ffffff 0%, #f0edff 100%);
}

[data-theme="light"] .story-overlay {
    background: linear-gradient(to right, transparent, rgba(245, 244, 250, 0.95));
}

[data-theme="light"] .story-para {
    color: #475569;
}

[data-theme="light"] .story-para.highlight {
    color: #1e1b4b;
    border-left-color: #4f46e5;
}

[data-theme="light"] .story-para strong {
    color: #4f46e5;
}

[data-theme="light"] .badge-accent {
    background: rgba(225, 29, 72, 0.08);
    border-color: #e11d48;
    color: #e11d48;
}

[data-theme="light"] .story-divider {
    background: var(--grad-primary);
}

/* ── Contact section ───────────────────────── */
[data-theme="light"] .contact-info-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(79, 70, 229, 0.10);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.06);
}

[data-theme="light"] .contact-detail {
    border-left: 3px solid rgba(79, 70, 229, 0.20);
}

[data-theme="light"] .detail-icon {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(124, 58, 237, 0.12));
    color: #4f46e5;
}

[data-theme="light"] .social-circle {
    background: rgba(79, 70, 229, 0.07);
    border-color: rgba(79, 70, 229, 0.15);
    color: #4f46e5;
}

[data-theme="light"] .social-circle:hover {
    background: var(--grad-primary);
    color: #fff;
}

[data-theme="light"] .contact-form-area {
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(79, 70, 229, 0.10);
    box-shadow: 0 8px 40px rgba(79, 70, 229, 0.08);
}

[data-theme="light"] .form-control {
    background: rgba(79, 70, 229, 0.04);
    border-color: rgba(79, 70, 229, 0.15);
    color: #1e1b4b;
}

[data-theme="light"] .form-control:focus {
    border-color: #4f46e5;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

[data-theme="light"] .form-control::placeholder {
    color: #9ca3af;
}

[data-theme="light"] .field-icon {
    color: #9ca3af;
}

[data-theme="light"] .form-control:focus + .field-icon {
    color: #4f46e5;
}

/* ── Verify widget ─────────────────────────── */
[data-theme="light"] .verify-container {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(79, 70, 229, 0.12);
}

[data-theme="light"] .verify-icon-btn {
    background: rgba(79, 70, 229, 0.06);
    border-color: rgba(79, 70, 229, 0.15);
    color: #4f46e5;
}

[data-theme="light"] .verify-icon-btn:hover,
[data-theme="light"] .verify-icon-btn.selected {
    background: rgba(79, 70, 229, 0.14);
    border-color: #4f46e5;
}

/* ── Footer ────────────────────────────────── */
[data-theme="light"] .footer {
    background: linear-gradient(160deg, rgba(255,255,255,0.92) 0%, rgba(240, 237, 255, 0.92) 100%);
    border: 1px solid rgba(79, 70, 229, 0.10);
    box-shadow: 0 -4px 40px rgba(79, 70, 229, 0.06), 0 8px 32px rgba(79, 70, 229, 0.06);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
}

[data-theme="light"] .footer-column h4 {
    color: #1e1b4b;
}

[data-theme="light"] .footer-column h4::after {
    background: var(--grad-primary);
    box-shadow: none;
}

[data-theme="light"] .footer-links-list a {
    color: #6b7280;
}

[data-theme="light"] .footer-links-list a:hover {
    color: #4f46e5;
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(79, 70, 229, 0.10);
    color: #9ca3af;
}

[data-theme="light"] .footer-bottom-links a {
    color: #9ca3af;
}

[data-theme="light"] .footer-bottom-links a:hover {
    color: #4f46e5;
}

/* ── Language selector ─────────────────────── */
[data-theme="light"] .lang-btn {
    background: rgba(79, 70, 229, 0.07);
    border-color: rgba(79, 70, 229, 0.25);
    color: #1e1b4b;
    box-shadow: 0 0 16px rgba(79, 70, 229, 0.08);
}

[data-theme="light"] .lang-btn i {
    color: #4f46e5;
    filter: drop-shadow(0 0 4px rgba(79, 70, 229, 0.35));
}

[data-theme="light"] .lang-btn:hover {
    background: rgba(79, 70, 229, 0.14);
    border-color: #4f46e5;
    box-shadow: 0 6px 24px rgba(79, 70, 229, 0.25);
}

[data-theme="light"] .lang-dropdown {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(79, 70, 229, 0.12);
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.15), 0 4px 12px rgba(0,0,0,0.06);
}

[data-theme="light"] .lang-dropdown a {
    color: #475569;
}

[data-theme="light"] .lang-dropdown a:hover {
    background: rgba(79, 70, 229, 0.07);
    color: #4f46e5;
}

/* ── Cookie banner ─────────────────────────── */
[data-theme="light"] .cookie-banner {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(79, 70, 229, 0.12);
    box-shadow: 0 -4px 32px rgba(79, 70, 229, 0.10);
}

[data-theme="light"] .cookie-banner p {
    color: #475569;
}

[data-theme="light"] .cookie-banner strong {
    color: #1e1b4b;
}

/* ── Floating controls (theme/perf/scroll) ─── */
[data-theme="light"] .theme-toggle,
[data-theme="light"] .perf-toggle,
[data-theme="light"] .back-to-top {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(79, 70, 229, 0.15);
    color: #4f46e5;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.12);
}

[data-theme="light"] .theme-toggle:hover,
[data-theme="light"] .perf-toggle:hover,
[data-theme="light"] .back-to-top:hover {
    background: rgba(79, 70, 229, 0.10);
    box-shadow: 0 8px 28px rgba(79, 70, 229, 0.22);
}

/* ── Policy modal ──────────────────────────── */
[data-theme="light"] .policy-modal {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(79, 70, 229, 0.12);
    box-shadow: 0 20px 80px rgba(79, 70, 229, 0.15), 0 4px 16px rgba(0,0,0,0.05);
}

[data-theme="light"] .policy-header h2 {
    color: #4f46e5;
}

[data-theme="light"] .policy-body {
    color: #475569;
}

[data-theme="light"] .policy-body h3 {
    color: #1e1b4b;
}

[data-theme="light"] .close-policy {
    color: #9ca3af;
}

[data-theme="light"] .close-policy:hover {
    color: #4f46e5;
}

/* ── Performance modal ─────────────────────── */
[data-theme="light"] #perf-modal .policy-modal {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] #perf-overlay {
    background: rgba(79, 70, 229, 0.08);
    backdrop-filter: blur(8px);
}

/* ── Scroll progress bar ───────────────────── */
[data-theme="light"] .scroll-progress-bar {
    background: var(--grad-primary);
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.50);
}

/* ── Text selection ────────────────────────── */
[data-theme="light"] ::selection {
    background: rgba(79, 70, 229, 0.18);
    color: #1e1b4b;
}

/* ── Nav active overlay (mobile) ───────────── */
[data-theme="light"] .nav-active {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(79, 70, 229, 0.12);
    box-shadow: 0 20px 80px rgba(79, 70, 229, 0.12);
}

[data-theme="light"] .nav-active .nav-link {
    color: #1e1b4b;
}

[data-theme="light"] .nav-active .nav-link:hover {
    color: #4f46e5;
}

/* ── Glow spheres ──────────────────────────── */
[data-theme="light"] .glow-sphere {
    opacity: 0.08;
}

/* ── itch.io button (light adjust) ────────── */
[data-theme="light"] .btn-itchio {
    box-shadow: 0 0 14px rgba(250, 92, 92, 0.25), 0 4px 12px rgba(0,0,0,0.08);
}



.liquid-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: var(--bg-main);
    filter: none;
    /* Expensive SVG filter removed */
    transform: translateZ(0);
    /* Force GPU */
    will-change: transform;
    pointer-events: none !important;
}



.liquid-orb {
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: var(--grad-primary);
    opacity: 0.08;
    filter: blur(70px);
    mix-blend-mode: screen;
    animation: liquid-move var(--liquid-speed) infinite alternate ease-in-out;
    will-change: transform;
}

[data-theme="light"] .liquid-orb {
    mix-blend-mode: multiply;
    opacity: 0.06;
}

.orb-1 {
    top: -10%;
    left: -5%;
    background: var(--primary);
    animation: orb-1-move 50s infinite alternate ease-in-out;
}

.orb-2 {
    bottom: -10%;
    right: -5%;
    background: var(--accent);
    animation: orb-2-move 60s infinite alternate ease-in-out;
    animation-delay: -12s;
}

.orb-3 {
    top: 30%;
    left: 20%;
    background: var(--secondary);
    animation: orb-3-move 70s infinite alternate ease-in-out;
    opacity: 0.06;
}

@keyframes orb-1-move {
    0% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
        filter: blur(140px) hue-rotate(0deg);
    }

    33% {
        transform: translate3d(15%, 12%, 0) scale(1.15) rotate(120deg);
        filter: blur(160px) hue-rotate(30deg);
    }

    66% {
        transform: translate3d(-10%, 25%, 0) scale(0.95) rotate(240deg);
        filter: blur(150px) hue-rotate(-30deg);
    }

    100% {
        transform: translate3d(8%, -8%, 0) scale(1.05) rotate(360deg);
        filter: blur(140px) hue-rotate(0deg);
    }
}

@keyframes orb-2-move {
    0% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
        filter: blur(140px) hue-rotate(0deg);
    }

    33% {
        transform: translate3d(-18%, -15%, 0) scale(1.25) rotate(-120deg);
        filter: blur(170px) hue-rotate(-45deg);
    }

    66% {
        transform: translate3d(12%, -25%, 0) scale(0.85) rotate(-240deg);
        filter: blur(150px) hue-rotate(45deg);
    }

    100% {
        transform: translate3d(-8%, 8%, 0) scale(1.15) rotate(-360deg);
        filter: blur(140px) hue-rotate(0deg);
    }
}

@keyframes orb-3-move {
    0% {
        transform: translate3d(0, 0, 0) scale(0.9) rotate(0deg);
        opacity: 0.1;
    }

    50% {
        transform: translate3d(22%, -18%, 0) scale(1.35) rotate(180deg);
        opacity: 0.12;
        filter: blur(180px);
    }

    100% {
        transform: translate3d(-22%, 18%, 0) scale(0.9) rotate(360deg);
        opacity: 0.1;
    }
}

.glass-refraction {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none !important;
    backdrop-filter: blur(5px) saturate(150%);
    -webkit-backdrop-filter: blur(5px) saturate(150%);
    background: radial-gradient(circle at 50% 50%, transparent, var(--bg-main));
    opacity: 0.3;
    /* Optimization */
    transform: translateZ(0);
    will-change: backdrop-filter;
}



:root {
    /* Performance Optimized Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: auto !important;
    /* Managed by Lenis on desktop */
}

/* Lenis Recommended CSS */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

/* Optimization: Faster rendering */
.section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: auto !important;
    }
}

/* Futuristic Human Proof Style */
.verification-wrapper {
    margin-bottom: 25px;
}

.v-security-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 10px;
    margin-left: 5px;
    opacity: 0.7;
    font-weight: 700;
}

.verification-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    background: rgba(10, 10, 10, 0.4);
    box-shadow: inset 0 0 15px rgba(var(--primary-rgb), 0.1);
    animation: pulse-border 4s infinite;
}

@keyframes pulse-border {

    0%,
    100% {
        border-color: rgba(var(--primary-rgb), 0.2);
    }

    50% {
        border-color: rgba(var(--primary-rgb), 0.5);
    }
}

.v-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.v-icon-grid {
    display: flex;
    flex-wrap: wrap;
    /* Added to handle more icons */
    gap: 12px;
    margin-top: 15px;
    justify-content: center;
}

.v-icon-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-muted);
    backface-visibility: hidden;
    /* Optimization */
    will-change: transform, background;
}

.v-icon-btn i {
    width: 20px;
    height: 20px;
}

.v-icon-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary);
    transform: scale(1.1) translateY(-3px);
    color: var(--primary);
}

.v-icon-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-main);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary);
}

.v-icon-btn.error {
    background: #ff4444;
    border-color: #ff4444;
    color: white;
    animation: shake 0.4s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@media (max-width: 600px) {
    .v-icon-grid {
        justify-content: center;
    }
}

/* Contact Section Enhanced Protection UI */
.contact-main-grid {
    position: relative;
    overflow: hidden;
}

.contact-main-grid::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.5s ease, color 0.5s ease;
}


h1,
h2,
h3,
h4,
.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-bright);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--ts) var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Layout Utilities --- */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
}

.section {
    padding: 100px 0;
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
    will-change: transform;
    transform: translateZ(0);
}

#home {
    content-visibility: visible;
}

/* Premium Scroll Transitions */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

.bg-soft {
    background-color: var(--bg-soft);
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.align-center {
    text-align: center;
}

/* --- Components --- */

/* Glassmorphism Common & Liquid Enhancements */
.glassmorphism {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    /* Optimization */
    transform: translateZ(0);
    will-change: backdrop-filter;
}

.glassmorphism::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.03),
            transparent);
    transform: rotate(45deg);
    animation: glass-shine 6s infinite linear;
    pointer-events: none;
}

@keyframes glass-shine {
    0% {
        transform: translate3d(-100%, 0, 0) rotate(45deg);
    }

    100% {
        transform: translate3d(100%, 0, 0) rotate(45deg);
    }
}

.liquid-glass-card {
    border-radius: var(--br-lg);
    transition: all 0.5s var(--transition);
}

.liquid-glass-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.15);
}

/* Badge Styling */
.badge,
.section-badge,
.badge-game {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* Button & Links - Liquid Glass Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--br-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    gap: 10px;
    border: 1px solid var(--border-glass);
    transition: all var(--ts) var(--transition);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-bright);
    /* Optimization */
    transform: translateZ(0);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: rgba(0, 242, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.2);
}

.btn-primary:hover {
    background: var(--primary);
    color: var(--bg-main);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-primary-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-primary-outline:hover {
    background: var(--primary);
    color: var(--bg-main);
}

/* Header & Nav */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    width: calc(100% - 40px);
    max-width: var(--container-max-width);
    height: 80px;
    z-index: 1000;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-glass);
    background: var(--bg-glass);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s var(--transition);
    transform: translateX(-50%) translate3d(0, 0, 0);
    will-change: transform, backdrop-filter;
}

.header.scrolled {
    top: 5px;
    width: calc(100% - 20px);
    height: 75px;
    border-radius: 20px;
    background: var(--bg-glass);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .header {
        top: 10px;
        width: calc(100% - 12px);
        height: 70px;
        border-radius: 16px;
        overflow: visible !important;
        z-index: 10000;
    }

    .container-nav {
        padding: 0 10px 0 4px;
        gap: 12px;
    }

    .logo {
        gap: 6px;
    }

    .logo-img {
        width: 36px;
        height: 36px;
    }

    .logo-text {
        font-size: 0.8rem;
        letter-spacing: 0px;
    }

    .header-actions {
        gap: 12px;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .nav-cta {
        display: none;
        /* Hide itching button on small mobile to prevent overlap */
    }

    .sikildim-btn {
        display: none !important; /* Completely hide on mobile as requested */
    }
}

.container-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 40px;
    gap: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 1);
    border: 2px solid #000;
    background: #000;
    transition: all 0.4s ease;
}

.logo:hover .logo-img {
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 1);
}

.logo-text {
    font-size: 1.4rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo-text .accent {
    color: var(--primary);
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: shine-text 8s linear infinite;
}

@keyframes shine-text {
    to {
        background-position: 200% center;
    }
}

.logo:hover .logo-text {
    letter-spacing: 5px;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-bright);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

/* itch.io Premium Button */
.btn-itchio {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fa5c5c 0%, #ff2449 40%, #c7003b 100%);
    border: 1px solid rgba(255, 36, 73, 0.5);
    box-shadow: 0 0 18px rgba(255, 36, 73, 0.35), 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-itchio:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 0 32px rgba(255, 36, 73, 0.65), 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 80, 100, 0.8);
    background: linear-gradient(135deg, #ff6b6b 0%, #ff3356 40%, #e0003f 100%);
}

.btn-itchio:active {
    transform: translateY(0) scale(0.98);
}

.itchio-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

.itchio-shine {
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.25),
            transparent);
    transform: skewX(-20deg);
    animation: itchio-shimmer 3s ease-in-out infinite;
}

@keyframes itchio-shimmer {
    0% {
        left: -75%;
    }

    50% {
        left: 125%;
    }

    100% {
        left: 125%;
    }
}

.btn-itchio-back {
    background: linear-gradient(135deg, rgba(250, 92, 92, 0.15) 0%, rgba(255, 36, 73, 0.1) 100%);
    border: 1px solid rgba(255, 36, 73, 0.4);
    box-shadow: 0 0 12px rgba(255, 36, 73, 0.2);
    color: #ff6b7a;
}

.btn-itchio-back:hover {
    background: linear-gradient(135deg, #fa5c5c 0%, #ff2449 40%, #c7003b 100%);
    color: #fff;
    box-shadow: 0 0 28px rgba(255, 36, 73, 0.55);
}

/* --- Sections --- */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    width: fit-content;
}

body:not(.performance-mode) .hero-title::before,
body:not(.performance-mode) .story-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
    filter: blur(15px);
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: title-glow 4s infinite alternate ease-in-out;
    white-space: pre-wrap;
    pointer-events: none;
}

.story-title {
    font-family: 'Creepster', system-ui;
    font-size: 4rem;
    line-height: 1.2;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

@keyframes title-glow {
    from {
        opacity: 0.3;
        filter: blur(10px);
    }

    to {
        opacity: 0.6;
        filter: blur(20px);
    }
}


.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    flex: 1;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(139, 0, 0, 0.5);
    border: 1px solid rgba(139, 0, 0, 0.3);
}

.hero-img {
    width: 100%;
    will-change: transform, opacity;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.6));
    border-radius: 40px;
}

/* Hero Image interactions are handled via GSAP for better performance and multi-axial movement */

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(139, 0, 0, 0.2), transparent);
}

.floating-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: var(--br-md);
    font-weight: 600;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -15px, 0);
    }
}

/* Mission Cards */
.card {
    padding: 3rem 2rem;
    border-radius: var(--br-lg);
    text-align: center;
    transition: 0.4s var(--transition);
    contain: paint;
    transform: translateZ(0);
}

.card:hover {
    border-color: var(--primary);
    transform: translate3d(0, -10px, 0);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.card-text {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Featured Game Section */
.game-showcase {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    border-radius: var(--br-lg);
    overflow: visible !important;
    padding: 4rem;
    position: relative;
    z-index: 1;
    /* Ensure showcase is established in stacking */
}

.game-title {
    font-family: 'Creepster', system-ui;
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    text-shadow: 0 0 15px rgba(255, 0, 60, 0.4);
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.fan-game-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.game-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.game-actions {
    display: flex;
    gap: 1.5rem;
    position: relative;
    z-index: 5;
}

/* --- Games Portal Section --- */
.games-portal {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.games-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(0, 242, 255, 0.05) 1px, transparent 0);
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: -1;
}

.game-showcase-v2 {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    overflow: hidden;
    border-radius: 2rem;
    margin-top: 4rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-glass);
}

.game-showcase-poster {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 255, 136, 0.02);
    overflow: hidden;
    min-height: 100%;
}

.poster-img {
    width: 90%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 60px rgba(0, 255, 136, 0.3);
    transition: transform 0.6s var(--transition);
    z-index: 1;
}

.game-showcase-v2:hover .poster-img {
    transform: scale(1.05);
}

.poster-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.status-badge {
    background: var(--primary);
    color: var(--bg-main);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.game-showcase-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(90deg, var(--bg-soft), transparent);
}

.game-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.game-title-v2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
}

.game-text-v2 {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.game-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}

.game-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.game-features i {
    color: var(--primary);
    width: 18px;
}

.game-actions-v2 {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Secondary Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-mini-card {
    padding: 3rem;
    text-align: center;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px dashed var(--border-glass);
    transition: all 0.4s var(--transition);
}

.game-mini-card.locked {
    opacity: 0.6;
}

.game-mini-card.locked:hover {
    opacity: 1;
    border-style: solid;
    border-color: var(--primary);
}

.card-status {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.game-mini-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.game-mini-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .game-showcase-v2 {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }

    .game-showcase-poster {
        min-height: 250px;
        padding: 1.5rem;
    }

    .game-showcase-content {
        padding: 2.5rem 1.5rem;
        background: var(--bg-soft);
    }

    .game-title-v2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .games-portal {
        padding: 60px 0;
    }

    .game-title-v2 {
        font-size: 2rem;
    }

    .game-text-v2 {
        font-size: 1rem;
    }

    .game-features {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .game-actions-v2 {
        flex-direction: column;
        width: 100%;
    }

    .game-actions-v2 .btn {
        width: 100%;
        justify-content: center;
    }

    .game-mini-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .game-title-v2 {
        font-size: 1.8rem;
    }

    .game-showcase-v2 {
        border-radius: 1.5rem;
    }

    .game-showcase-poster {
        min-height: 280px;
        padding: 4rem 1rem 2rem;
        /* Added top padding to clear the badge */
    }

    .poster-overlay {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        white-space: nowrap;
    }

    .status-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .poster-img {
        width: 160px;
        /* Further reduced for better mobile framing */
        height: 160px;
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
        /* Softer glow for small screens */
    }
}


.badge-game {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.horror-glitch {
    position: relative;
    animation: glitch 8s infinite;
}

@keyframes glitch {

    0%,
    98%,
    100% {
        transform: translate(0);
        text-shadow: none;
    }

    98.5% {
        transform: translate(-3px, 3px);
        text-shadow: 2px 0 #ff003c, -2px 0 #00f2ff;
    }

    99% {
        transform: translate(3px, -3px);
        text-shadow: -2px 0 #ff003c, 2px 0 #00f2ff;
    }

    99.5% {
        transform: translate(0);
        text-shadow: none;
    }
}

/* Contact Section - Modernized */
.contact-main-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    padding: 3rem;
    border-radius: 2rem;
    text-align: left;
    margin-top: 3rem;
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 1.2rem;
    transition: all 0.4s var(--transition);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.contact-card-content span.label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.contact-card-content h4 {
    font-size: 1rem;
    word-break: break-all;
}

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-circle:hover {
    background: var(--primary);
    color: var(--bg-main);
    transform: translateY(-5px);
}

.contact-form-area {
    background: rgba(255, 255, 255, 0.02);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-glass);
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-field {
    position: relative;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 1rem;
    padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.15);
}

.field-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    pointer-events: none;
    transition: 0.3s;
}

.textarea-icon {
    top: 1.5rem;
    transform: none;
}

.form-control:focus+.field-icon {
    color: var(--primary);
}

.form-feedback {
    min-height: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
    margin-top: 1rem;
    text-align: center;
    opacity: 0;
    transform: translateY(-5px);
}

.form-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

.form-feedback.success {
    color: #10B981;
}

.form-feedback.error {
    color: #EF4444;
}

.detail-text span {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.detail-text h4 {
    font-size: 1.1rem;
    margin-top: 4px;
}

/* Removed old social btn styles */

/* Removed old form styles */

/* Footer */
/* Removed redundant footer */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

/* Glow Elements */
.glow-sphere {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.glow-1 {
    background: radial-gradient(circle, var(--primary), transparent);
    top: -200px;
    left: -200px;
}

.glow-2 {
    background: radial-gradient(circle, var(--accent), transparent);
    bottom: -100px;
    right: -200px;
}

/* Responsive Styles */
@media (max-width: 1400px) {
    .nav-list {
        gap: 1.2rem;
    }

    .logo-text {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 1250px) {
    .nav-list {
        gap: 0.8rem;
    }

    .logo-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 0.82rem;
    }

    .lang-selector {
        margin-right: 5px;
    }

    .btn-itchio {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .header {
        width: min(calc(100% - 20px), 1200px);
        border-radius: 12px;
        padding: 0 15px;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .nav {
        display: none;
    }

    .header-actions .nav-cta {
        display: none;
    }

    /* Hide the extra button to save space for logo & lang on mobile/tablet */
    .mobile-nav-toggle {
        display: flex !important;
    }

    .hero-container,
    .game-showcase,
    .contact-main-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        line-height: 1.1;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }

    .hero-desc {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }

    .hero-visual {
        width: 100%;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Enhanced Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--primary);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    z-index: 2000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 242, 255, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform, background-color, box-shadow;
}

.mobile-nav-toggle:hover {
    transform: scale(1.1);
    background: rgba(0, 242, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.mobile-nav-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.mobile-nav-toggle:hover::before {
    opacity: 0.15;
}

.mobile-nav-toggle i {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    transition: transform 0.4s ease;
}

.mobile-nav-toggle:active {
    transform: scale(0.95);
}

@keyframes slideInRev {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 1024px) {
    .nav-active {
        display: flex !important;
        position: fixed;
        top: 10px;
        right: 10px;
        width: calc(100% - 20px);
        height: calc(100vh - 20px);
        background: var(--bg-glass);
        backdrop-filter: blur(40px) saturate(200%);
        -webkit-backdrop-filter: blur(40px) saturate(200%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 15000;
        border-radius: 24px;
        border: 1px solid var(--border-glass);
        box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
        animation: slideInRev 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .nav-active .nav-list {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }

    .nav-active .nav-link {
        font-size: 1.8rem;
        font-family: 'Space Grotesk', sans-serif;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex !important;
    }

    .nav {
        display: none;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .form-two-col {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 130px;
        padding-bottom: 40px;
    }

    .section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 3rem !important;
    }

    .game-logo-large {
        max-width: 280px;
    }

    .contact-form-area {
        padding: 1.5rem;
    }

    .story-footer-nav {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container-nav {
        padding: 0 8px 0 2px;
        gap: 8px;
    }

    .logo-text {
        font-size: 0.9rem;
        letter-spacing: 0px;
    }

    .lang-btn {
        padding: 6px 8px;
        font-size: 0.8rem;
    }

    .lang-selector {
        margin-right: 5px;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }

    .game-title {
        font-size: 2.5rem;
        word-break: break-word;
    }

    .story-title {
        font-size: 2.2rem;
        word-break: break-word;
    }

    .section-title {
        font-size: 1.8rem;
        word-break: break-word;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-container,
    .game-showcase,
    .contact-main-grid {
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .footer {
        margin: 30px 10px;
        padding: 40px 20px 20px;
        border-radius: 20px;
    }

    .story-content-side {
        padding: 1.5rem 1rem;
    }

    .card {
        padding: 1.5rem 1rem;
    }

    .section {
        padding: 40px 0;
    }

    .hero {
        padding-top: 110px;
    }

    .contact-form-area {
        padding: 1rem;
    }

    .contact-social {
        flex-wrap: wrap;
        justify-content: center;
    }

    .story-nav-btns {
        flex-direction: column;
        width: 100%;
    }

    .story-nav-btns .btn {
        width: 100%;
        justify-content: center;
    }
}

.img-preview {
    width: 100%;
    border-radius: var(--br-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.mobile-only-cta {
    display: none;
}

.nav-active .mobile-only-cta {
    display: inline-flex;
    margin-top: 1rem;
    justify-content: center;
}


/* Animations upgrade */
.hvr-lift:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.2);
}

.hero-title {
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.glassmorphism {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    /* Optimization */
    transform: translateZ(0);
}

/* --- Game Story Section --- */
.game-story {
    background: radial-gradient(circle at top right, rgba(255, 0, 60, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(138, 43, 226, 0.05), transparent);
}

.story-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 0;
    border-radius: var(--br-lg);
    overflow: hidden;
    min-height: 600px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.story-visual-side {
    position: relative;
    overflow: hidden;
}

.story-bg-wrapper {
    width: 100%;
    height: 100%;
}

.story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8) contrast(1.1);
    transition: transform 10s linear;
}

.story-layout:hover .story-img {
    transform: scale(1.1);
}

.story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, var(--bg-main));
}

.quote-card {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    padding: 30px;
    border-radius: var(--br-md);
    border-left: 4px solid var(--secondary);
}

.quote-card i {
    opacity: 0.3;
    margin-bottom: 10px;
}

.quote-card p {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-bright);
}

.story-content-side {
    padding: 5rem;
    background: var(--bg-soft);
    display: flex;
    flex-direction: column;
}

.story-header {
    margin-bottom: 3rem;
}

.badge-accent {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 0, 60, 0.1);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.story-title .secondary {
    color: var(--secondary);
    text-shadow: 0 0 15px rgba(255, 0, 60, 0.3);
}

.story-text-container {
    flex-grow: 1;
}

.story-para {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.story-para.highlight {
    font-size: 1.2rem;
    color: var(--text-main);
    border-left: 2px solid var(--primary);
    padding-left: 20px;
    margin-bottom: 2rem;
}

.story-para strong {
    color: var(--primary);
}

.story-divider {
    height: 1px;
    width: 100px;
    background: var(--grad-primary);
    margin: 2rem 0;
}

/* --- Advanced Cyber Footer --- */
.footer {
    position: relative;
    margin: 100px 30px 30px;
    /* Top margin for separation, side margins for floating look */
    padding: 80px 40px 40px;
    background: var(--bg-glass);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid var(--border-glass);
    border-radius: 40px;
    /* Rounded corners for the glass panel */
    overflow: hidden;
    box-shadow: var(--shadow);
    contain: paint;
    transform: translateZ(0);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 25px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-column h4 {
    color: var(--text-bright);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-links-list a:hover {
    color: var(--primary);
    transform: translateX(8px);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--text-bright);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1.5fr;
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .story-layout {
        grid-template-columns: 1fr;
    }

    .story-visual-side {
        height: 300px;
    }

    .story-overlay {
        background: linear-gradient(to bottom, rgba(13, 13, 18, 0.2), rgba(13, 13, 18, 1));
    }

    .story-content-side {
        padding: 3rem 2rem;
    }
}

/* --- Game Logo Styling --- */
.game-logo-large {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.8));
    animation: logo-float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
    border-radius: 50%;
    object-fit: cover;
}

@keyframes logo-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.8));
    }

    50% {
        transform: translateY(-20px) scale(1.05);
        filter: drop-shadow(0 0 60px rgba(0, 0, 0, 0.9));
    }
}

.fnaf-horror-glow {
    filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.9));
}

.game-img-stack {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.img-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(50, 255, 126, 0.15), transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* --- Ultra Tech Liquid Navigation --- */
.nav-link {
    position: relative;
    padding: 8px 16px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s var(--transition);
}

/* --- Premium Navigation Links --- */
.nav-link {
    position: relative;
    padding: 10px 20px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.4s var(--transition);
    z-index: 1;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: all 0.4s var(--transition);
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 242, 255, 0);
    border-radius: 12px;
    z-index: -1;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--text-bright);
    transform: translateY(-2px);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 60%;
}

.nav-link:hover::after {
    background: rgba(0, 242, 255, 0.05);
    backdrop-filter: blur(5px);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    background: rgba(0, 242, 255, 0.08);
}

/* --- Floating Action Buttons --- */
.back-to-top {
    position: fixed;
    bottom: 310px;
    right: 30px;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid var(--border-glass);
    color: var(--text-bright);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s var(--transition);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}


.back-to-top:hover {
    background: var(--primary);
    color: var(--bg-main);
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
}

.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid var(--border-glass);
    color: var(--text-bright);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s var(--transition);
    box-shadow: var(--shadow);
}

[data-theme="light"] .theme-toggle {
    border-color: rgba(0, 0, 0, 0.1);
}

/* Performance Tooltip */
.perf-tooltip {
    position: fixed;
    bottom: 95px;
    right: 30px;
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--primary);
    padding: 12px 18px;
    border-radius: 15px;
    color: var(--text-bright);
    font-size: 0.85rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s var(--transition);
    pointer-events: none;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    text-align: center;
    max-width: 200px;
}

.perf-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.perf-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--primary);
}

/* Optimization for Performance Mode */
.performance-mode .liquid-container,
.performance-mode .liquid-orb,
.performance-mode .glass-refraction,
.performance-mode .grain-overlay {
    display: none !important;
}

.performance-mode * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}

.performance-mode .logo-text .accent {
    animation: none !important;
    background: none !important;
    -webkit-text-fill-color: var(--primary) !important;
}


.theme-toggle:hover {
    background: var(--primary);
    color: var(--bg-main);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
}

.theme-toggle i {
    width: 24px;
    height: 24px;
}

.perf-toggle {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid var(--border-glass);
    color: var(--text-bright);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s var(--transition);
    box-shadow: var(--shadow);
}

[data-theme="light"] .perf-toggle {
    border-color: rgba(0, 0, 0, 0.1);
}



.perf-toggle:hover {
    background: var(--accent);
    color: var(--bg-main);
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.4);
}

.perf-toggle i {
    width: 24px;
    height: 24px;
}

/* --- Perf Tooltip --- */
.perf-tooltip {
    position: fixed;
    bottom: 105px;
    right: 95px;
    background: var(--primary);
    color: var(--bg-main);
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 5px 20px rgba(0, 242, 255, 0.4);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
    z-index: 1000;
    pointer-events: none;
    max-width: 220px;
    text-align: center;
}

.perf-tooltip.show {
    opacity: 1;
    transform: translateX(0);
}

.perf-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--primary);
}


/* --- Tech Elements --- */
.horror-glitch {
    position: relative;
    animation: glitch 8s infinite;
}

@keyframes glitch {

    0%,
    98%,
    100% {
        transform: translate(0);
        text-shadow: none;
    }

    98.5% {
        transform: translate(-3px, 3px);
        text-shadow: 2px 0 #ff003c, -2px 0 #00f2ff;
    }

    99% {
        transform: translate(3px, -3px);
        text-shadow: -2px 0 #ff003c, 2px 0 #00f2ff;
    }

    99.5% {
        transform: translate(0);
        text-shadow: none;
    }
}

/* Featured Game & Story Enhancements */
.featured-game .game-showcase,
.story-layout {
    position: relative;
    border: 1px solid var(--border-glass);
    background: var(--bg-glass) !important;
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* Optimization */
    transform: translateZ(0);
    will-change: backdrop-filter;
}

/* --- Discreet & Cyber Cookie Banner --- */
.cookie-banner {
    position: fixed;
    top: 110px;
    left: 30px;
    width: 360px;
    background: var(--bg-glass);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 20px;
    z-index: 20000;
    display: none;
    box-shadow: var(--shadow);
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.6s var(--transition);
}

.cookie-banner.show {
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    opacity: 1;
}

.cookie-icon-wrapper {
    width: 45px;
    height: 45px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
}

.cookie-icon-wrapper i {
    font-size: 22px;
    color: #FBBF24;
}

.cookie-text {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.cookie-content-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.cookie-subtext {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2px;
    text-transform: none;
    letter-spacing: 0.3px;
}

.policy-trigger-inline {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 700;
    transition: color 0.3s ease;
}

.policy-trigger-inline:hover {
    color: var(--accent);
}

.cookie-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-bright);
}

.cookie-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 20px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.btn-cookie {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .cookie-banner.show {
        flex-direction: row !important;
        align-items: center;
        display: flex !important;
    }

    .cookie-banner {
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
        top: 85px;
        padding: 10px 12px;
        border-radius: 12px;
        gap: 10px;
        min-height: 50px;
    }

    .cookie-icon-wrapper {
        display: none;
    }

    .cookie-text {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex: 1;
        justify-content: space-between;
        gap: 10px;
    }

    .cookie-content-wrapper {
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
        justify-content: center;
    }

    .cookie-subtext {
        font-size: 0.55rem;
        opacity: 0.8;
    }

    .cookie-text h4 {
        font-size: 0.85rem;
        margin-bottom: 0;
        white-space: nowrap;
    }

    .cookie-text p {
        display: none;
    }

    .cookie-actions {
        display: flex;
        flex-direction: row;
        gap: 4px;
        flex-shrink: 0;
    }

    .btn-cookie {
        padding: 5px 8px;
        font-size: 0.7rem;
        border-radius: 6px;
    }
}

/* --- Overlay Fixes --- */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 25000;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.cookie-overlay.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.policy-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 600px;
    max-width: 90vw;
    max-height: 80vh;
    background: var(--bg-glass);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid var(--border-glass);
    border-radius: 32px;
    padding: 40px;
    z-index: 30000;
    display: none;
    opacity: 0;
    transition: all 0.4s var(--transition);
    overflow-y: auto;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 255, 0.1);
    /* Optimization */
    transform: translate(-50%, -50%) translateZ(0);
    will-change: transform, opacity, backdrop-filter;
}

.policy-modal.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.policy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.policy-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    margin: 0;
}

.close-policy {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-policy:hover {
    color: var(--accent);
}

.policy-body {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.policy-body h3 {
    color: var(--text-bright);
    margin: 25px 0 10px;
    font-size: 1.2rem;
}

.policy-body p {
    margin-bottom: 15px;
}

.policy-section {
    margin-bottom: 30px;
}

.policy-body ul {
    margin: 15px 0;
    padding-left: 20px;
    list-style: none;
}

.policy-body li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.policy-body li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.policy-body strong {
    color: var(--text-bright);
}

/* Scrollbar for Modal */
.policy-modal::-webkit-scrollbar {
    width: 6px;
}

.policy-modal::-webkit-scrollbar-track {
    background: transparent;
}

.policy-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .policy-modal {
        width: 95vw;
        max-width: 95vw;
        padding: 20px;
    }

    .policy-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .policy-header h2 {
        font-size: 1.3rem;
    }

    .policy-body {
        font-size: 0.9rem;
    }
}

.footer-bottom-links a {
    cursor: pointer;
}

/* --- Premium Ultra-Tech CTA Button --- */
.btn-premium-cta {
    position: relative;
    padding: 12px 30px;
    background: rgba(0, 242, 255, 0.05);
    color: var(--primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.btn-premium-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    /* Border thickness */
    border-radius: 12px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    animation: border-rotate 3s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

@keyframes border-rotate {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.btn-premium-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 250%;
    height: 250%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.4) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-premium-cta:hover {
    color: var(--bg-main);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 242, 255, 0.4);
}

.btn-premium-cta:hover::after {
    opacity: 1;
    transform: scale(1);
    background: var(--primary);
}

.btn-premium-cta .shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: 0.5s;
    z-index: 2;
}

.btn-premium-cta:hover .shine {
    left: 100%;
}

/* --- Language Selector --- */
.lang-selector {
    position: relative;
    margin-right: 15px;
}

.lang-btn {
    background: rgba(0, 242, 255, 0.08);
    border: 1px solid rgba(0, 242, 255, 0.35);
    color: var(--text-bright);
    padding: 8px 16px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.lang-btn:hover::after {
    transform: translateX(100%);
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.4) 0%, transparent 70%);
    opacity: 0.1;
    /* Slightly visible always in quality mode */
    transform: scale(0.8);
    transition: all 0.4s ease;
    z-index: 0;
}

.lang-btn:hover {
    background: rgba(0, 242, 255, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.4);
}

.lang-btn:hover::before {
    opacity: 1;
    transform: scale(1.2);
    animation: spin 3s linear infinite;
}

.lang-btn i,
.lang-btn span {
    position: relative;
    z-index: 2;
}

.lang-btn i {
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.6));
    width: 18px;
    height: 18px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 140px;
    background: var(--bg-glass);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    /* Added to prevent accidental clicks */
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.lang-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}


.lang-dropdown a {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-dropdown a:hover {
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    padding-left: 15px;
}

@media (max-width: 768px) {
    .lang-selector {
        margin: 0 4px; /* Reduced side margins to bring closer to toggle */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
        gap: 5px;
    }

    .lang-btn i {
        width: 14px;
        height: 14px;
    }
}

/* =============================================
   itch.io Premium Button (Navbar)
   ============================================= */
.btn-itchio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #fff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fa5c5c 0%, #ff2449 50%, #c7003b 100%);
    border: 1px solid rgba(255, 36, 73, 0.5);
    box-shadow: 0 0 18px rgba(255, 36, 73, 0.35), 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-itchio:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 0 30px rgba(255, 36, 73, 0.6), 0 8px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #ff6b6b 0%, #ff3356 50%, #e0003f 100%);
}

.btn-itchio:active {
    transform: translateY(0) scale(0.98);
}

/* The itch.io FA icon inside the nav button */
.itchio-fa-icon {
    font-size: 1.15rem;
    line-height: 1;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

/* Animated shine sweeping across the button */
.itchio-shine {
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.22),
            transparent);
    transform: skewX(-20deg);
    animation: itchio-shimmer 3.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes itchio-shimmer {
    0% {
        left: -75%;
    }

    55% {
        left: 125%;
    }

    100% {
        left: 125%;
    }
}

/* Ghost style for "Geri Dön" back button on story.html */
.btn-itchio-back {
    background: linear-gradient(135deg, rgba(250, 92, 92, 0.12) 0%, rgba(255, 36, 73, 0.08) 100%);
    border: 1px solid rgba(255, 36, 73, 0.35);
    box-shadow: 0 0 10px rgba(255, 36, 73, 0.15);
    color: #ff7a8a;
}

.btn-itchio-back:hover {
    background: linear-gradient(135deg, #fa5c5c 0%, #ff2449 50%, #c7003b 100%);
    color: #fff;
    box-shadow: 0 0 26px rgba(255, 36, 73, 0.55);
}

/* itch.io FA icon inside contact social circles */
.social-circle-itchio {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-circle-itchio .fa-itch-io {
    font-size: 1.1rem;
}

/* itch.io FA icon inside footer social buttons */
.social-btn-itchio {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn-itchio .fa-itch-io {
    font-size: 1rem;
}

/* --- Performance Mode --- */
body.performance-mode .liquid-container,
body.performance-mode .glass-refraction,
body.performance-mode svg[style*="visibility: hidden;"],
body.performance-mode .glassmorphism::before,
body.performance-mode .img-glow,
body.performance-mode .hero-image-wrapper .image-overlay,
body.performance-mode .story-overlay,
body.performance-mode .vignette-overlay {
    display: none !important;
    animation: none !important;
}

body.performance-mode .horror-glitch,
body.performance-mode .fnaf-horror-glow {
    animation: none !important;
    text-shadow: none !important;
    filter: none !important;
}

body.performance-mode * {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.performance-mode .glassmorphism {
    background: var(--bg-soft) !important;
    border: 1px solid var(--border-glass) !important;
    box-shadow: none !important;
}

body.performance-mode .btn::before,
body.performance-mode .itchio-shine {
    display: none !important;
}

/* Perf Modal Styling */
#perf-modal {
    z-index: 11000;
}

#perf-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

#perf-overlay.show {
    display: block;
    opacity: 1;
}

/* --- Mobile Performance Overrides (Quality Mode) --- */
@media (max-width: 768px) {
    .liquid-orb {
        width: 80vw;
        height: 80vw;
        filter: blur(40px);
        /* Lower blur on mobile */
        animation-duration: 45s !important;
    }

    .glassmorphism {
        backdrop-filter: blur(8px) saturate(140%);
        -webkit-backdrop-filter: blur(8px) saturate(140%);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .header {
        backdrop-filter: blur(10px) saturate(150%);
        -webkit-backdrop-filter: blur(10px) saturate(150%);
    }

    .nav-active {
        backdrop-filter: blur(15px) saturate(160%);
        /* Reduced from 40px */
        -webkit-backdrop-filter: blur(15px) saturate(160%);
    }

    .lang-dropdown {
        backdrop-filter: blur(12px) saturate(150%);
        /* Reduced from 30px */
        -webkit-backdrop-filter: blur(12px) saturate(150%);
    }

    .policy-modal {
        backdrop-filter: blur(12px) saturate(150%);
        /* Reduced from 40px */
        -webkit-backdrop-filter: blur(12px) saturate(150%);
        padding: 25px 15px;
    }

    .back-to-top,
    .theme-toggle,
    .perf-toggle {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .glass-refraction {
        display: none !important;
        /* Refraction on mobile is often too heavy and barely visible */
    }

    /* Disable some unnecessary extras on mobile even in quality mode */
    .glassmorphism::before,
    .btn::before,
    .itchio-shine,
    .hero-image-wrapper .image-overlay {
        display: none !important;
    }

    .liquid-container {
        filter: url(#liquid-filter-mobile);
        opacity: 0.6;
        /* Slightly fade out for better text legibility on small screens */
    }

    /* Speed up text rendering */
    body {
        text-rendering: optimizeSpeed;
    }

    /* Simplify complex shadows for performance */
    * {
        box-shadow: none !important;
    }

    .btn-primary,
    .glassmorphism,
    .header,
    .policy-modal,
    .cookie-banner {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    }



    /* Force Touch Clickability */
    a,
    button,
    .btn,
    .nav-link,
    .social-circle,
    .lang-btn,
    .chat-trigger {
        pointer-events: auto !important;
        position: relative;
        z-index: 2;
    }

    * {
        touch-action: manipulation;
    }

    .grid-3, .grid-2, .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem !important;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 15px 20px !important;
    }

    .section {
        padding: 60px 0 !important;
    }

    .hero-content {
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .mission-header, .games-header {
        text-align: center !important;
    }

    .footer-main {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2.5rem !important;
    }

    .footer-col {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* ============================================
   V2 NEW FEATURES STYLES
   ============================================ */

/* --- News Section --- */
.news-grid {
    margin-top: 50px;
    gap: 30px;
}
.news-card {
    padding: 30px;
    border-radius: var(--br-md);
    transition: var(--ts);
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.news-date {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.news-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--text-bright);
}
.news-card-desc {
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Newsletter Section --- */
.newsletter-section {
    padding: 100px 0;
}
.newsletter-box {
    padding: 60px;
    border-radius: var(--br-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--bg-glass), rgba(0, 0, 0, 0.4));
}
.newsletter-content {
    flex: 1;
    min-width: 300px;
}
.newsletter-form {
    display: flex;
    gap: 15px;
    flex: 1;
    min-width: 300px;
}
.newsletter-form input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    padding: 15px 25px;
    border-radius: var(--br-sm);
    color: white;
    flex: 1;
    outline: none;
    transition: 0.3s;
}
.newsletter-form input:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.1);
}
.success-text {
    color: #4ade80;
    font-weight: 500;
    margin-top: 10px;
    display: block;
}

/* --- Lightbox Gallery --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
    backdrop-filter: blur(10px);
}
.lightbox.show {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- Offline Modal --- */
.offline-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 50000;
    display: none;
    opacity: 0;
    justify-content: center;
    align-items: center;
    transition: all 0.5s var(--transition);
}

.offline-modal.show {
    display: flex;
    opacity: 1;
}

.offline-content {
    max-width: 500px;
    width: 90%;
    padding: 50px 40px;
    text-align: center;
    border-radius: 32px;
    transform: translateY(20px);
    transition: all 0.5s var(--transition);
}

.offline-modal.show .offline-content {
    transform: translateY(0);
}

.offline-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 60, 0.1);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.2);
}

.offline-icon i {
    width: 40px;
    height: 40px;
}

.offline-actions {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    justify-content: center;
}

@media (max-width: 480px) {
    .offline-actions {
        flex-direction: column;
    }
    .offline-actions .btn {
        width: 100%;
    }
}
.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.lightbox.show .lightbox-content {
    transform: scale(1);
}
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    cursor: pointer;
    transition: 0.3s;
}
.lightbox-close:hover {
    color: var(--secondary);
    transform: rotate(90deg);
}
.lightbox-caption {
    position: absolute;
    bottom: 40px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* --- Page Transitions --- */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    z-index: 30000;
    opacity: 1;
    transform: translateY(0);
    pointer-events: none;
    /* transition removed to favor GSAP */
}

/* --- Ambience Sound Toggle --- */
.sound-toggle {
    position: fixed;
    bottom: 170px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    z-index: 999;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}
.sound-toggle:hover {
    background: var(--primary);
    color: var(--bg-main);
    transform: scale(1.1);
    box-shadow: var(--pulse-glow);
}

/* --- Hidden Easter Egg --- */
.easter-egg-trigger {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    opacity: 0.05;
    cursor: pointer;
    transition: 0.3s;
    color: var(--primary);
}
.easter-egg-trigger:hover {
    opacity: 0.8;
    transform: scale(2);
}

@media (max-width: 768px) {
    .newsletter-box {
        padding: 30px;
        text-align: center;
    }
    .newsletter-form {
        width: 100%;
        flex-direction: column;
    }
    .sound-toggle {
        bottom: 150px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}
/* Overlap Fix */
.theme-toggle { bottom: 30px !important; right: 30px !important; }
.perf-toggle { bottom: 100px !important; right: 30px !important; }
.sound-toggle { bottom: 170px !important; right: 30px !important; }
.back-to-top { bottom: 240px !important; right: 30px !important; }
@media (max-width: 768px) {
.theme-toggle { bottom: 20px !important; right: 20px !important; }
.perf-toggle { bottom: 85px !important; right: 20px !important; }
.sound-toggle { bottom: 150px !important; right: 20px !important; }
.back-to-top { bottom: 215px !important; right: 20px !important; }
}

/* --- Final Floating Button Positions --- */
.theme-toggle { bottom: var(--offset-theme, 30px) !important; right: 30px !important; z-index: 1000; }
.perf-toggle { bottom: var(--offset-perf, 95px) !important; right: 30px !important; z-index: 1000; }
.back-to-top { bottom: var(--offset-backtotop, 160px) !important; right: 30px !important; z-index: 1000; }
@media (max-width: 768px) {
    .theme-toggle { bottom: 20px !important; right: 20px !important; }
    .perf-toggle { bottom: 80px !important; right: 20px !important; }
    .back-to-top { bottom: 140px !important; right: 20px !important; }
}

/* Intro Video Modal */
.intro-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 100000; /* Above everything */
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.intro-modal.show {
    opacity: 1;
    visibility: visible;
}

.intro-video-container {
    position: relative;
    width: auto;
    max-width: 90vw;
    height: 75vh;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* New Overlays */
.intro-title-overlay {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    pointer-events: none;
    z-index: 10;
    padding: 0 20px;
}

.intro-main-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin: 0;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.6), 0 5px 15px rgba(0,0,0,0.8);
    background: linear-gradient(to bottom, #fff 0%, #00F2FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-sub-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 4px;
    margin-top: 5px;
    text-transform: uppercase;
}

.intro-pause-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 70px;
    height: 70px;
    background: rgba(0, 242, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transition: all 0.4s var(--transition);
    pointer-events: none;
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.is-paused .intro-pause-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.intro-actions {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    padding: 0 20px;
}

.intro-enter-btn {
    padding: 16px 45px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 5px;
    min-width: 280px;
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .intro-video-container {
        width: auto;
        max-width: 85vw;
        height: 70vh;
    }
    .intro-main-title {
        font-size: 1.4rem;
        letter-spacing: 3px;
    }
    .intro-sub-title {
        font-size: 0.8rem;
    }
}

/* Intro Rewatch & Instagram Link */
.intro-rewatch-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#re-watch-intro {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), rgba(138, 43, 226, 0.1)) !important;
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
    position: relative;
    overflow: hidden;
    font-size: 0.85rem !important;
    padding: 10px 20px !important;
    animation: rewatch-attention 3s infinite ease-in-out;
}

#re-watch-intro:hover {
    background: var(--grad-primary) !important;
    color: #fff !important;
    border-color: transparent !important;
    transform: scale(1.08) translateY(-3px);
}

@keyframes rewatch-attention {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(0, 242, 255, 0.2); 
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 25px rgba(0, 242, 255, 0.6); 
        transform: scale(1.03);
    }
}

.intro-instagram-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s var(--transition);
    opacity: 0.7;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
}

.intro-instagram-link i {
    font-size: 1rem;
    color: var(--secondary);
}

.intro-instagram-link:hover {
    opacity: 1;
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .intro-rewatch-wrapper {
        width: 100%;
    }
    .intro-instagram-link {
        font-size: 0.8rem;
    }
}
