/* ========== CSS VARIABLES ========== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(20, 20, 30, 0.8);
    --text-primary: #e8e8f0;
    --text-secondary: #9090a8;
    --text-dim: #606075;
    --accent: #7b5cff;
    --accent-glow: rgba(123, 92, 255, 0.4);
    --accent-secondary: #ff6b9d;
    --forest-green: #2d5a3a;
    --forest-dark: #1a3525;
    --purple: #6b4a7a;
    --border: rgba(255, 255, 255, 0.08);
    --font-pixel: 'Press Start 2P', cursive;
    --font-main: 'Inter', sans-serif;
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== PARTICLES ========== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(123, 92, 255, 0.3);
    border-radius: 50%;
    animation: float 15s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3 {
    font-family: var(--font-pixel);
    font-weight: 400;
}

.section-title {
    font-size: clamp(1rem, 3vw, 1.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent-glow);
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(10, 10, 15, 0.98);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-pixel);
    font-size: 1.2rem;
    color: var(--accent);
    text-decoration: none;
    text-shadow: 0 0 20px var(--accent-glow);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--accent);
}

.btn-nav {
    padding: 0.6rem 1.2rem !important;
    background: var(--accent) !important;
    color: white !important;
    border-radius: 6px;
    font-weight: 600;
}

.btn-nav:hover {
    box-shadow: 0 0 20px var(--accent-glow);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 10, 15, 0.6) 0%, rgba(10, 10, 15, 0.85) 100%),
        radial-gradient(ellipse at center, transparent 0%, var(--bg-primary) 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 10vw, 5rem);
    margin-bottom: 1.5rem;
    color: var(--accent);
    text-shadow:
        0 0 10px var(--accent-glow),
        0 0 30px var(--accent-glow),
        0 0 60px var(--accent-glow);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px var(--accent-glow), 0 0 30px var(--accent-glow);
    }

    to {
        text-shadow: 0 0 20px var(--accent-glow), 0 0 50px var(--accent-glow), 0 0 80px var(--accent-glow);
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }

    20% {
        clip: rect(62px, 9999px, 42px, 0);
    }

    40% {
        clip: rect(16px, 9999px, 78px, 0);
    }

    60% {
        clip: rect(87px, 9999px, 23px, 0);
    }

    80% {
        clip: rect(45px, 9999px, 91px, 0);
    }

    100% {
        clip: rect(29px, 9999px, 67px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 12px, 0);
    }

    20% {
        clip: rect(34px, 9999px, 89px, 0);
    }

    40% {
        clip: rect(78px, 9999px, 45px, 0);
    }

    60% {
        clip: rect(23px, 9999px, 56px, 0);
    }

    80% {
        clip: rect(91px, 9999px, 34px, 0);
    }

    100% {
        clip: rect(47px, 9999px, 78px, 0);
    }
}

.tagline {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-dim);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 20px;
    }
}

/* ========== ABOUT ========== */
.about {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ========== FEATURES ========== */
.features {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(123, 92, 255, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========== GALLERY ========== */
.gallery {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
}

.gallery-item.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    color: var(--accent);
}

/* ========== TRAILER ========== */
.trailer {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ========== DOWNLOAD ========== */
.download {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.download-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.download-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.download-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-download,
.btn-setup {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-download {
    background: var(--accent);
    color: white;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--accent-glow);
}

.btn-setup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-setup:hover {
    border-color: var(--accent);
}

.btn-icon {
    font-size: 1.5rem;
}

.btn-text {
    text-align: left;
}

.btn-label {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-sub {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
}

.btn-hint {
    display: block;
    font-size: 0.75rem;
    opacity: 0.6;
    font-style: italic;
    margin-top: 0.25rem;
}

.system-requirements {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.system-requirements h3 {
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.requirement {
    text-align: center;
}

.req-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
}

.req-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* ========== FOOTER ========== */
.footer {
    padding: 3rem 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-family: var(--font-pixel);
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-primary);
        padding: 2rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .requirements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .download-buttons {
        flex-direction: column;
    }

    .btn-download,
    .btn-setup {
        width: 100%;
        justify-content: center;
    }
}

/* ========== LOADING SCREEN ========== */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-family: var(--font-pixel);
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: var(--accent);
    animation: loading 2s ease-out forwards;
}

@keyframes loading {
    to {
        width: 100%;
    }
}

.loading-text {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* ========== LANGUAGE TOGGLE ========== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.lang-toggle:hover {
    border-color: var(--accent);
}

.lang-flag {
    font-size: 1.1rem;
}

.lang-code {
    font-weight: 600;
}

/* ========== STORY SECTION ========== */
.story {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.story-chapter {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s;
}

.story-chapter:hover {
    transform: translateX(10px);
    border-color: var(--accent);
}

.chapter-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--accent);
    color: white;
    font-family: var(--font-pixel);
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.story-chapter h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.story-chapter p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========== CONTROLS SECTION ========== */
.controls {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.control-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.control-group h3 {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    text-align: center;
}

.control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.control-item:last-child {
    border-bottom: none;
}

.keys {
    display: flex;
    gap: 0.25rem;
}

.key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 0.5rem;
    background: linear-gradient(180deg, #3a3a4a 0%, #2a2a3a 100%);
    border: 1px solid #4a4a5a;
    border-radius: 6px;
    font-family: var(--font-pixel);
    font-size: 0.6rem;
    color: var(--text-primary);
    box-shadow: 0 3px 0 #1a1a2a;
}

.control-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========== ENEMIES SECTION ========== */
.enemies {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.enemies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.enemy-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.enemy-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-secondary);
    box-shadow: 0 20px 40px rgba(255, 107, 157, 0.1);
}

.enemy-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.enemy-card h3 {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.enemy-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.enemy-danger {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.enemy-danger.boss {
    background: rgba(255, 107, 157, 0.2);
    color: var(--accent-secondary);
}

.enemy-danger.friendly {
    background: rgba(123, 92, 255, 0.2);
    color: var(--accent);
}

/* ========== FAQ SECTION ========== */
.faq {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.faq-grid {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    background: transparent;
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
    text-align: left;
    color: var(--text-primary);
}

.faq-question:hover {
    background: rgba(123, 92, 255, 0.05);
}

.faq-question span:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-secondary);
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.25rem;
}

/* ========== CHANGELOG SECTION ========== */
.changelog {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.changelog-list {
    max-width: 700px;
    margin: 0 auto;
}

.changelog-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.changelog-item.upcoming {
    opacity: 0.7;
    border-style: dashed;
}

.version-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.version-tag {
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    color: var(--accent);
}

.version-date {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.version-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}

.version-badge.new {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.version-badge.soon {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.version-changes {
    list-style: none;
}

.version-changes li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.version-changes li:last-child {
    border-bottom: none;
}

/* ========== RESPONSIVE ADDITIONS ========== */
@media (max-width: 1024px) {
    .controls-grid {
        grid-template-columns: 1fr;
    }

    .enemies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-right {
        gap: 0.5rem;
    }

    .lang-toggle {
        padding: 0.4rem 0.5rem;
    }

    .lang-code {
        display: none;
    }

    .enemies-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.featured {
        grid-column: span 2;
        grid-row: span 1;
    }
}


/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--accent-glow);
}


/* ========== SECTION DIVIDERS ========== */
.section-divider {
    position: relative;
    margin-top: -1px;
    line-height: 0;
}

.section-divider svg {
    width: 100%;
    height: 80px;
    display: block;
}

.section-divider.flip {
    transform: scaleX(-1);
}

/* ========== PIXEL ART LOADING ========== */
.loading-pixel-art {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    height: 60px;
}

.pixel-tree {
    width: 20px;
    height: 40px;
    background:
        linear-gradient(to bottom, transparent 0%, transparent 10%, #2d5a3a 10%, #2d5a3a 60%, transparent 60%),
        linear-gradient(to bottom, transparent 60%, #5a3a1a 60%, #5a3a1a 100%);
    clip-path: polygon(50% 0%, 0% 55%, 20% 55%, 20% 100%, 80% 100%, 80% 55%, 100% 55%);
    animation: treeSway 2s ease-in-out infinite alternate;
}

.pixel-tree:first-child { animation-delay: 0s; }
.pixel-tree:last-child { animation-delay: 0.5s; }

.pixel-character {
    width: 16px;
    height: 24px;
    background: #7b5cff;
    border-radius: 4px 4px 0 0;
    position: relative;
    animation: characterWalk 0.6s steps(2) infinite;
}

.pixel-character::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: #e8e8f0;
    border-radius: 50%;
}

@keyframes treeSway {
    from { transform: rotate(-2deg); }
    to { transform: rotate(2deg); }
}

@keyframes characterWalk {
    0% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ========== GALLERY TILT EFFECT ========== */
.gallery-item {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
    perspective: 800px;
}

/* ========== TYPEWRITER EFFECT ========== */
.section-title.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--accent);
    white-space: nowrap;
    display: inline-block;
    animation: typewriterBlink 0.7s step-end infinite;
}

.section-title.typewriter.done {
    border-right-color: transparent;
    animation: none;
}

@keyframes typewriterBlink {
    50% { border-right-color: transparent; }
}

/* ========== RESPONSIVE HERO VIDEO ========== */
@media (max-width: 768px) {
    .hero-video {
        display: none;
    }
    .hero {
        background:
            linear-gradient(180deg, rgba(10, 10, 15, 0.7) 0%, rgba(10, 10, 15, 0.9) 100%),
            url('assets/uploaded_media_2_1769623299081.png');
        background-size: cover;
        background-position: center;
    }
}


/* ========== CUSTOM CURSOR ========== */
body {
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><text y='20' font-size='18'>🗡️</text></svg>") 4 4, auto;
}

a, button, .gallery-item, .enemy-card, .faq-question {
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><text y='22' font-size='20'>👆</text></svg>") 10 4, pointer;
}

/* ========== SECTION MOOD BACKGROUNDS ========== */
.enemies {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(40, 10, 15, 0.6) 50%, var(--bg-primary) 100%);
}

.story {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(10, 10, 30, 0.8) 50%, var(--bg-primary) 100%);
}

/* ========== LOGO SPARK EFFECT ========== */
.logo {
    position: relative;
    overflow: hidden;
}

.logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(123, 92, 255, 0.3) 45%,
        rgba(123, 92, 255, 0.5) 50%,
        rgba(123, 92, 255, 0.3) 55%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: none;
}

.logo:hover::after {
    animation: logoSpark 0.6s ease forwards;
}

@keyframes logoSpark {
    to { transform: translateX(100%); }
}

/* ========== ENEMY MODAL ========== */
.enemy-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.enemy-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.enemy-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.enemy-modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    backdrop-filter: blur(20px);
}

.enemy-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.3s;
}

.enemy-modal-close:hover {
    color: var(--accent);
}

.enemy-modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.enemy-modal-name {
    font-family: var(--font-pixel);
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.enemy-modal-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.enemy-modal-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(123, 92, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.stat-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* ========== DOWNLOAD COUNT ========== */
.download-count {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

/* ========== MADE WITH ========== */
.made-with {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}


/* ========== RIPPLE EFFECT ========== */
.btn-primary, .btn-secondary, .btn-download, .btn-setup, .btn-nav {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========== NAV LINK UNDERLINE ========== */
.nav-links a:not(.btn-nav) {
    position: relative;
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-nav):hover::after,
.nav-links a:not(.btn-nav).active::after {
    width: 100%;
}

/* ========== GLASSMORPHISM CARDS ========== */
.feature-card,
.enemy-card {
    background: rgba(20, 20, 30, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== HERO FOG ========== */
.hero-fog {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(123, 92, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 90%, rgba(45, 90, 58, 0.1) 0%, transparent 50%);
    animation: fogDrift 8s ease-in-out infinite alternate;
}

@keyframes fogDrift {
    0% { transform: translateX(-20px) translateY(0); opacity: 0.6; }
    100% { transform: translateX(20px) translateY(-10px); opacity: 1; }
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    flex-wrap: wrap;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

.cookie-banner p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
}

.cookie-accept, .cookie-decline {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    border: none;
    font-family: var(--font-main);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-accept {
    background: var(--accent);
    color: white;
}

.cookie-accept:hover {
    box-shadow: 0 4px 15px var(--accent-glow);
}

.cookie-decline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.cookie-decline:hover {
    border-color: var(--text-secondary);
}

/* ========== GALLERY MASONRY ========== */
.gallery-grid {
    display: columns;
    columns: 3;
    column-gap: 1.5rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    aspect-ratio: auto;
}

.gallery-item.featured {
    grid-column: unset;
    grid-row: unset;
}

@media (max-width: 768px) {
    .gallery-grid {
        columns: 2;
    }
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        columns: 1;
    }
}
