:root {
    --background: #050509;
    --surface: #0d0d16;
    --surface-light: #151525;
    --border: #292943;

    --blue: #3b82f6;
    --blue-bright: #60a5fa;
    --blue-dark: #1d4ed8;

    --purple: #8b5cf6;
    --purple-bright: #a78bfa;
    --purple-dark: #6d28d9;

    --accent: #6366f1;
    --accent-bright: #8b5cf6;
    --accent-dark: #4338ca;

    --text: #f5f5ff;
    --muted: #9292ad;

    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(59, 130, 246, 0.15),
            transparent 450px
        ),
        radial-gradient(
            circle at 80% 10%,
            rgba(139, 92, 246, 0.18),
            transparent 500px
        ),
        #050509;

    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    min-height: 100vh;
}

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


/* NAVIGATION */

.navbar {
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 max(24px, calc((100% - var(--max-width)) / 2));

    background: rgba(9, 13, 11, 0.92);

    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;

    z-index: 100;

    backdrop-filter: blur(12px);
}

.logo,
.footer-logo {
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 22px;
}

.logo span,
.footer-logo span {
    background: linear-gradient(
        90deg,
        #3b82f6,
        #8b5cf6
    );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;

    transition: color .2s ease;
}

nav a:hover,
nav a.active {
    color: var(--blue-bright);
}


/* HERO */

.hero {
    max-width: var(--max-width);

    margin: auto;

    min-height: 580px;

    display: flex;
    align-items: center;

    padding: 80px 24px;
}

.hero-content {
    max-width: 760px;
}

.eyebrow {
    color: var(--purple);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(52px, 8vw, 90px);

    line-height: .95;

    letter-spacing: -4px;

    margin-bottom: 25px;
}

.hero h1 span {
    display: block;

    background: linear-gradient(
        90deg,
        #3b82f6,
        #8b5cf6,
        #a855f7
    );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero-description {
    color: var(--muted);

    max-width: 600px;

    line-height: 1.7;

    font-size: 18px;

    margin-bottom: 34px;
}


/* SERVER ADDRESS */

.server-address {
    max-width: 570px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 14px 14px 14px 20px;

    margin-bottom: 24px;
}

.server-address div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.server-address small {
    color: var(--muted);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.server-address strong {
    font-size: 18px;
}

.server-address button {
    border: none;

    background: linear-gradient(
        135deg,
        var(--blue),
        var(--purple)
    );

    color: white;

    font-weight: 900;

    padding: 13px 20px;

    border-radius: 5px;

    cursor: pointer;

    box-shadow:
        0 0 20px rgba(99, 102, 241, 0.18);
}

.server-address button:hover {
    filter: brightness(1.15);
}


/* BUTTONS */

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    padding: 14px 20px;

    border-radius: 5px;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: .5px;
}

.button.primary {
    background: linear-gradient(
        135deg,
        var(--blue),
        var(--purple)
    );

    color: white;

    box-shadow:
        0 0 25px rgba(99, 102, 241, 0.20);
}

.button.secondary {
    border: 1px solid var(--border);
    background: var(--surface);
}


/* SECTIONS */

.status-section,
.feature-section {
    max-width: var(--max-width);

    margin: auto;

    padding: 70px 24px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;

    margin-bottom: 28px;
}

.section-heading h2 {
    font-size: 36px;
}


/* STATUS */

.status-pill {
    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1px;

    padding: 9px 13px;

    border-radius: 100px;
}

.status-pill.online {
    color: var(--blue-bright);

    border: 1px solid var(--purple-dark);

    background: rgba(101, 212, 110, .08);
}

.status-pill.offline {
    color: #ff7777;

    border: 1px solid #6e3333;

    background: rgba(255, 80, 80, .08);
}

.status-pill.loading {
    color: var(--muted);

    border: 1px solid var(--border);
}


/* STATS */

.stats-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 16px;
}

.stat-card {
    min-height: 170px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 25px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card span {
    color: var(--muted);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.4px;

    margin-bottom: 12px;
}

.stat-card strong {
    font-size: 38px;
}

.stat-card small {
    color: var(--muted);

    margin-top: 5px;
}


/* FEATURES */

.feature-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 16px;
}

.feature-card {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 30px;

    min-height: 260px;

    transition:
        transform .2s ease,
        border-color .2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);

    border-color: var(--purple-dark);
}

.feature-icon {
    color: var(--purple);

    font-size: 32px;

    margin-bottom: 35px;
}

.feature-card h3 {
    margin-bottom: 12px;

    font-size: 20px;
}

.feature-card p {
    color: var(--muted);

    line-height: 1.6;

    min-height: 75px;
}

.feature-card span {
    color: var(--purple);

    font-size: 12px;
    font-weight: 900;

    letter-spacing: .5px;
}


/* FOOTER */

footer {
    max-width: var(--max-width);

    margin: 60px auto 0;

    padding: 40px 24px;

    border-top: 1px solid var(--border);

    color: var(--muted);
}

footer p {
    margin-top: 8px;
}

