:root {
    --wd-bg: #050607;
    --wd-bg-2: #090b0e;
    --wd-panel: rgba(13, 17, 21, .82);
    --wd-panel-2: #10151a;
    --wd-line: rgba(255,255,255,.075);
    --wd-line-strong: rgba(255,255,255,.13);
    --wd-red: #d61f2f;
    --wd-red-2: #8d1521;
    --wd-gold: #d2a447;
    --wd-white: #f2f4f5;
    --wd-muted: #8b9299;
    --wd-soft: #b5bbc0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.wd-public {
    margin: 0;
    min-height: 100vh;
    color: var(--wd-white);
    background:
        radial-gradient(
            circle at 82% 10%,
            rgba(214,31,47,.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 15% 28%,
            rgba(210,164,71,.05),
            transparent 25%
        ),
        linear-gradient(
            180deg,
            #030405 0%,
            #07090b 45%,
            #040506 100%
        );
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body.wd-public::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .055;
    background-image:
        linear-gradient(
            rgba(255,255,255,.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.04) 1px,
            transparent 1px
        );
    background-size: 34px 34px;
    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 85%
        );
}

.wd-public a {
    color: inherit;
    text-decoration: none;
}

.wd-public-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 0 5vw;
    background: rgba(4,5,6,.88);
    border-bottom: 1px solid var(--wd-line);
    backdrop-filter: blur(18px);
}

.wd-public-nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--wd-red),
            var(--wd-gold),
            var(--wd-red),
            transparent
        );
    opacity: .8;
}

.wd-public-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wd-public-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter:
        drop-shadow(
            0 8px 20px rgba(0,0,0,.7)
        );
}

.wd-public-brand span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wd-public-brand strong {
    font-size: 14px;
    letter-spacing: .15em;
}

.wd-public-brand small {
    color: var(--wd-gold);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .25em;
}

.wd-public-nav nav {
    display: flex;
    gap: 30px;
}

.wd-public-nav nav a {
    color: var(--wd-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: color .2s ease;
}

.wd-public-nav nav a:hover {
    color: white;
}

.wd-public-actions {
    display: flex;
    align-items: center;
}

.wd-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    border: 1px solid var(--wd-line-strong);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.wd-btn:hover {
    transform: translateY(-2px);
}

.wd-btn-primary {
    border-color: rgba(214,31,47,.75);
    background:
        linear-gradient(
            135deg,
            #e12839,
            #a91422
        );
    box-shadow:
        0 12px 35px rgba(214,31,47,.18);
}

.wd-btn-ghost {
    background: rgba(255,255,255,.025);
}

.wd-btn-large {
    min-height: 50px;
    padding: 0 22px;
}

.wd-account-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid var(--wd-line-strong);
    border-radius: 7px;
    background: rgba(255,255,255,.025);
    font-size: 11px;
    font-weight: 800;
}

.wd-account-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4dcc7b;
    box-shadow: 0 0 12px #4dcc7b;
}

.wd-hero {
    padding: 100px 5vw 85px;
    border-bottom: 1px solid var(--wd-line);
}

.wd-hero-grid {
    width: min(1280px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 70px;
    align-items: center;
}

.wd-kicker {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--wd-gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.wd-hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(56px, 8vw, 112px);
    line-height: .86;
    letter-spacing: -.055em;
    font-weight: 950;
}

.wd-hero h1 span {
    color: var(--wd-red);
}

.wd-hero-copy {
    max-width: 630px;
    margin: 28px 0 0;
    color: var(--wd-soft);
    font-size: 18px;
    line-height: 1.7;
}

.wd-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.wd-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 28px;
    color: var(--wd-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.wd-hero-meta span:first-child {
    color: #67d68f;
}

.wd-hero-panel {
    padding: 26px;
    border: 1px solid var(--wd-line-strong);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(20,25,30,.95),
            rgba(7,9,11,.9)
        );
    box-shadow:
        0 35px 100px rgba(0,0,0,.42);
}

.wd-panel-top {
    display: flex;
    justify-content: space-between;
    color: var(--wd-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .15em;
}

.is-online {
    color: #67d68f;
}

.is-offline {
    color: var(--wd-red);
}

.wd-server-name {
    margin-top: 48px;
    font-size: 28px;
    font-weight: 900;
}

.wd-server-map {
    margin-top: 7px;
    color: var(--wd-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.wd-live-bar {
    height: 7px;
    margin-top: 34px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255,255,255,.07);
}

.wd-live-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            var(--wd-red-2),
            var(--wd-red),
            var(--wd-gold)
        );
}

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

.wd-live-stats div {
    padding: 14px;
    border: 1px solid var(--wd-line);
    border-radius: 10px;
    background: rgba(255,255,255,.02);
}

.wd-live-stats small {
    display: block;
    margin-bottom: 6px;
    color: var(--wd-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
}

.wd-live-stats strong {
    font-size: 22px;
}

.wd-section {
    width: min(1280px, 90%);
    margin: auto;
    padding: 100px 0;
}

.wd-section-dark {
    width: 100%;
    max-width: none;
    padding-left: 5%;
    padding-right: 5%;
    background: rgba(255,255,255,.015);
    border-top: 1px solid var(--wd-line);
    border-bottom: 1px solid var(--wd-line);
}

.wd-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 28px;
}

.wd-section-heading h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 50px);
    letter-spacing: -.04em;
}

