/* =========================================================
[NXT] NEXT GEN
MAIN STYLESHEET
Futuristic Gaming Community
========================================================= */

/* =========================================================
ROOT
========================================================= */

:root {
    --bg: #050508;
    --bg-secondary: #0b0b12;
    --bg-card: rgba(255, 255, 255, 0.045);
    --text: #ffffff;
    --text-muted: #a3a3b2;
    --nxt: #8b5cf6;
    --nxt-light: #b794ff;
    --nxt-dark: #5b21b6;
    --border: rgba(255, 255, 255, 0.09);
    --radius: 18px;
    --navbar-height: 76px;
}

/* =========================================================
RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body, button, a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: var(--nxt);
    color: white;
}

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

button {
    font: inherit;
}

/* =========================================================
GLOBAL BACKGROUND
========================================================= */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -20;
    pointer-events: none;
    background: radial-gradient( circle at 20% 20%, rgba(139, 92, 246, 0.08), transparent 28% ), radial-gradient( circle at 80% 70%, rgba(109, 40, 217, 0.06), transparent 30% ), #050508;
}

body::after {
    content: "";
    position: fixed;
    width: 700px;
    height: 700px;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    background: radial-gradient( circle, rgba(139, 92, 246, 0.045), transparent 70% );
    filter: blur(40px);
    z-index: -19;
    pointer-events: none;
    animation: ambientGlow 12s ease-in-out infinite;
}

@keyframes ambientGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-47%, -53%) scale(1.25);
    }

}

/* =========================================================
ANIMATED BACKGROUND
========================================================= */

.animated-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -10;
}

.background-grid {
    position: absolute;
    inset: -100px;
    opacity: 0.16;
    background-image: linear-gradient( rgba(139, 92, 246, 0.10) 1px, transparent 1px ), linear-gradient( 90deg, rgba(139, 92, 246, 0.10) 1px, transparent 1px );
    background-size: 60px 60px;
    mask-image: linear-gradient( to bottom, black, transparent 85% );
    -webkit-mask-image: linear-gradient( to bottom, black, transparent 85% );
    animation: backgroundGridMove 18s linear infinite;
}

@keyframes backgroundGridMove {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(60px);
    }

}

/* =========================================================
BACKGROUND GLOWS
========================================================= */

.background-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    will-change: transform;
}

.glow-1 {
    top: 10%;
    left: 45%;
    background: rgba(139, 92, 246, 0.9);
    animation: glowFloat1 12s ease-in-out infinite;
}

.glow-2 {
    top: 55%;
    left: 10%;
    background: rgba(109, 40, 217, 0.8);
    animation: glowFloat2 16s ease-in-out infinite;
}

.glow-3 {
    top: 70%;
    right: 5%;
    background: rgba(167, 139, 250, 0.7);
    animation: glowFloat3 14s ease-in-out infinite;
}

@keyframes glowFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-100px, 80px) scale(1.25);
    }

}

@keyframes glowFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(120px, -80px) scale(1.2);
    }

}

@keyframes glowFloat3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-100px, -120px) scale(1.3);
    }

}

/* =========================================================
PARTICLES
========================================================= */

.background-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--nxt-light);
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.8);
    opacity: 0;
    animation: particleFloat linear infinite;
}

.particle:nth-child(1) {
    left: 8%;
    animation-duration: 12s;
    animation-delay: -4s;
}

.particle:nth-child(2) {
    left: 18%;
    animation-duration: 16s;
    animation-delay: -8s;
}

.particle:nth-child(3) {
    left: 29%;
    animation-duration: 13s;
    animation-delay: -2s;
}

.particle:nth-child(4) {
    left: 41%;
    animation-duration: 18s;
    animation-delay: -10s;
}

.particle:nth-child(5) {
    left: 53%;
    animation-duration: 15s;
    animation-delay: -5s;
}

.particle:nth-child(6) {
    left: 64%;
    animation-duration: 19s;
    animation-delay: -12s;
}

.particle:nth-child(7) {
    left: 73%;
    animation-duration: 14s;
    animation-delay: -7s;
}

.particle:nth-child(8) {
    left: 82%;
    animation-duration: 17s;
    animation-delay: -3s;
}