.disclaimer {
    font-size: 11px;
}


/* MOBILE */

@media (max-width: 800px) {

    nav {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

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

    .section-heading {
        align-items: flex-start;
        gap: 20px;
    }

    .server-address {
        align-items: stretch;
        gap: 15px;
        flex-direction: column;
    }
}
/* ========================================
   PLAYERS PAGE
======================================== */

.page-header {
    max-width: var(--max-width);
    margin: auto;

    padding: 100px 24px 55px;
}

.page-header h1 {
    font-size: clamp(48px, 7vw, 76px);

    background: linear-gradient(
        90deg,
        var(--blue),
        var(--purple)
    );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    margin-bottom: 18px;
}

.page-header > p:last-child {
    color: var(--muted);

    max-width: 620px;

    font-size: 17px;
    line-height: 1.7;
}


.players-section {
    max-width: var(--max-width);

    margin: auto;

    padding: 30px 24px 80px;
}


.players-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(280px, 1fr));

    gap: 18px;
}


.player-card {
    background:
        linear-gradient(
            145deg,
            rgba(59, 130, 246, 0.05),
            rgba(139, 92, 246, 0.05)
        ),
        var(--surface);

    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 25px;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


.player-card:hover {
    transform: translateY(-4px);

    border-color: var(--purple);

    box-shadow:
        0 10px 40px rgba(99, 102, 241, .10);
}


.player-header {
    display: flex;

    align-items: center;

    gap: 16px;

    margin-bottom: 25px;
}


.player-avatar {
    width: 64px;
    height: 64px;

    image-rendering: pixelated;

    border-radius: 6px;

    background: var(--surface-light);

    border: 1px solid var(--border);
}


.player-name {
    font-size: 21px;

    font-weight: 800;
}


.player-state {
    margin-top: 5px;

    color: var(--muted);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;
}


.player-state.online {
    color: #65e572;
}


.player-stats {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}


.player-stat {
    background: rgba(255,255,255,.025);

    border: 1px solid var(--border);

    border-radius: 6px;

    padding: 14px;
}


.player-stat span {
    display: block;

    color: var(--muted);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;

    margin-bottom: 6px;
}


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


.player-profile-link {
    display: block;

    margin-top: 18px;

    color: var(--blue-bright);

    font-size: 11px;

    font-weight: 900;

    letter-spacing: .7px;
}


.loading-card {
    color: var(--muted);

    padding: 40px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: var(--surface);
}


.error-card {
    color: #ff8585;

    padding: 30px;

    border: 1px solid #642f3a;

    border-radius: 8px;

    background: rgba(100, 30, 45, .12);
}
/* ========================================
   PLAYER PROFILE
======================================== */

.profile-container {
    max-width: var(--max-width);

    margin: auto;

    padding: 80px 24px;
}


.back-link {
    display: inline-block;

    color: var(--muted);

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1px;

    margin-bottom: 45px;

    transition: color .2s ease;
}


.back-link:hover {
    color: var(--blue-bright);
}


.profile-loading {
    color: var(--muted);

    padding: 50px 0;
}


.profile-hero {
    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    gap: 32px;

    min-height: 230px;

    padding: 40px;

    margin-bottom: 65px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background:
        radial-gradient(
            circle at 15% 50%,
            rgba(59, 130, 246, .16),
            transparent 300px
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(139, 92, 246, .18),
            transparent 350px
        ),
        var(--surface);
}


.profile-hero::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -150px;
    bottom: -200px;

    border-radius: 50%;

    background: var(--purple);

    filter: blur(120px);

    opacity: .15;

    pointer-events: none;
}


.profile-avatar {
    width: 128px;
    height: 128px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            rgba(59,130,246,.12),
            rgba(139,92,246,.12)
        ),
        var(--surface-light);

    font-size: 52px;

    font-weight: 900;

    box-shadow:
        0 15px 45px rgba(0,0,0,.3);
}


.profile-identity {
    position: relative;

    z-index: 2;
}


.profile-identity h1 {
    margin: 7px 0 8px;

    font-size: clamp(42px, 6vw, 68px);

    letter-spacing: -2px;

    background:
        linear-gradient(
            90deg,
            var(--blue-bright),
            var(--purple-bright)
        );

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;
}


.profile-identity p {
    color: var(--muted);

    font-family: monospace;

    font-size: 12px;

    word-break: break-all;
}


.profile-section-heading {
    margin-bottom: 25px;
}


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


.profile-stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;
}


.profile-stat-card {
    min-height: 135px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 22px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 8px;

    transition:
        border-color .2s ease,
        transform .2s ease;
}


.profile-stat-card:hover {
    transform: translateY(-3px);

    border-color: var(--purple-dark);
}


.profile-stat-card span {
    color: var(--muted);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.2px;

    margin-bottom: 10px;
}


.profile-stat-card strong {
    font-size: 26px;
}


.profile-details {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;

    margin-top: 14px;
}


.profile-detail {
    padding: 22px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background:
        rgba(255,255,255,.015);
}


