/* ==========================================================
   Public server status page
   Namespace: serverstatus_
   ========================================================== */

.serverstatus_page {
    position: relative;
    z-index: 10;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 86px;
}

.serverstatus_hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: center;
    gap: 42px;
    min-height: 330px;
    padding: 48px 52px;
    overflow: hidden;
    border: 1px solid rgba(188, 151, 255, 0.23);
    border-radius: 24px;
    background:
        linear-gradient(115deg, rgba(8, 8, 22, 0.96), rgba(13, 11, 29, 0.91)),
        radial-gradient(circle at 82% 22%, rgba(137, 80, 219, 0.28), transparent 44%);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.serverstatus_hero::before,
.serverstatus_hero::after {
    position: absolute;
    content: '';
    pointer-events: none;
}

.serverstatus_hero::before {
    top: -120px;
    right: -110px;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(216, 190, 255, 0.11);
    border-radius: 50%;
    box-shadow:
        0 0 0 54px rgba(216, 190, 255, 0.025),
        0 0 0 108px rgba(216, 190, 255, 0.018);
}

.serverstatus_hero::after {
    right: 34px;
    bottom: 0;
    width: 44%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244, 223, 151, 0.55), transparent);
}

.serverstatus_hero_copy,
.serverstatus_hero_mark {
    position: relative;
    z-index: 1;
}

.serverstatus_eyebrow,
.serverstatus_section_eyebrow,
.serverstatus_summary_card > span,
.serverstatus_channel_number,
.serverstatus_empty > span {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.serverstatus_eyebrow,
.serverstatus_section_eyebrow {
    margin: 0 0 12px;
    color: rgba(216, 187, 255, 0.72);
    font-size: 10px;
    font-weight: 600;
}

.serverstatus_overall_line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.serverstatus_overall_badge,
.serverstatus_channel_badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.serverstatus_overall_badge {
    min-height: 32px;
    padding: 0 13px;
    border: 1px solid rgba(106, 234, 151, 0.3);
    color: #bff5cf;
    background: rgba(33, 111, 61, 0.17);
    font-size: 11px;
    font-weight: 600;
}

.serverstatus_overall_badge > span:first-child,
.serverstatus_channel_badge i {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #75e49b;
    box-shadow: 0 0 12px rgba(117, 228, 155, 0.72);
}

.serverstatus_autorefresh {
    color: rgba(255, 255, 255, 0.42);
    font-size: 11px;
}

.serverstatus_title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 5.2vw, 60px);
    font-weight: 500;
    letter-spacing: -1.4px;
}

.serverstatus_lead {
    max-width: 720px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    line-height: 1.9;
}

.serverstatus_policy {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    line-height: 1.75;
}

.serverstatus_policy strong {
    color: rgba(255, 242, 181, 0.78);
    font-weight: 500;
}

.serverstatus_hero_mark {
    display: grid;
    justify-items: center;
    gap: 14px;
}

.serverstatus_hero_mark img {
    width: 178px;
    height: 178px;
    object-fit: contain;
    filter: drop-shadow(0 0 28px rgba(192, 147, 255, 0.2));
}

.serverstatus_hero_mark span {
    color: rgba(255, 255, 255, 0.33);
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    letter-spacing: 3px;
}

.serverstatus_notice {
    margin-top: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(118, 214, 151, 0.23);
    border-radius: 12px;
    color: rgba(215, 247, 225, 0.9);
    background: rgba(27, 83, 47, 0.22);
    font-size: 13px;
    line-height: 1.7;
}

.serverstatus_notice_warning {
    border-color: rgba(241, 190, 102, 0.3);
    color: #f3d59d;
    background: rgba(109, 70, 22, 0.22);
}

.serverstatus_summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.serverstatus_summary_card {
    min-height: 146px;
    padding: 23px 24px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 15px;
    background: rgba(7, 8, 19, 0.86);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
}

.serverstatus_summary_card > span,
.serverstatus_summary_card > strong,
.serverstatus_summary_card > small {
    display: block;
}

.serverstatus_summary_card > span {
    color: rgba(205, 173, 255, 0.62);
    font-size: 8px;
}

.serverstatus_summary_card > strong {
    margin-top: 14px;
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 30px;
    font-weight: 500;
}

.serverstatus_summary_card > small {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.43);
    font-size: 11px;
}

.serverstatus_summary_meter,
.serverstatus_population_meter {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.serverstatus_summary_meter {
    height: 4px;
    margin-top: 15px;
    border-radius: 999px;
}

.serverstatus_summary_meter i,
.serverstatus_population_meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8b68d7, #d6b9ff);
    transition: width 240ms ease;
}

.serverstatus_channels,
.serverstatus_guide {
    margin-top: 42px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 20px;
    background: rgba(6, 7, 17, 0.84);
    box-shadow: 0 20px 65px rgba(0, 0, 0, 0.24);
}

.serverstatus_section_heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.serverstatus_section_heading h2,
.serverstatus_guide h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 500;
}

