/* Public directory, detail, legal and error pages. */

.directory-page,
.detail-page,
.legal-page {
background:
        radial-gradient(circle at 8% 2%, rgba(106, 165, 224, 0.14), transparent 27%),
        radial-gradient(circle at 96% 12%, rgba(162, 202, 232, 0.16), transparent 23%),
        linear-gradient(180deg, #f8fbfe 0%, var(--page) 42%, #eff5fa 100%);
    background-attachment: fixed;
}

.page-glow {
display: none;
}

.site-header {
position: sticky;
    z-index: 40;
    top: 0;
    display: flex;
    width: 100%;
    min-height: 72px;
    margin: 0;
    padding: 0 max(24px, calc((100vw - var(--content)) / 2));
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(205, 219, 232, 0.9);
    background: rgba(250, 252, 255, 0.92);
    box-shadow: 0 5px 24px rgba(35, 67, 98, 0.035);
    backdrop-filter: blur(18px);
}

.brand {
display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    padding: 6px;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    overflow: hidden;
    place-items: stretch;
    border: 1px solid #c7d9ed;
    border-radius: 12px;
    background: linear-gradient(145deg, #edf5ff, #dfeefc);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.brand-mark span,
.brand-mark i {
border-radius: 3px;
    background: var(--brand);
}

.brand-mark span:nth-child(2),
.brand-mark i:nth-child(2) {
background: #65a2e5;
}

.brand-mark span:nth-child(3),
.brand-mark i:nth-child(3) {
background: #86b8ea;
}

.brand-mark span:nth-child(4),
.brand-mark i:nth-child(4) {
background: #b9d7f3;
}

.brand-mark.has-logo {
padding: 0;
}

.brand-mark img {
width: 100%;
    height: 100%;
    grid-column: 1 / -1;
    object-fit: cover;
}

.brand-copy {
display: grid;
    min-width: 0;
    gap: 2px;
}

.brand-copy strong {
overflow: hidden;
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-copy small {
color: #8495a7;
    font-size: 9px;
    letter-spacing: 0.12em;
}

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

.header-actions {
display: flex;
    margin-left: auto;
    align-items: center;
    gap: 0;
}

.site-nav a {
display: inline-flex;
    min-height: 36px;
    padding: 0 10px;
    align-items: center;
    border: 0;
    border-radius: 7px;
    color: #5d7084;
    font-size: 13px;
    font-weight: 680;
    position: relative;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--brand-deep);
    background: rgba(233, 242, 251, 0.72);
}

.site-nav a.active {
    color: var(--brand-deep);
    background: transparent;
}

.site-nav a.active::after {
position: absolute;
    right: 10px;
    bottom: -1px;
    left: 10px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand);
    content: "";
}

.site-mobile-toggle {
display: none;
}

.site-mobile-panel,
.site-nav-backdrop {
display: none;
}

.site-mobile-panel[hidden],
.site-nav-backdrop[hidden] {
display: none;
}

.site-mobile-nav {
display: grid;
    gap: 4px;
}

.site-mobile-nav a,
.site-mobile-account > a {
display: flex;
    min-height: 46px;
    padding: 0 12px;
    align-items: center;
    border-radius: 9px;
    color: #40586e;
    font-size: 15px;
    font-weight: 680;
    text-decoration: none;
}

.site-mobile-nav a:hover,
.site-mobile-account > a:hover {
color: var(--brand-deep);
    background: #f0f6fc;
}

.site-mobile-nav a.active {
color: var(--brand-deep);
    background: var(--brand-pale);
}

.site-mobile-account {
display: grid;
    margin-top: 10px;
    padding-top: 10px;
    gap: 3px;
    border-top: 1px solid #e2eaf2;
}

.site-mobile-account-head {
display: flex;
    min-width: 0;
    padding: 8px 10px 10px;
    align-items: center;
    gap: 10px;
}

.site-mobile-account-head > span:last-child {
display: grid;
    min-width: 0;
    gap: 1px;
}

.site-mobile-account-head small {
color: #8a9baa;
    font-size: 11px;
}

.site-mobile-account-head strong {
overflow: hidden;
    color: #29445d;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-mobile-login {
color: var(--brand-deep) !important;
    background: var(--brand-pale);
    justify-content: center;
}

.site-nav-backdrop {
position: fixed;
    z-index: 38;
    inset: 64px 0 0;
    border: 0;
    background: rgba(34, 55, 76, 0.28);
}

.nav-menu-open {
overflow: hidden;
}

.site-notice {
display: grid;
    width: min(calc(100% - 48px), var(--content));
    margin: 12px auto 0;
    padding: 10px 13px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
    border: 1px solid #d7e4f1;
    border-radius: 10px;
    background: rgba(247, 251, 255, 0.86);
}

.site-notice-label {
display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    color: var(--brand-deep);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.7;
    white-space: nowrap;
}

.site-notice-label i {
width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.site-notice p {
min-width: 0;
margin: 0;
    color: #5d7186;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.site-footer {
display: flex;
    width: min(calc(100% - 48px), var(--content));
    margin: 0 auto;
    padding: 28px 0 34px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 9px 24px;
    border-top: 1px solid var(--line);
    color: #8192a4;
    font-size: 11px;
}

.site-footer a {
color: #466a92;
    text-decoration: none;
}

.site-footer a:hover {
text-decoration: underline;
}

.site-footer-links,
.site-filing-links {
display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.site-footer > span:first-child {
order: 1;
}

.site-footer-links {
order: 3;
    margin-left: auto;
}

.site-visit-stats {
display: flex;
    order: 2;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px 18px;
    color: #8192a4;
    font-variant-numeric: tabular-nums;
}

.site-visit-item {
white-space: nowrap;
}

.site-visit-item b {
margin-right: 3px;
    color: #5e7690;
    font-weight: 750;
}

.site-filing-links {
order: 4;
    padding-left: 14px;
    border-left: 1px solid #dce6ef;
}

.site-filing-links:empty {
display: none;
}

.toast {
position: fixed;
    z-index: 80;
    bottom: 26px;
    left: 50%;
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 10px;
    color: #fff;
    background: rgba(25, 91, 172, 0.94);
    box-shadow: var(--shadow-md);
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
opacity: 1;
    transform: translate(-50%, 0);
}

.noscript {
width: min(calc(100% - 48px), var(--content));
    margin: 0 auto 24px;
    padding: 12px 14px;
    border: 1px solid #ead9b5;
    border-radius: 9px;
    color: #92651f;
    background: #fff8e9;
}

.directory {
width: min(calc(100% - 48px), var(--content));
    margin: 0 auto;
    padding: 28px 0 54px;
}

.directory-sidebar,
.directory-main {
min-width: 0;
}

.directory-intro {
position: relative;
    display: flex;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 28px 30px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border: 1px solid #d7e3ef;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 90% 20%, rgba(102, 165, 229, 0.16), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f5f9fd 100%);
    box-shadow: var(--shadow-md);
}

.directory-intro::after {
position: absolute;
    top: -70px;
    right: -40px;
    width: 230px;
    height: 230px;
    border: 34px solid rgba(119, 174, 229, 0.08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.directory-heading-copy {
position: relative;
    z-index: 1;
    max-width: 720px;
}

.directory-heading-copy h1 {
margin: 0;
    color: #182b3d;
    font-size: clamp(36px, 4vw, 50px);
    font-weight: 840;
    letter-spacing: -0.045em;
    line-height: 1.1;
}

.directory-heading-copy > p:last-child {
max-width: 660px;
    margin: 13px 0 0;
    color: #63788d;
    font-size: 14px;
    line-height: 1.8;
}

.directory-summary {
position: relative;
    z-index: 1;
    display: grid;
    min-width: 390px;
    overflow: hidden;
    grid-template-columns: repeat(3, minmax(108px, 1fr));
    border: 1px solid #d4e1ee;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-sm);
}

.directory-summary > div {
display: grid;
    min-width: 0;
    padding: 15px 12px;
    place-items: center;
    text-align: center;
}

.directory-summary > div + div {
border-left: 1px solid #e3ebf3;
}

.directory-summary strong {
color: var(--brand-deep);
    font-size: 23px;
    font-weight: 830;
}

.directory-summary span {
color: #788b9e;
    font-size: 10px;
    white-space: nowrap;
}

.directory-main-head {
display: flex;
    min-height: 0;
    margin: 28px 0 12px;
    padding: 0 2px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.directory-main-head h2 {
margin: 0;
    color: #1b2e40;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.directory-main-head > span {
color: #778a9d;
    font-size: 11px;
}

.toolbar {
display: grid;
    width: 100%;
    margin: 0 0 14px;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 12px;
}

.search-box {
display: flex;
    width: 100%;
    max-width: none;
    height: 50px;
    padding: 0 6px 0 15px;
    align-items: center;
    border: 1px solid #d6e2ed;
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.search-box:focus-within {
border-color: #9fc2e5;
    box-shadow: var(--shadow-sm), 0 0 0 3px rgba(45, 115, 205, 0.09);
}

.search-box svg {
width: 18px;
    flex: 0 0 auto;
    margin-right: 10px;
    fill: none;
    stroke: var(--brand);
    stroke-linecap: round;
    stroke-width: 1.8;
}

.search-box input {
width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    color: #26394c;
    background: transparent;
    font-size: 13px;
}

.search-submit {
min-width: 84px;
    min-height: 38px;
    margin-left: 8px;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--brand);
    font-size: 11px;
    font-weight: 720;
    cursor: pointer;
}

.search-submit:hover {
background: var(--brand-deep);
}

.filter-control {
position: relative;
}

.filter-trigger {
display: flex;
    width: 100%;
    height: 50px;
    min-width: 0;
    padding: 0 14px;
    align-items: center;
    gap: 7px;
    border: 1px solid #d6e2ed;
    border-radius: 13px;
    color: #4d657c;
    background: #fff;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.filter-trigger > svg:first-of-type {
width: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--brand);
    stroke-linecap: round;
    stroke-width: 1.8;
}

.filter-trigger > span {
color: #7a8c9e;
    font-size: 11px;
}

.filter-trigger strong {
overflow: hidden;
    color: #3f586f;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-caret {
width: 15px;
    margin-left: auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.filter-trigger:hover {
border-color: #b4cde5;
    background: #f9fcff;
}

.filter-trigger.has-filter {
border-color: #adc8e4;
    color: var(--brand-deep);
    background: var(--brand-pale);
}

.filter-panel {
position: absolute;
    z-index: 25;
    top: 60px;
    right: 0;
    width: min(390px, calc(100vw - 24px));
    padding: 14px;
    border: 1px solid #d3e0ed;
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.filter-panel-head {
display: flex;
    margin-bottom: 13px;
    padding-bottom: 11px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #e5edf4;
}

.filter-panel-head > div {
display: grid;
    gap: 2px;
}

.filter-panel-head strong {
color: var(--ink);
    font-size: 13px;
}

.filter-panel-head small {
color: var(--muted);
    font-size: 10px;
}

.filter-reset {
padding: 4px 0;
    border: 0;
    color: var(--brand-deep);
    background: transparent;
    font-size: 11px;
    cursor: pointer;
}

.filter-fieldset {
min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.filter-fieldset + .filter-fieldset {
margin-top: 14px;
}

.filter-fieldset legend {
margin-bottom: 7px;
    color: #718396;
    font-size: 10px;
    font-weight: 700;
}

.filter-options {
display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.filter-option {
min-height: 32px;
    padding: 0 11px;
    border: 1px solid #dce5ee;
    border-radius: var(--radius-sm);
    color: #586c80;
    background: #f7fafc;
    font-size: 11px;
    cursor: pointer;
}

.filter-option:hover {
border-color: #b9d0e8;
    color: var(--brand-deep);
    background: var(--brand-soft);
}

.filter-option.active {
border-color: var(--brand);
    color: #fff;
    background: var(--brand);
}

.filter-done {
width: 100%;
    min-height: 38px;
    margin-top: 15px;
    border: 1px solid var(--brand);
    border-radius: var(--radius-sm);
    color: #fff;
    background: var(--brand);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.server-list-shell {
width: 100%;
    margin: 0;
    border: 0;
    background: transparent;
}

.server-list-head {
display: none;
}

.server-grid {
display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.server-card {
display: grid;
    min-width: 0;
    padding: 18px 19px;
    grid-template-columns: 76px minmax(0, 1fr) 112px;
    align-items: center;
    gap: 15px 19px;
    border: 1px solid #d9e3ed;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.server-card.status-online {
background: linear-gradient(100deg, #ffffff, #fbfeff);
}

.server-card.status-offline {
border-color: #dfe6ed;
    background: rgba(249, 251, 253, 0.95);
}

.server-card.status-unknown {
border-color: #eadfce;
    background: #fffdf9;
}

.server-card:hover {
border-color: #b9cee3;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.server-mark {
display: grid;
    width: 76px;
    height: 76px;
    overflow: hidden;
    place-items: center;
    border: 1px solid #d9e4ee;
    border-radius: 13px;
    background: #edf4fa;
}

.server-mark img {
width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-card-main {
display: grid;
    min-width: 0;
    gap: 8px;
}

.server-card-head {
display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.server-card-head .server-name,
.server-name {
min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #1a2d40;
    font-size: 18px;
    font-weight: 790;
    letter-spacing: -0.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-badge {
display: inline-flex;
    min-height: 22px;
    padding: 0 8px;
    flex: 0 0 auto;
    align-items: center;
    border-radius: 6px;
    color: #fff;
    background: var(--accent);
    font-size: 9px;
    font-weight: 750;
}

.featured-badge::before {
margin-right: 3px;
    content: "★";
}

.server-description {
min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #6d7f92;
    font-size: 12px;
    line-height: 1.55;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-card-meta {
display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.address-chip,
.player-chip,
.edition-chip,
.type-chip,
.version-chip {
display: inline-flex;
    min-height: 27px;
    padding: 0 9px;
    align-items: center;
    border: 0;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}

.address-chip {
gap: 5px;
    border: 1px solid #d9e3ed;
    color: #405970;
    background: #f5f8fb;
    cursor: pointer;
}

.address-chip svg {
width: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.address-chip code {
overflow: hidden;
    color: inherit;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    text-overflow: ellipsis;
}

.player-chip {
gap: 6px;
    border: 1px solid rgba(52, 125, 93, 0.18);
    color: #347d5d;
    background: #e1f4e9;
}

.player-chip::before {
width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #44b978;
    content: "";
}

.player-chip.is-offline {
border-color: rgba(161, 105, 85, 0.16);
    color: #a16955;
    background: #f7e9e3;
}

.player-chip.is-offline::before {
background: #c58b76;
}

.player-chip.is-unknown {
border-color: rgba(159, 119, 57, 0.18);
    color: #9f7739;
    background: #fbf0d8;
}

.player-chip.is-unknown::before {
background: #d9a64b;
}

.edition-chip {
color: #526f8e;
    background: #edf3fa;
}

.edition-chip[data-edition="bedrock"] {
color: #946039;
    background: #fff0e3;
}

.type-chip {
color: #9a6e30;
    background: #faead1;
}

.version-chip {
color: #70598a;
    background: #f2edf8;
}

.server-card-actions {
display: grid;
    width: 112px;
    gap: 7px;
}

.copy-ip-button,
.details-button {
display: inline-flex;
    min-height: 38px;
    padding: 0 11px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 680;
    text-decoration: none;
    cursor: pointer;
}

.copy-ip-button {
border: 1px solid var(--brand);
    color: #fff;
    background: var(--brand);
}

.copy-ip-button svg {
width: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.copy-ip-button:hover {
border-color: var(--brand-deep);
    background: var(--brand-deep);
}

.details-button {
border: 1px solid transparent;
    color: var(--brand-deep);
    background: var(--brand-pale);
}

.details-button svg {
width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    transition: transform 150ms ease;
}

.details-button:hover {
border-color: transparent;
    color: var(--brand-deep);
    background: #dcebfa;
}

.details-button:hover svg {
transform: translateX(2px);
}

.server-pagination {
display: flex;
    margin-top: 16px;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.server-pagination button {
min-height: 35px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: #526b82;
    background: #fff;
    font-size: 11px;
    cursor: pointer;
}

.server-pagination button:hover:not(:disabled) {
border-color: #b9cfe3;
    color: var(--brand-deep);
    background: var(--brand-soft);
}

.server-pagination button:disabled {
color: #9aa8b4;
    background: #f4f6f8;
    cursor: not-allowed;
}

.server-pagination span {
color: #718396;
    font-size: 11px;
}

.empty-state,
.error-state {
display: flex;
    width: 100%;
    min-height: 250px;
    padding: 42px 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-state {
flex-direction: column;
    color: var(--muted);
}

.empty-icon,
.error-icon {
display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    place-items: center;
    border: 1px solid #cfdeed;
    border-radius: 15px;
    color: var(--brand);
    background: var(--brand-pale);
    font-size: 24px;
}

.empty-icon svg {
width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.empty-icon[data-mode="search"] .empty-icon-server,
.empty-icon[data-mode="server"] .empty-icon-search {
display: none;
}

.empty-state h3,
.error-state h3 {
margin: 0 0 6px;
    color: var(--ink);
    font-size: 17px;
}

.empty-state p,
.error-state p {
max-width: 580px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.error-state {
gap: 16px;
    justify-content: center;
}

.error-icon {
margin: 0;
    border-color: #ead8b8;
    color: var(--warning);
    background: var(--warning-bg);
}

.error-state > div {
text-align: left;
}

.error-state button {
min-height: 34px;
    padding: 0 13px;
    border: 1px solid #d7c39e;
    border-radius: var(--radius-sm);
    color: var(--warning);
    background: #fff;
    cursor: pointer;
}

.skeleton-card {
display: grid;
    width: 100%;
    max-width: 100%;
    min-height: 112px;
    padding: 18px 19px;
    grid-template-columns: 76px minmax(0, 1fr) 112px;
    align-items: center;
    gap: 15px 19px;
    border: 1px solid #e2e9f0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
}

.skeleton {
display: block;
    border-radius: 8px;
    background: linear-gradient(90deg, #eef2f6 25%, #f7f9fb 50%, #eef2f6 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.25s infinite linear;
}

.skeleton-icon {
width: 76px;
    height: 76px;
    border-radius: 13px;
}

.skeleton-body {
display: grid;
    min-width: 0;
    gap: 12px;
}

.skeleton-title {
width: 42%;
    height: 18px;
}

.skeleton-line {
width: 72%;
    height: 12px;
}

.skeleton-cell {
width: 100%;
    min-width: 0;
    height: 38px;
}

.detail-topbar {
display: flex;
    min-height: 28px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 18px;
}

.detail-back-link {
display: inline-flex;
    margin: 0;
    color: #697d91;
    font-size: 11px;
    text-decoration: none;
}

.detail-back-link:hover {
color: var(--brand-deep);
}

.detail-top-actions {
display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: #9aabb9;
}

.detail-top-actions a {
color: #607b95;
    font-size: 10px;
    font-weight: 650;
    text-decoration: none;
}

.detail-top-actions a:hover {
color: var(--brand-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.detail-hero {
display: grid;
    padding: 30px 32px;
    grid-template-columns: 98px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    border: 1px solid #d5e2ee;
    border-radius: 20px;
    background:
        radial-gradient(circle at 91% 8%, rgba(98, 160, 224, 0.16), transparent 31%),
        linear-gradient(135deg, #ffffff 0%, #f5f9fd 100%);
    box-shadow: var(--shadow-md);
}

.detail-mark {
display: grid;
    width: 98px;
    height: 98px;
    overflow: hidden;
    place-items: center;
    border: 1px solid #d6e2ed;
    border-radius: 17px;
    background: #edf4fa;
}

.detail-mark img {
width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-title-kicker {
margin: 0 0 6px;
    color: var(--brand-deep);
    font-size: 9px;
    font-weight: 760;
    letter-spacing: 0.12em;
}

.detail-title h1 {
margin: 0;
    color: #172b3e;
    font-size: clamp(31px, 3.7vw, 46px);
    font-weight: 840;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.detail-labels {
display: flex;
    margin-top: 12px;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.detail-status,
.detail-featured,
.detail-type,
.detail-edition,
.detail-version {
display: inline-flex;
    min-height: 27px;
    padding: 0 9px;
    align-items: center;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 680;
}

.detail-status {
gap: 6px;
    color: #79847e;
    background: #f0f3f1;
}

.detail-status i {
width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a5afa9;
}

.detail-status.is-online {
color: #347d5d;
    background: #e1f4e9;
}

.detail-status.is-online i {
background: #44b978;
}

.detail-status.is-offline {
color: #a16955;
    background: #f7e9e3;
}

.detail-status.is-offline i {
background: #c58b76;
}

.detail-status.is-unknown {
color: #9f7739;
    background: #fbf0d8;
}

.detail-status.is-unknown i {
background: #d9a64b;
}

.detail-featured {
color: #9a5c28;
    background: #fff0df;
}

.detail-type {
color: #9a6e30;
    background: #faead1;
}

.detail-edition {
color: #526f8e;
    background: #edf3fa;
}

.detail-edition[data-edition="bedrock"] {
color: #946039;
    background: #fff0e3;
}

.detail-version {
color: #70598a;
    background: #f2edf8;
}

.detail-summary-strip {
position: relative;
    margin-top: 14px;
    padding: 15px 17px;
    border: 1px solid #d7e3ef;
    border-radius: 13px;
    background: #f8fbfe;
}

.detail-summary-head {
display: flex;
    margin-bottom: 7px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.detail-summary-label {
color: #2b4054;
    font-size: 11px;
    font-weight: 700;
}

.detail-summary-more {
padding: 0;
    border: 0;
    color: var(--brand-deep);
    background: transparent;
    font-size: 10px;
    cursor: pointer;
}

.detail-summary-strip-text {
display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #63788d;
    font-size: 12px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.detail-summary-tooltip {
display: none;
}

.detail-layout {
display: grid;
    margin-top: 16px;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 16px;
}

.detail-layout.has-empty-intro {
    align-items: stretch;
}

.detail-layout.has-empty-intro .detail-description-card {
    display: flex;
    flex-direction: column;
}

.detail-layout.has-empty-intro .detail-empty-intro,
.detail-layout.has-empty-intro .detail-facts {
    align-self: stretch;
}

.detail-layout.has-empty-intro .detail-empty-intro {
    flex: 1;
}

.detail-description-card,
.detail-facts {
border: 1px solid #d8e3ee;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.detail-description-card {
min-width: 0;
    padding: 26px;
}

.detail-description-card h2 {
margin: 0 0 18px;
    color: #2b4054;
    font-size: 20px;
    font-weight: 790;
}

.detail-intro-block + .detail-bilibili-block {
margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e5edf4;
}

.detail-inline-image {
display: block;
    max-width: 100%;
    height: auto;
    margin: 18px auto;
    border: 1px solid #d8e3ed;
    border-radius: 12px;
}

.detail-bilibili-video {
position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 56.25%;
    border: 1px solid #d7e2ed;
    border-radius: 13px;
    background: #eef3f7;
}

.detail-bilibili-video iframe {
position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.detail-empty-intro,
.detail-description-card.is-empty {
min-height: 260px;
}

.detail-empty-intro {
display: grid;
    place-content: center;
    gap: 10px;
    padding: 28px;
    text-align: center;
}

.detail-empty-intro strong {
color: #425a70;
    font-size: 18px;
    font-weight: 760;
    line-height: 1.45;
}

.detail-empty-intro span {
color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.detail-facts {
display: grid;
    align-self: start;
    overflow: hidden;
    padding: 10px 18px;
}

.detail-fact {
display: grid;
    padding: 14px 0;
    gap: 5px;
    border-bottom: 1px solid #e7edf3;
}

.detail-fact:last-child {
border-bottom: 0;
}

.detail-fact > span {
color: #7a8da0;
    font-size: 11px;
}

.detail-fact > strong {
color: #263d52;
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.detail-address-value {
display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    color: #263d52;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.detail-address-value code {
display: block;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.detail-address-value:hover code {
color: var(--brand-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.detail-progress {
display: block;
    width: 100%;
    height: 5px;
    margin-top: 2px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7edf2;
}

.detail-progress b {
display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #55b987;
}

.detail-summary-dialog {
width: min(calc(100% - 28px), 620px);
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: transparent;
}

.detail-summary-dialog::backdrop {
background: rgba(25, 43, 62, 0.42);
    backdrop-filter: blur(3px);
}

.detail-summary-dialog-card {
padding: 22px;
    border: 1px solid #d7e2ed;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.detail-summary-dialog-card > span {
color: var(--brand-deep);
    font-size: 11px;
    font-weight: 700;
}

.detail-summary-dialog-card > p {
margin: 12px 0 18px;
    color: #52687e;
    line-height: 1.8;
}

.detail-summary-dialog-card > button {
min-height: 34px;
    padding: 0 13px;
    border: 1px solid #d0dce8;
    border-radius: var(--radius-sm);
    background: #f8fbfd;
    cursor: pointer;
}

.legal-main {
width: min(calc(100% - 48px), 1040px);
    margin: 0 auto;
    padding: 48px 0 68px;
}

.legal-heading {
width: 100%;
    margin: 0;
    padding: 8px 4px 26px;
    border-bottom: 1px solid #d7e2ed;
}

.legal-heading h1 {
margin: 0;
    color: #172d42;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 840;
    letter-spacing: -0.04em;
}

.legal-heading > p {
max-width: 720px;
    margin: 12px 0 0;
    color: #6b8094;
    font-size: 13px;
    line-height: 1.8;
}

.legal-tabs {
display: flex;
    margin-top: 20px;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 7px;
}

.legal-tabs a {
display: inline-flex;
    min-height: 35px;
    padding: 0 12px;
    align-items: center;
    border: 1px solid #d5e2ee;
    border-radius: 8px;
    color: #536a80;
    background: #f8fbfe;
    font-size: 11px;
    text-decoration: none;
}

.legal-tabs a.active {
border-color: var(--brand);
    color: #fff;
    background: var(--brand);
}

.legal-card {
width: 100%;
margin-top: 20px;
    margin-right: 0;
    margin-left: 0;
    padding: 34px 38px;
    border: 1px solid #d8e3ed;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
}

.legal-updated {
margin: 0 0 24px;
    color: var(--muted);
    font-size: 10px;
}

.legal-card section + section {
margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e2eaf2;
}

.legal-card h2 {
margin: 0 0 11px;
    color: #243a4e;
    font-size: 18px;
}

.legal-card p,
.legal-card li {
color: #53697e;
    font-size: 13px;
    line-height: 1.9;
}

.legal-card ul {
padding-left: 21px;
}

.legal-footer-links {
display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.static-404-page,
.friendly-error-page {
min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 10%, rgba(115, 173, 232, 0.2), transparent 28%),
        radial-gradient(circle at 92% 88%, rgba(173, 210, 238, 0.26), transparent 28%),
        linear-gradient(180deg, #f8fbfe 0%, #edf5fb 100%);
}

.not-found-header,
.not-found-main,
.not-found-footer {
width: min(calc(100% - 48px), 1180px);
    margin-right: auto;
    margin-left: auto;
}

.not-found-header {
display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.not-found-brand {
display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
}

.not-found-brand-mark {
display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    padding: 6px;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    overflow: hidden;
    border: 1px solid #c7d9ed;
    border-radius: 12px;
    background: linear-gradient(145deg, #edf5ff, #dfeefc);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.not-found-brand-mark i {
border-radius: 3px;
    background: var(--brand);
}

.not-found-brand-mark i:nth-child(2) {
background: #65a2e5;
}

.not-found-brand-mark i:nth-child(3) {
background: #86b8ea;
}

.not-found-brand-mark i:nth-child(4) {
background: #b9d7f3;
}

.not-found-brand-mark:has(img) {
padding: 0;
}

.not-found-brand-mark img {
width: 100%;
    height: 100%;
    grid-column: 1 / -1;
    object-fit: cover;
}

.not-found-brand-copy {
display: grid;
    min-width: 0;
    gap: 1px;
}

.not-found-brand-copy strong {
overflow: hidden;
    color: #20374c;
    font-size: 16px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.not-found-brand-copy small {
color: #8a9bad;
    font-size: 8px;
    font-weight: 650;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.not-found-nav {
display: flex;
    align-items: center;
    gap: 4px;
}

.not-found-nav a {
display: inline-flex;
    min-height: 36px;
    padding: 0 11px;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #667b8f;
    font-size: 10px;
    font-weight: 650;
    text-decoration: none;
}

.not-found-nav a:hover {
border-color: #d4e2ee;
    color: var(--brand-deep);
    background: rgba(255, 255, 255, 0.72);
}

.not-found-nav .not-found-back {
margin-left: 4px;
    border-color: #c9dae9;
    color: #385f85;
    background: rgba(255, 255, 255, 0.82);
}

.not-found-main {
padding: 22px 0 44px;
}

.not-found-shell {
display: grid;
    min-height: 560px;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
    border: 1px solid #d5e2ee;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(31, 69, 105, 0.1);
}

.not-found-copy {
display: flex;
    min-width: 0;
    padding: clamp(38px, 5.2vw, 70px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.not-found-eyebrow {
display: inline-flex;
    min-height: 27px;
    padding: 0 10px;
    align-items: center;
    gap: 7px;
    border: 1px solid #d2e3f3;
    border-radius: 999px;
    color: var(--brand-deep);
    background: #f1f7fd;
    font-size: 9px;
    font-weight: 760;
    letter-spacing: 0.08em;
}

.not-found-eyebrow i {
width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.not-found-copy h1 {
max-width: 560px;
    margin: 20px 0 14px;
    color: #182d40;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 840;
    letter-spacing: -0.055em;
    line-height: 1.13;
}

.not-found-copy h1 strong {
color: var(--brand);
    font-weight: inherit;
}

.not-found-copy > p {
max-width: 520px;
    margin: 0;
    color: #657b90;
    font-size: 13px;
    line-height: 1.85;
}

.not-found-search {
display: flex;
    width: min(100%, 500px);
    height: 54px;
    margin-top: 27px;
    padding: 5px 5px 5px 15px;
    align-items: center;
    gap: 10px;
    border: 1px solid #cfdde9;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(38, 74, 106, 0.07);
}

.not-found-search:focus-within {
border-color: #9fc1e2;
    box-shadow: 0 8px 24px rgba(38, 74, 106, 0.07), 0 0 0 3px rgba(45, 115, 205, 0.09);
}

.not-found-search svg {
width: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: #6f8aa3;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.not-found-search input {
width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #263d52;
    background: transparent;
    font-size: 12px;
}

.not-found-search button {
min-width: 76px;
    min-height: 42px;
    padding: 0 15px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--brand);
    font-size: 11px;
    font-weight: 720;
    cursor: pointer;
}

.not-found-search button:hover {
background: var(--brand-deep);
}

.not-found-shortcuts {
display: flex;
    margin-top: 15px;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 13px;
    color: #8999a9;
    font-size: 9px;
}

.not-found-shortcuts a {
color: #52769b;
    font-weight: 650;
    text-decoration: none;
}

.not-found-shortcuts a:hover {
color: var(--brand-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.not-found-visual {
position: relative;
    min-height: 560px;
    overflow: hidden;
    background:
        linear-gradient(180deg, #dcedfb 0%, #cce6f8 72%, #c4e3d8 72%, #d9f0e6 100%);
}

.not-found-visual::before {
position: absolute;
    right: -60px;
    bottom: 18%;
    width: 250px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    content: "";
}

.not-found-grid {
position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
}

.not-found-cloud {
position: absolute;
    height: 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.76);
}

.not-found-cloud::before,
.not-found-cloud::after {
position: absolute;
    bottom: 0;
    border-radius: 3px;
    background: inherit;
    content: "";
}

.not-found-cloud::before {
left: 12px;
    width: 24px;
    height: 23px;
}

.not-found-cloud::after {
right: 13px;
    width: 33px;
    height: 17px;
}

.cloud-one {
top: 72px;
    left: 42px;
    width: 92px;
}

.cloud-two {
top: 138px;
    right: 32px;
    width: 72px;
    opacity: 0.72;
}

.not-found-code {
position: absolute;
    top: 45%;
    left: 50%;
    color: rgba(255, 255, 255, 0.68);
    font-size: clamp(126px, 14vw, 190px);
    font-weight: 900;
    letter-spacing: -0.09em;
    line-height: 0.8;
    text-shadow: 0 14px 38px rgba(48, 107, 157, 0.12);
    transform: translate(-50%, -50%);
}

.not-found-cube {
position: absolute;
    bottom: 105px;
    left: 50%;
    width: 156px;
    height: 132px;
    filter: drop-shadow(0 18px 20px rgba(52, 104, 80, 0.16));
    transform: translateX(-50%);
}

.not-found-cube i {
position: absolute;
    display: block;
}

.not-found-cube .cube-top {
top: 0;
    left: 0;
    width: 156px;
    height: 76px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 55%),
        #79bd7c;
    clip-path: polygon(50% 0, 100% 34%, 50% 68%, 0 34%);
}

.not-found-cube .cube-left {
top: 49px;
    left: 0;
    width: 78px;
    height: 84px;
    background: #a87048;
    clip-path: polygon(0 0, 100% 42%, 100% 100%, 0 58%);
}

.not-found-cube .cube-right {
top: 49px;
    right: 0;
    width: 78px;
    height: 84px;
    background: #8d5a39;
    clip-path: polygon(0 42%, 100% 0, 100% 58%, 0 100%);
}

.not-found-badge {
position: absolute;
    right: 20px;
    bottom: 20px;
    display: inline-flex;
    min-height: 31px;
    padding: 0 10px;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 9px;
    color: #4c718c;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 5px 16px rgba(45, 92, 126, 0.07);
    font-size: 9px;
    font-weight: 650;
    backdrop-filter: blur(8px);
}

.not-found-badge i {
width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e49a61;
}

.not-found-footer {
display: flex;
    padding: 22px 0 30px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    border-top: 1px solid rgba(205, 219, 232, 0.8);
    color: #7c8fa1;
    font-size: 10px;
}

.not-found-footer-links,
.not-found-filing-links {
display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.not-found-filing-links {
flex-basis: 100%;
}

.not-found-filing-links:empty {
display: none;
}

.not-found-footer a {
color: #4c6e90;
    text-decoration: none;
}

.not-found-footer a:hover {
text-decoration: underline;
    text-underline-offset: 3px;
}

.detail-address-fact {
background: transparent;
}

.players .detail-progress {
margin-top: 4px;
}

.legal-footer {
width: min(calc(100% - 48px), var(--content));
}

@media (max-width: 1180px) {
.not-found-shell {
grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
}

.directory-intro {
align-items: stretch;
        flex-direction: column;
        gap: 22px;
}

.directory-summary {
width: 100%;
        min-width: 0;
}

.server-card {
grid-template-columns: 70px minmax(0, 1fr) 106px;
        padding: 16px;
}

.server-mark {
width: 70px;
        height: 70px;
}
}

@media (max-width: 900px) {
.not-found-shell {
grid-template-columns: 1fr;
}

.not-found-visual {
min-height: 300px;
}

.not-found-code {
top: 48%;
    font-size: 128px;
}

.not-found-cube {
bottom: 52px;
    transform: translateX(-50%) scale(0.78);
    transform-origin: bottom center;
}

.detail-layout {
grid-template-columns: 1fr;
}

.detail-facts {
width: 100%;
}
}

@media (max-width: 760px) {
.not-found-header,
.not-found-main,
.not-found-footer {
width: calc(100% - 24px);
}

.not-found-header {
min-height: 72px;
}

.not-found-nav a:not(.not-found-back) {
display: none;
}

.not-found-main {
padding: 12px 0 30px;
}

.not-found-shell {
border-radius: 20px;
}

.not-found-copy {
padding: 34px 26px;
}

.not-found-copy h1 {
margin-top: 17px;
    font-size: 42px;
}

.not-found-footer {
align-items: flex-start;
        flex-direction: column;
}

.not-found-footer-links,
.not-found-filing-links {
justify-content: flex-start;
}

.site-header {
min-height: 64px;
        padding: 0 16px;
}

.header-actions {
display: none;
}

.site-mobile-toggle {
display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid #d4e1ec;
    border-radius: 9px;
    color: #45627d;
    background: rgba(255, 255, 255, 0.78);
    cursor: pointer;
}

.site-mobile-toggle svg {
width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.site-mobile-panel:not([hidden]) {
position: fixed;
    z-index: 45;
    top: 64px;
    right: 0;
    left: 0;
    display: grid;
    max-height: calc(100dvh - 64px);
    padding: 10px 12px 14px;
    overflow-y: auto;
    border-bottom: 1px solid #d8e3ed;
    background: #fbfdff;
    box-shadow: 0 18px 38px rgba(32, 57, 81, 0.15);
}

.site-nav-backdrop:not([hidden]) {
display: block;
}

.skeleton-cell {
display: none;
}

.brand {
flex: 1;
}

.brand-mark {
width: 38px;
        height: 38px;
}

.brand-copy strong {
font-size: 15px;
}

.header-actions {
        flex: 0 0 auto;
        margin-left: 0;
}

.directory,
.site-footer,
.site-notice,
.legal-main {
width: calc(100% - 24px);
}

.directory {
padding-top: 16px;
}

.directory-intro {
padding: 22px 18px;
        border-radius: 15px;
}

.directory-heading-copy h1,
.legal-heading h1 {
font-size: 34px;
}

.directory-heading-copy > p:last-child {
font-size: 13px;
}

.directory-summary strong {
font-size: 19px;
}

.directory-summary {
grid-template-columns: repeat(3, minmax(0, 1fr));
}

.directory-main-head {
margin-top: 22px;
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
}

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

.filter-panel {
position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
}

.server-card,
.server-card.status-online,
.server-card.status-offline,
.server-card.status-unknown {
grid-template-columns: 62px minmax(0, 1fr);
        padding: 14px;
}

.server-mark,
.skeleton-icon {
width: 62px;
        height: 62px;
}

.server-card-actions {
width: 100%;
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
}

.copy-ip-button,
.details-button {
width: 100%;
        white-space: nowrap;
}

.skeleton-card {
grid-template-columns: 62px minmax(0, 1fr);
}

.detail-hero {
padding: 22px;
        grid-template-columns: 1fr;
        gap: 18px;
}

.detail-mark {
width: 74px;
        height: 74px;
}

.detail-title h1 {
font-size: 32px;
}

.detail-description-card {
padding: 20px;
}

.legal-main {
padding-top: 26px;
}

    .legal-tabs {
        margin-top: 20px;
        justify-content: flex-start;
    }

.legal-card {
padding: 24px 20px;
}

}

@media (max-width: 520px) {
.not-found-brand {
gap: 8px;
}

.not-found-brand-mark {
width: 36px;
    height: 36px;
}

.not-found-brand-copy small {
display: none;
}

.not-found-nav .not-found-back {
padding-right: 9px;
    padding-left: 9px;
}

.not-found-copy {
padding: 30px 22px;
}

.not-found-copy h1 {
font-size: 34px;
}

.not-found-search {
height: 51px;
    margin-top: 22px;
    padding-left: 12px;
    gap: 8px;
}

.not-found-search button {
min-width: 66px;
    min-height: 39px;
    padding: 0 11px;
}

.not-found-shortcuts {
gap: 6px 10px;
}

.not-found-visual {
min-height: 250px;
}

.not-found-code {
font-size: 108px;
}

.not-found-cube {
bottom: 44px;
    transform: translateX(-50%) scale(0.66);
}

.not-found-badge {
right: 12px;
    bottom: 12px;
}

.account-link {
max-width: 112px;
}

.site-footer {
display: flex;
align-items: flex-start;
        flex-direction: column;
}

.site-footer > span:first-child,
.site-visit-stats,
.site-footer-links,
.site-filing-links {
order: initial;
}

.site-footer-links,
.site-filing-links {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
}

.site-visit-stats {
align-items: flex-start;
        flex-direction: column;
        gap: 4px;
}

.site-footer-links,
.site-filing-links {
justify-content: flex-start;
}

.directory-heading-copy h1,
.legal-heading h1 {
font-size: 30px;
}

.directory-summary > div {
padding: 11px 5px;
}

.directory-summary span {
font-size: 11px;
}

.server-card-head .server-name {
font-size: 16px;
}

.server-card-meta {
align-items: flex-start;
}

.detail-summary-strip {
padding: 13px 14px;
}
}

/* Frontend normal-size typography. */
.brand-copy strong {
    font-size: 18px;
}

.brand-copy small,
.detail-title-kicker,
.not-found-brand-copy small {
    font-size: 11px;
}

.account-link,
.site-nav a,
.site-notice-label,
.site-notice p,
.directory-main-head > span {
    font-size: 14px;
}

.directory-heading-copy > p:last-child,
.server-description,
.detail-summary-strip-text,
.not-found-copy > p {
    font-size: 15px;
}

.search-box input,
.error-page-search input,
.not-found-search input {
    font-size: 14px;
}

.search-submit,
.filter-trigger,
.filter-trigger > span,
.filter-trigger strong,
.filter-reset,
.filter-fieldset legend,
.filter-option,
.empty-state p,
.error-state p {
    font-size: 13px;
}

.player-chip,
.edition-chip,
.type-chip,
.version-chip,
.featured-badge,
.detail-featured,
.detail-status,
.detail-type,
.detail-edition,
.detail-version,
.not-found-nav a,
.not-found-eyebrow,
.not-found-shortcuts {
    font-size: 13px;
}

.address-chip code,
.detail-summary-label,
.detail-summary-more,
.detail-fact > span,
.site-footer,
.not-found-badge,
.not-found-footer {
    font-size: 13px;
}

.copy-ip-button,
.details-button,
.not-found-search button,
.not-found-copy .not-found-search input {
    font-size: 14px;
}

.detail-fact > strong,
.detail-address-value code {
    font-size: 17px;
}

.legal-tabs a {
    font-size: 13px;
}

.legal-card p,
.legal-card li {
    font-size: 15px;
}

.directory-summary span {
    font-size: 12px;
}

@media (max-width: 760px) {
    .player-chip,
    .edition-chip,
    .type-chip,
    .version-chip,
    .featured-badge,
    .detail-featured,
    .detail-status,
    .detail-type,
    .detail-edition,
    .detail-version {
        font-size: 12px;
    }

    .copy-ip-button,
    .details-button,
    .not-found-nav a,
    .not-found-shortcuts {
        font-size: 13px;
    }
}