.profile-detail span {
    display: block;

    color: var(--muted);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.2px;

    margin-bottom: 8px;
}


.profile-detail strong {
    font-size: 14px;
}


@media (max-width: 900px) {

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

}


@media (max-width: 600px) {

    .profile-hero {
        flex-direction: column;

        align-items: flex-start;

        padding: 28px;
    }


    .profile-avatar {
        width: 96px;
        height: 96px;

        font-size: 40px;
    }


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


    .profile-details {
        grid-template-columns: 1fr;
    }

}
/* ========================================
   3D PLAYER VIEWER
======================================== */

.profile-hero-3d {
    display: grid;

    grid-template-columns:
        minmax(300px, 420px)
        1fr;

    gap: 55px;

    align-items: center;

    min-height: 540px;
}


.player-model-column {
    width: 100%;
}


.player-model-wrapper {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 460px;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 14px;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(59, 130, 246, .16),
            transparent 220px
        ),
        radial-gradient(
            circle at 50% 80%,
            rgba(139, 92, 246, .14),
            transparent 240px
        ),
        rgba(5, 5, 9, .75);

    box-shadow:
        inset 0 0 60px rgba(0,0,0,.3),
        0 15px 50px rgba(0,0,0,.25);
}


.player-model-wrapper::after {
    content: "";

    position: absolute;

    bottom: 32px;

    width: 150px;
    height: 25px;

    border-radius: 50%;

    background:
        rgba(59,130,246,.22);

    filter: blur(18px);

    pointer-events: none;
}


#skin-container {
    position: relative;

    z-index: 2;

    display: block;

    width: 300px;
    height: 420px;

    cursor: grab;

    touch-action: none;
}


#skin-container:active {
    cursor: grabbing;
}


.model-controls {
    display: flex;

    justify-content: center;

    gap: 22px;

    margin-top: 14px;

    color: var(--muted);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1px;
}


.skin-unavailable {
    position: relative;

    z-index: 3;

    text-align: center;

    color: var(--muted);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1px;
}


.skin-fallback-letter {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 110px;
    height: 110px;

    margin: 0 auto 18px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            rgba(59,130,246,.15),
            rgba(139,92,246,.15)
        );

    color: white;

    font-size: 48px;
}


.model-badges {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 18px;
}


.model-badge {
    padding: 7px 10px;

    border: 1px solid
        rgba(99,102,241,.35);

    border-radius: 5px;

    background:
        rgba(99,102,241,.08);

    color: var(--blue-bright);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1px;
}


/* ========================================
   EQUIPMENT
======================================== */

.equipment-panel {
    margin-top: 38px;
}


.equipment-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;

    margin-top: 13px;
}


.equipment-slot {
    min-width: 0;

    padding: 12px;

    border: 1px solid var(--border);

    border-radius: 6px;

    background:
        rgba(255,255,255,.02);
}


.equipment-slot span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .8px;
}


.equipment-slot strong {
    display: block;

    overflow: hidden;

    color: var(--text);

    font-size: 12px;

    text-overflow: ellipsis;

    white-space: nowrap;
}


@media (max-width: 900px) {

    .profile-hero-3d {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    .player-model-wrapper {
        min-height: 440px;
    }

}


@media (max-width: 500px) {

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


    .model-controls {
        flex-direction: column;

        align-items: center;

        gap: 6px;
    }


    #skin-container {
        max-width: 100%;
    }

}

/* ========================================
   HOME PAGE V2
======================================== */

.home-hero {
    position: relative;
}


.home-hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -150px;
    top: 40px;

    border-radius: 50%;

    background:
        rgba(99, 102, 241, .08);

    filter: blur(100px);

    pointer-events: none;
}


.home-live-status {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 22px;

    padding: 8px 12px;

    border: 1px solid var(--border);

    border-radius: 100px;

    background:
        rgba(13, 13, 22, .75);

    color: var(--muted);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1px;
}


.home-status-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--muted);
}


.home-status-dot.online {
    background: #65e572;

    box-shadow:
        0 0 10px rgba(101, 229, 114, .7);
}


.home-status-dot.offline {
    background: #ff7777;

    box-shadow:
        0 0 10px rgba(255, 119, 119, .5);
}


.home-status-dot.loading {
    background: var(--muted);
}


/* ========================================
   HOME STATUS CARDS
======================================== */

.home-status-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}


.home-status-card {
    min-width: 0;

    min-height: 170px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 24px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background:
        linear-gradient(
            145deg,
            rgba(59, 130, 246, .035),
            rgba(139, 92, 246, .035)
        ),
        var(--surface);

    transition:
        transform .2s ease,
        border-color .2s ease;
}


.home-status-card:hover {
    transform: translateY(-3px);

    border-color: var(--purple-dark);
}


.home-status-card > span {
    margin-bottom: 12px;

    color: var(--muted);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.2px;
}


.home-status-card > strong,
.home-stat-value strong {
    font-size: 34px;
}


.home-stat-value {
    display: flex;

    align-items: baseline;

    gap: 7px;
}