.particle:nth-child(9) {
    left: 91%;
    animation-duration: 20s;
    animation-delay: -14s;
}

.particle:nth-child(10) {
    left: 97%;
    animation-duration: 15s;
    animation-delay: -9s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(110vh) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    50% {
        opacity: 0.45;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-10vh) scale(1.2);
        opacity: 0;
    }

}

/* =========================================================
NAVBAR
========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    padding: 0 6%;
    background: rgba(5, 5, 8, 0.62);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    z-index: 1000;
}

.navbar.navbar-scrolled {
    background: rgba(5, 5, 8, 0.92);
    border-color: rgba(139, 92, 246, 0.18);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(139, 92, 246, 0.05);
}

/* =========================================================
LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo img {
    width: 44px;
    height: 44px;
    display: block;
    object-fit: contain;
    filter: drop-shadow( 0 0 12px rgba(139, 92, 246, 0.5) );
    transition: transform 0.4s ease, filter 0.4s ease;
}

.logo:hover img {
    transform: rotate(-5deg) scale(1.08);
    filter: drop-shadow( 0 0 22px rgba(139, 92, 246, 0.9) );
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text strong {
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}

.logo-text small {
    margin-top: 4px;
    color: var(--nxt-light);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* =========================================================
DESKTOP NAVIGATION
========================================================= */

.navbar nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.navbar nav a {
    position: relative;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.navbar nav a:hover {
    color: white;
    text-shadow: 0 0 15px rgba(167, 139, 250, 0.5);
}

.navbar nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient( 90deg, transparent, var(--nxt), transparent );
    box-shadow: 0 0 10px var(--nxt);
    transition: width 0.3s ease;
}

.navbar nav a:hover::after, .navbar nav a.active::after {
    width: 100%;
}

.navbar nav a.active {
    color: white;
}

/* =========================================================
BUTTONS
========================================================= */

.button, .discord-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.discord-button, .button.primary {
    background: linear-gradient( 135deg, var(--nxt), var(--nxt-dark) );
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.25);
}

.discord-button:hover, .button.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.45), 0 10px 35px rgba(0, 0, 0, 0.3);
}

.button.primary::before, .discord-button::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -100%;
    width: 60%;
    height: 140%;
    background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.35), transparent );
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}

.button.primary:hover::before, .discord-button:hover::before {
    left: 140%;
}

.button.secondary {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(10px);
}

.button.secondary:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* =========================================================
COMMUNITY GAMES BUTTON
Einheitliches Design auf PC + Handy
========================================================= */

.community-games-button {
    background: linear-gradient( 135deg, var(--nxt), var(--nxt-dark) ) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.30) !important;
}

.community-games-button:hover, .community-games-button:focus {
    background: linear-gradient( 135deg, var(--nxt), var(--nxt-dark) ) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-3px);
    box-shadow: 0 0 28px rgba(139, 92, 246, 0.45), 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

/* =========================================================
HANDY
NICHT ANDERS FÄRBEN
========================================================= */

@media (max-width: 768px) {
    .community-games-button {
        background: linear-gradient( 135deg, var(--nxt), var(--nxt-dark) ) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        box-shadow: 0 0 18px rgba(139, 92, 246, 0.30) !important;
    }

}

/* =========================================================
LANGUAGE SELECTOR
=========================================================

WICHTIG:
Das ist die EINZIGE Dropdown-CSS-Struktur.
Die Klassen müssen mit index.html und script.js
übereinstimmen.
========================================================= */

.nxt-language-selector {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 20px;
    margin-right: 16px;
    z-index: 1100;
}

/* =========================================================
LANGUAGE BUTTON
========================================================= */

.nxt-language-button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 68px;
    min-width: 68px;
    height: 42px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    outline: none;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.nxt-language-button:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.12);
    transform: translateY(-2px);
}

.nxt-language-button:active {
    transform: scale(0.98);
}

/* =========================================================
LANGUAGE FLAG
========================================================= */

.nxt-language-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
}

/* =========================================================
LANGUAGE CODE
========================================================= */

.nxt-language-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    min-width: 22px;
    height: 20px;
    overflow: hidden;
    color: white;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

/* =========================================================
LANGUAGE ARROW
========================================================= */

