.site-header{display:flex;align-items:center;gap:24px;min-height:98px}.site-header .brand{margin-right:auto}.site-header nav,.header-actions{display:flex;align-items:center;gap:20px}.site-header .primary{white-space:nowrap}.brand-logotype{width:270px;max-width:100%;height:auto;aspect-ratio:440/100}.account-link{white-space:nowrap}.account-panel{max-width:500px;margin:45px auto 80px;padding:28px;background:#1b2228;border:1px solid #39434b;border-radius:10px}.account-panel h1{font-size:28px;margin-bottom:24px}.account-panel p{margin:16px 0;line-height:1.6}.account-panel label{display:block;margin-bottom:8px}.account-panel input{width:100%;min-height:48px;background:#101518;color:#fff;border:1px solid #63707a;border-radius:6px;padding:10px}.account-panel input:focus-visible{outline:2px solid #ffb52e;outline-offset:2px}.account-panel button{min-height:46px;padding:10px 24px}.account-links{display:flex;justify-content:space-between;gap:15px;margin-top:24px}.errorlist{color:#ffb4a5;line-height:1.6;margin:12px 0}.helptext{display:block;color:#b8c2cc;font-size:13px}
#app :is(.game-switch, .placement-grid--compact) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(5px, 1vw, 12px);
}
.game-page .arena-site-content .arena-intro h1 {
    font-size: clamp(30px, 3.5vw, 44px);
    line-height: 1.15;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.theme-1.home-page #app .arena-strip > a {
    height: clamp(138px, 18cqi, 240px);
}
.game-switch {
    display: grid;
    margin-block: 20px 24px;
}
.game-switch a {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-width: 0;
    min-height: 108px;
    padding: 8px 2px 10px;
    border: 1px solid #48525a;
    border-radius: 8px;
    overflow: hidden;
    background: #1b2530;
    color: #fff;
    text-align: center;
    font-size: clamp(11px, 1.3vw, 16px);
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.game-switch .game-card-cover,
.game-switch a::before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.game-switch .game-card-cover { z-index: -2; object-fit: cover; }
.game-switch a::before {
    content: "";
    z-index: -1;
    background: linear-gradient(180deg, transparent 24%, rgb(9 14 21 / 94%) 92%);
}
.game-switch a:hover { border-color: #ffcf72; }
.game-switch a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.game-switch [aria-current] { border-color: #ffb52e; box-shadow: inset 0 -3px #ffb52e; color: #ffcf72; }
.theme-1.home-page .arena-strip .arena-game-name { flex: 1; min-width: 0; }
.theme-1.home-page .arena-strip .game-card-logo,
.game-switch .game-card-logo {
    display: block;
    position: static;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    z-index: auto;
    filter: drop-shadow(0 2px 4px #000c);
}
.theme-1.home-page .arena-strip .game-card-logo {
    width: min(200px, 100%);
    max-height: 64px;
}
.game-card-name {
    display: grid;
    justify-items: center;
    align-items: end;
    min-width: 0;
    width: 100%;
}
.game-switch .game-card-logo {
    width: min(180px, 100%);
    max-height: 52px;
}
#app :is(.arena-strip, .arena-strip + .placement-grid) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
#app .placement-grid .placement-card.image-ad {
    width: 100%;
}
#app .placement-grid--compact .placement-card.image-ad {
    aspect-ratio: auto;
}
#app .placement-grid--compact .placement-card.image-ad > a {
    aspect-ratio: 4 / 1;
    height: auto;
    min-height: 0;
}
#app .placement-grid--compact .placement-card.image-ad img {
    aspect-ratio: auto;
    height: 100%;
}
#app .placement-grid .placement-card.image-ad picture { height: 100%; }
@media (max-width: 650px) {
    #app :is(.game-switch, .placement-grid, .arena-strip) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #app .placement-grid:not(.placement-grid--compact) .placement-card.image-ad { aspect-ratio: 1; }
    #app .placement-grid--compact .placement-card.image-ad > a { aspect-ratio: 2 / 1; }
    #app .placement-grid .placement-card.image-ad img { aspect-ratio: auto; height: 100%; }
}