.home-stat-value small {
    color: var(--muted);

    font-size: 15px;

    font-weight: 700;
}


.home-status-card p {
    margin-top: 7px;

    color: var(--muted);

    font-size: 11px;
}


/* ========================================
   ONLINE PLAYERS
======================================== */

.home-online-section {
    max-width: var(--max-width);

    margin: auto;

    padding: 70px 24px;
}


.home-section-link {
    color: var(--blue-bright);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: .8px;

    transition: color .2s ease;
}


.home-section-link:hover {
    color: var(--purple-bright);
}


.home-player-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(250px, 1fr)
        );

    gap: 12px;
}


.home-player-card {
    min-width: 0;

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 17px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: var(--surface);

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}


.home-player-card:hover {
    transform: translateY(-3px);

    border-color: var(--purple-dark);

    background: var(--surface-light);
}


.home-player-avatar {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    image-rendering: pixelated;

    border: 1px solid var(--border);

    border-radius: 5px;

    background: var(--surface-light);
}


.home-player-details {
    min-width: 0;

    display: flex;

    flex: 1;

    flex-direction: column;

    gap: 5px;
}


.home-player-details strong {
    overflow: hidden;

    font-size: 15px;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.home-player-online {
    color: #65e572;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 1px;
}


.home-player-arrow {
    color: var(--blue-bright);

    font-weight: 900;
}


.home-empty-state {
    grid-column: 1 / -1;

    min-height: 120px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding: 25px;

    text-align: center;

    border: 1px dashed var(--border);

    border-radius: 8px;

    background:
        rgba(255, 255, 255, .015);

    color: var(--muted);
}


.home-empty-state strong {
    color: var(--text);

    font-size: 14px;
}


.home-empty-state span {
    font-size: 11px;
}


/* ========================================
   JOIN CTA
======================================== */

.home-join-section {
    max-width: var(--max-width);

    margin: auto;

    padding: 70px 24px 90px;
}


.home-join-card {
    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    padding: 42px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background:
        radial-gradient(
            circle at 10% 50%,
            rgba(59, 130, 246, .13),
            transparent 350px
        ),
        radial-gradient(
            circle at 90% 50%,
            rgba(139, 92, 246, .13),
            transparent 350px
        ),
        var(--surface);
}


.home-join-card h2 {
    margin-bottom: 10px;

    font-size: 34px;
}


.home-join-card p:not(.eyebrow) {
    max-width: 550px;

    color: var(--muted);

    line-height: 1.7;
}


.home-join-card p strong {
    color: var(--text);
}


.home-join-actions {
    display: flex;

    flex-shrink: 0;

    gap: 10px;

    flex-wrap: wrap;

    justify-content: flex-end;
}


.home-copy-button {
    border: none;

    cursor: pointer;

    font-family: inherit;
}


/* ========================================
   HOME RESPONSIVE
======================================== */

@media (max-width: 950px) {

    .home-status-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .home-join-card {
        align-items: flex-start;

        flex-direction: column;
    }


    .home-join-actions {
        justify-content: flex-start;
    }
}


@media (max-width: 600px) {

    .home-status-grid {
        grid-template-columns: 1fr;
    }


    .home-online-section,
    .home-join-section {
        padding-left: 20px;
        padding-right: 20px;
    }


    .home-section-link {
        display: none;
    }


    .home-join-card {
        padding: 28px;
    }


    .home-join-actions {
        width: 100%;

        flex-direction: column;
    }


    .home-join-actions .button {
        width: 100%;

        text-align: center;
    }
}

/* ========================================
   LEADERBOARDS PAGE
======================================== */

.leaderboard-header {
    padding-bottom: 40px;
}


.leaderboards-section {
    max-width: var(--max-width);

    margin: auto;

    padding: 20px 24px 90px;
}


/* ========================================
   SUMMARY
======================================== */

.leaderboard-summary {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 35px;
}


.leaderboard-summary > div {
    min-width: 0;

    padding: 20px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background:
        rgba(255, 255, 255, .018);
}


.leaderboard-summary span {
    display: block;

    margin-bottom: 8px;

    color: var(--muted);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 1.2px;
}


.leaderboard-summary strong {
    font-size: 20px;
}


/* ========================================
   DATA STATUS
======================================== */

.leaderboard-data-status.loading {
    color: var(--muted);
}


.leaderboard-data-status.online {
    color: #65e572;
}


.leaderboard-data-status.offline {
    color: #ff7777;
}


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

.leaderboards-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}


/* ========================================
   CATEGORY CARD
======================================== */

.leaderboard-card {
    min-width: 0;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--surface);
}


.leaderboard-card-header {
    padding: 23px;

    border-bottom: 1px solid var(--border);

    background:
        linear-gradient(
            135deg,
            rgba(59, 130, 246, .055),
            rgba(139, 92, 246, .055)
        );
}


.leaderboard-title-area {
    display: flex;

    align-items: center;

    gap: 15px;
}