.nxt-language-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 9px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.nxt-language-selector.open .nxt-language-arrow {
    transform: rotate(180deg);
}

/* =========================================================
LANGUAGE DROPDOWN
========================================================= */

.nxt-language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 245px;
    max-height: 440px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 14px;
    background: rgba(10, 10, 16, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55), 0 0 35px rgba(139, 92, 246, 0.10);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--nxt) transparent;
}

/* =========================================================
DROPDOWN OPEN
========================================================= */

.nxt-language-selector.open .nxt-language-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* =========================================================
   MOBILE LANGUAGE SELECTOR
========================================================= */

.mobile-language-selector {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 12px 0 0;
    z-index: 1200;
}

.mobile-language-selector .nxt-language-button {
    width: 100%;
    min-width: 0;
    height: 46px;
}

.mobile-language-selector .nxt-language-dropdown {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-height: 280px;
    margin-top: 8px;
    transform-origin: top center;
}

/* =========================================================
LANGUAGE ITEMS
========================================================= */

.nxt-language-dropdown button {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 11px;
    margin: 0;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    box-shadow: none;
    outline: none;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nxt-language-dropdown button:hover {
    background: rgba(139, 92, 246, 0.10);
    border-color: rgba(139, 92, 246, 0.18);
    color: white;
    transform: translateX(3px);
}

.nxt-language-dropdown button.active {
    background: linear-gradient( 135deg, rgba(139, 92, 246, 0.18), rgba(91, 33, 182, 0.10) );
    border-color: rgba(139, 92, 246, 0.25);
    color: white;
}

/* =========================================================
LANGUAGE ITEM CONTENT
========================================================= */

.nxt-language-dropdown button .language-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    min-width: 24px;
    font-size: 17px;
    line-height: 1;
}

.nxt-language-dropdown button .language-code {
    display: inline-flex;
    align-items: center;
    width: 30px;
    min-width: 30px;
    color: var(--nxt-light);
    font-weight: 800;
}

.nxt-language-dropdown button .language-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
LANGUAGE SCROLLBAR
========================================================= */

.nxt-language-dropdown::-webkit-scrollbar {
    width: 5px;
}

.nxt-language-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.nxt-language-dropdown::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 10px;
}

.nxt-language-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.8);
}

/* =========================================================
MOBILE MENU
========================================================= */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: white;
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: var(--navbar-height);
    left: 0;

    width: 100%;

    padding: 12px 5% 15px;

    background: rgba(5, 5, 8, 0.97);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-bottom: 1px solid rgba(139, 92, 246, 0.15);

    transform: translateY(-120%);
    opacity: 0;

    pointer-events: none;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;

    z-index: 999;
}

.mobile-menu.active,
.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.mobile-menu a {
    display: block;

    padding: 10px 15px;

    border-radius: 10px;

    color: var(--text-muted);

    font-size: 15px;
    font-weight: 700;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.mobile-menu a:hover {
    color: white;
    background: rgba(139, 92, 246, 0.08);
}
/* =========================================================
   MOBILE LANGUAGE SELECTOR
========================================================= */

.mobile-language-selector {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 12px 0 0;
    z-index: 1200;
}

.mobile-language-selector .nxt-language-button {
    width: 100%;
    min-width: 0;
    height: 46px;
}

.mobile-language-selector .nxt-language-dropdown {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-height: 280px;
    margin-top: 8px;
    transform-origin: top center;
}

/* =========================================================
HERO
========================================================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 110px 5% 80px;
    overflow: hidden;
    text-align: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: radial-gradient( circle at 50% 45%, rgba(139, 92, 246, 0.20), transparent 38% );
    pointer-events: none;
    animation: heroBackgroundPulse 8s ease-in-out infinite;
}

@keyframes heroBackgroundPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.12);
    }

}

.hero-grid {
    position: absolute;
    inset: -100px;
    opacity: 0.22;
    background-image: linear-gradient( rgba(139, 92, 246, 0.1) 1px, transparent 1px ), linear-gradient( 90deg, rgba(139, 92, 246, 0.1) 1px, transparent 1px );
    background-size: 60px 60px;
    mask-image: linear-gradient( to bottom, black, transparent 80% );
    -webkit-mask-image: linear-gradient( to bottom, black, transparent 80% );
    animation: gridMove 18s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(60px);
    }

}

.hero-glow {
    position: absolute;
    width: 750px;
    height: 750px;
    right: -220px;
    top: 20px;
    background: radial-gradient( circle, rgba(139, 92, 246, 0.30), rgba(139, 92, 246, 0.10) 35%, transparent 70% );
    filter: blur(15px);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.65;
    }

    50% {
        transform: translate(-50px, 30px) scale(1.15);
        opacity: 1;
    }

}

.hero::after {
    content: "";
    position: absolute;
    width: 550px;
    height: 550px;
    left: -270px;
    bottom: -240px;
    background: radial-gradient( circle, rgba(109, 40, 217, 0.22), transparent 70% );
    filter: blur(15px);
    pointer-events: none;
    animation: secondaryGlow 10s ease-in-out infinite;
}

@keyframes secondaryGlow {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(80px, -40px);
    }

}

/* =========================================================
HERO CONTENT
========================================================= */

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px 40px;
}

