/* Shared shell: index / leaderboard / subsites */
:root {
    --bg: #000000;
    --surface: #0f0f12;
    --surface-elevated: #16161c;
    --border: rgba(59, 130, 246, 0.18);
    --text: #ffffff;
    --text-light: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #9ca3af;
    --muted: #9ca3af;
    --muted-dim: #6b7280;
    --blue: #3b82f6;
    --blue-deep: #1d4ed8;
    --cyan: #22d3ee;
    --cyan-bright: #67e8f9;
    --accent-rgb: 59, 130, 246;
    --gradient: linear-gradient(135deg, #2563eb 0%, #0ea5e9 45%, #22d3ee 100%);
    --primary-red: #38bdf8;
    --border-red: rgba(59, 130, 246, 0.35);
    --shadow-red: 0 8px 32px rgba(59, 130, 246, 0.2);
}

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

html { scroll-behavior: smooth; }
html, body {
    overflow-x: hidden;
    max-width: 100vw;
    min-height: 100vh;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}


.page-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.22), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(14, 165, 233, 0.08), transparent),
        radial-gradient(ellipse 50% 40% at 0% 80%, rgba(34, 211, 238, 0.06), transparent),
        var(--bg);
}

.particles-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particles-layer .particle {
    position: absolute;
    bottom: -12px;
    border-radius: 50%;
    background: none;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.35), 0 0 20px rgba(14, 165, 233, 0.12);
    animation: hvs-particle-rise linear infinite;
    will-change: transform, opacity;
}

@keyframes hvs-particle-rise {
    0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
    8% { opacity: var(--p-opacity, 0.45); }
    92% { opacity: var(--p-opacity, 0.45); }
    100% {
        transform: translate3d(var(--p-drift, 0px), calc(-100vh - 30px), 0) scale(0.85);
        opacity: 0;
    }
}


@media (prefers-reduced-motion: reduce) {
    .particles-layer .particle { animation: none; opacity: 0.2; }
}

.noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page-title {
    font-size: clamp(2.5rem, 8vw, 4.25rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-transform: uppercase;
}

.page-title .title-white { color: var(--text); }
.page-title .title-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.animate-in { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.animate-in.is-visible { opacity: 1; transform: translateY(0); }

/* Header */
.header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 1.25rem;
    pointer-events: none;
}

.header-wrap > * { pointer-events: auto; }

.nav-pill {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 1rem 0.65rem 1.25rem;
    background: rgba(15, 15, 18, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 9999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.nav-brand img {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    object-fit: cover;
}

.nav-center {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex: 1;
}

@media (min-width: 1024px) {
    .nav-center { display: flex; }
}

.nav-center a {
    color: var(--muted-dim);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: capitalize;
    transition: color 0.2s;
}

.nav-center a:hover { color: var(--text); }
.nav-center a[aria-current="page"] { color: var(--text); }

.nav-discord-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.5rem;
    padding: 0 0.75rem 0 0.55rem;
    flex-shrink: 0;
    border-radius: 12px;
    background: #5865f2;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-discord-login:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 6px 22px rgba(88, 101, 242, 0.5);
}

.nav-discord-login svg {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
}

/* One pill Discord login visible: wide ≥640px, narrow <640px (no Tailwind dependency) */
.nav-discord-login.nav-discord-login--wide {
    display: none;
}
@media (min-width: 640px) {
    .nav-discord-login.nav-discord-login--wide {
        display: inline-flex;
    }
}
.nav-discord-login.nav-discord-login--narrow {
    display: inline-flex;
}
@media (min-width: 640px) {
    .nav-discord-login.nav-discord-login--narrow {
        display: none;
    }
}

.mobile-drawer a.nav-discord-drawer {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(88, 101, 242, 0.14);
    color: #fff;
}

.mobile-drawer a.nav-discord-drawer svg {
    width: 1.45rem;
    height: 1.45rem;
    flex-shrink: 0;
}

.discord-login-link-hidden { display: none !important; }

.nav-toggle {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .nav-toggle { display: none; }
}

.mobile-drawer {
    display: none;
    position: fixed;
    top: 5.5rem;
    left: 1rem;
    right: 1rem;
    padding: 1rem;
    background: rgba(15, 15, 18, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    z-index: 99;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.open { display: flex; }

.mobile-drawer a {
    padding: 0.85rem 1rem;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.15s, color 0.15s;
}

.mobile-drawer a:hover {
    background: rgba(59, 130, 246, 0.12);
    color: var(--text);
}

.mobile-drawer a[aria-current="page"] {
    color: var(--text);
    background: rgba(59, 130, 246, 0.1);
}

#auth-section .btn-premium {
    padding: 0.45rem 1rem;
    font-size: 0.7rem;
}

.btn-premium {
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 50%, #22d3ee 100%);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.5);
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
    transition: all 0.3s ease;
}

.btn-premium:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 28px rgba(59, 130, 246, 0.45);
    transform: translateY(-2px);
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu-btn:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: #1a1a1a;
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.12);
    color: #38bdf8;
}

.dropdown-item.kick-item {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4px;
}

.dropdown-item.kick-linked { background: rgba(83, 252, 24, 0.05); }
.dropdown-item.kick-linked:hover { background: rgba(83, 252, 24, 0.1); }

.dropdown-item img.kick-icon {
    height: 18px;
    width: auto;
    margin-left: -8px;
}

.kick-username-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    background: rgba(83, 252, 24, 0.1);
    border: 1px solid rgba(83, 252, 24, 0.3);
    border-radius: 4px;
    font-size: 0.75rem;
    color: #53fc18;
    white-space: nowrap;
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(8, 8, 10, 0.95);
    padding: 3.5rem 1.5rem 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.footer-brand img {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
}

.footer-about {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer-social a:hover {
    color: var(--cyan-bright);
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.1);
}

.footer-col h4 {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-dim);
    margin-bottom: 1rem;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.65rem; }

.footer-col a {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }
.footer-col a[aria-current="page"] { color: var(--text); }

.footer-bottom {
    max-width: 72rem;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer-bottom p {
    color: var(--muted-dim);
    font-size: 0.75rem;
    line-height: 1.7;
}

.footer-bottom a {
    color: var(--blue);
    text-decoration: none;
}

.footer-bottom a:hover { text-decoration: underline; }

/* Main column */
.hvs-main {
    position: relative;
    z-index: 10;
    padding-top: 7rem;
    padding-bottom: 4rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.hvs-inner {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}
