:root {
    --bg-main: #070708;
    --panel: rgba(10, 10, 12, 0.62);
    --panel-strong: rgba(10, 10, 12, 0.78);
    --line-soft: rgba(255, 255, 255, 0.09);
    --line-soft-2: rgba(255, 255, 255, 0.12);
    --text-main: #ddd2c4;
    --text-soft: #cabfae;
    --text-dim: #958a7f;
    --rust: #de7840;
    --rust-deep: #9c4d26;
    --green: #8cc874;
    --red: #d55c46;
    --radius: 22px;
    --radius-small: 16px;
    --width: min(1220px, calc(100vw - 40px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: rgba(222, 120, 64, 0.9) rgba(255, 255, 255, 0.04);
    scrollbar-width: thin;
}

body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(222, 120, 64, 0.96), rgba(156, 77, 38, 0.96));
    border-radius: 999px;
    border: 2px solid rgba(8, 8, 9, 0.9);
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(236, 136, 76, 0.98), rgba(168, 84, 42, 0.98));
}

body {
    min-height: 100vh;
    color: var(--text-main);
}

img,
video {
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
a.button-primary,
a.button-ghost {
    font: inherit;
}

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

.video-backdrop video {
    transform: scale(1.06);
    filter: saturate(0.88) contrast(1.03) brightness(0.32);
    transition: opacity 0.22s ease;
}

.video-backdrop.ready video {
    opacity: 1;
}

.shell-width {
    width: var(--width);
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 35;
    background: linear-gradient(180deg, rgba(8, 7, 7, 0.82), rgba(8, 7, 7, 0.56));
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.brand span {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    padding: 12px 14px;
    color: var(--text-soft);
    border-radius: 999px;
    transition: color 0.18s ease, background 0.18s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.055);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--text-main);
}

.home-hero {
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0 34px;
}

.hero-copy-home {
    width: min(900px, 100%);
    margin: 0 auto;
    text-align: center;
    padding: 0;
}

.hero-title,
.page-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    text-wrap: balance;
}

.hero-copy-home p,
.page-head p {
    max-width: 760px;
    margin: 18px auto 0;
    color: var(--text-soft);
    font-size: 1.18rem;
    line-height: 1.7;
}

.hero-actions,
.server-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-actions {
    justify-content: center;
    margin-top: 28px;
}

.button-primary,
.button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button-primary {
    color: #fff4ea;
    background: linear-gradient(180deg, rgba(228, 126, 66, 0.96), rgba(181, 88, 41, 0.96));
    box-shadow: 0 14px 34px rgba(197, 102, 51, 0.24);
}

.button-ghost {
    border: 1px solid var(--line-soft-2);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

.button-primary:hover,
.button-ghost:hover {
    transform: translateY(-1px);
}

.hero-stats {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.hero-stats > div {
    padding: 18px 22px;
}

.hero-stats > div + div {
    border-left: 1px solid var(--line-soft);
}

.hero-stats span,
.server-info-line span,
.footer-block p,
.discord-member span {
    color: var(--text-dim);
}

.hero-stats strong,
.server-info-line strong {
    display: block;
    margin-top: 8px;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text-main);
}

.server-status-text.online,
.status-pill.online {
    color: var(--green);
}

.server-status-text.offline,
.status-pill.offline {
    color: var(--red);
}

.page-head {
    padding: 68px 0 16px;
}

.page-head p {
    margin-left: 0;
}

.server-listing,
.staff-grid,
.discord-shell,
.not-found-block {
    padding: 16px 0 70px;
}

.server-row,
.staff-row,
.discord-main,
.discord-members-wrap,
.footer-block {
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.54), rgba(10, 10, 12, 0.42));
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}

.server-row,
.discord-shell,
.footer-block,
.not-found-block {
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.server-row,
.staff-row,
.discord-main,
.discord-members-wrap,
.footer-block {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.36);
}

.server-row {
    padding: 28px 30px;
}

.server-row + .server-row {
    margin-top: 18px;
}

.server-row-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.server-row h2,
.staff-row h2,
.discord-main h2,
.rules-group h2,
.faq-item h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
}

.server-row p,
.discord-main p,
.footer-block p,
.staff-row p,
.rules-group li,
.faq-item p {
    color: var(--text-soft);
    line-height: 1.7;
}

.status-pill {
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-soft-2);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