/* =========================================================
HERO LOGO
========================================================= */

.hero-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1000px;
    height: 900px;
    margin-bottom: 20px;
}

.hero-logo::before {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: radial-gradient( circle, rgba(139, 92, 246, 0.35), rgba(139, 92, 246, 0.12) 35%, transparent 72% );
    filter: blur(20px);
    animation: heroLogoPulse 3.5s ease-in-out infinite;
}

.hero-logo::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(167, 139, 250, 0.15);
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.15), inset 0 0 50px rgba(139, 92, 246, 0.08);
    animation: heroLogoRing 8s linear infinite;
}

.hero-logo img {
    position: relative;
    z-index: 2;
    width: 1000px;
    height: 1000px;
    display: block;
    object-fit: contain;
    filter: drop-shadow( 0 0 25px rgba(139, 92, 246, 0.65) ) drop-shadow( 0 0 65px rgba(139, 92, 246, 0.30) );
    animation: heroLogoFloat 4s ease-in-out infinite, heroLogoGlow 4s ease-in-out infinite;
}

@keyframes heroLogoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.025);
    }

}

@keyframes heroLogoGlow {
    0%, 100% {
        filter: drop-shadow( 0 0 25px rgba(139, 92, 246, 0.55) ) drop-shadow( 0 0 60px rgba(139, 92, 246, 0.25) );
    }

    50% {
        filter: drop-shadow( 0 0 40px rgba(139, 92, 246, 0.85) ) drop-shadow( 0 0 90px rgba(139, 92, 246, 0.40) );
    }

}

@keyframes heroLogoPulse {
    0%, 100% {
        transform: scale(0.90);
        opacity: 0.55;
    }

    50% {
        transform: scale(1.12);
        opacity: 1;
    }

}

@keyframes heroLogoRing {
    from {
        transform: rotate(0deg) scale(1);
    }

    to {
        transform: rotate(360deg) scale(1);
    }

}

/* =========================================================
HERO TEXT
========================================================= */

.hero-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--nxt-light);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 4px;
    text-shadow: 0 0 15px rgba(167, 139, 250, 0.4);
}

.hero h1 {
    max-width: 1000px;
    margin: 0;
    font-size: clamp(58px, 8vw, 108px);
    font-weight: 900;
    line-height: 0.94;
    letter-spacing: -5px;
    text-shadow: none;
}


.hero h1 span {
    display: inline;

    background: linear-gradient(
        90deg,
        #a78bfa 0%,
        #c4b5fd 45%,
        #ffffff 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
}

.hero-text {
    max-width: 680px;
    margin: 28px auto 30px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 18px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.hero-community-tag {
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 4px;
}

/* =========================================================
GENERAL SECTIONS
========================================================= */

.section {
    position: relative;
    max-width: 1400px;
    margin: auto;
    padding: 120px 8%;
}

.section-title {
    margin-bottom: 55px;
}

.section-title p {
    color: var(--nxt-light);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: clamp( 35px, 5vw, 60px );
    line-height: 1;
    letter-spacing: -2px;
}

/* =========================================================
GAME GRID
========================================================= */

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* =========================================================
GAME CARD
========================================================= */

.game-card {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--bg-secondary);
    transform-style: preserve-3d;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55), 0 0 35px rgba(139, 92, 246, 0.1);
}

