﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --neon-cyan: #DAA520;
    --neon-purple: #D2691E;
    --neon-pink: #CD853F;
    --dark-bg: #0a0a0f;
    --card-bg: #12121a;
    --border: #1e1e2e;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

    html.restore-scroll {
        scroll-behavior: auto;
    }

body {
    background: var(--dark-bg);
    color: #d0d0e8;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── NAV ── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,10,15,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--neon-cyan);
    text-decoration: none;
    text-shadow: 0 0 4px var(--neon-cyan);
    letter-spacing: 2px;
}

.logo {
    background-image: url(../assets/ms-icon-310x310.png);
    width: 36px;
    height: 36px;
    display: inline-block;
    border-radius: 20px;
    background-size: 36px 36px;
    vertical-align: top;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
}

    nav ul li a {
        font-family: 'Orbitron', sans-serif;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: #a0a0c0;
        text-decoration: none;
        padding: 0.45rem 1rem;
        border-radius: 4px;
        border: 1px solid transparent;
        transition: color .25s, border-color .25s, text-shadow .25s;
    }

        nav ul li a:hover {
            color: var(--neon-cyan);
            border-color: var(--neon-cyan);
            text-shadow: 0 0 3px var(--neon-cyan);
        }

/* ── HAMBURGER ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 110;
}

    .nav-toggle span {
        display: block;
        height: 2px;
        background: var(--neon-cyan);
        border-radius: 2px;
        transition: transform .3s, opacity .3s;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

@media (max-width: 680px) {
    .nav-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10,10,15,0.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem 1.5rem;
    }

        nav ul.open {
            display: flex;
        }

        nav ul li a {
            padding: .6rem .5rem;
            font-size: .7rem;
        }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0 1rem;
        animation: none;
    }

        .nav-dropdown-menu::before {
            display: none;
        }

    .nav-dropdown::after {
        display: none;
    }
}

/* ── DROPDOWN ── */
.nav-dropdown {
    position: relative;
}

    /* Invisible bridge fills the gap between the trigger and the panel so
           the mouse never leaves the hover area while moving between them. */
    .nav-dropdown::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 16px;
        background: transparent;
    }

    .nav-dropdown > a::after {
        content: ' ▾';
        font-size: 0.6rem;
        opacity: .6;
    }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    transform: none;
    min-width: 230px;
    background: rgba(10,10,18,0.97);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .5rem;
    z-index: 200;
    box-shadow: 0 16px 48px rgba(0,0,0,.6), 0 0 0 1px rgba(0,245,255,.05);
    animation: fadeUp .18s ease both;
}

    .nav-dropdown-menu::before {
        content: '';
        position: absolute;
        top: -6px;
        left: 1.5rem;
        transform: none;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 6px solid var(--border);
    }

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .55rem .9rem;
    border-radius: 6px;
    border: 1px solid transparent;
    font-family: 'Rajdhani', sans-serif;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .5px;
    color: #8080aa;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}

    .nav-dropdown-menu a:hover {
        background: rgba(255,255,255,.04);
        color: #fff;
        border-color: var(--border);
    }

.nav-dropdown-menu .dm-icon {
    font-size: 1.1rem;
    width: 1.4rem;
    text-align: center;
    flex-shrink: 0;
}

.nav-dropdown-menu .dm-genre {
    font-family: 'Orbitron', sans-serif;
    font-size: .48rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: .1rem .35rem;
    border-radius: 3px;
    margin-left: auto;
    flex-shrink: 0;
}

.dm-genre-rpg {
    background: rgba(191,0,255,.15);
    color: var(--neon-purple);
    border: 1px solid rgba(191,0,255,.3);
}

.dm-genre-action {
    background: rgba(255,0,127,.15);
    color: var(--neon-pink);
    border: 1px solid rgba(255,0,127,.3);
}

.dm-genre-puzzle {
    background: rgba(0,245,255,.12);
    color: var(--neon-cyan);
    border: 1px solid rgba(0,245,255,.3);
}

.dm-genre-horror {
    background: rgba(200,0,0,.15);
    color: #ff4444;
    border: 1px solid rgba(200,0,0,.3);
}

.nav-dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: .4rem .4rem;
}

.dm-view-all {
    font-family: 'Orbitron', sans-serif !important;
    font-size: .6rem !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase;
    color: var(--neon-cyan) !important;
    justify-content: center !important;
}

    .dm-view-all:hover {
        text-shadow: 0 0 3px var(--neon-cyan);
    }

/* ── MAIN ── */
main {
    flex: 1;
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #444466;
}

    footer span {
        color: var(--neon-pink);
    }

/* ── SHARED UTILITIES ── */
.neon-text-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 6px var(--neon-cyan);
}

.neon-text-purple {
    color: var(--neon-purple);
    text-shadow: 0 0 6px var(--neon-purple);
}

.neon-text-pink {
    color: var(--neon-pink);
    text-shadow: 0 0 6px var(--neon-pink);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    border: none;
}

    .btn:hover {
        transform: translateY(-2px);
    }

.btn-cyan {
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 6px rgba(218,165,32,.2);
}

    .btn-cyan:hover {
        box-shadow: 0 0 12px rgba(218,165,32,.4);
    }

.btn-purple {
    background: var(--neon-purple);
    color: #fff;
    box-shadow: 0 0 8px rgba(210,105,30,.3);
}

    .btn-purple:hover {
        box-shadow: 0 0 16px rgba(210,105,30,.5);
    }

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem;
    transition: border-color .3s, transform .3s, box-shadow .3s;
}

    .card:hover {
        transform: translateY(-4px);
        border-color: var(--neon-cyan);
        box-shadow: 0 8px 32px rgba(218,165,32,.08);
    }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 0 0 4px #DAA520;
    }

    50% {
        text-shadow: 0 0 12px #DAA520, 0 0 20px #DAA520;
    }
}

@keyframes scanline {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100px;
    }
}

.fade-up {
    animation: fadeUp .8s ease both;
}

.delay-1 {
    animation-delay: .15s;
}

.delay-2 {
    animation-delay: .30s;
}

.delay-3 {
    animation-delay: .45s;
}

.delay-4 {
    animation-delay: .60s;
}

/* ── LANGUAGE SWITCHER ── */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: .75rem;
}

    .lang-switcher a {
        font-family: 'Orbitron', sans-serif;
        font-size: .65rem;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        text-decoration: none;
        padding: .35rem .6rem;
        color: #606080;
        border: 1px solid var(--border);
        transition: color .25s, border-color .25s, background .25s;
    }

        .lang-switcher a:first-child {
            border-radius: 4px 0 0 4px;
            border-right: none;
        }

        .lang-switcher a:last-child {
            border-radius: 0 4px 4px 0;
        }

        .lang-switcher a:hover {
            color: var(--neon-cyan);
            border-color: var(--neon-cyan);
        }

        .lang-switcher a.active {
            color: var(--neon-cyan);
            border-color: var(--neon-cyan);
            background: rgba(218,165,32,.1);
            text-shadow: 0 0 3px var(--neon-cyan);
        }

@media (max-width: 680px) {
    .lang-switcher {
        margin-left: 0;
        margin-top: .5rem;
    }
}