
/* NEXUS 1.4 - plugin library, server directory and player dashboard. */
@media(min-width:1200px){.desktop-nav{gap:14px}.nav-container{gap:20px}.desktop-nav>a,.nav-more summary{font-size:12px}}
.directory-heading{max-width:1280px}.directory-heading h1{font-size:48px}.directory-heading>.button{margin-top:12px}
.server-list{display:grid;gap:18px}.server-list-card{position:relative;isolation:isolate;padding:25px!important;overflow:hidden}
.directory-card-heading{display:flex;align-items:center;gap:15px}.directory-card-heading h2{font-size:22px;margin:0 0 6px}.directory-server-icon{display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;background:#edf5ee;border-radius:10px;overflow:hidden;color:#078577}.directory-server-icon img{width:100%;height:100%;image-rendering:pixelated}.directory-server-icon>.icon{width:30px;height:30px}.directory-player-count{margin-left:auto;font-size:25px;white-space:nowrap;text-align:right}.directory-player-count small{display:block;font-size:10px;font-weight:400;color:#72857a}.directory-state{font-size:11px;color:#7c887f}.state-online{color:#087854}.state-offline{color:#a05748}.server-motd{margin:18px 0;font-size:13px;line-height:1.8;overflow-wrap:anywhere;white-space:normal;min-height:24px}
.directory-card-footer{display:flex;align-items:center;gap:10px;border-top:1px solid #e5e9df;margin-top:18px;padding-top:15px}.directory-card-footer code{font-size:12px;overflow-wrap:anywhere;min-width:0}.directory-card-footer .text-link{margin-left:auto;white-space:nowrap}.directory-checked{display:block;margin-top:8px;font-size:9px;color:#718173}
.promoted-section{margin-bottom:36px}.promoted-section>.section-heading{margin-bottom:12px}.promoted-section h2{font-size:24px}.promotion-label{display:inline-flex;align-items:center;width:max-content;padding:5px 9px;border-radius:5px;background:#fff0bc;color:#835710;font-size:10px;font-weight:700}.server-list-card>.promotion-label{margin-bottom:16px}
.server-list-card.is-promoted{--nx-frame:linear-gradient(125deg,#ab781c,#f3d580 35%,#c89830 64%,#f5df98);--nx-surface:linear-gradient(135deg,#fffdf5,#fff 60%,#fff9e7);border-width:2px!important;box-shadow:0 7px 25px #b8871914}
.gold-particles{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden;border-radius:inherit}.gold-particles:before,.gold-particles:after{content:"";position:absolute;width:4px;height:4px;background:#d7ae45;right:25px;top:22px;box-shadow:-28px 45px #d7ae4580,-85px -5px #efcf6f,-160px 90px #e9c05866,-12px 150px #b8943255,-320px 25px #eed18b;animation:gold-drift 6s ease-in-out infinite}.gold-particles:after{top:auto;bottom:25px;left:32px;animation-delay:-3s;opacity:.6}
@keyframes gold-drift{0%,100%{transform:translateY(0) rotate(0);opacity:.4}50%{transform:translateY(-9px) rotate(90deg);opacity:.95}}
.directory-detail,.player-dashboard{padding-bottom:70px}.directory-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:25px}.directory-detail-grid>div{display:grid;gap:24px}.directory-detail-grid>aside{align-self:start}.directory-address{display:block;overflow-wrap:anywhere;margin:22px 0}.directory-detail-grid>aside>.button{margin-bottom:24px}
.dashboard-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:25px;align-items:start}.dashboard-layout>div,.dashboard-layout>aside{display:grid;gap:25px}.dashboard-layout .panel{padding:28px}.dashboard-layout h2{font-size:25px}.owned-server{display:flex;align-items:center;gap:20px;padding:22px 0;border-bottom:1px solid #e3ebe5}.owned-server:last-child{border:0;padding-bottom:0}.owned-server h3{font-size:18px;margin-bottom:8px}.owned-server code{font-size:11px;overflow-wrap:anywhere}.owned-server p{margin:8px 0}.owned-actions{margin-left:auto;display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:flex-end;max-width:280px}.owned-actions form{margin:0}.owned-actions .button{font-size:11px;padding:10px 13px}.button-promote{color:#735010;background:#fff1c4;border:1px solid #d9ba67}.owned-actions .text-link{font-size:11px}
.server-submit-form fieldset{padding:0;border:0;min-width:0;margin:0}.server-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}.server-form-grid label{display:grid;gap:8px;min-width:0;font-size:12px;font-weight:600}.server-form-grid .wide{grid-column:1/-1}.server-form-grid input,.server-form-grid select,.server-form-grid textarea{width:100%;min-width:0;border:1px solid #bfd2c6;background:#fff;border-radius:7px;padding:12px;font:inherit;font-weight:400}.server-form-grid textarea{resize:vertical}.server-submit-form fieldset>p{margin-top:20px}.server-submit-form fieldset:disabled{opacity:.75}.promotion-info{--nx-frame:linear-gradient(125deg,#c09938,#eddbac,#af8222);--nx-surface:linear-gradient(140deg,#fffdf7,#fff)}.promotion-info p,.promotion-info ol{font-size:12px;line-height:1.85}.promotion-info ol{padding-left:18px}.promotion-info li{margin-bottom:10px}.promotion-duration{display:block;color:#996f21;margin:15px 0;font-size:14px;font-weight:600}.promotion-request{padding:15px 0;border-bottom:1px solid #e5ebe6}.promotion-request strong{font-size:12px}.promotion-request p{font-size:11px;margin:7px 0 0}
#server-form{scroll-margin-top:110px}
@media(max-width:1199px) and (min-width:961px){.desktop-nav{gap:10px}.desktop-nav>a,.nav-more summary{font-size:11px}.nav-container{gap:13px}.button-account{padding-inline:10px}}
@media(max-width:850px){.directory-detail-grid,.dashboard-layout{grid-template-columns:1fr}.dashboard-layout>aside{grid-row:2}.directory-heading h1{font-size:39px}}
@media(max-width:600px){.directory-heading h1{font-size:34px}.server-list-card{padding:20px!important}.directory-card-heading{gap:10px;flex-wrap:wrap}.directory-card-heading h2{font-size:19px}.directory-server-icon{width:45px;height:45px;flex-basis:45px}.directory-player-count{font-size:21px}.directory-card-footer{flex-wrap:wrap}.directory-card-footer .text-link{width:100%;margin:3px 0 0}.server-motd{font-size:12px}.promoted-section>.section-heading>.promotion-label{display:none}.dashboard-layout .panel{padding:22px}.owned-server{display:block}.owned-actions{margin:12px 0 0;max-width:none;justify-content:flex-start}.server-form-grid{grid-template-columns:1fr}.server-form-grid input,.server-form-grid select,.server-form-grid textarea{font-size:16px}.server-submit-form .button{font-size:11px}.directory-detail-grid>aside .button{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){.gold-particles:before,.gold-particles:after{animation:none;opacity:.5}}
.nav-resources summary.is-current{color:#078577}.nav-resources>div a[aria-current=page]{background:#edf6f0;color:#078577}.mobile-resources summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;padding:14px 0;border-bottom:1px solid #e2e9e4;font-weight:600}.mobile-resources>div{padding:0 0 8px 20px}.mobile-resources:not([open])>div{display:none}.mobile-resources[open]>summary .icon{transform:rotate(180deg)}.mobile-nav{max-height:calc(100dvh - 80px);overflow-y:auto}
/* Multiplayer-inspired MOTD and premium spotlight. */
.server-motd{background:#121b20;border:1px solid #2c4145;border-radius:9px;padding:18px 20px;color:#eef5f0;font-family:Consolas,'Courier New',monospace;font-size:14px;line-height:1.7;text-shadow:1px 2px #000;min-height:80px;overflow-wrap:anywhere;white-space:pre-wrap}
.directory-card-heading>div{min-width:0}.directory-card-heading h2{overflow-wrap:anywhere}.directory-server-icon{width:64px;height:64px;flex-basis:64px}.directory-card-heading .directory-state:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;margin-right:6px}
.promotion-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.promotion-banner-note{font-size:9px;letter-spacing:2px;color:#d8c88b}
.server-list-card.is-promoted{--nx-frame:linear-gradient(115deg,#987036,#ffeab0 22%,#b98524 42%,#ffdf7b 65%,#fff3c9 84%,#b5822e);--nx-surface:linear-gradient(115deg,#132d29,#112021 55%,#252719);color:#f4f4db;box-shadow:0 0 0 3px #d7b25e22,0 14px 40px #5b521a26,0 0 28px #ddba4a18;padding:28px!important}
.server-list-card.is-promoted h2 a{color:#fff7d9;font-size:26px;text-shadow:0 0 24px #f6d46933}.server-list-card.is-promoted .directory-server-icon{box-shadow:0 0 0 2px #f2cc744d,0 0 24px #c8a35438;background:#223b31;color:#ebd28f;border-radius:10px}.server-list-card.is-promoted .promotion-label{background:linear-gradient(110deg,#f7da8d,#ffefbb,#deb14d);color:#51380f;border:1px solid #ffe9a3;letter-spacing:1.3px;box-shadow:0 2px 20px #d4a53326;padding:7px 11px}
.server-list-card.is-promoted .directory-player-count{color:#f7de9a;font-size:30px}.server-list-card.is-promoted .directory-player-count small,.server-list-card.is-promoted .directory-checked{color:#b8c4ac}.server-list-card.is-promoted .directory-state{color:#b6bbae}.server-list-card.is-promoted .state-online{color:#85efb0}.server-list-card.is-promoted .state-offline{color:#ffb993}
.server-list-card.is-promoted .server-motd{background:#071414b3;border-color:#c8a35445;box-shadow:inset 0 0 25px #0003;font-size:15px;padding:20px}.server-list-card.is-promoted .tag{background:#ffffff0d;border:1px solid #d4bd7930;color:#e9e6ce}.server-list-card.is-promoted .directory-card-footer{border-color:#dfc16a30}.server-list-card.is-promoted .directory-card-footer code{color:#e9dcaf}.server-list-card.is-promoted .icon-button{color:#f5d884;background:#ffffff0a}.server-list-card.is-promoted .directory-card-footer .text-link{background:linear-gradient(120deg,#f9dfa0,#e5ba61);color:#3b3119;padding:10px 14px;border-radius:6px;font-weight:700}
.server-list-card.is-promoted:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(110deg,transparent 30%,#fff5cd0e 48%,transparent 65%);background-size:260% 100%;animation:premium-sheen 9s ease-in-out infinite}
.server-list-card.is-promoted .gold-particles{opacity:.9;background:radial-gradient(ellipse at 100% 0,#e5b24b25,transparent 52%)}.server-list-card.is-promoted .gold-particles:before,.server-list-card.is-promoted .gold-particles:after{width:5px;height:5px;background:#ffe2a0;box-shadow:-28px 45px #e4c06690,-85px 5px #f7dd99,-160px 90px #ebbd6666,-12px 150px #b8943288,-320px 25px #eed18baa,-420px 180px #e6c36b77,-190px 240px #ead18088;animation:gold-drift 7s ease-in-out infinite}.server-list-card.is-promoted .gold-particles:after{animation-delay:-3s}
@keyframes premium-sheen{0%,20%{background-position:150% 0}80%,100%{background-position:-100% 0}}
@media(max-width:600px){.server-list-card.is-promoted{padding:20px!important}.promotion-banner-note{display:none}.server-list-card.is-promoted h2 a{font-size:21px}.server-list-card.is-promoted .directory-player-count{font-size:23px}.server-motd,.server-list-card.is-promoted .server-motd{font-size:12px;padding:14px}.server-list-card.is-promoted .directory-card-footer .text-link{width:auto;margin-top:5px}.directory-server-icon{width:52px;height:52px;flex-basis:52px}}
@media(prefers-reduced-motion:reduce){.server-list-card.is-promoted:after,.server-list-card.is-promoted .gold-particles:before,.server-list-card.is-promoted .gold-particles:after{animation:none}}

.server-vote{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;padding:8px 10px;border:1px solid #d99eb5;border-radius:8px;color:#a33165;font-size:13px;font-weight:700;background:#fff3f8}.server-vote .icon{width:18px;height:18px}.server-vote:hover,.server-vote.has-voted{background:#fce1ed;color:#aa235a}.server-vote.has-voted .icon{fill:currentColor}.server-vote[aria-disabled=true]{opacity:.6;pointer-events:none}.is-promoted .server-vote{background:#4a293533;border-color:#cb8eac88;color:#ffb1d1}
.server-ranking{margin-top:28px;padding-top:23px;border-top:1px solid #c2d4c8}.server-ranking h2{font-size:19px;line-height:1.25;margin:9px 0}.server-ranking p{font-size:11px;color:#718173}.server-ranking .section-kicker{font-size:8px}.server-ranking ol{padding-left:20px;font-size:12px}.server-ranking li{padding:10px 0;border-bottom:1px solid #e0e8e2}.server-ranking li a{overflow-wrap:anywhere}.server-ranking li>span{display:block;color:#a33165;font-size:10px;margin-top:5px}.server-ranking li::marker{color:#819480;font-weight:700}
.server-share{padding:30px;margin-top:28px;scroll-margin-top:100px}.server-share>p{max-width:780px;font-size:13px;line-height:1.8}.server-share>h2{margin-top:35px}.server-share-banner{display:block;max-width:960px;width:100%;height:auto;margin:22px 0}.share-actions{display:flex;flex-wrap:wrap;gap:10px}.banner-code-label{display:block;font-size:12px;margin-top:20px}.banner-code{display:block;width:100%;margin-top:8px;padding:14px;border:1px solid #c5d6cd;border-radius:8px;background:#f6faf7;font:11px/1.6 Consolas,monospace;resize:vertical;overflow-wrap:anywhere}.server-share form{margin-top:15px}.server-share button:disabled{opacity:.6;cursor:default}
@media(max-width:600px){.server-share{padding:20px}.server-vote{padding:7px 8px}.directory-card-footer code{flex:1 1 180px}.share-actions .button{font-size:11px}.banner-code{font-size:12px}.server-share .section-heading h2{font-size:23px}}
.server-leaderboard{margin-bottom:30px}.server-leaderboard .server-ranking{margin:0;padding:22px 25px}.server-leaderboard .server-ranking ol{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;list-style:none;padding:0;margin:18px 0 0;counter-reset:rank}.server-leaderboard .server-ranking li{counter-increment:rank;border:1px solid #dfe9e2;border-radius:8px;padding:12px;background:#f5f9f6;font-size:12px}.server-leaderboard .server-ranking li:before{content:'#' counter(rank);display:block;color:#698a78;font-size:10px;font-weight:700;margin-bottom:8px}.server-leaderboard .server-ranking li>span{font-size:12px;margin-top:9px}.server-leaderboard .server-ranking p{margin:7px 0 0}.server-leaderboard .server-ranking h2{margin-bottom:0}.server-leaderboard .server-ranking .section-kicker{font-size:9px}@media(max-width:700px){.server-leaderboard .server-ranking ol{grid-template-columns:repeat(2,minmax(0,1fr))}.server-leaderboard .server-ranking{padding:20px}}
@media(max-width:700px){.server-leaderboard .server-ranking ol{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:7px}.server-leaderboard .server-ranking li{flex:0 0 135px;scroll-snap-align:start}}
/* Compact directory cards: logo beside the MOTD, with a stable vote ranking. */
.server-list-card .directory-card-heading{display:grid;grid-template-columns:64px minmax(0,1fr) auto;column-gap:14px;row-gap:8px;align-items:center}
.directory-card-heading>.directory-server-icon{grid-column:1;grid-row:1 / 3;align-self:center}
.directory-card-heading>.server-card-identity{grid-column:2;grid-row:1;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.directory-card-heading>.server-card-identity h2{font-size:20px;margin:0}
.directory-card-heading>.directory-player-count{grid-column:3;grid-row:1;font-size:23px}
.server-list-card .directory-card-heading>.server-motd{grid-column:2 / 4;grid-row:2;margin:0;min-height:0;padding:10px 14px;font-size:13px;line-height:1.5;white-space:normal}
.server-list-card .card-tags{margin-top:12px}
.server-list-card .directory-card-footer{margin-top:12px;padding-top:10px}
.server-list-card.is-promoted .server-card-identity h2 a{font-size:23px}
.directory-catalog .results-heading{gap:10px;flex-wrap:wrap}
@media(max-width:600px){
 .server-list-card .directory-card-heading{grid-template-columns:45px minmax(0,1fr) auto;column-gap:10px}
 .directory-card-heading>.directory-server-icon{width:45px;height:45px}
 .directory-card-heading>.server-card-identity{gap:4px}
 .directory-card-heading>.server-card-identity h2,.server-list-card.is-promoted .server-card-identity h2 a{font-size:17px}
 .directory-card-heading>.server-card-identity .directory-state{width:100%;font-size:9px}
 .directory-card-heading>.directory-player-count{font-size:19px}
 .server-list-card .directory-card-heading>.server-motd{font-size:11px;padding:8px;line-height:1.45}
 .server-list-card .directory-card-footer{gap:8px}
 .server-list-card .directory-card-footer code{font-size:11px}
}

/* Personal branding accommodates longer names without widening the page. */
.brand-name{min-width:0;overflow-wrap:anywhere}.brand-initial{display:inline-grid;place-items:center;min-width:32px;height:36px;padding:0 5px;background:var(--teal);color:white;border-radius:7px;margin-right:8px;font-size:23px}.nav-container>.brand{max-width:240px;flex-shrink:1}.footer-brand>.brand{max-width:100%}@media(max-width:700px){.nav-container>.brand{max-width:180px;font-size:20px}.brand-initial{font-size:20px;min-width:27px;height:31px}.brand-name{line-height:1.15}}

.page-heading h1,.hero-copy h1,.section-heading h2,.server-hero h1{overflow-wrap:anywhere}

/* A single gap governs the own-server page, including partially hidden layouts. */
.server-page .server-sections{display:grid;gap:40px;margin-top:24px}
.server-page .server-sections>*{min-width:0;margin:0}
.server-page .server-sections>.section{margin:0;padding:0}
.server-page .server-community-grid>.panel{margin:0}
.server-page .server-community-grid:has(>:only-child){grid-template-columns:minmax(0,1fr)}
.server-page .server-page-heading h1{margin:0;font-size:clamp(30px,4vw,48px);overflow-wrap:anywhere}
.server-page .stat-card>small{display:block;margin-top:6px;font-size:10px;line-height:1.5}
.server-page .server-stats-note{margin:14px 0 0;line-height:1.7}
.achievement-count strong{display:block;white-space:nowrap}.achievement-count progress{display:block;width:64px;height:5px;margin-top:7px;accent-color:var(--teal);border:0;border-radius:4px;overflow:hidden}.achievement-count progress::-webkit-progress-bar{background:#e6ede8}.achievement-count progress::-webkit-progress-value{background:linear-gradient(90deg,#009d8f,#8cc37b)}.achievement-count progress::-moz-progress-bar{background:var(--teal)}
.server-page [id]{scroll-margin-top:100px}
@media(max-width:640px){.server-page .server-sections{gap:28px;margin-top:20px}.server-page .server-community-grid{gap:18px}}