/* =========================================================
GAME IMAGE
========================================================= */

.game-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.7s ease, filter 0.5s ease;
    z-index: 0;
}

.game-card:hover .game-image {
    transform: scale(1.1);
    filter: brightness(1.08);
}

/* =========================================================
GAME OVERLAY
========================================================= */

.game-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(5, 5, 9, 0.99) 0%, rgba(5, 5, 9, 0.82) 35%, rgba(5, 5, 9, 0.25) 75%, transparent 100% );
    transition: background 0.4s ease;
    z-index: 1;
}

.game-card:hover .game-overlay {
    background: linear-gradient( to top, rgba(5, 5, 9, 0.98), rgba(5, 5, 9, 0.68), rgba(139, 92, 246, 0.06) );
}

/* =========================================================
GAME CARD GLOW
========================================================= */

.game-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient( 135deg, transparent 35%, rgba(139, 92, 246, 0.4), transparent 65% );
    opacity: 0;
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.game-card:hover::before {
    opacity: 1;
}

/* =========================================================
GAME CONTENT
========================================================= */

.game-content {
    position: relative;
    z-index: 5;
    padding: 30px;
    width: 100%;
}

.game-category {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--nxt-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.game-content h3 {
    margin-bottom: 10px;
    font-size: 27px;
    line-height: 1.1;
}

.game-content p {
    max-width: 350px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
}

/* =========================================================
COMMUNITY
========================================================= */

.community {
    max-width: 1000px;
    text-align: center;
}

.community .section-title {
    margin-bottom: 25px;
}

.community-text {
    max-width: 650px;
    margin: 0 auto 50px;
    color: var(--text-muted);
    font-size: 17px;
}

/* =========================================================
COMMUNITY STATS
========================================================= */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.stat:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.stat strong {
    display: block;
    margin-bottom: 5px;
    color: var(--nxt-light);
    font-size: 34px;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.35);
}

.stat span {
    color: var(--text-muted);
    font-size: 14px;
}

/* =========================================================
EVENTS
========================================================= */

.event-box {
    padding: 45px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient( 135deg, rgba(139, 92, 246, 0.1), rgba(255, 255, 255, 0.02) );
    backdrop-filter: blur(15px);
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.event-box:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.4);
}

.event-box h3 {
    margin-bottom: 8px;
}

.event-box p {
    color: var(--text-muted);
}

/* =========================================================
DISCORD SECTION
========================================================= */

.discord-section {
    position: relative;
    max-width: 1100px;
    margin: 80px auto;
    padding: 90px 8%;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.20);
    border-radius: 30px;
    background: radial-gradient( circle at 50% 0%, rgba(139, 92, 246, 0.18), transparent 55% ), rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 60px rgba(139, 92, 246, 0.08);
}

.discord-section::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    left: 50%;
    top: -350px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.16);
    filter: blur(70px);
    pointer-events: none;
}

.discord-section h2 {
    position: relative;
    margin-bottom: 20px;
    font-size: clamp( 42px, 6vw, 70px );
    line-height: 1;
    letter-spacing: -3px;
}

.discord-section > p:not(.hero-label) {
    position: relative;
    max-width: 650px;
    margin: 0 auto 35px;
    color: var(--text-muted);
    font-size: 17px;
}

/* =========================================================
FOOTER
========================================================= */

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 35px 6%;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
}

.footer-logo {
    color: white;
    font-weight: 800;
}

/* =========================================================
FOCUS / ACCESSIBILITY
========================================================= */

button:focus-visible, a:focus-visible {
    outline: 2px solid var(--nxt-light);
    outline-offset: 4px;
}

/* =========================================================
TABLET
========================================================= */