.server-profile {
    display: grid;
    gap: 18px;
    margin-block: 4px 24px;
}
.page-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    order: 0;
    justify-content: flex-start;
    gap: 6px 10px;
    margin-inline: 0;
    color: #aebbc8;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.page-breadcrumb a:hover { color: var(--accent); }
.server-detail-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    min-height: 224px;
    max-width: none;
    margin: 0;
    padding: clamp(16px, 3vw, 36px);
    overflow: hidden;
    border: 1px solid #3b4a5b;
    border-radius: 10px;
    background: #14202c;
}
.server-detail-hero > img,
.server-detail-hero::before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.server-detail-hero > img {
    z-index: -2;
    object-fit: cover;
    object-position: center 38%;
}
.server-detail-hero::before {
    content: "";
    z-index: -1;
    background: linear-gradient(0deg, #0b121bf5, #0b121b95 56%, #0b121b3d);
}
.server-detail-heading { min-width: 0; }
.server-detail-tags,
.server-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.server-detail-tags a {
    padding: 5px 9px;
    border: 1px solid #637284;
    border-radius: 5px;
    background: #111923;
    color: #e6edf4;
    font-size: 13px;
}
.server-detail-tags .premium-badge {
    margin: 0;
    padding: 5px 9px;
    font-size: 12px;
}
.server-detail-heading h1 {
    margin: 9px 0 4px;
    font-size: clamp(26px, 4vw, 48px);
    line-height: 1.12;
    overflow-wrap: anywhere;
}
.server-detail-heading p { margin: 0; color: #d2dce6; overflow-wrap: anywhere; }
.server-detail-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    text-align: center;
}
.server-secondary {
    padding: 8px 14px;
    border: 1px solid #738194;
    border-radius: 6px;
    background: #192432;
    color: #fff;
    font-weight: 700;
}
.server-secondary:hover { border-color: var(--accent); }
.server-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, .58fr);
    gap: 16px;
}
.server-detail-panel {
    min-width: 0;
    padding: clamp(14px, 2vw, 24px);
    border: 1px solid #344252;
    border-radius: 8px;
    background: #151d27;
}
.server-detail-panel h2 { margin: 0 0 12px; font-size: 19px; }
.server-detail-panel p { margin: 0; line-height: 1.7; overflow-wrap: anywhere; }
.server-announcement {
    margin-top: 18px;
    padding: 12px 14px;
    border-inline-start: 3px solid var(--accent);
    background: #25231d;
}
.server-announcement h3 { margin: 0 0 6px; font-size: 15px; }
.server-facts { margin: 0; }
.server-facts > div {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid #344252;
    font-size: 14px;
    overflow-wrap: anywhere;
}
.server-facts dt { color: #b8c5d2; }
.server-facts dd { margin: 0; font-weight: 650; }
.server-address { font-family: ui-monospace, monospace; }
.server-profile .server-extra-links { margin: 0; }
@media (max-width: 700px) {
    .server-detail-hero { min-height: 184px; }
    .server-detail-grid { grid-template-columns: minmax(0, 1fr); }
}
.pagination{display:flex;gap:20px;justify-content:center;padding:24px}.server-row[hidden]{display:none!important}.premium-badge{display:inline-block;font-size:10px;background:#ffb52e;color:#231a08;border-radius:3px;padding:3px 6px;margin-left:6px}.row-detail{background:#ffb52e;color:#1b170d;border-radius:5px;padding:10px}.game-group-footer a{display:block;text-align:center;padding:14px;background:#ffb52e;color:#211807;font-weight:700}.game-group-heading{padding:14px}.game-group-heading h3{margin:0}.game-group-heading small{font-size:12px;margin-left:8px}.game-server-group{margin-bottom:24px}.setup-secret{overflow-wrap:anywhere;font-family:monospace;background:#101518;padding:14px}
@media(max-width:850px){.site-header{flex-wrap:wrap;gap:14px;padding-top:18px;padding-bottom:16px}.site-header .brand{flex:1;min-width:160px}.brand-logotype{width:240px}.header-actions{gap:10px}.site-header nav{order:3;width:100%;justify-content:center;border-top:1px solid #303a42;padding-top:14px}.account-link{display:none}}
@media(max-width:480px){.brand-logotype{width:185px}.site-header .primary{padding:10px 12px;font-size:13px}.account-panel{padding:20px;margin-top:25px}.account-panel h1{font-size:24px}}

.header-account{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;max-width:200px}.header-account.is-authenticated{background:#1b2228;color:#f4f6fa;border:1px solid #58616b;padding:5px 12px 5px 5px;border-radius:8px}.header-username{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:135px}.avatar-portrait{display:inline-block;position:relative;overflow:hidden;flex:none;width:36px;height:36px;border-radius:50%;background:#18222d;outline:1px solid #697786}.avatar-portrait img{position:absolute;max-width:none;height:auto;display:block;object-fit:initial}.avatar-metin-warrior img{width:864%;left:-382%;top:-112%}.avatar-metin-shaman img{width:1080%;left:-122.5%;top:-212.5%}.avatar-craft-steve img{width:720%;left:-265%;top:-75%}.avatar-craft-alex img{width:800%;left:-400%;top:-122%}.avatar-knight-human img{width:473.85%;left:-46%;top:-8%}.avatar-knight-karus img{width:473.85%;left:-365%;top:-5%}.avatar-silk-warrior img{width:327.5%;left:-193.75%;top:-87.5%}.avatar-silk-archer img{width:327.5%;left:-175%;top:-12%}.profile-panel{max-width:660px}.avatar-picker{border:0;padding:0;margin:25px 0}.avatar-picker legend{font-weight:700;margin-bottom:14px}.avatar-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.avatar-option{position:relative;cursor:pointer;margin:0!important}.avatar-option input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;padding:0}.avatar-option-card{display:flex;flex-direction:column;align-items:center;gap:12px;min-height:126px;padding:14px 7px;background:#11181e;border:2px solid #39434b;border-radius:8px;font-size:12px;line-height:1.4;text-align:center}.avatar-option .avatar-portrait{width:64px;height:64px}.avatar-option input:checked+.avatar-option-card{border-color:#ffb52e;background:#2d2619}.avatar-option input:focus-visible+.avatar-option-card{outline:3px solid #fff;outline-offset:3px}.profile-notice{color:#a6e5b3}.profile-logout{margin-top:24px;padding-top:24px;border-top:1px solid #39434b}.account-panel textarea,.account-panel select{width:100%;padding:12px;border-radius:6px;background:#101518;border:1px solid #63707a;color:#fff;font:inherit}.listing .section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.add-server-link{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap;font-size:13px;padding:10px 14px}
@media(max-width:650px){.header-account.is-authenticated{max-width:140px;padding:5px 8px 5px 5px}.header-username{max-width:88px;font-size:12px}.header-account .avatar-portrait{width:30px;height:30px}.avatar-options{grid-template-columns:repeat(2,minmax(0,1fr))}.listing .section-head h2{font-size:20px}.add-server-link{padding:9px 10px;font-size:12px}}
@media(max-width:360px){.site-header .brand{min-width:140px}.brand-logotype{width:155px}.header-account.is-authenticated{max-width:120px}.header-username{max-width:68px}}


.setup-qr{display:block;width:288px;max-width:100%;height:auto;aspect-ratio:1;margin:24px auto;background:#fff;image-rendering:pixelated}

.listing .row-actions{gap:10px}@media(max-width:650px){.listing .row-actions{gap:7px}}

.directory-layout{min-width:0}.directory-layout.with-blog{display:grid;grid-template-columns:minmax(0,1fr) clamp(270px,22vw,320px);gap:22px;align-items:start}.directory-layout .listing{min-width:0}.blog-sidebar{min-width:0;padding-top:2px}.blog-sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.blog-sidebar-heading h2{font-size:19px;margin:0}.blog-sidebar-heading a{color:#ffbc32;font-size:13px}.blog-card{border:1px solid #39434f;border-radius:9px;overflow:hidden;background:#1a2129;margin-bottom:16px}.blog-card>a{display:block;color:inherit}.blog-card img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}.blog-card-body{padding:16px}.blog-card small{color:#aebdcc;font-size:11px}.blog-card h3{font-size:17px;line-height:1.4;margin:10px 0;color:#f5f6f8}.blog-card p{font-size:13px;line-height:1.55;color:#b7c4d2;margin:0}.blog-card a:hover h3{color:#ffcb61}.blog-index,.blog-article{padding:30px 0 48px}.blog-index h1,.blog-article h1{font-size:clamp(28px,3vw,40px);line-height:1.2;margin:12px 0 20px}.blog-intro{color:#b7c4d2;margin-bottom:28px}.blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.blog-article{max-width:800px;margin:auto}.blog-article nav{font-size:13px;color:#aebdcc}.article-meta{font-size:13px;color:#aebdcc}.article-excerpt{font-size:19px;line-height:1.65;color:#cbd5df;margin:24px 0}.article-cover{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:9px}.article-body{font-size:17px;line-height:1.85;color:#d6dfe8;margin:28px 0}.article-body p{margin:0 0 22px}.article-category-link{display:inline-flex;min-height:44px;align-items:center}.related-posts{padding-bottom:40px}.pagination{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:20px 0}.pagination a,.pagination .current-page{display:inline-flex;min-width:42px;min-height:44px;align-items:center;justify-content:center;border:1px solid #46515f;border-radius:6px;padding:8px 12px}.pagination .current-page{background:#ffbc32;color:#181a20;border-color:#ffbc32;font-weight:700}.with-blog .server-row{grid-template-columns:44px minmax(100px,1fr) auto}.with-blog .row-game{display:none}.with-blog .row-actions{grid-column:3}.with-blog .row-name h3{overflow-wrap:anywhere}
@media(max-width:1150px){.directory-layout.with-blog{grid-template-columns:1fr}.blog-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.blog-sidebar-heading{grid-column:1/-1;margin:0}.blog-sidebar .blog-card{margin:0}.blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.blog-sidebar,.blog-grid{grid-template-columns:1fr}.blog-sidebar .blog-card>a{display:grid;grid-template-columns:100px minmax(0,1fr)}.blog-sidebar .blog-card img{height:100%;min-height:110px;aspect-ratio:auto}.blog-sidebar .blog-card-body{padding:12px}.blog-sidebar .blog-card h3{font-size:15px}.blog-sidebar .blog-card p{display:none}.with-blog .server-row{grid-template-columns:28px minmax(60px,1fr) auto}.blog-index,.blog-article{padding-top:20px}.article-excerpt{font-size:17px}.article-body{font-size:16px}.pagination a,.pagination .current-page{min-width:36px;padding:8px 10px}}

.account-navigation,.owner-heading,.server-extra-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-bottom:18px}.account-navigation a,.owner-action,.server-extra-links a{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid #46515f;border-radius:6px;color:#f3f5f7;background:#222b34}.owner-heading{justify-content:space-between}.owner-heading h1{margin:0}.owner-heading .primary{display:inline-flex;align-items:center;min-height:44px}.owner-card{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px;margin:12px 0;border:1px solid #39434f;border-radius:8px;background:#161d25;overflow-wrap:anywhere}.owner-card h2,.owner-card h3{font-size:17px;margin:0}.owner-card p{margin:4px 0;color:#c1ccd8}.owner-card .owner-status{color:#ffd16a}.owner-action{flex:none;font:inherit;cursor:pointer}.owner-panel h1{margin-top:14px}.owner-panel form p{margin:14px 0}.owner-panel input[type=file]{font-size:14px}.owner-panel summary,.server-filters summary{padding:12px;min-height:44px;cursor:pointer;color:#ffcb61}.owner-panel textarea{min-height:110px}.preference-row{display:flex;align-items:center;gap:10px}.account-panel .preference-row input{width:20px;min-height:20px;accent-color:#ffbc32}.account-panel .preference-row label{margin:0}.server-cover{max-width:100%;max-height:480px;object-fit:contain;border-radius:8px;display:block;margin:18px 0}.server-extra-links{margin-top:18px}.calendar-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.server-filters{margin:10px 0;border:1px solid #46515f;border-radius:6px}.server-filters form{padding:0 12px 14px}.filter-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.filter-fields label{display:block;margin-bottom:5px}.filter-fields input,.filter-fields select{width:100%;min-height:44px;padding:8px;background:#101518;color:#fff;border:1px solid #566371;border-radius:5px;font:inherit}.server-filters form .primary{min-height:44px;margin:12px 10px 0 0}
@media(max-width:480px){.owner-card{align-items:flex-start;flex-direction:column}.owner-card .owner-action{width:100%;justify-content:center}.account-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.account-navigation a{justify-content:center}.owner-panel input,.owner-panel textarea,.owner-panel select{font-size:16px}.calendar-grid{grid-template-columns:1fr}.filter-fields{grid-template-columns:1fr}}

.owner-field{margin:14px 0}.owner-fields{margin:12px 0;border:1px solid #46515f;border-radius:6px}.owner-fields .owner-field{padding:0 12px}.owner-panel input[type=checkbox]{width:20px;min-height:20px;accent-color:#ffbc32}

/* Size the home sections by the space left between the side ads. */
.home-page .arena-center{container-type:inline-size}
.home-page .directory-layout{display:block}
.home-server-table{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:1px;
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:8px;
    background:var(--line);
}
.home-server-table .game-server-group{
    display:flex;
    flex-direction:column;
    min-width:0;
    margin:0;
    border:0;
    border-radius:0;
    background:var(--surface);
}
.home-server-table .game-group-heading{min-height:56px;display:flex;align-items:center}
.home-server-table .game-group-footer{margin-top:auto}
.home-server-table .game-group-footer a{min-height:46px;display:grid;place-items:center}
.home-server-table .row-game{display:none}
.home-server-table .server-row{
    grid-template-columns:18px minmax(0,1fr) auto;
    gap:6px;
    padding:6px 8px;
    min-height:66px;
}
.home-server-table .rank-badge{
    width:18px;
    height:24px;
    border:0;
    background:none;
    font-size:12px;
}
.home-server-table .rank-1{color:#ffca62}
.home-server-table .rank-2{color:#d1dce8}
.home-server-table .rank-3{color:#edab76}
.home-server-table .rank-badge svg{width:16px;height:16px}
.home-server-table .row-name{grid-column:2;grid-row:1;min-width:0}
.home-server-table .row-name h3{font-size:13px;line-height:1.25}
.home-server-table .row-name h3>a{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
    overflow-wrap:anywhere;
}
.home-server-table .row-name small{
    display:block;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    font-size:11px;
}
.home-server-table .premium-badge{margin:2px 0 0;padding:2px 4px;font-size:9px}
.home-server-table .row-actions{grid-column:3;grid-row:1;gap:3px;justify-content:flex-end}
.home-server-table .row-actions :is(.row-vote,.row-detail,.row-site,.save){
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:none;
    min-width:28px;
    width:auto;
    min-height:34px;
    height:34px;
    padding:0 4px;
    font-size:11px;
    white-space:nowrap;
}
.home-server-table .row-actions .row-vote{min-width:30px}
.home-server-table .row-actions .row-vote small{margin:1px 0 0}
.home-server-table .row-actions .save .heart-icon{
    width:16px!important;
    height:16px!important;
    min-width:16px;
}
.home-blog{margin:32px 0}
.home-blog .section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.home-blog .section-head a{color:#ffbc32}
.home-blog .blog-grid{grid-template-columns:minmax(0,1fr);gap:14px}
.home-blog .blog-card{min-width:0;margin:0}
.home-blog .blog-card h3{overflow-wrap:anywhere}
@container (min-width:620px){
    .home-server-table,.home-blog .blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container (min-width:1020px){
    .home-server-table,.home-blog .blog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(pointer:coarse){
    .home-server-table .row-actions :is(.row-vote,.row-detail,.row-site,.save){height:44px}
}

.arena-site-content :is(.site-header,#main,footer){
    width:100%;
    max-width:none;
    padding-inline:0;
}
.arena-site-content{container-type:inline-size}
.arena-site-content .site-header{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:14px;
}
.arena-site-content .site-header .site-menu{
    order:0;
    justify-self:end;
    width:auto;
    max-width:100%;
    margin:0;
    padding:4px;
    gap:4px;
    flex-wrap:wrap;
    justify-content:center;
    border:1px solid #303a45;
    border-radius:12px;
    background:#181e25;
}
.site-header .site-menu a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-height:36px;
    padding:6px 10px;
    border:1px solid transparent;
    border-radius:8px;
    color:#dbe4ee;
    font-family:"Segoe UI Variable","Segoe UI",system-ui,sans-serif;
    font-size:13px;
    font-weight:700;
    letter-spacing:.01em;
    line-height:1.25;
    white-space:nowrap;
    text-decoration:none;
}
.site-header .site-menu a:hover{background:#293340;color:#fff}
.site-header .site-menu a[aria-current]{
    border-color:#735621;
    background:#332819;
    color:#ffca65;
}
.site-header .site-menu a:focus-visible{outline:2px solid #ffca65;outline-offset:-2px}
.site-header .site-menu svg{flex:none}
@container (max-width:850px){
    .arena-site-content .site-header{grid-template-columns:minmax(0,1fr) auto;gap:10px}
    .arena-site-content .site-header .brand{min-width:0}
    .arena-site-content .site-header .site-menu{grid-column:1/-1;grid-row:2;width:100%}
    .arena-site-content .site-header .header-actions{grid-column:2;grid-row:1}
}
@media (max-width:480px){
    .site-header .site-menu a{padding-inline:7px;font-size:12px}
}
.home-server-table .is-premium .row-name h3{display:flex;flex-wrap:wrap;align-items:center;gap:2px 5px}.home-server-table .is-premium .row-name h3>a{min-width:0}.home-server-table .is-premium .premium-badge{margin:0}

@media (min-width:1200px) and (min-aspect-ratio:1/1){
    .arena-site-content{margin-inline:50px}
}

.menu-toggle{display:none}
@container (max-width:850px){
    .arena-site-content .site-header.menu-ready{position:relative;z-index:2}
    .site-header.menu-ready .header-actions{gap:6px}
    .site-header.menu-ready .menu-toggle{
        display:grid;
        place-content:center;
        gap:4px;
        width:44px;
        height:44px;
        border:1px solid #3d4856;
        border-radius:8px;
        background:#181e25;
        color:#eaf1f8;
        cursor:pointer;
    }
    .menu-toggle span{display:block;width:18px;height:2px;border-radius:1px;background:currentColor}
    .menu-toggle[aria-expanded="true"]{color:var(--accent)}
    .menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
    .menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
    .menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
    .arena-site-content .site-header.menu-ready .site-menu{
        display:none;
        position:absolute;
        top:100%;
        right:0;
        width:min(280px,100%);
        max-height:calc(100dvh - 100% - 12px);
        overflow-y:auto;
        overscroll-behavior:contain;
        padding:6px;
        box-shadow:0 12px 24px #0007;
    }
    .arena-site-content .site-header.menu-ready .site-menu.is-open{display:grid;grid-template-columns:minmax(0,1fr)}
    .site-header.menu-ready .site-menu a{justify-content:flex-start;min-height:44px;font-size:14px}
}
.blog-categories,.blog-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:0 0 20px}
.blog-categories a{
    display:inline-flex;
    align-items:center;
    min-height:42px;
    padding:8px 14px;
    border:1px solid #46515f;
    border-radius:8px;
    background:#1a2129;
    font-weight:700;
}
.blog-categories a[aria-current]{background:#ffb52e;border-color:#ffb52e;color:#201600}
.blog-filters{padding:14px;background:#1a2129;border:1px solid #39434f;border-radius:8px}
.blog-filters>div:first-child{flex:1 1 240px;min-width:0}
.blog-filters label{display:block;margin-bottom:6px;color:#c6d0db;font-size:13px}
.blog-filters input,.blog-filters select{
    width:100%;
    min-height:44px;
    padding:8px 12px;
    border:1px solid #46515f;
    border-radius:6px;
    background:#101518;
    color:#f3f6fa;
    font:inherit;
}
.blog-filters .primary{min-height:44px}
.blog-results,.calendar-note{color:#b7c4d2;margin:0 0 14px}
.calendar-lane{min-width:0}
.calendar-lane h2{margin:0 0 12px}
.calendar-card{
    display:grid;
    grid-template-columns:56px minmax(0,1fr);
    align-items:center;
    gap:14px;
    margin-bottom:12px;
    padding:12px;
    background:#1a2129;
    border:1px solid #39434f;
    border-radius:8px;
}
.calendar-date{display:grid;place-content:center;min-height:58px;border-radius:6px;background:#302719;color:#ffca65;text-align:center}
.calendar-date strong{font-size:23px;line-height:1.1}
.calendar-game,.calendar-hour{color:#b7c4d2;font-size:12px;margin:0}
.calendar-card h3{margin:4px 0;font-size:16px;overflow-wrap:anywhere}
.game-sidebar { min-width: 0; display: grid; gap: 20px; }
#app .game-square-ad.image-ad { width: 100%; max-width: 320px; aspect-ratio: 1; }
#app .game-square-ad.image-ad :is(picture, img) { height: 100%; }
.game-openings { padding: 14px; border: 1px solid #39434f; border-radius: 8px; background: #161d25; }
.game-openings .blog-sidebar-heading { margin-bottom: 12px; }
.game-openings .calendar-card { gap: 10px; padding: 8px; grid-template-columns: 48px minmax(0,1fr); }
.game-openings .calendar-card:last-child, .game-openings .calendar-note { margin-bottom: 0; }
@media (max-width: 650px) {
    #app .game-square-ad.image-ad { justify-self: center; }
}
.calendar-sample{padding:2px 6px;margin-left:4px;border:1px solid #6f5830;border-radius:4px;color:#ffca65}
@media(max-width:480px){
    .blog-filters input,.blog-filters select{font-size:16px}
    .blog-categories a{padding-inline:10px;font-size:13px}
}

.blog-topics{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.blog-topics a{
    display:inline-flex;
    align-items:center;
    min-height:40px;
    padding:6px 12px;
    border:1px solid #46515f;
    border-radius:7px;
    color:#d6dfe8;
}
.blog-topics a[aria-current]{background:#332819;border-color:#735621;color:#ffca65}
.blog-sidebar .blog-topics{grid-column:1/-1;margin-bottom:0}
.blog-ad{margin:28px 0}
.blog-ad a{
    display:grid;
    place-items:center;
    min-height:76px;
    border:1px solid #39434f;
    border-radius:8px;
    background:#161d25;
    overflow:hidden;
}
.blog-ad picture{display:block;width:100%}
.blog-ad img{display:block;width:100%;height:auto;aspect-ratio:2/1;object-fit:contain}

.arena-site-content .site-header .brand-logotype-magma{width:min(160px,36vw);aspect-ratio:auto}

.account-panel { overflow-wrap: anywhere; }
@media (max-width: 850px) {
    .account-panel :is(input:not([type="checkbox"],[type="radio"],[type="file"]),select,textarea),
    .filter-fields :is(input,select),
    #directory-search {
        font-size: 16px;
    }
    .account-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        font-size: 14px;
    }
}
.theme-1:is(.home-page, .game-page, .server-page) { --accent: #ff8a16; }
.theme-1[data-accent-preview="1"] { --accent: #ffd000; }
.theme-1[data-accent-preview="2"] { --accent: #ff8a16; }
.theme-1[data-accent-preview="3"] { --accent: #ff6354; }
.theme-1[data-accent-preview="4"] { --accent: #fff04a; }

body.theme-1 {
    --accent-tint: color-mix(in srgb, var(--accent) 13%, #1b1d23);
    --accent-border: color-mix(in srgb, var(--accent) 45%, #24252a);
    --directory-gold: #ffb52e;
    --directory-red: #ff6354;
    --directory-red-surface: #392629;
    --directory-red-border: #87413d;
}
.site-header .header-account:not(.is-authenticated) {
    --accent: #bd0000;
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.listing .add-server-link {
    --accent: #008509;
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.listing .add-server-link:hover {
    --accent: #007608;
    filter: none;
}
body.theme-1 :is(
    .listing .game-group-heading, .listing .game-group-footer > a,
    .listing .premium-badge, .listing .row-detail
) {
    background: var(--directory-gold);
    border-color: var(--directory-gold);
    color: var(--ink);
}
body.theme-1 :is(
    .server-detail-tags .premium-badge, .pagination .current-page,
    .blog-categories a[aria-current]
) {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}
body.theme-1 .listing .game-group-footer > a:hover {
    filter: brightness(1.08);
}
body.theme-1 .listing .server-row.is-premium {
    background: var(--directory-red-surface);
    border-bottom-color: var(--directory-red-border);
    box-shadow: inset 3px 0 var(--directory-red);
}
body.theme-1 :is(.listing .rank-premium, .site-header .site-menu a[aria-current]) {
    color: var(--directory-red);
    background: var(--directory-red-surface);
    border-color: var(--directory-red-border);
}
body.theme-1 .site-header .site-menu a[aria-current] {
    color: #fff;
}
body.theme-1 .blog-topics a[aria-current] {
    color: var(--accent);
    background: var(--accent-tint);
    border-color: var(--accent-border);
}
body.theme-1 :is(.listing .row-actions .save.saved,
    .blog-sidebar-heading a, .home-blog .section-head a, .blog-card a:hover h3) {
    color: var(--accent);
}
body.theme-1 .listing .rank-1,
body.theme-1 .listing .home-server-table .rank-premium {
    background: none;
    border: 0;
    color: var(--directory-red);
}
body.theme-1 .game-switch a[aria-current] {
    border-color: var(--accent);
    box-shadow: inset 0 -3px var(--accent);
    color: var(--accent);
}
body.theme-1 :is(.site-header .site-menu a, .listing .game-group-footer > a):focus-visible {
    outline-color: var(--accent);
}
.server-search-toolbar {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
}
.arena-center .server-search-toolbar .search { flex:1 1 0; min-width:0; }
.server-search-toolbar .search input { min-width:0; }
.server-search-toolbar .primary { flex:none; }
.server-search-toolbar .primary { --accent: var(--directory-gold); }
.google-sign-in {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 14px;
    padding: 8px 12px;
    background: #fff;
    color: #1f1f1f;
    border: 1px solid #747775;
    border-radius: 6px;
    font: 500 14px/20px "Google Sans", Roboto, "Segoe UI", sans-serif;
    cursor: pointer;
}
.google-sign-in img { flex: none; object-fit: contain; }
.google-sign-in:hover:not(:disabled) { background: #f2f2f2; }
.google-sign-in:focus-visible { outline: 2px solid #ffb52e; outline-offset: 3px; }
.google-sign-in:disabled { opacity: .65; cursor: wait; }
.server-filter-options { padding:0 12px 14px; }
.server-filter-options .primary { margin-top:12px; }
.server-address code { overflow-wrap:anywhere; }
.server-address button { min-height:44px; font:inherit; cursor:pointer; }
.server-address button[hidden] { display:none; }
.copy-status { display:block; }
@media (max-width:850px) {
    .server-search-toolbar input { font-size:16px; }
    .server-search-toolbar > a { flex-basis:100%; }
}