.server-info-line {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.server-info-line > div {
    padding: 18px 18px 18px 0;
}

.server-info-line > div + div {
    padding-left: 18px;
    border-left: 1px solid var(--line-soft);
}

.server-inline-link-wrap {
    margin-top: 10px;
}

.server-inline-link {
    display: inline-flex;
    align-items: center;
    color: var(--rust);
    font-weight: 700;
    transition: color 0.18s ease, transform 0.18s ease;
}

.server-inline-link:hover {
    color: #ef8b57;
    transform: translateX(2px);
}

.server-actions {
    margin-top: 24px;
}

.rules-clean,
.faq-clean {
    padding: 12px 0 76px;
}

.rules-group,
.faq-item {
    position: relative;
    padding: 26px 0;
}

.rules-group + .rules-group,
.faq-item + .faq-item {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rules-group::before,
.faq-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 88px;
    height: 1px;
    background: linear-gradient(90deg, rgba(222, 120, 64, 0.95), rgba(222, 120, 64, 0));
}

.rules-group:first-child::before,
.faq-item:first-child::before {
    display: none;
}

.rules-group h2,
.faq-item h2 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.rules-points {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.rules-points li {
    position: relative;
    padding-left: 20px;
    font-size: 1.02rem;
}

.rules-points li::before {
    content: "";
    position: absolute;
    top: 0.72rem;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(228, 126, 66, 0.96), rgba(181, 88, 41, 0.96));
    box-shadow: 0 0 14px rgba(222, 120, 64, 0.28);
}

.faq-item p {
    margin: 14px 0 0;
    max-width: 900px;
    font-size: 1.04rem;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.staff-row {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px 26px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.staff-row-link {
    cursor: pointer;
}

.staff-row-link:hover {
    transform: translateY(-2px);
    border-color: rgba(222, 120, 64, 0.24);
    background: linear-gradient(180deg, rgba(18, 13, 10, 0.68), rgba(10, 10, 12, 0.5));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
}

.staff-row img {
    width: 94px;
    height: 94px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(222, 120, 64, 0.66);
}

.staff-row p {
    margin: 8px 0 0;
}

.discord-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.discord-main,
.discord-members-wrap {
    padding: 30px 32px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.discord-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 18px;
}

.discord-member {
    text-align: center;
}

.discord-member img {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(222, 120, 64, 0.54);
}

.discord-member span {
    display: block;
    margin-top: 10px;
    color: var(--text-main);
}

.discord-members.empty p {
    margin: 0;
    color: var(--text-soft);
}

.footer-block {
    margin: 0 auto 24px;
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.footer-block strong {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-block p {
    margin: 10px 0 0;
}

.footer-side {
    color: var(--text-dim);
    white-space: nowrap;
    align-self: center;
}

.not-found-block {
    padding: 0 0 70px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 980px) {
    .server-info-line,
    .hero-stats,
    .staff-grid,
    .discord-shell {
        grid-template-columns: 1fr;
    }

    .hero-stats > div + div,
    .server-info-line > div + div {
        border-left: 0;
        border-top: 1px solid var(--line-soft);
        padding-left: 0;
    }

    .footer-block {
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .topbar-inner {
        min-height: 74px;
    }

    .menu-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 20px;
        right: 20px;
        margin-left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 18px;
        background: rgba(10, 10, 12, 0.92);
        backdrop-filter: blur(16px);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        border-radius: 12px;
    }

    .home-hero {
        min-height: auto;
        padding: 64px 0 38px;
    }

    .page-head {
        padding-top: 42px;
    }

    .hero-copy-home p,
    .page-head p,
    .server-row p,
    .discord-main p,
    .footer-block p,
    .staff-row p,
    .rules-group li,
    .faq-item p {
        font-size: 1rem;
    }

    .hero-title,
    .page-title {
        font-size: clamp(2.4rem, 10vw, 3.6rem);
    }

    .server-row,
    .discord-main,
    .discord-members-wrap,
    .staff-row,
    .footer-block {
        padding: 22px;
    }

    .server-row h2,
    .staff-row h2,
    .discord-main h2,
    .rules-group h2,
    .faq-item h2 {
        font-size: 1.55rem;
    }

    .server-row-top {
        flex-direction: column;
    }

    .rules-group,
    .faq-item {
        padding: 22px 0;
    }
}