@media (max-width: 1100px) {
    .hero-logo {
        width: 320px;
        height: 320px;
    }

    .hero-logo img {
        width: 275px;
        height: 275px;
    }

    .hero-logo::before {
        width: 295px;
        height: 295px;
    }

    .hero-logo::after {
        width: 230px;
        height: 230px;
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* =========================================================
TABLET / SMALL DESKTOP
========================================================= */

@media (max-width: 850px) {
    .navbar {
        padding: 0 5%;
    }

    .navbar nav, .navbar > .discord-button, .nxt-language-selector {
        display: none;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .hero {
        min-height: 100svh;
        padding: 100px 5% 70px;
    }

    .hero-content {
        padding: 40px 15px;
    }

    .hero-logo {
        width: 290px;
        height: 290px;
        margin-bottom: 15px;
    }

    .hero-logo img {
        width: 250px;
        height: 250px;
    }

    .hero-logo::before {
        width: 270px;
        height: 270px;
    }

    .hero-logo::after {
        width: 215px;
        height: 215px;
    }

    .hero h1 {
        font-size: clamp( 52px, 9vw, 82px );
        letter-spacing: -3px;
    }

    .hero-text {
        font-size: 17px;
    }

    .section {
        padding: 100px 6%;
    }

}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 600px) {
    body::after {
        width: 450px;
        height: 450px;
    }

    .background-glow {
        width: 250px;
        height: 250px;
        filter: blur(80px);
    }

    .particle {
        width: 2px;
        height: 2px;
    }

    :root {
        --navbar-height: 70px;
    }

    .navbar {
        height: 70px;
        padding: 0 4%;
    }

    .mobile-menu {
        top: 70px;
    }

    .logo {
        gap: 7px;
    }

    .logo img {
        width: 38px;
        height: 38px;
    }

    .logo-text strong {
        font-size: 13px;
    }

    .logo-text small {
        font-size: 6px;
        letter-spacing: 1.5px;
    }

    .hero {
        min-height: 100svh;
        padding: 85px 4% 60px;
    }

    .hero-content {
        padding: 30px 10px;
    }

    .hero-logo {
        width: 230px;
        height: 230px;
        margin-bottom: 12px;
    }

    .hero-logo img {
        width: 205px;
        height: 205px;
    }

    .hero-logo::before {
        width: 215px;
        height: 215px;
        filter: blur(18px);
    }

    .hero-logo::after {
        width: 175px;
        height: 175px;
    }

    .hero-label {
        font-size: 11px;
        letter-spacing: 3px;
        margin-bottom: 15px;
    }

    .hero h1 {
        font-size: clamp( 44px, 13vw, 68px );
        letter-spacing: -2px;
    }

    .hero-text {
        max-width: 500px;
        margin: 22px auto 25px;
        font-size: 15px;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .button {
        width: 100%;
        max-width: 300px;
    }

    .hero-community-tag {
        font-size: 8px;
        letter-spacing: 2.5px;
    }

    .hero-glow {
        width: 500px;
        height: 500px;
        right: -220px;
        top: 50px;
    }

    .game-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .game-card {
        min-height: 380px;
        border-radius: 18px;
    }

    .game-content {
        padding: 24px;
    }

    .game-content h3 {
        font-size: 24px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 80px 5%;
    }

    .section-title {
        margin-bottom: 35px;
    }

    .section-title h2 {
        font-size: 38px;
    }

    .discord-section {
        margin: 50px 5%;
        padding: 60px 7%;
        border-radius: 22px;
    }

    .discord-section h2 {
        font-size: 40px;
    }

    footer {
        flex-direction: column;
        text-align: center;
        padding: 30px 5%;
        font-size: 12px;
    }

}

/* =========================================================
SMALL MOBILE
========================================================= */

@media (max-width: 400px) {
    .hero {
        padding: 80px 4% 50px;
    }

    .hero-logo {
        width: 210px;
        height: 210px;
    }

    .hero-logo img {
        width: 185px;
        height: 185px;
    }

    .hero-logo::before {
        width: 200px;
        height: 200px;
    }

    .hero-logo::after {
        width: 155px;
        height: 155px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-text {
        font-size: 14px;
    }

    .hero-community-tag {
        font-size: 7px;
        letter-spacing: 2px;
    }

    .discord-section h2 {
        font-size: 34px;
    }

}

/* =========================================================
TOUCH DEVICES
========================================================= */

@media (hover: none) and (pointer: coarse) {
    .game-card:hover {
        transform: none;
        box-shadow: none;
    }

    .game-card:hover .game-image {
        transform: none;
    }

    .button.primary:hover, .discord-button:hover, .button.secondary:hover {
        transform: none;
    }

    .nxt-language-button:hover {
        transform: none;
    }

    .nxt-language-dropdown button:hover {
        transform: none;
    }

}

/* =========================================================
REDUCED MOTION
========================================================= */

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

}

/* =========================================================
COMMUNITY GAMES MODAL
========================================================= */

.community-games-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 5000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.community-games-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =========================================================
MODAL BOX
========================================================= */

.community-games-modal-content {
    position: relative;
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 38px;
    border: 1px solid rgba(139, 92, 246, 0.30);
    border-radius: 24px;
    background: radial-gradient( circle at 50% 0%, rgba(139, 92, 246, 0.15), transparent 55% ), rgba(10, 10, 16, 0.97);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65), 0 0 60px rgba(139, 92, 246, 0.12);
    transform: translateY(25px) scale(0.96);
    transition: transform 0.3s ease;
}

.community-games-modal.active .community-games-modal-content {
    transform: translateY(0) scale(1);
}

/* =========================================================
CLOSE BUTTON
========================================================= */

.community-games-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.community-games-modal-close:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.40);
    color: white;
    transform: rotate(90deg);
}

