:root {
    --lux-identify: #00F8F7;
    --lux-secondary: #5C5857;
    --lux-shadow: #011023;
    --lux-light: #E1F8FC;
    --lux-surface: rgba(1, 16, 35, 0.82);
    --lux-surface-soft: rgba(92, 88, 87, 0.18);
    --lux-border: rgba(225, 248, 252, 0.16);
    --lux-glow: rgba(0, 248, 247, 0.34);
}

html {
    background: var(--lux-shadow);
}

body {
    color: var(--lux-light);
    background:
        radial-gradient(circle at 50% 8%, rgba(0, 248, 247, 0.16), transparent 34%),
        linear-gradient(180deg, #011023 0%, #03182e 48%, #011023 100%) !important;
}

::selection {
    background: rgba(0, 248, 247, 0.28);
    color: var(--lux-light);
}

.glass-panel,
.glass {
    background: var(--lux-surface) !important;
    border-color: var(--lux-border) !important;
    box-shadow: 0 22px 80px rgba(1, 16, 35, 0.45);
}

.header-gradient {
    background: linear-gradient(to bottom, rgba(1, 16, 35, 0.92), rgba(1, 16, 35, 0)) !important;
}

.nav-link::after {
    background: var(--lux-identify) !important;
}

.nav-link.active,
.nav-link:hover {
    color: var(--lux-identify) !important;
}

.gold-glow,
.diamond-glow,
.lagoon-title,
.minecraft-heading,
.pixel-text {
    text-shadow:
        4px 4px 0 rgba(0, 0, 0, 0.58),
        0 0 28px var(--lux-glow),
        0 0 56px rgba(0, 248, 247, 0.16) !important;
}

.hero-logo {
    filter:
        drop-shadow(0 18px 28px rgba(0, 0, 0, 0.62))
        drop-shadow(0 0 34px rgba(0, 248, 247, 0.46)) !important;
}

.lux-mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 80;
    display: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--lux-border);
    border-radius: 22px;
    background: rgba(1, 16, 35, 0.94);
    box-shadow: 0 20px 60px rgba(1, 16, 35, 0.7), 0 0 26px rgba(0, 248, 247, 0.14);
    backdrop-filter: blur(18px);
}

.lux-mobile-nav a,
.lux-mobile-nav button {
    min-width: 0;
    min-height: 52px;
    border-radius: 16px;
    color: rgba(225, 248, 252, 0.66);
    font-family: "Exo 2", "Inter", sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.lux-mobile-nav .material-symbols-outlined {
    font-size: 21px;
}

.lux-mobile-nav a.is-active,
.lux-mobile-nav button.is-active {
    color: #011023;
    background: var(--lux-identify);
}

.lux-mobile-nav a:active,
.lux-mobile-nav button:active {
    transform: scale(0.96);
}

@media (max-width: 1279px) {
    body {
        padding-bottom: calc(88px + env(safe-area-inset-bottom));
    }

    .lux-mobile-nav {
        display: grid;
    }
}

.lux-section-heading {
    display: grid;
    grid-template-columns: minmax(42px, 1fr) auto minmax(42px, 1fr);
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.5rem);
}

.lux-soft-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 248, 247, 0.85), transparent);
    filter: drop-shadow(0 0 10px rgba(0, 248, 247, 0.48));
}

.lux-soft-line.vertical {
    width: 1px;
    height: 100%;
    min-height: 280px;
    background: linear-gradient(180deg, transparent, rgba(0, 248, 247, 0.82), transparent);
}

.lux-showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}

.lux-showcase-main {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
}

.lux-soft-image {
    position: relative;
    min-height: clamp(280px, 48vh, 520px);
    overflow: hidden;
    border-radius: 34px;
    background: rgba(1, 16, 35, 0.24);
    isolation: isolate;
}

.lux-soft-image img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    filter: saturate(1.05) contrast(1.04);
}

.lux-soft-image::after {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    box-shadow:
        inset 0 0 38px 18px rgba(1, 16, 35, 0.78),
        inset 0 0 90px 34px rgba(1, 16, 35, 0.42),
        0 0 44px rgba(0, 248, 247, 0.12);
}

.lux-showcase-copy {
    position: relative;
}

.lux-showcase-copy::before,
.lux-showcase-copy::after,
.lux-vertical-toc::before,
.lux-vertical-toc::after {
    content: "";
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 248, 247, 0.72), transparent);
    filter: blur(0.2px) drop-shadow(0 0 8px rgba(0, 248, 247, 0.36));
}

.lux-showcase-copy::before,
.lux-vertical-toc::before {
    margin-bottom: 1.35rem;
}

.lux-showcase-copy::after,
.lux-vertical-toc::after {
    margin-top: 1.35rem;
}

.lux-vertical-toc {
    display: grid;
    gap: 0.45rem;
}

.mode-select-card,
.server-tab {
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    min-height: auto;
    padding: 0.8rem 0;
    color: rgba(225, 248, 252, 0.62);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(225, 248, 252, 0.1);
    transition: color 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.mode-select-card::after,
.server-tab::after {
    content: "";
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    width: 40px;
    height: 1px;
    flex: 0 0 auto;
    background: linear-gradient(90deg, rgba(0, 248, 247, 0.0), rgba(0, 248, 247, 0.72), transparent);
    opacity: 0;
    transform: none !important;
    filter: blur(0.2px) drop-shadow(0 0 8px rgba(0, 248, 247, 0.48));
    transition: opacity 0.22s ease, width 0.22s ease;
}

.mode-select-card:hover,
.mode-select-card.is-active,
.server-tab:hover,
.server-tab.active-server {
    color: var(--lux-light) !important;
    border-color: rgba(0, 248, 247, 0.44) !important;
    transform: translateX(-4px);
}

.mode-select-card.is-active::after,
.server-tab.active-server::after {
    width: 68px;
    opacity: 1;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}

.ranking-panel {
    position: relative;
}

.ranking-panel::before,
.ranking-panel::after {
    content: "";
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 248, 247, 0.7), transparent);
    filter: drop-shadow(0 0 8px rgba(0, 248, 247, 0.32));
}

.ranking-panel::before {
    margin-bottom: 1.35rem;
}

.ranking-panel::after {
    margin-top: 1.35rem;
}

.ranking-panel .vote-card {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 1.1rem 0 !important;
}

.ranking-panel .vote-card::before {
    display: none !important;
}

.ranking-panel .vote-card + .vote-card {
    border-top: 1px solid transparent !important;
    border-image: linear-gradient(90deg, transparent, rgba(0, 248, 247, 0.46), transparent) 1 !important;
}

.ranking-panel .vote-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.auth-bg-image {
    opacity: 1 !important;
    filter: saturate(1.04) contrast(1.02);
    animation: luxAuthDrift 18s ease-in-out infinite alternate;
}

body.auth-page {
    background: #011023 !important;
}

.auth-bg-vignette {
    background: rgba(1, 16, 35, 0.18) !important;
}

@media (max-width: 1023px) {
    .lux-showcase-grid,
    .ranking-layout {
        grid-template-columns: 1fr;
    }

    .lux-showcase-main {
        grid-template-columns: 1fr;
    }

    .lux-vertical-toc {
        max-height: 260px;
        overflow: auto;
    }
}

@keyframes luxAuthDrift {
    from {
        transform: scale(1.05) translate3d(-0.6%, -0.4%, 0);
    }
    to {
        transform: scale(1.1) translate3d(0.8%, 0.6%, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-bg-image {
        animation: none;
    }
}