.serverstatus_updated {
    margin: 0;
    color: rgba(255, 255, 255, 0.38);
    font-size: 11px;
    white-space: nowrap;
}

.serverstatus_tabs {
    display: flex;
    gap: 8px;
    margin-top: 28px;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.serverstatus_tab {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    font-size: 12px;
    transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.serverstatus_tab:hover {
    border-color: rgba(198, 163, 255, 0.34);
    color: rgba(255, 255, 255, 0.82);
}

.serverstatus_tab_active {
    border-color: rgba(213, 184, 255, 0.48);
    color: #ffffff;
    background: rgba(126, 82, 193, 0.25);
}

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

.serverstatus_channel_card {
    position: relative;
    min-width: 0;
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(105, 224, 145, 0.18);
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(17, 29, 27, 0.62), rgba(8, 9, 20, 0.94));
}

.serverstatus_channel_card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    content: '';
    background: linear-gradient(90deg, transparent, rgba(115, 230, 153, 0.78), transparent);
}

.serverstatus_channel_topline,
.serverstatus_population,
.serverstatus_channel_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.serverstatus_channel_number {
    color: rgba(255, 255, 255, 0.28);
    font-size: 8px;
}

.serverstatus_channel_badge {
    min-height: 28px;
    padding: 0 11px;
    border: 1px solid rgba(113, 227, 151, 0.24);
    color: #bdf0ce;
    background: rgba(40, 108, 62, 0.16);
    font-size: 10px;
    font-weight: 500;
}

.serverstatus_channel_badge i {
    width: 6px;
    height: 6px;
}

.serverstatus_channel_card h3 {
    margin: 21px 0 0;
    color: #ffffff;
    font-size: 21px;
    font-weight: 500;
    word-break: break-word;
}

.serverstatus_channel_description {
    min-height: 48px;
    margin: 9px 0 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
    line-height: 1.8;
}

.serverstatus_population {
    align-items: flex-end;
    margin-top: 23px;
}

.serverstatus_population > div span,
.serverstatus_population > div strong {
    display: block;
}

.serverstatus_population > div span {
    color: rgba(255, 255, 255, 0.34);
    font-size: 10px;
}

.serverstatus_population > div strong {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Orbitron', sans-serif;
    font-size: 17px;
    font-weight: 500;
}

.serverstatus_population > span {
    color: rgba(255, 255, 255, 0.46);
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
}

.serverstatus_population_meter {
    height: 5px;
    margin-top: 12px;
    border-radius: 999px;
}

.serverstatus_population_meter i {
    background: linear-gradient(90deg, #4dbb78, #9ce6b5);
}

.serverstatus_channel_message {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-left: 2px solid rgba(235, 197, 118, 0.58);
    color: rgba(247, 219, 157, 0.88);
    background: rgba(104, 67, 19, 0.17);
    font-size: 12px;
    line-height: 1.75;
}

.serverstatus_channel_footer {
    align-items: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.serverstatus_channel_footer span {
    color: rgba(255, 255, 255, 0.31);
    font-size: 9px;
}

.serverstatus_empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 220px;
    padding: 28px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    text-align: center;
}

.serverstatus_empty > span {
    color: rgba(209, 175, 255, 0.54);
    font-size: 9px;
}

.serverstatus_empty p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.serverstatus_guide {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 30px 44px;
}

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

.serverstatus_guide_grid article {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 90px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.018);
}

.serverstatus_guide_grid strong,
.serverstatus_guide_grid p {
    display: block;
}

.serverstatus_guide_grid strong {
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 500;
}

.serverstatus_guide_grid p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    line-height: 1.65;
}

.serverstatus_guide_dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-top: 4px;
    border-radius: 50%;
}