/* =========================================================
MODAL HEADER
========================================================= */

.community-games-modal-header {
    margin-bottom: 28px;
    padding-right: 45px;
}

.community-games-modal-label {
    display: block;
    margin-bottom: 8px;
    color: var(--nxt-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.community-games-modal-header h2 {
    margin: 0 0 10px;
    font-size: clamp(30px, 5vw, 42px);
    line-height: 1;
    letter-spacing: -1.5px;
}

.community-games-modal-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================
COMMUNITY GAME LIST
========================================================= */

.community-games-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

/* =========================================================
COMMUNITY GAME ITEM
========================================================= */

.community-game-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.community-game-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( 135deg, rgba(139, 92, 246, 0.12), transparent 60% );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.community-game-item:hover {
    transform: translateY(-4px);
    background: rgba(139, 92, 246, 0.07);
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 0 25px rgba(139, 92, 246, 0.08);
}

.community-game-item:hover::before {
    opacity: 1;
}

/* =========================================================
GAME ICON
========================================================= */

.community-game-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient( 135deg, rgba(139, 92, 246, 0.20), rgba(91, 33, 182, 0.12) );
    border: 1px solid rgba(139, 92, 246, 0.22);
    font-size: 24px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.08);
}

/* =========================================================
GAME INFO
========================================================= */

.community-game-info {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1;
}

.community-game-info strong {
    display: block;
    margin-bottom: 3px;
    color: white;
    font-size: 15px;
    font-weight: 800;
}

.community-game-info span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
}

/* =========================================================
ARROW
========================================================= */

.community-game-arrow {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.35);
    font-size: 18px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.community-game-item:hover .community-game-arrow {
    color: var(--nxt-light);
    transform: translateX(4px);
}

/* =========================================================
MODAL FOOTER
========================================================= */

.community-games-modal-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.38);
    font-size: 11px;
    text-align: center;
}

/* =========================================================
COMMUNITY CARD CLICKABLE
========================================================= */

.community-games-trigger {
    cursor: pointer;
}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 600px) {
    .community-games-modal {
        align-items: flex-end;
        padding: 0;
    }

    .community-games-modal-content {
        max-width: none;
        max-height: 90vh;
        padding: 30px 20px 25px;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
    }

    .community-games-modal.active .community-games-modal-content {
        transform: translateY(0);
    }

    .community-games-modal-header {
        padding-right: 40px;
        margin-bottom: 22px;
    }

    .community-games-modal-header h2 {
        font-size: 32px;
    }

    .community-games-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .community-game-item {
        min-height: 72px;
        padding: 12px;
    }

    .community-game-icon {
        width: 44px;
        height: 44px;
        font-size: 21px;
    }

    .community-game-item:hover {
        transform: none;
    }

}

/* =========================================================
TOUCH DEVICES
========================================================= */

@media (hover: none) and (pointer: coarse) {
    .community-game-item:hover {
        transform: none;
        box-shadow: none;
    }

    .community-games-modal-close:hover {
        transform: none;
    }

}

/* =========================================================
END
========================================================= */

/* ============================================================
HERO – EXTRA LARGE LOGO / EDGE-TO-EDGE FEEL
============================================================ */