.leaderboard-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid
        rgba(99, 102, 241, .30);

    border-radius: 7px;

    background:
        rgba(99, 102, 241, .08);

    color: var(--purple-bright);

    font-size: 21px;
}


.leaderboard-card h2 {
    margin-bottom: 5px;

    font-size: 20px;
}


.leaderboard-card-header p {
    color: var(--muted);

    font-size: 10px;

    line-height: 1.5;
}


/* ========================================
   ROWS
======================================== */

.leaderboard-list {
    padding: 7px;
}


.leaderboard-row {
    display: grid;

    grid-template-columns:
        42px 42px minmax(0, 1fr) auto;

    align-items: center;

    gap: 11px;

    min-height: 67px;

    padding: 10px 12px;

    border-radius: 6px;

    transition:
        background .2s ease,
        transform .2s ease;
}


.leaderboard-row:hover {
    background:
        rgba(255, 255, 255, .035);

    transform:
        translateX(2px);
}


/* ========================================
   RANK
======================================== */

.leaderboard-rank {
    color: var(--muted);

    font-size: 11px;

    font-weight: 900;

    text-align: center;
}


.leaderboard-rank.first {
    color: #ffd65a;
}


.leaderboard-rank.second {
    color: #c5cbd3;
}


.leaderboard-rank.third {
    color: #d28b5a;
}


/* ========================================
   PLAYER
======================================== */

.leaderboard-avatar {
    width: 42px;
    height: 42px;

    image-rendering: pixelated;

    border: 1px solid var(--border);

    border-radius: 5px;

    background: var(--surface-light);
}


.leaderboard-player {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 4px;
}


.leaderboard-player strong {
    overflow: hidden;

    font-size: 13px;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.leaderboard-player span {
    color: var(--muted);

    font-size: 7px;

    font-weight: 900;

    letter-spacing: .8px;
}


.leaderboard-value {
    padding-left: 10px;

    color: var(--blue-bright);

    font-size: 15px;

    text-align: right;

    white-space: nowrap;
}


/* ========================================
   LOADING / ERROR / EMPTY
======================================== */

.leaderboards-loading,
.leaderboards-error {
    grid-column: 1 / -1;

    min-height: 180px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding: 30px;

    text-align: center;

    border: 1px dashed var(--border);

    border-radius: 9px;

    background:
        rgba(255, 255, 255, .015);

    color: var(--muted);
}


.leaderboards-loading strong,
.leaderboards-error strong {
    color: var(--text);

    font-size: 15px;
}


.leaderboards-loading span,
.leaderboards-error span {
    font-size: 11px;
}


.leaderboards-error {
    border-color: #642f3a;

    background:
        rgba(100, 30, 45, .08);
}


.leaderboards-error strong {
    color: #ff8585;
}


.leaderboard-empty {
    padding: 35px 20px;

    color: var(--muted);

    font-size: 11px;

    text-align: center;
}


/* ========================================
   LEADERBOARDS RESPONSIVE
======================================== */

@media (max-width: 850px) {

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

}


@media (max-width: 600px) {

    .leaderboard-summary {
        grid-template-columns: 1fr;
    }


    .leaderboards-section {
        padding-left: 20px;
        padding-right: 20px;
    }


    .leaderboard-row {
        grid-template-columns:
            34px 38px minmax(0, 1fr) auto;

        gap: 8px;

        padding-left: 7px;
        padding-right: 7px;
    }


    .leaderboard-avatar {
        width: 38px;
        height: 38px;
    }


    .leaderboard-value {
        font-size: 12px;
    }

}

/* ========================================
   JOIN PAGE
======================================== */

.join-page-header {
    padding-bottom: 45px;
}


.join-section {
    max-width: var(--max-width);

    margin: auto;

    padding: 15px 24px 90px;
}


/* ========================================
   SERVER CARD
======================================== */

.join-server-card {
    overflow: hidden;

    margin-bottom: 55px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(59, 130, 246, .14),
            transparent 400px
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(139, 92, 246, .14),
            transparent 400px
        ),
        var(--surface);
}


.join-server-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 38px;
}


.join-server-top h2 {
    margin-bottom: 15px;

    font-size:
        clamp(25px, 4vw, 42px);

    word-break: break-word;
}


.join-live-status {
    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--muted);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1px;
}


.join-status-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--muted);
}


.join-status-dot.online {
    background: #65e572;

    box-shadow:
        0 0 10px
        rgba(101, 229, 114, .7);
}


.join-status-dot.offline {
    background: #ff7777;

    box-shadow:
        0 0 10px
        rgba(255, 119, 119, .5);
}


.join-copy-button {
    flex-shrink: 0;

    padding: 14px 20px;

    border: none;

    border-radius: 5px;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--purple)
        );

    color: white;

    font-family: inherit;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: .5px;

    cursor: pointer;

    box-shadow:
        0 0 25px
        rgba(99, 102, 241, .20);
}


.join-copy-button:hover {
    filter: brightness(1.15);
}


/* ========================================
   SERVER DETAILS
======================================== */

.join-server-details {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    border-top:
        1px solid var(--border);
}


