:root {
    --bg: #07070b;
    --panel: rgba(16, 16, 23, .66);
    --panel-strong: rgba(20, 20, 28, .84);
    --border: rgba(255, 255, 255, .085);
    --border-hover: rgba(255, 255, 255, .16);
    --text: #f7f7fb;
    --muted: #aaaabb;
    --soft: #777788;
    --accent: #9c7cff;
    --accent-2: #d9ceff;
    --green: #71d28b;
    --shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    position: relative;
    isolation: isolate;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    color: var(--text);
    background: var(--bg);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background:
        linear-gradient(rgba(255,255,255,.013) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.013) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), transparent 78%);
}

.wallpaper {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.02);
}

.wallpaper-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 0%, rgba(124, 85, 255, .20), transparent 38%),
        linear-gradient(180deg, rgba(5, 5, 9, .46), rgba(5, 5, 9, .86));
    backdrop-filter: blur(0px);
}

.hero {
    position: relative;
    z-index: 3;
    width: auto;
    margin: 0 350px 0 330px;
    min-height: 100vh;
    padding: 52px 28px 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-top {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    isolation: isolate;
}

.ash-canvas {
    position: absolute;
    left: 50%;
    top: -28px;
    width: min(720px, 100vw);
    height: 190px;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: -1;
    opacity: .92;
}

.title {
    position: relative;
    margin: 0;
    font-size: clamp(54px, 8vw, 92px);
    line-height: .96;
    font-weight: 900;
    letter-spacing: -5px;
    color: #fff;
    text-shadow:
        0 0 8px rgba(255,255,255,.68),
        0 0 22px rgba(196,176,255,.52),
        0 0 58px rgba(139,92,246,.48);
    animation: titleGlow 3.6s ease-in-out infinite;
}

.title::after {
    content: "";
    position: absolute;
    inset: auto 8% -18px;
    height: 22px;
    border-radius: 50%;
    background: rgba(139, 92, 246, .34);
    filter: blur(22px);
    z-index: -1;
    animation: glowBreath 3.6s ease-in-out infinite;
}

.subtitle {
    width: min(760px, 92vw);
    margin-top: 24px;
    color: #d1d1dd;
    font-size: clamp(18px, 2.15vw, 23px);
    line-height: 1.55;
    font-weight: 500;
    letter-spacing: .15px;
    text-shadow: 0 2px 18px rgba(0,0,0,.45);
}

.socials {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 15px;
    color: #efeff5;
    background: rgba(15, 15, 21, .44);
    box-shadow: inset 0 1px rgba(255,255,255,.025);
    backdrop-filter: blur(16px);
    text-decoration: none;
    font-size: 16px;
    font-weight: 650;
    transition:
        transform .22s ease,
        color .22s ease,
        border-color .22s ease,
        background .22s ease,
        box-shadow .22s ease;
}

.social:hover {
    transform: translateY(-3px);
    color: #fff;
    border-color: rgba(167,139,250,.34);
    background: rgba(29, 24, 44, .64);
    box-shadow:
        0 8px 30px rgba(0,0,0,.22),
        0 0 24px rgba(139,92,246,.11);
}

.discord-icon {
    width: 23px;
    height: 23px;
    fill: currentColor;
    flex: 0 0 auto;
}

.side-stack {
    position: fixed;
    z-index: 10;
    top: 22px;
    left: 22px;
    width: 286px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.glass-panel {
    border: 1px solid var(--border);
    border-radius: 19px;
    background:
        linear-gradient(180deg, rgba(31,31,42,.58), rgba(13,13,19,.72));
    box-shadow:
        var(--shadow),
        inset 0 1px rgba(255,255,255,.035);
    backdrop-filter: blur(22px) saturate(125%);
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 15px 10px;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    color: #dadae4;
    letter-spacing: 1.35px;
    text-transform: uppercase;
}

.panel-title-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ad94ff;
    box-shadow: 0 0 12px rgba(173,148,255,.85);
}

.panel-count {
    font-size: 10px;
    color: #737383;
}

.panel-body {
    padding: 4px 8px 9px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.developer {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 8px 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 12px;
    color: inherit;
    background:
        linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.012));
    text-decoration: none;
    box-shadow:
        inset 0 1px rgba(255,255,255,.02),
        0 8px 20px rgba(0,0,0,.12);
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.developer:hover {
    transform: translateY(-1px);
    border-color: rgba(167,139,250,.16);
    background: rgba(255,255,255,.035);
}

.dev-banner {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    opacity: .45;
}

.dev-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(.5px) brightness(1.15);
}