.hero-logo {
    width: min(75vw, 950px);
    height: min(75vw, 950px);
    margin-bottom: 0;
}

.hero-logo img {
    width: min(70vw, 900px);
    height: min(70vw, 900px);
    max-width: none;
    max-height: none;
}

.hero-logo::before {
    width: min(72vw, 920px);
    height: min(72vw, 920px);
}

.hero-logo::after {
    width: min(58vw, 730px);
    height: min(58vw, 730px);
}

@media (max-width: 1100px) {
    .hero-logo {
        width: min(72vw, 580px);
        height: min(72vw, 580px);
    }

    .hero-logo img {
        width: min(68vw, 1100px);
        height: min(68vw, 900px);
    }

    .hero-logo::before {
        width: min(70vw, 560px);
        height: min(70vw, 560px);
    }

    .hero-logo::after {
        width: min(56vw, 450px);
        height: min(56vw, 450px);
    }

}

@media (max-width: 850px) {
    .hero-logo {
        width: 100vw;
        height: min(100vw, 520px);
        margin-bottom: 0;
    }

    .hero-logo img {
        width: min(96vw, 500px);
        height: min(96vw, 500px);
    }

    .hero-logo::before {
        width: min(98vw, 510px);
        height: min(98vw, 510px);
    }

    .hero-logo::after {
        width: min(78vw, 400px);
        height: min(78vw, 400px);
    }

}

@media (max-width: 600px) {
    .hero-logo {
        width: 100vw;
        height: 96vw;
        max-height: 470px;
        margin-left: -4vw;
        margin-right: -4vw;
    }

    .hero-logo img {
        width: 94vw;
        height: 94vw;
        max-width: 460px;
        max-height: 460px;
    }

    .hero-logo::before {
        width: 96vw;
        height: 96vw;
        max-width: 470px;
        max-height: 470px;
    }

    .hero-logo::after {
        width: 74vw;
        height: 74vw;
        max-width: 360px;
        max-height: 360px;
    }

}

@media (max-width: 400px) {
    .hero-logo {
        width: 108vw;
        height: 100vw;
        max-height: 420px;
        margin-left: -8vw;
        margin-right: -8vw;
    }

    .hero-logo img {
        width: 102vw;
        height: 102vw;
        max-width: 400px;
        max-height: 400px;
    }

    .hero-logo::before {
        width: 104vw;
        height: 104vw;
        max-width: 410px;
        max-height: 410px;
    }

    .hero-logo::after {
        width: 78vw;
        height: 78vw;
        max-width: 310px;
        max-height: 310px;
    }

}

/* =========================================================
   MOBILE LANGUAGE SELECTOR
========================================================= */

.mobile-language-selector {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 12px 0 0;
    z-index: 1200;
}

.mobile-language-selector .nxt-language-button {
    display: flex;
    width: 100%;
    min-width: 0;
    height: 46px;
}

/* Dropdown geschlossen */
.mobile-language-selector .nxt-language-dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;
    max-height: 280px !important;

    margin: 0 !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transform: translateY(-8px) scale(0.97) !important;
    transform-origin: top center !important;
}

/* MOBILE DROPDOWN ÖFFNEN */
.mobile-language-selector.open .nxt-language-dropdown,
.mobile-language-selector:has(.nxt-language-dropdown[style*="display"]) .nxt-language-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

/* =========================================================
   MOBILE LANGUAGE DROPDOWN - GESCHLOSSEN OHNE PLATZ
========================================================= */

@media (max-width: 768px) {

    #mobileLanguageDropdown {
        position: absolute !important;

        top: calc(100% + 8px) !important;
        left: 0 !important;
        right: 0 !important;

        width: 100% !important;

        max-height: 280px !important;

        margin: 0 !important;
        padding: 8px !important;

        /* WICHTIG: nimmt geschlossen keinen Platz ein */
        height: 0 !important;
        min-height: 0 !important;

        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;

        overflow: hidden !important;

        transform: translateY(-8px) scale(0.97) !important;
    }

    #mobileLanguageSelector.open
    #mobileLanguageDropdown {

        height: auto !important;

        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        overflow-y: auto !important;

        transform: translateY(0) scale(1) !important;
    }

}