.join-server-details > div {
    min-width: 0;

    padding: 21px 25px;

    border-right:
        1px solid var(--border);

    background:
        rgba(0, 0, 0, .10);
}


.join-server-details > div:last-child {
    border-right: none;
}


.join-server-details span {
    display: block;

    margin-bottom: 7px;

    color: var(--muted);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 1px;
}


.join-server-details strong {
    font-size: 14px;
}


.join-detail-status.loading {
    color: var(--muted);
}


.join-detail-status.online {
    color: #65e572;
}


.join-detail-status.offline {
    color: #ff7777;
}


/* ========================================
   JOIN CONTENT
======================================== */

.join-content-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(280px, .8fr);

    gap: 24px;

    align-items: start;
}


.join-instructions {
    min-width: 0;

    padding: 32px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--surface);
}


.join-section-title {
    margin-bottom: 30px;
}


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


/* ========================================
   STEPS
======================================== */

.join-steps {
    display: flex;

    flex-direction: column;
}


.join-step {
    position: relative;

    display: grid;

    grid-template-columns:
        52px minmax(0, 1fr);

    gap: 18px;

    padding: 22px 0;

    border-bottom:
        1px solid var(--border);
}


.join-step:first-child {
    padding-top: 5px;
}


.join-step:last-child {
    padding-bottom: 5px;

    border-bottom: none;
}


.join-step-number {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid
        rgba(99, 102, 241, .35);

    border-radius: 7px;

    background:
        rgba(99, 102, 241, .08);

    color: var(--purple-bright);

    font-size: 10px;

    font-weight: 900;
}


.join-step h3 {
    margin-bottom: 7px;

    font-size: 17px;
}


.join-step p {
    max-width: 600px;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.7;
}


.join-step p strong {
    color: var(--text);
}


/* ========================================
   INLINE ADDRESS
======================================== */

.join-inline-address {
    max-width: 450px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: 15px;

    padding: 11px 11px 11px 15px;

    border: 1px solid var(--border);

    border-radius: 6px;

    background:
        rgba(0, 0, 0, .22);
}


.join-inline-address code {
    overflow: hidden;

    color: var(--blue-bright);

    font-family: monospace;

    font-size: 12px;

    text-overflow: ellipsis;
}


.join-inline-address button {
    flex-shrink: 0;

    padding: 8px 11px;

    border: 1px solid var(--border);

    border-radius: 4px;

    background: var(--surface-light);

    color: var(--text);

    font-family: inherit;

    font-size: 8px;

    font-weight: 900;

    cursor: pointer;
}


.join-inline-address button:hover {
    border-color: var(--purple);
}


/* ========================================
   SIDE PANEL
======================================== */

.join-side-panel {
    display: flex;

    flex-direction: column;

    gap: 12px;
}


.join-info-card {
    padding: 25px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: var(--surface);
}


.join-info-card h3 {
    margin-bottom: 22px;

    font-size: 19px;
}


.join-info-list {
    display: flex;

    flex-direction: column;
}


.join-info-list > div {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 12px 0;

    border-bottom:
        1px solid var(--border);
}


.join-info-list > div:last-child {
    border-bottom: none;
}


.join-info-list span {
    color: var(--muted);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .8px;
}


.join-info-list strong {
    font-size: 11px;

    text-align: right;
}


/* ========================================
   SIDE LINKS
======================================== */

.join-link-card {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 19px 20px;

    border: 1px solid var(--border);

    border-radius: 8px;

    background:
        rgba(255, 255, 255, .015);

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}


.join-link-card:hover {
    transform:
        translateX(3px);

    border-color:
        var(--purple-dark);

    background: var(--surface);
}


.join-link-card div {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 5px;
}


.join-link-card span {
    color: var(--muted);

    font-size: 7px;

    font-weight: 900;

    letter-spacing: 1px;
}


.join-link-card strong {
    font-size: 12px;
}


.join-link-card b {
    color: var(--blue-bright);
}


/* ========================================
   JOIN RESPONSIVE
======================================== */

@media (max-width: 850px) {

    .join-content-grid {
        grid-template-columns: 1fr;
    }


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


    .join-server-details > div:nth-child(2) {
        border-right: none;
    }


    .join-server-details > div:nth-child(-n+2) {
        border-bottom:
            1px solid var(--border);
    }

}


@media (max-width: 600px) {

    .join-section {
        padding-left: 20px;
        padding-right: 20px;
    }


    .join-server-top {
        align-items: stretch;

        flex-direction: column;

        padding: 28px;
    }


    .join-copy-button {
        width: 100%;
    }


    .join-server-details {
        grid-template-columns: 1fr;
    }


    .join-server-details > div {
        border-right: none;

        border-bottom:
            1px solid var(--border);
    }


    .join-server-details > div:last-child {
        border-bottom: none;
    }


    .join-instructions {
        padding: 24px;
    }


    .join-step {
        grid-template-columns:
            42px minmax(0, 1fr);

        gap: 13px;
    }


    .join-step-number {
        width: 38px;
        height: 38px;
    }


    .join-inline-address {
        align-items: stretch;

        flex-direction: column;
    }


    .join-inline-address button {
        width: 100%;
    }

}
/* ========================================
   RULES PAGE
======================================== */