.dev-banner-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.15));
    pointer-events: none;
}

.avatar-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    z-index: 2;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #1e1e27;
    border: 3px solid rgba(16,16,22,.75);
    box-shadow:
        0 0 0 1px rgba(255,255,255,.06),
        0 4px 12px rgba(0,0,0,.22);
}

.avatar-decoration {
    position: absolute;
    width: 60px;
    height: 60px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    pointer-events: none;
    z-index: 4;
}

.profile-frame {
    position: absolute;
    width: 64px;
    height: 64px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    pointer-events: none;
    z-index: 5;
}


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

.dev-nameplate {
    display: none;
}

.dev-nameplate-media {
    display: none;
}

.dev-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.dev-display-name-row {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    font-size: 13.5px;
    line-height: 1.3;
    font-weight: 700;
    color: #f7f7fb;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

.dev-display-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dev-username {
    font-size: 10px;
    font-weight: 500;
    color: #9595a6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guild-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
    height: 18px;
    padding: 0 4px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 4px;
    color: #d7d7e1;
    background: rgba(8,8,12,.35);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .2px;
}

.guild-tag img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.dev-badge {
    display: none;
}

.dev-role {
    display: none;
}

.dev-bio {
    display: none;
}

.profile-fetch-note {
    display: none;
}

.dev-badges {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
}

.dev-badge-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,.5));
}

.server-card {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 9px;
    min-height: 70px;
    padding: 9px;
    border: 1px solid rgba(255,255,255,.045);
    border-radius: 13px;
    background: rgba(255,255,255,.022);
    overflow: hidden;
    isolation: isolate;
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.server-banner {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.server-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8,8,13,.45), rgba(8,8,13,.72));
}

.server-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .72;
    filter: saturate(.92) brightness(.86);
    transform: scale(1.04);
}

.server-icon,
.server-info,
.join-btn {
    position: relative;
    z-index: 2;
}

.server-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.09);
    background: rgba(255,255,255,.038);
}

.server-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    background:
        radial-gradient(circle at 30% 25%, #40355f, #17171e 68%);
    box-shadow: 0 5px 16px rgba(0,0,0,.22);
}

.server-info {
    min-width: 0;
    text-align: left;
}

.server-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f1f1f5;
    font-size: 12px;
    font-weight: 780;
}

.server-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
    color: #8f8f9f;
    font-size: 9px;
}

.meta-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6fd58a;
    box-shadow: 0 0 8px rgba(111,213,138,.42);
}

.meta-separator {
    opacity: .45;
}

.server-created {
    margin-top: 4px;
    color: #686878;
    font-size: 8.5px;
}

.join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 31px;
    padding: 0 9px;
    border: 1px solid rgba(113,210,139,.20);
    border-radius: 9px;
    color: #dbffe4;
    background: rgba(39,147,73,.58);
    box-shadow: inset 0 1px rgba(255,255,255,.06);
    text-decoration: none;
    font-size: 9.5px;
    font-weight: 780;
    transition:
        transform .18s ease,
        background .18s ease;
}

.join-btn:hover {
    transform: translateY(-1px);
    background: rgba(39,165,77,.78);
}

.server-loading {
    position: relative;
    overflow: hidden;
}

.server-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 25%,
        rgba(255,255,255,.035) 45%,
        transparent 65%
    );
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
    pointer-events: none;
}

.spotify-panel {
    position: fixed;
    z-index: 11;
    top: 22px;
    right: 22px;
    width: 310px;
}

.spotify-panel[hidden] {
    display: none !important;
}

.spotify-card {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.085);
    border-radius: 19px;
    background:
        linear-gradient(180deg, rgba(28,34,31,.72), rgba(12,15,14,.82));
    box-shadow:
        var(--shadow),
        inset 0 1px rgba(255,255,255,.04);
    backdrop-filter: blur(22px) saturate(125%);
}

.spotify-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px 8px;
}

.spotify-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #e7e9e8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.spotify-brand svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: #1ed760;
    filter: drop-shadow(0 0 8px rgba(30,215,96,.22));
}