.wd-section-count {
    color: var(--wd-muted);
    font-size: 11px;
    font-weight: 800;
}

.wd-player-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.wd-player-card {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--wd-line);
    border-radius: 12px;
    background: var(--wd-panel);
    transition:
        transform .2s ease,
        border-color .2s ease;
}

.wd-player-card:hover {
    transform: translateY(-3px);
    border-color: rgba(214,31,47,.4);
}

.wd-player-avatar,
.wd-mini-avatar {
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255,255,255,.06);
}

.wd-player-avatar {
    width: 44px;
    height: 44px;
}

.wd-player-info {
    min-width: 0;
}

.wd-player-info strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wd-player-info span {
    display: block;
    margin-top: 4px;
    color: var(--wd-gold);
    font-size: 10px;
    font-weight: 800;
}

.wd-player-stat small {
    display: block;
    color: var(--wd-muted);
    font-size: 9px;
}

.wd-player-stat strong {
    font-size: 16px;
}

.wd-player-ping {
    color: var(--wd-muted);
    font-size: 10px;
    font-family: monospace;
}

.wd-feature-grid {
    width: min(1280px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.wd-feature-card {
    min-height: 230px;
    padding: 28px;
    border: 1px solid var(--wd-line);
    border-radius: 15px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.012)
        );
}

.wd-feature-card span {
    color: var(--wd-red);
    font-family: monospace;
    font-weight: 900;
}

.wd-feature-card h3 {
    margin: 48px 0 10px;
    font-size: 23px;
}

.wd-feature-card p {
    margin: 0;
    color: var(--wd-muted);
    line-height: 1.7;
}

.wd-leaderboard {
    overflow: hidden;
    border: 1px solid var(--wd-line-strong);
    border-radius: 15px;
    background: var(--wd-panel);
}

.wd-leaderboard-head,
.wd-leaderboard-row {
    display: grid;
    grid-template-columns:
        60px
        minmax(240px, 1.6fr)
        minmax(130px, .8fr)
        100px
        100px
        100px;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
}

.wd-leaderboard-head {
    color: var(--wd-gold);
    background: rgba(255,255,255,.025);
    border-bottom: 1px solid var(--wd-line);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
}

.wd-leaderboard-row {
    border-bottom: 1px solid var(--wd-line);
    transition: background .18s ease;
}

.wd-leaderboard-row:last-child {
    border-bottom: 0;
}

.wd-leaderboard-row:hover {
    background: rgba(214,31,47,.055);
}

.wd-rank {
    color: var(--wd-gold);
    font-family: monospace;
}

.wd-leader-player {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.wd-mini-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
}

.wd-leader-player strong,
.wd-leader-player small {
    display: block;
}

.wd-leader-player strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wd-leader-player small {
    margin-top: 4px;
    color: var(--wd-muted);
    font-family: monospace;
    font-size: 9px;
}

.wd-account-section {
    padding: 100px 5%;
}

.wd-account-banner {
    width: min(1280px, 100%);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px;
    border: 1px solid rgba(214,31,47,.22);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(214,31,47,.16),
            transparent 30%
        ),
        #0a0d10;
}

.wd-account-banner h2 {
    margin: 0;
    font-size: clamp(30px, 5vw, 55px);
}

.wd-account-banner p {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--wd-muted);
    line-height: 1.7;
}

.wd-empty {
    grid-column: 1 / -1;
    padding: 45px;
    border: 1px dashed var(--wd-line-strong);
    border-radius: 12px;
    color: var(--wd-muted);
    text-align: center;
}

.wd-public-footer {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 40px 5%;
    border-top: 1px solid var(--wd-line);
    color: var(--wd-muted);
}

.wd-public-footer div,
.wd-public-footer nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wd-public-footer strong {
    color: white;
    font-size: 11px;
    letter-spacing: .12em;
}

.wd-public-footer span,
.wd-public-footer a {
    font-size: 10px;
}

.wd-public-footer nav a:hover {
    color: white;
}

@media (max-width: 900px) {

    .wd-public-nav nav {
        display: none;
    }

    .wd-hero-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .wd-player-grid,
    .wd-feature-grid {
        grid-template-columns: 1fr;
    }

    .wd-leaderboard {
        overflow-x: auto;
    }

    .wd-leaderboard-head,
    .wd-leaderboard-row {
        min-width: 760px;
    }
}

@media (max-width: 600px) {

    .wd-public-nav {
        padding: 0 18px;
    }

    .wd-public-brand strong {
        font-size: 11px;
    }

    .wd-public-actions .wd-btn {
        padding: 0 11px;
        font-size: 9px;
    }

    .wd-hero {
        padding: 70px 18px;
    }

    .wd-section {
        width: calc(100% - 36px);
        padding: 70px 0;
    }

    .wd-account-section {
        padding: 70px 18px;
    }

    .wd-account-banner {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px;
    }

    .wd-player-grid {
        gap: 8px;
    }

    .wd-player-card {
        grid-template-columns: auto 1fr;
    }

    .wd-player-stat,
    .wd-player-ping {
        display: none;
    }

    .wd-public-footer {
        flex-direction: column;
        padding: 32px 18px;
    }
}