.rules-page-header {
    padding-bottom: 45px;
}


.rules-section {
    max-width: var(--max-width);

    margin: auto;

    padding: 15px 24px 90px;
}


/* ========================================
   INTRO
======================================== */

.rules-intro {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 35px;

    margin-bottom: 45px;

    padding: 32px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            rgba(59, 130, 246, .07),
            rgba(139, 92, 246, .07)
        );
}


.rules-intro h2 {
    margin-bottom: 10px;

    font-size: 27px;
}


.rules-intro > div > p:last-child {
    max-width: 700px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.7;
}


.rules-join-button,
.rules-primary-button {
    flex-shrink: 0;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 13px 19px;

    border-radius: 5px;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--purple)
        );

    color: white;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: .5px;

    box-shadow:
        0 0 25px
        rgba(99, 102, 241, .18);

    transition:
        transform .2s ease,
        filter .2s ease;
}


.rules-join-button:hover,
.rules-primary-button:hover {
    transform: translateY(-2px);

    filter: brightness(1.15);
}


/* ========================================
   RULE GRID
======================================== */

.rules-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 15px;

    margin-bottom: 40px;
}


.rule-card {
    display: grid;

    grid-template-columns:
        55px minmax(0, 1fr);

    gap: 18px;

    min-width: 0;

    padding: 25px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: var(--surface);

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}


.rule-card:hover {
    transform: translateY(-2px);

    border-color:
        rgba(139, 92, 246, .45);

    background:
        rgba(21, 21, 37, .95);
}


.rule-number {
    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid
        rgba(99, 102, 241, .30);

    border-radius: 7px;

    background:
        rgba(99, 102, 241, .07);

    color: var(--purple-bright);

    font-size: 10px;

    font-weight: 900;
}


.rule-category {
    display: block;

    margin-bottom: 7px;

    color: var(--blue-bright);

    font-size: 7px;

    font-weight: 900;

    letter-spacing: 1.1px;
}


.rule-card h2 {
    margin-bottom: 9px;

    font-size: 17px;
}


.rule-card p {
    color: var(--muted);

    font-size: 11px;

    line-height: 1.7;
}


/* ========================================
   ENFORCEMENT
======================================== */

.rules-enforcement {
    display: grid;

    grid-template-columns:
        55px minmax(0, 1fr);

    gap: 20px;

    margin-bottom: 40px;

    padding: 27px;

    border: 1px solid
        rgba(255, 177, 77, .25);

    border-radius: 9px;

    background:
        rgba(255, 160, 50, .035);
}


.rules-enforcement-icon {
    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid
        rgba(255, 177, 77, .35);

    border-radius: 50%;

    color: #ffb14d;

    font-size: 17px;

    font-weight: 900;
}


.rules-enforcement span {
    display: block;

    margin-bottom: 7px;

    color: #ffb14d;

    font-size: 7px;

    font-weight: 900;

    letter-spacing: 1px;
}


.rules-enforcement h2 {
    margin-bottom: 9px;

    font-size: 18px;
}


.rules-enforcement p {
    max-width: 800px;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.7;
}


/* ========================================
   NEXT STEP
======================================== */

.rules-next {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 32px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background:
        radial-gradient(
            circle at 10% 50%,
            rgba(59, 130, 246, .09),
            transparent 300px
        ),
        radial-gradient(
            circle at 90% 50%,
            rgba(139, 92, 246, .09),
            transparent 300px
        ),
        var(--surface);
}


.rules-next h2 {
    margin-bottom: 8px;

    font-size: 24px;
}


.rules-next > div > p:last-child {
    color: var(--muted);

    font-size: 11px;
}


.rules-next-actions {
    display: flex;

    gap: 10px;

    flex-shrink: 0;
}


.rules-secondary-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 12px 18px;

    border: 1px solid var(--border);

    border-radius: 5px;

    background: var(--surface-light);

    color: var(--text);

    font-size: 10px;

    font-weight: 900;

    transition:
        border-color .2s ease,
        background .2s ease;
}


.rules-secondary-button:hover {
    border-color: var(--purple);

    background:
        rgba(139, 92, 246, .08);
}


/* ========================================
   RULES RESPONSIVE
======================================== */

@media (max-width: 800px) {

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


    .rules-intro,
    .rules-next {
        align-items: stretch;

        flex-direction: column;
    }


    .rules-join-button {
        align-self: flex-start;
    }


    .rules-next-actions {
        flex-wrap: wrap;
    }

}