.spotify-live {
    flex: 0 0 auto;
    padding: 3px 6px;
    border: 1px solid rgba(30,215,96,.22);
    border-radius: 999px;
    color: #86efa9;
    background: rgba(30,215,96,.08);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .9px;
}

.spotify-live.inactive {
    border-color: rgba(255,255,255,.08);
    color: #7f8481;
    background: rgba(255,255,255,.03);
}

.spotify-track {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 7px 13px 13px;
    color: inherit;
    text-decoration: none;
}

.spotify-art,
.spotify-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 13px;
    box-shadow: 0 8px 24px rgba(0,0,0,.30);
}

.spotify-art {
    object-fit: cover;
    background: #181b19;
}

.spotify-placeholder {
    display: grid;
    place-items: center;
    color: #1ed760;
    background:
        radial-gradient(circle at 30% 25%, rgba(30,215,96,.2), transparent 42%),
        #171a18;
    font-size: 26px;
}

.spotify-copy {
    min-width: 0;
}

.spotify-song {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f5f7f6;
    font-size: 13px;
    font-weight: 800;
}

.spotify-artist {
    overflow: hidden;
    margin-top: 4px;
    color: #a2aaa5;
    font-size: 10px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spotify-progress {
    height: 3px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
}

.spotify-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #1ed760;
    box-shadow: 0 0 10px rgba(30,215,96,.35);
    transition: width .5s linear;
}

.spotify-times {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 5px;
    color: #717873;
    font-size: 8px;
    font-variant-numeric: tabular-nums;
}

.visitor-counter {
    position: fixed;
    z-index: 12;
    right: 18px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.045);
    border-radius: 999px;
    color: #858595;
    background: rgba(10,10,15,.44);
    backdrop-filter: blur(12px);
    font-size: 12px;
    font-weight: 550;
    user-select: none;
}

.visitor-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9c7cff;
    box-shadow: 0 0 10px rgba(156,124,255,.9);
}

.empty-state {
    padding: 9px 10px 11px;
    color: #666676;
    font-size: 10px;
    text-align: left;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow:
            0 0 8px rgba(255,255,255,.62),
            0 0 22px rgba(196,176,255,.46),
            0 0 52px rgba(139,92,246,.38);
    }
    50% {
        text-shadow:
            0 0 12px rgba(255,255,255,.82),
            0 0 32px rgba(209,195,255,.63),
            0 0 74px rgba(139,92,246,.58);
    }
}

@keyframes glowBreath {
    0%, 100% {
        opacity: .55;
        transform: scaleX(.9);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.08);
    }
}

@keyframes shimmer {
    to {
        transform: translateX(100%);
    }
}

@media (max-width: 1180px) {
    .hero {
        margin-right: 300px;
    }

    .spotify-panel {
        width: 260px;
    }
}

@media (max-width: 980px) {
    .hero {
        margin-right: 24px;
    }

    .spotify-panel {
        top: auto;
        right: 18px;
        bottom: 54px;
        width: 250px;
    }
}

@media (max-width: 790px) {
    body {
        overflow-y: auto;
    }

    .hero {
        width: 100%;
        min-height: auto;
        margin: 0;
        padding: 44px 18px 42px;
    }

    .title {
        letter-spacing: -3px;
    }

    .side-stack {
        position: relative;
        top: auto;
        left: auto;
        width: min(420px, calc(100% - 28px));
        margin: 6px auto 14px;
    }

    .spotify-panel {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        width: min(420px, calc(100% - 28px));
        margin: 0 auto 94px;
    }

    .visitor-counter {
        right: 12px;
        bottom: 12px;
    }

    .ash-canvas {
        width: 100vw;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 36px;
    }

    .subtitle {
        margin-top: 20px;
        font-size: 18px;
    }

    .socials {
        margin-top: 28px;
    }

    .social {
        min-height: 42px;
        padding: 9px 13px;
        border-radius: 13px;
        font-size: 14px;
    }

    .glass-panel {
        border-radius: 17px;
    }

    .side-stack,
    .spotify-panel {
        width: calc(100% - 20px);
    }

    .spotify-panel {
        margin-bottom: 86px;
    }
}

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

    .ash-canvas {
        display: none;
    }
}