.serverstatus_guide_dot_online { background: #72de96; box-shadow: 0 0 10px rgba(114, 222, 150, 0.55); }
.serverstatus_guide_dot_busy { background: #f0c66e; box-shadow: 0 0 10px rgba(240, 198, 110, 0.48); }
.serverstatus_guide_dot_attention { background: #bc96f4; box-shadow: 0 0 10px rgba(188, 150, 244, 0.48); }
.serverstatus_guide_dot_offline { background: #eb8383; box-shadow: 0 0 10px rgba(235, 131, 131, 0.48); }

.serverstatus_guide_note {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    line-height: 1.75;
}

.serverstatus_tone_attention.serverstatus_overall_badge,
.serverstatus_tone_waiting.serverstatus_overall_badge {
    border-color: rgba(236, 194, 111, 0.3);
    color: #f1d59d;
    background: rgba(110, 72, 25, 0.18);
}

.serverstatus_tone_attention.serverstatus_overall_badge > span:first-child,
.serverstatus_tone_waiting.serverstatus_overall_badge > span:first-child {
    background: #edc878;
    box-shadow: 0 0 12px rgba(237, 200, 120, 0.65);
}

.serverstatus_tone_offline.serverstatus_overall_badge {
    border-color: rgba(235, 126, 126, 0.3);
    color: #f4b0b0;
    background: rgba(115, 38, 38, 0.2);
}

.serverstatus_tone_offline.serverstatus_overall_badge > span:first-child {
    background: #e47c7c;
    box-shadow: 0 0 12px rgba(228, 124, 124, 0.62);
}

.serverstatus_channel_card.serverstatus_tone_busy {
    border-color: rgba(234, 190, 100, 0.22);
    background: linear-gradient(145deg, rgba(40, 29, 15, 0.62), rgba(8, 9, 20, 0.94));
}

.serverstatus_channel_card.serverstatus_tone_busy::before {
    background: linear-gradient(90deg, transparent, rgba(236, 193, 105, 0.8), transparent);
}

.serverstatus_channel_card.serverstatus_tone_busy .serverstatus_channel_badge {
    border-color: rgba(236, 193, 105, 0.28);
    color: #f0d49b;
    background: rgba(107, 72, 24, 0.18);
}

.serverstatus_channel_card.serverstatus_tone_busy .serverstatus_channel_badge i,
.serverstatus_channel_card.serverstatus_tone_busy .serverstatus_population_meter i {
    background: #e9c270;
    box-shadow: 0 0 11px rgba(233, 194, 112, 0.5);
}

.serverstatus_channel_card.serverstatus_tone_attention {
    border-color: rgba(184, 145, 239, 0.24);
    background: linear-gradient(145deg, rgba(31, 21, 46, 0.66), rgba(8, 9, 20, 0.94));
}

.serverstatus_channel_card.serverstatus_tone_attention::before {
    background: linear-gradient(90deg, transparent, rgba(187, 147, 242, 0.82), transparent);
}

.serverstatus_channel_card.serverstatus_tone_attention .serverstatus_channel_badge {
    border-color: rgba(188, 148, 242, 0.28);
    color: #d8baf9;
    background: rgba(81, 49, 122, 0.2);
}

.serverstatus_channel_card.serverstatus_tone_attention .serverstatus_channel_badge i,
.serverstatus_channel_card.serverstatus_tone_attention .serverstatus_population_meter i {
    background: #b990ec;
    box-shadow: 0 0 11px rgba(185, 144, 236, 0.52);
}

.serverstatus_channel_card.serverstatus_tone_offline {
    border-color: rgba(226, 118, 118, 0.22);
    background: linear-gradient(145deg, rgba(42, 20, 24, 0.62), rgba(8, 9, 20, 0.94));
}

.serverstatus_channel_card.serverstatus_tone_offline::before {
    background: linear-gradient(90deg, transparent, rgba(229, 126, 126, 0.8), transparent);
}

.serverstatus_channel_card.serverstatus_tone_offline .serverstatus_channel_badge {
    border-color: rgba(229, 126, 126, 0.28);
    color: #f0adad;
    background: rgba(111, 40, 44, 0.2);
}

.serverstatus_channel_card.serverstatus_tone_offline .serverstatus_channel_badge i,
.serverstatus_channel_card.serverstatus_tone_offline .serverstatus_population_meter i {
    background: #df7c7c;
    box-shadow: 0 0 11px rgba(223, 124, 124, 0.5);
}

@media (max-width: 960px) {
    .serverstatus_hero {
        grid-template-columns: minmax(0, 1fr) 150px;
        padding: 42px;
    }

    .serverstatus_hero_mark img {
        width: 130px;
        height: 130px;
    }

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

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

@media (max-width: 720px) {
    .serverstatus_page {
        width: min(100% - 20px, 1240px);
        padding: 28px 0 58px;
    }

    .serverstatus_hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 32px 26px;
        border-radius: 18px;
    }

    .serverstatus_hero_mark {
        display: none;
    }

    .serverstatus_title {
        font-size: clamp(32px, 11vw, 46px);
        letter-spacing: -0.8px;
    }

    .serverstatus_lead {
        font-size: 14px;
    }

    .serverstatus_channel_grid,
    .serverstatus_guide_grid {
        grid-template-columns: 1fr;
    }

    .serverstatus_channels,
    .serverstatus_guide {
        margin-top: 24px;
        padding: 24px 18px;
        border-radius: 16px;
    }

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

    .serverstatus_updated {
        white-space: normal;
    }
}

@media (max-width: 470px) {
    .serverstatus_summary {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .serverstatus_summary_card {
        min-height: 126px;
        padding: 18px;
    }

    .serverstatus_summary_card > strong {
        font-size: 25px;
    }

    .serverstatus_channel_card {
        padding: 20px 18px;
    }

    .serverstatus_channel_topline,
    .serverstatus_channel_footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .serverstatus_channel_badge {
        align-self: flex-start;
    }
}

/* Phase 1-8 performance: defer off-screen channel cards. */
.serverstatus_channel_card {
    content-visibility: auto;
    contain-intrinsic-size: auto 330px;
}