@media (max-width: 600px) {

    .rules-section {
        padding-left: 20px;
        padding-right: 20px;
    }


    .rules-intro {
        padding: 25px;
    }


    .rule-card {
        grid-template-columns:
            45px minmax(0, 1fr);

        gap: 13px;

        padding: 20px;
    }


    .rule-number {
        width: 40px;
        height: 40px;
    }


    .rules-enforcement {
        grid-template-columns:
            45px minmax(0, 1fr);

        gap: 14px;

        padding: 22px;
    }


    .rules-enforcement-icon {
        width: 40px;
        height: 40px;
    }


    .rules-next {
        padding: 25px;
    }


    .rules-next-actions {
        flex-direction: column;
    }


    .rules-primary-button,
    .rules-secondary-button {
        width: 100%;
    }

}

/* ========================================
   SITE-WIDE MOBILE NAVIGATION
======================================== */

.mobile-menu-button {
    display: none;

    position: relative;

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 6px;

    background: var(--surface);

    cursor: pointer;

    z-index: 1001;
}


.mobile-menu-button:hover {
    border-color: var(--purple);

    background: var(--surface-light);
}


.mobile-menu-icon {
    position: relative;

    width: 19px;
    height: 2px;

    display: block;

    border-radius: 2px;

    background: var(--text);

    transition:
        background .2s ease;
}


.mobile-menu-icon::before,
.mobile-menu-icon::after {
    content: "";

    position: absolute;

    left: 0;

    width: 19px;
    height: 2px;

    border-radius: 2px;

    background: var(--text);

    transition:
        transform .2s ease,
        top .2s ease;
}


.mobile-menu-icon::before {
    top: -6px;
}


.mobile-menu-icon::after {
    top: 6px;
}


/* Hamburger -> X */

.mobile-menu-button.open
.mobile-menu-icon {
    background: transparent;
}


.mobile-menu-button.open
.mobile-menu-icon::before {
    top: 0;

    transform: rotate(45deg);
}


.mobile-menu-button.open
.mobile-menu-icon::after {
    top: 0;

    transform: rotate(-45deg);
}


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

@media (max-width: 800px) {

    /*
       Overrides the older rule that hides
       the site's navigation on mobile.
    */

    .navbar {
        position: relative;

        z-index: 1000;
    }


    .mobile-menu-button {
        display: flex;
    }


    .navbar nav {
        position: absolute;

        top: calc(100% + 1px);
        left: 0;
        right: 0;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 4px;

        padding: 12px 20px 18px;

        border-bottom:
            1px solid var(--border);

        background:
            rgba(5, 5, 9, .98);

        box-shadow:
            0 18px 30px
            rgba(0, 0, 0, .35);
    }


    .navbar nav.mobile-open {
        display: flex;
    }


    .navbar nav a {
        width: 100%;

        padding: 13px 14px;

        border-radius: 5px;

        color: var(--muted);

        font-size: 11px;
    }


    .navbar nav a:hover {
        color: var(--text);

        background:
            rgba(255, 255, 255, .04);
    }


    .navbar nav a.active {
        color: var(--blue-bright);

        background:
            rgba(59, 130, 246, .07);
    }

}

/* =========================================================
   ZERICKPLAYS CUSTOM 404 PAGE
   ========================================================= */

.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.error-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px;
    position: relative;
    overflow: hidden;
}

.error-main::before {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(86, 64, 255, 0.14) 0%,
            rgba(162, 54, 255, 0.08) 40%,
            transparent 70%
        );
    pointer-events: none;
}

.error-card {
    width: min(760px, 100%);
    text-align: center;
    position: relative;
    z-index: 1;
}

.error-logo-wrap {
    width: 190px;
    height: 190px;
    margin: 0 auto 12px;
    border-radius: 32px;
    overflow: hidden;

    box-shadow:
        0 0 35px rgba(43, 169, 255, 0.16),
        0 0 60px rgba(168, 64, 255, 0.10);
}

.error-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.error-code {
    font-size: clamp(5rem, 15vw, 9rem);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.07em;

    background:
        linear-gradient(
            90deg,
            #59c9ff,
            #8d7cff,
            #d05cff
        );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    text-shadow:
        0 0 40px rgba(82, 137, 255, 0.18);

    margin: 18px 0 10px;
}

.error-eyebrow {
    margin: 0 0 12px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: #9b8cff;
}

.error-card h1 {
    margin: 0 auto;
    max-width: 700px;
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.1;
}

.error-description {
    max-width: 600px;
    margin: 18px auto 0;
    line-height: 1.7;
    opacity: 0.75;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.error-help {
    margin-top: 38px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.error-help > span {
    display: block;
    font-size: 0.82rem;
    opacity: 0.55;
    margin-bottom: 10px;
}

.error-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.error-links a {
    color: #b6b8ff;
    text-decoration: none;
    transition:
        color 0.2s ease,
        text-shadow 0.2s ease;
}

.error-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(116, 116, 255, 0.65);
}

.error-links span {
    opacity: 0.25;
}

@media (max-width: 600px) {

    .error-main {
        padding: 45px 18px;
    }

    .error-logo-wrap {
        width: 145px;
        height: 145px;
        border-radius: 24px;
    }

    .error-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .error-actions .button {
        width: 100%;
        justify-content: center;
    }

    .error-links {
        gap: 8px;
        font-size: 0.9rem;
    }
}

