.server-info-page {
    --info-ink: #172033;
    --info-muted: #5f697b;
    --info-border: #dfe3eb;
    --info-soft: #f5f7fb;
    --info-primary: #5638a5;
    --info-primary-dark: #3f287f;
    --info-accent: #0f7488;
}

.server-info-page .content-wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    color: var(--info-ink);
    border-color: #c9d8e8;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(23, 32, 51, 0.08);
}

.server-hero {
    padding: 54px 56px 46px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(106, 204, 220, 0.28), transparent 30%),
        linear-gradient(135deg, #2c1d59 0%, #5638a5 55%, #0f7488 130%);
}

.server-eyebrow,
.section-kicker {
    margin: 0 0 8px;
    color: var(--info-primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.server-eyebrow {
    color: #bfeef5;
}

.server-hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.server-lead {
    max-width: 760px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
    line-height: 1.75;
}

.server-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.server-quick-links a {
    padding: 9px 14px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.server-quick-links a:hover,
.server-quick-links a:focus-visible {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.server-section {
    margin: 0;
    padding: 48px 56px;
    scroll-margin-top: 24px;
    border-bottom: 1px solid var(--info-border);
}

.server-section:nth-of-type(odd) {
    background: var(--info-soft);
}

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

.section-heading h2,
.community-panel h2 {
    margin: 0;
    color: var(--info-ink);
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-heading > p,
.section-heading-stacked > p {
    max-width: 470px;
    margin: 0;
    color: var(--info-muted);
    line-height: 1.65;
}

.section-heading-stacked {
    display: block;
}

.section-heading-stacked > p {
    margin-top: 10px;
}

.server-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.server-stat {
    min-height: 108px;
    padding: 20px;
    border: 1px solid var(--info-border);
    border-radius: 10px;
    background: #fff;
}

.server-stat-label {
    display: block;
    margin-bottom: 8px;
    color: var(--info-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.server-stat strong {
    display: block;
    color: var(--info-primary-dark);
    font-size: 1.55rem;
    line-height: 1.2;
}

.server-stat small {
    display: block;
    margin-top: 4px;
    color: var(--info-muted);
}

.rate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.rate-card {
    position: relative;
    padding: 26px 22px 22px;
    border: 1px solid var(--info-border);
    border-radius: 12px;
    background: #fff;
}

.rate-card-featured {
    border-color: #8a70cf;
    box-shadow: inset 0 3px 0 var(--info-primary);
}

.rate-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 4px 9px;
    color: var(--info-primary-dark);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 999px;
    background: #ece8f8;
}

.rate-card strong {
    display: block;
    color: var(--info-ink);
    font-size: 2.4rem;
    line-height: 1;
}

.rate-card > span:not(.rate-badge) {
    display: block;
    margin-top: 6px;
    color: var(--info-muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.rate-card p {
    margin: 20px 0 0;
    color: var(--info-muted);
    line-height: 1.55;
}

.rate-card p b {
    color: var(--info-accent);
}

.server-columns {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    border-bottom: 1px solid var(--info-border);
}

.server-section-compact {
    border-bottom: 0;
}

.server-section-compact + .server-section-compact {
    border-left: 1px solid var(--info-border);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--info-border);
    border-radius: 10px;
    background: #fff;
}

.server-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.server-table th,
.server-table td {
    padding: 14px 16px;
    text-align: left;
    border: 0;
    border-bottom: 1px solid var(--info-border);
}

.server-table th {
    color: var(--info-muted);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #f4f5f8;
}

.server-table th:last-child,
.server-table td:last-child {
    text-align: right;
}

.server-table tbody tr:last-child td {
    border-bottom: 0;
}

.server-table td strong {
    color: var(--info-primary-dark);
}

.rules-summary {
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.rules-summary li {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--info-ink);
    line-height: 1.55;
}

.rules-summary li span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: #9c273d;
    font-size: 1rem;
    font-weight: 900;
    border-radius: 50%;
    background: #fdecef;
}

.rules-summary .rule-allowed span {
    color: #187247;
    background: #e7f6ee;
}

.text-link {
    color: var(--info-primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
    text-decoration: underline;
}

.party-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 24px;
    align-items: start;
}

.party-rules {
    display: grid;
    gap: 12px;
}

.party-rules article {
    padding: 18px 20px;
    border-left: 4px solid var(--info-primary);
    border-radius: 0 8px 8px 0;
    background: #fff;
}

.party-rules strong {
    color: var(--info-primary-dark);
    font-size: 1.15rem;
}

.party-rules p {
    margin: 4px 0 0;
    color: var(--info-muted);
    line-height: 1.5;
}

.party-highlight td {
    color: var(--info-primary-dark);
    font-weight: 800;
    background: #f0edf9;
}

.table-note {
    margin: 0;
    padding: 12px 16px;
    color: var(--info-muted);
    font-size: 0.84rem;
    line-height: 1.45;
    border-top: 1px solid var(--info-border);
}

.server-note {
    margin-top: 22px;
    padding: 16px 18px;
    color: #344052;
    line-height: 1.65;
    border: 1px solid #c7dce1;
    border-radius: 8px;
    background: #edf7f9;
}

.community-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 40px 56px;
    background: #fff;
}

.community-panel p:not(.section-kicker) {
    max-width: 590px;
    margin: 10px 0 0;
    color: var(--info-muted);
    line-height: 1.6;
}

.community-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.community-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: var(--info-primary-dark);
    font-weight: 800;
    text-decoration: none;
    border: 1px solid #aa9bd3;
    border-radius: 8px;
    background: #fff;
}

.community-button:hover,
.community-button:focus-visible {
    background: #f0edf9;
}

.community-button-primary {
    color: #fff;
    border-color: var(--info-primary);
    background: var(--info-primary);
}

.community-button-primary:hover,
.community-button-primary:focus-visible {
    background: var(--info-primary-dark);
}

.server-disclaimer {
    margin: 0;
    padding: 18px 56px;
    color: var(--info-muted);
    font-size: 0.82rem;
    text-align: center;
    border-top: 1px solid var(--info-border);
    background: var(--info-soft);
}

@media (max-width: 900px) {
    .server-hero,
    .server-section,
    .community-panel {
        padding-right: 32px;
        padding-left: 32px;
    }

    .server-stat-grid,
    .rate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .server-columns,
    .party-layout {
        grid-template-columns: 1fr;
    }

    .server-section-compact + .server-section-compact {
        border-top: 1px solid var(--info-border);
        border-left: 0;
    }

    .community-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .server-info-page {
        padding: 10px;
    }

    .server-info-page .content-wrapper {
        border-radius: 7px;
    }

    .server-hero,
    .server-section,
    .community-panel {
        padding: 30px 22px;
    }

    .server-lead {
        font-size: 1rem;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 10px;
    }

    .server-stat-grid,
    .rate-grid {
        grid-template-columns: 1fr;
    }

    .server-stat {
        min-height: auto;
    }

    .party-layout {
        gap: 16px;
    }

    .community-actions {
        width: 100%;
        flex-direction: column;
    }

    .community-button {
        width: 100%;
    }

    .server-disclaimer {
        padding: 16px 22px;
    }
}
