/* Font */
@font-face {
    font-family: 'McPvP';
    src: url('fonts/minecraft.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'McPvP Display';
    src: url('fonts/mcpvp.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'McPvP Banner';
    src: url('fonts/mcpvp.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Minecraft Ten';
    src: url('fonts/minecraft-ten.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Framer layout frame: 1260px content inside a 1360px shell */
    --site-shell-max: 1360px;
    --site-content-gutter: 50px;

    /* Navbar sizing */
    --nav-h: 47px;
    --nav-fs: 16px;
    --nav-icon-size: 16px;

    /* Link/button sizing */
    --btn-fs: 18px;
    --btn-lh: 21px;
    --btn-h: 35px;
    --link-pad: 14px;
    --hover-gap: 4px;

    /* Auth */
    --auth-card-max: 420px;
    --auth-pad-x: 40px;
    --auth-pad-y: 48px;

    --feature-h: 238px;

    --tiers-rank: 60px;
    --tiers-player-min: 220px;
    --tiers-region: 120px;
    --logo-visual-offset-x: 0px;

    --mcpvp-bg: #0E1326;
    --mcpvp-nav-panel: #0A0A1A;
    --mcpvp-panel: #111426;
    --mcpvp-panel-border: #1D263B;
    --mcpvp-content-well: linear-gradient(180deg, #0b0e1a 0%, var(--mcpvp-bg) 17%, #0b0e1a 25%);
    --mcpvp-ranking-card: #060817;
    --mcpvp-footer-bg: #0E1326;
    --mcpvp-footer-border: #10141E;

}

/* Base */
* { box-sizing: border-box; }

html {
    min-height: 100%;
    background: var(--mcpvp-bg);
}

body {
    min-height: 100%;
    margin: 0;
    font-family: 'McPvP', serif;
    background: var(--mcpvp-bg);
    color: #e7e9ef;
}

.mcpvp-page-transition {
    position: relative;
    min-height: calc(100svh - 68px);
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: 50% 20%;
    transition:
        opacity 170ms ease,
        transform 240ms cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}

.mcpvp-page-transition:focus {
    outline: none;
}

html.is-page-navigating .mcpvp-page-transition {
    opacity: 0;
    transform: translate3d(0, 6px, 0) scale(.999);
}

html.is-page-navigating .mcpvp-page-transition *,
html.is-page-swapping .mcpvp-page-transition * {
    animation-play-state: paused !important;
}

html.is-page-entering .mcpvp-page-transition {
    animation: mcpvp-page-enter 280ms cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes mcpvp-page-enter {
    from {
        opacity: 0;
        transform: translate3d(0, 6px, 0) scale(.999);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mcpvp-page-transition,
    html.is-page-navigating .mcpvp-page-transition,
    html.is-page-entering .mcpvp-page-transition {
        animation: none;
        transition: none;
        transform: none;
        filter: none;
    }
}

/* Tiers leaderboard version control */
.tiers-versionbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 12px;
    padding: 8px 8px 8px 14px;
    border: 1px solid var(--mcpvp-panel-border);
    border-radius: 10px;
    background: var(--mcpvp-panel);
    box-shadow: inset 0 0 0 1px rgba(29, 38, 59, .22);
    animation: tiers-versionbar-in .24s ease-out both;
}
.tiers-versionbar__context{
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}
.tiers-versionbar__eyebrow{
    color: #f4f6ff;
    font-family: 'McPvP', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.tiers-versionbar__description{
    color: #7f899f;
    font-size: 12px;
    letter-spacing: .02em;
}
.tiers-versionbar__warning{
    color: #ff555d;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.35;
}
.tiers-version-switch{
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(88px, 1fr));
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--mcpvp-panel-border);
    border-radius: 8px;
    background: var(--mcpvp-nav-panel);
}
.tiers-version-switch__option{
    position: relative;
    isolation: isolate;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 5px;
    color: #7f899f;
    font-family: 'McPvP', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
    transition: color .16s ease, transform .16s ease;
}
.tiers-version-switch__option::before{
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 1px solid transparent;
    border-radius: inherit;
    background: rgba(255,255,255,.055);
    opacity: 0;
    transform: scaleX(.82);
    transition: opacity .16s ease, transform .16s ease, border-color .16s ease;
}
.tiers-version-switch__option:hover{
    color: #dce2f2;
    text-decoration: none;
}
.tiers-version-switch__option:hover::before{
    opacity: .72;
    transform: scaleX(1);
}
.tiers-version-switch__option.is-active{
    color: #fff;
}
.tiers-version-switch__option.is-active::before{
    border-color: rgba(255, 90, 90, .46);
    background: linear-gradient(180deg, rgba(255, 72, 72, .2), rgba(164, 24, 32, .13));
    box-shadow: inset 0 0 12px rgba(255, 65, 65, .08);
    opacity: 1;
    transform: scaleX(1);
}
.tiers-version-switch__status{
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff555d;
    box-shadow: 0 0 9px rgba(255, 62, 72, .75);
}

.kit-tile--pos-middle{ opacity:.9; }
.kit-item.kit-item--pos-middle{
    background:
        linear-gradient(90deg, rgba(145,165,210,.045), rgba(145,165,210,0) 72%),
        var(--mcpvp-ranking-card);
    filter: brightness(.97) saturate(.96);
}
.kit-rank-badge{
    min-width: 31px;
    padding: 3px 4px 2px;
    border: 1px solid #59657d;
    border-radius: 3px;
    color: #c7d0e4;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .025em;
    text-align: center;
}
.kit-rank-badge--ht{
    border-color: rgba(255, 211, 83, .76);
    color: #ffdb65;
}
.kit-rank-badge--mt{
    border-color: rgba(157, 184, 236, .62);
    color: #bcd0f6;
}
.kit-rank-badge--lt{
    opacity: .78;
}

@keyframes tiers-versionbar-in{
    from{ opacity: 0; transform: translateY(-5px); }
    to{ opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px){
    .tiers-versionbar{
        align-items: stretch;
        flex-direction: column;
        padding: 10px;
    }
    .tiers-versionbar__context{
        justify-content: space-between;
        padding: 0 2px;
    }
    .tiers-version-switch{
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce){
    .tiers-versionbar{ animation: none; }
    .tiers-version-switch__option,
    .tiers-version-switch__option::before{ transition: none; }
}

.navbar {
    background: var(--mcpvp-bg);
    border-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.container {
    max-width: var(--site-shell-max);
    margin: 0 auto;
    padding: 0 var(--site-content-gutter);
}

.navbar .container { padding: 10px var(--site-content-gutter); }

.navbar-content{
    position: relative;
    height: var(--nav-h);
    padding: 0 var(--site-content-gutter);
    border-radius: 14px;
    background: var(--mcpvp-nav-panel);
    border: 1px solid var(--mcpvp-panel-border);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.04),
        0 10px 28px rgba(0,0,0,.45);
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left, .nav-right { display: flex; align-items: center; gap: 18px; }
.nav-left, .nav-right { flex: 1 1 0; }
.nav-right { justify-content: flex-end; }
.nav-center {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    transform: translate(calc(-50% + var(--logo-visual-offset-x)), -50%);
}
.nav-divider { color: #e7e9ef; }

.nav-link{
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: var(--btn-h);
    padding: 0 var(--link-pad);
    color: #e7e9ef;
    text-decoration: none;
    font-weight: 300;
    font-size: var(--nav-fs);
    line-height: 1;
    border: 0;
    background: transparent;
    transition: color .15s ease;
}
.nav-link:hover { color:#fff; }

.nav-link i[class^="fa-"],
.nav-link i.fa-solid, .nav-link i.fa-regular, .nav-link i.fa-brands{
    font-size: var(--nav-icon-size);
    line-height: 1;
    height: 1em; width: 1em;
    display: inline-flex; align-items: center; justify-content: center;
    vertical-align: middle;
    transform: translateY(0.5px);
}

.nav-link .nav-icon{
    width: var(--nav-icon-size);
    height: var(--nav-icon-size);
    display: block;
    fill: currentColor;
}

.nav-link::before{
    content: "";
    position: absolute;
    left: var(--link-pad);
    right: var(--link-pad);
    top: calc( (var(--btn-h) - max(var(--btn-lh), var(--nav-icon-size)))/2 - var(--hover-gap) );
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: right center;
    opacity: 0;
    transition: transform .25s ease-out, opacity .2s ease-out;
    pointer-events: none;
    z-index: 2;
}
.nav-link:hover::before,
.nav-link:focus-visible::before{ transform: scaleX(1); opacity: 1; }

.nav-link.active { color: rgb(255, 0, 0); }
.nav-link.active i { color: rgb(255, 0, 0); }
.nav-link.active .nav-icon { fill: rgb(255, 0, 0); }
.nav-link.active::before { opacity:0; transform: scaleX(0); }
.nav-link.active::after{
    content:"";
    position:absolute;
    left: var(--link-pad); right: var(--link-pad);
    top: calc( (var(--btn-h) - max(var(--btn-lh), var(--nav-icon-size)))/2 - var(--hover-gap) );
    height:2px; border-radius:2px;
    background: rgb(255, 0, 0);
    z-index:3;
}

.logo{
    display:flex; align-items:center;
    text-decoration:none;
    padding: 6px 18px;
    border-radius: 14px;
    background: var(--mcpvp-nav-panel);
    border: 1px solid var(--mcpvp-panel-border);
    transition: all 0.3s ease;
}
.logo-img{ height: 40px; width:auto; }

.btn-signin{
    --btn-border: #700000;
    display:inline-flex; align-items:center; gap:10px;
    height: var(--btn-h);
    padding: 0 18px;
    border-radius:7px;
    border:1px solid var(--btn-border);
    background: linear-gradient(127deg,#750000 0%,#d40000 14.414%,#e63737 59.459%,#e30000 88.288%,#520000 101.351%);
    color:#fff; text-decoration:none; font-weight:300; line-height:1;
    transition: transform .12s ease, filter .12s ease;
}
.btn-signin:hover{ transform: translateY(-1px); filter: brightness(1.05); }
.btn-signin:active{ transform: none; filter: brightness(.98); }
.btn-signin:focus-visible{ outline: 2px solid #ff5252; outline-offset: 2px; }
.btn-signin.active{ border-color:#ff5252; box-shadow: inset 0 0 14px rgba(255,255,255,.12), 0 0 18px rgba(255,0,0,.18); }
.btn-signin .signin-icon, .btn-signin i{ width: 18px; height: 18px; display:inline-flex; align-items:center; justify-content:center; color:#fff; }
.btn-signin .signin-icon{ display:block; stroke:#fff; stroke-width:1.5; }

.search-container {
    background-color: #0a0a0a;
    padding: 20px 0;
    border-top: 1px solid #1a1a1a;
    width: 100%;
}

.search-wrapper { width: 100%; padding: 0 20px; max-width: none; }

.search-form { position: relative; width: 100%; }

.search-input {
    width: 100%;
    padding: 12px 20px 12px 48px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
}
.search-input:focus {
    border-color: #ff4444;
    background-color: #222;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}
.search-input::placeholder { color: #666; }

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #666;
    pointer-events: none;
}

.search-page {
    padding: 48px 0 80px;
    background: linear-gradient(90deg, rgb(0, 0, 3) 0%, rgb(0, 0, 7) 33.783783%, rgb(0, 0, 7) 66.666664%, rgb(0, 0, 0) 103%);
}

.search-card {
    background: linear-gradient(90deg, rgb(0, 0, 3) 0%, rgb(0, 0, 7) 33.78%, rgb(0, 0, 7) 66.66%, rgb(0, 0, 0) 103%);
    border: 1px solid #1e293b;
    box-shadow:
        inset 0 0 0 1px rgba(30, 41, 59, .25),
        0 18px 32px rgba(0, 0, 0, .55);
    border-radius: 18px;
    padding: 32px;
}

.search-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
}

.search-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgb(0, 0, 3) 0%, rgb(0, 0, 7) 33.78%, rgb(0, 0, 7) 66.66%, rgb(0, 0, 0) 103%);
    border: 1px solid #1e293b;
    color: #a9b3c9;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: .03em;
    transition: color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.search-tab i {
    font-size: 16px;
}

.search-tab:hover {
    color: #e7e9ff;
    border-color: #2a3550;
}

.search-tab.active {
    border-color: #fff;
    color: #fff;
    box-shadow:
        inset 0 0 14px rgba(255, 255, 255, .18),
        inset 0 0 20px rgba(255, 255, 255, .08);
}

.search-tab.disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

.search-panel {
    display: none;
}

.search-panel.active {
    display: block;
}

.search-results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.search-meta-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-heading {
    margin: 0;
    font-size: 22px;
    color: #fff;
    letter-spacing: .04em;
}

.search-count {
    margin: 0;
    color: #8b9ac4;
    font-size: 14px;
    letter-spacing: .02em;
}

.search-sort {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.search-sort label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #5f6a8a;
}

.search-sort select {
    appearance: none;
    background: #060910;
    border: 1px solid #232733;
    border-radius: 8px;
    color: #fff;
    font-family: 'McPvP', sans-serif;
    font-size: 13px;
    padding: 8px 30px 8px 12px;
    cursor: pointer;
    position: relative;
    background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
    background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.search-sort select:focus {
    outline: none;
    border-color: #ff4444;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, .2);
}

.search-sort select:disabled {
    opacity: .4;
    cursor: default;
}

.search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid rgba(30, 41, 59, .8);
    background: rgba(6, 9, 16, .85);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.search-result:hover {
    border-color: #fff;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .08),
        0 18px 30px rgba(0, 0, 0, .45);
    transform: translateY(-1px);
}

.search-result:focus-visible {
    outline: 2px solid #ff4444;
    outline-offset: 3px;
}

.search-player {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
    min-width: 0;
}

.search-player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #0b0f1a;
    image-rendering: pixelated;
}

.search-player-avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c4cce1;
    background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.search-player-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-player-name {
    color: #fff;
    font-size: 16px;
    letter-spacing: .02em;
}

.search-player-points {
    color: #9aa7c8;
    font-size: 13px;
}

.result-arrow {
    color: #3d4969;
    font-size: 14px;
}

.search-result:hover .result-arrow {
    color: #fff;
}

.search-empty,
.search-error {
    padding: 24px;
    border-radius: 14px;
    border: 1px solid rgba(30, 41, 59, .8);
    background: rgba(6, 9, 16, .75);
    color: #a5b0cd;
    display: flex;
    flex-direction: column;
    gap: 6px;
    letter-spacing: .02em;
}

.search-empty strong {
    color: #fff;
    font-size: 16px;
}

.search-error {
    border-color: rgba(255, 82, 82, .45);
    background: rgba(40, 2, 6, .65);
    color: #ff8a8a;
}

.search-error::before {
    content: '\26A0';
    font-size: 18px;
    font-weight: 700;
}

.search-pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.search-pagination__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-pagination__nav .pg,
.search-pagination__nav .pg:link,
.search-pagination__nav .pg:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(30, 41, 59, .8);
    background: rgba(6, 9, 16, .8);
    color: #cdd6f4;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .03em;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.search-pagination__nav .pg:hover {
    border-color: #fff;
    color: #fff;
}

.search-pagination__nav .pg.active,
.search-pagination__nav .pg[aria-current="page"] {
    border-color: #ff4444;
    background: linear-gradient(135deg, rgba(255, 68, 68, .15), rgba(255, 68, 68, .05));
    color: #fff;
}

.search-pagination__nav .pg.disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

.search-pagination__nav .pg:not(.pg-prev):not(.pg-next) {
    min-width: 44px;
}

.search-pagination__nav .ellipsis {
    color: #6b748b;
    padding: 0 8px;
}

.search-pagination__nav .pg:focus-visible {
    outline: 2px solid #ff4444;
    outline-offset: 3px;
}

.footer {
    display: flex;
    width: 100%;
    height: 132px;
    min-height: 132px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    padding: 0;
    background: #080b14;
    font-family: 'McPvP Banner', monospace;
}

.footer-logo {
    display: block;
    width: 130px;
    height: 43.7109375px;
    flex: 0 0 43.7109375px;
    overflow: hidden;
    padding: 0;
    border-radius: 0;
}

.footer-logo img {
    display: block;
    width: 130px;
    height: 43.7109375px;
    object-fit: contain;
}

.footer-content {
    display: grid;
    width: 100%;
    max-width: var(--site-shell-max);
    height: 92.7109375px;
    flex: 0 1 var(--site-shell-max);
    grid-template-columns: minmax(0, 1fr) 380px;
    padding: 0 var(--site-content-gutter);
    color: #707070;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.1;
}

.footer-left {
    display: flex;
    height: 92.7109375px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
}

.footer-legal {
    display: flex;
    width: max-content;
    max-width: 100%;
    height: 49px;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    color: #707070;
    font-size: 12px;
    font-weight: 500;
    line-height: 13.2px;
    white-space: nowrap;
}

.footer-copyright {
    width: 10px;
    flex: 0 0 10px;
    font-family: sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 12px;
}

.footer-links {
    display: grid;
    width: 380px;
    height: 50px;
    align-self: center;
    justify-self: end;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(2, 20px);
    gap: 10px 40px;
    font-size: 16px;
    line-height: 19.2px;
}

.footer-links a,
.footer-links .footer-link {
    display: flex;
    width: max-content;
    min-height: 20px;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    color: #707070;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
}

.footer-links .footer-link--disabled {
    cursor: default;
}

.footer-links a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.footer-links a:focus-visible {
    color: #fff;
    outline: 2px solid #ff5252;
    outline-offset: 3px;
}

.footer-link__tourney-icon {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    object-fit: cover;
}

.footer-link__icon {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-link__icon-fill {
    fill: currentColor;
    stroke: none;
}

.auth-wrapper {
    width: 100%;
    min-height: calc(100vh - 160px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 96px 20px 160px;
    background: radial-gradient(circle at 50% 20%, rgba(255,68,68,0.06) 0%, rgba(0,0,0,0) 70%);
}

.auth-card {
    width: 100%;
    max-width: var(--auth-card-max);
    padding: var(--auth-pad-y) var(--auth-pad-x) 56px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,68,68,0.25);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-align: center;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 68, 68, 0.2);
    transition: all 0.3s ease;
}
.auth-logo:hover {
    transform: scale(1.05);
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.4);
}
.auth-logo img {
    height: 56px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(255, 68, 68, 0.3));
}

.auth-heading {
    margin: 0 0 32px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.auth-form { width: 100%; text-align: left; }

.form-group { margin-bottom: 24px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ccc;
}

.auth-input {
    width: 100%;
    padding: 12px 16px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
}
.auth-input:focus {
    border-color: #ff4444;
    background-color: #222;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

.password-field { position: relative; }
.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}
.password-toggle:hover { color: #fff; }
.password-toggle svg { width: 20px; height: 20px; }

.form-error {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #ff6666;
}

.form-errors {
    margin: 0 0 20px;
    padding: 12px 16px 12px 32px;
    border: 1px solid rgba(255, 102, 102, .35);
    border-radius: 8px;
    background: rgba(255, 68, 68, .08);
    color: #ff9a9a;
    font-size: 13px;
    line-height: 1.5;
}

.form-row.form-aux {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #aaa;
}
.form-row.form-aux .remember input[type="checkbox"] { accent-color: #ff4444; }

.forgot-link {
    color: #ff4444;
    text-decoration: none;
    transition: color 0.2s ease;
}
.forgot-link:hover { color: #ff6666; text-decoration: underline; }

.auth-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #ff4444, #ff3333);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 68, 68, 0.5);
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
}
.auth-submit:hover {
    background: linear-gradient(135deg, #ff3333, #ff2222);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 68, 68, 0.4);
}
.auth-submit .signin-icon { width: 20px; height: 20px; }

.auth-alt {
    margin-top: 40px;
    font-size: 14px;
    color: #888;
    text-align: center;
}
.auth-alt a { color: #ff4444; text-decoration: none; font-weight: 600; }
.auth-alt a:hover { color: #ff6666; text-decoration: underline; }

.home-section {
    padding: 10px 0 80px;
    background-image: linear-gradient(90deg, rgb(0, 0, 3) 0%, rgb(0, 0, 7) 33.783783%, rgb(0, 0, 7) 66.666664%, rgb(0, 0, 0) 103%);
}

.feature-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.feature-panel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    font-family: 'McPvP', sans-serif;
    aspect-ratio: 16 / 9;
}

.feature-image {
    width: 100%;
    height: 238px;
    position: relative;
    border-radius: inherit;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.feature-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.feature-panel {
    height: var(--feature-h);
    aspect-ratio: auto;
    display: block;
    position: relative;
    overflow: hidden;
}

.feature-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: inherit;
}

.feature-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 5px 5px 5px 15px;
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.feature-title {
    margin: 0;
    font-size: 28px;
}

.feature-subtitle {
    margin-top: 4px;
    font-size: 16px;
}

.feature-panel.tourneys .feature-content {
    background: linear-gradient(135deg, rgba(153, 64, 255, 0.6), rgba(0, 0, 0, 0.2));
}

.feature-panel.leaderboards .feature-content {
    color: black;
    /*background: linear-gradient(135deg, rgba(255, 214, 64, 0.6), rgba(0, 0, 0, 0.2));*/
}

.home-feature-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.home-feature-panel {
    border: 1px solid rgba(255, 255, 255, .08);
    transition:
        transform .3s cubic-bezier(.22, 1, .36, 1),
        box-shadow .3s ease;
}

.home-feature-panel .feature-content {
    inset: -1px;
    z-index: 2;
    padding: 30px 30px 32px;
}

.home-feature-panel .feature-title {
    font-size: 30px;
    line-height: 1.2;
}

.home-feature-panel .feature-subtitle {
    margin-top: 13px;
    font-size: 16.5px;
    line-height: 1.2;
}

.home-feature-panel .feature-image {
    z-index: 1;
    width: auto;
    height: auto;
    border-radius: 0;
    transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.home-feature-panel.tourneys .feature-image {
    inset: -26.4706% auto auto 12.8696%;
    width: 89.0435%;
    height: 137.395%;
}

.home-feature-panel.tourneys .feature-icon {
    margin-bottom: 10px;
    font-size: 29px;
    line-height: 29px;
}

.home-feature-panel.leaderboards .feature-image {
    inset: -1.2605% auto auto -.5217%;
    width: 101.7391%;
    height: 110.9244%;
}

.home-feature-panel.leaderboards .feature-icon {
    margin-bottom: 0;
    font-size: 36px;
    line-height: 36px;
}

.home-feature-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .32);
}

.home-feature-panel:hover .feature-image {
    transform: scale(1.025);
}

.home-feature-panel:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 720px) {
    .home-feature-panels {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-feature-panel {
        height: clamp(190px, 55vw, var(--feature-h));
    }

    .home-feature-panel .feature-content {
        padding: 24px;
    }

    .home-feature-panel .feature-title {
        font-size: 30px;
    }

    .home-feature-panel .feature-subtitle {
        margin-top: 8px;
        font-size: 16px;
    }

    .home-feature-panel.tourneys .feature-icon {
        font-size: 26px;
        line-height: 26px;
    }

    .home-feature-panel.leaderboards .feature-icon {
        font-size: 30px;
        line-height: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-feature-panel,
    .home-feature-panel .feature-image {
        transition: none;
    }

    .home-feature-panel:hover,
    .home-feature-panel:hover .feature-image {
        transform: none;
    }
}

.well-spacer {
    height: 1px;
    background: #222;
    margin: 24px 0;
}

.home-well {
    width: 100%;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--mcpvp-panel-border);
    border-radius: 11px;
    background: var(--mcpvp-content-well);
}

.home-well__divider {
    width: 100%;
    height: 1px;
    margin: 30px 0;
    background: rgba(112, 112, 112, .8);
}

.home-well__divider + .client-download,
.home-well__divider + .live-matches,
.home-well__divider + .server-locations {
    margin-top: 0;
}

/* Homepage recent news */
.recent-news {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 30px;
    overflow: hidden;
    font-family: 'McPvP', sans-serif;
    font-weight: 500;
}

.recent-news__divider {
    width: 100%;
    height: 1px;
    flex: 0 0 1px;
    background: #707070;
}

.recent-news__title {
    margin: 0;
    color: #fff;
    font: 500 24px/1.2 'McPvP', sans-serif;
}

.recent-news__grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.recent-news__card {
    display: flex;
    min-width: 0;
    height: 408px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 15px;
    overflow: hidden;
    border-radius: 10px;
    background: #060817;
}

.recent-news__media {
    position: relative;
    width: 100%;
    height: 230px;
    flex: 0 0 230px;
    overflow: hidden;
    border-radius: 8px;
}

.recent-news__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.recent-news__body,
.recent-news__copy {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.recent-news__body {
    gap: 16px;
}

.recent-news__card--launch .recent-news__body {
    gap: 20px;
}

.recent-news__tags {
    display: flex;
    width: 100%;
    min-height: 28.4px;
    align-items: flex-start;
    gap: 6px;
    overflow: hidden;
}

.recent-news__tag {
    display: inline-flex;
    min-height: 28.4px;
    flex: 0 0 auto;
    align-items: center;
    padding: 2px 15px 4px;
    overflow: hidden;
    border-radius: 5px;
    background: #192736;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -.64px;
    white-space: nowrap;
}

.recent-news__copy {
    gap: 10px;
    overflow: hidden;
}

.recent-news__copy h3,
.recent-news__copy p {
    margin: 0;
    font-weight: 500;
}

.recent-news__copy h3 {
    color: #fff;
    font-size: 20px;
    line-height: 1.2;
    white-space: nowrap;
}

.recent-news__copy p {
    color: #707070;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: -.56px;
}

@media (max-width: 900px) {
    .recent-news__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .recent-news__grid {
        grid-template-columns: 1fr;
    }

    .recent-news__card {
        height: auto;
        min-height: 408px;
    }

    .recent-news__copy h3 {
        white-space: normal;
    }
}

.servers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    border-bottom: 1px solid #222;
    padding-bottom: 12px;
}

.servers-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    font-family: 'McPvP', sans-serif;
}

.servers-filter {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px;
    transition: color .2s;
}
.servers-filter:hover { color: #ff4444; }

.servers-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.server-item {
    display: grid;
    grid-template-columns: 28px 48px 1fr auto auto;
    align-items: center;
    gap: 16px;
    background: #14161f;
    border: 1px solid #23262f;
    border-radius: 8px;
    padding: 14px 18px;
}

.server-flag { width: 28px; height: 18px; object-fit: cover; border-radius: 2px; }
.server-icon { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.server-domain { font-size: 18px; color: #d7d7d7; font-weight: 600; }
.server-count { font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif; font-size: 14px; color: #e4e4e4; }
.server-divider { opacity: .35; margin: 0 4px; }

.server-link {
    color: #999; display: flex; align-items: center; padding: 4px;
    transition: color .2s; border-radius: 4px;
}
.server-link:hover { color: #ff4444; background: rgba(255, 68, 68, .1); }

.discord-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 24px auto 0;
}

.discord-inner { text-align: center; }
.discord-title {
    font-size: 24px;
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
    color: #fff;
    margin-bottom: 20px;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 26px;
    background: linear-gradient(135deg, #ff4444, #ff1111);
    border-radius: 10px;
    border: 1px solid rgba(255, 68, 68, .6);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 3px 10px rgba(255, 68, 68, .4);
}
.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,68,68,.45);
}
.discord-icon { width: 24px; height: 24px; }

.top-players {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.top-players-title{
    font-size: 32px;
    color: rgb(255, 200, 0);
    background-image: linear-gradient(0deg, #fff 0%, #ffc800 35%, #000 100%);
    text-shadow: rgb(250, 162, 0) 0 1px 17px;
    background-clip: text; -webkit-background-clip: text;
    font-family: 'McPvP', serif; font-weight: 500; text-align: center;
    width: 100%;
    margin: 0 auto 12px;
}

.home-top-countdown[hidden],
.top-players[hidden]{
    display: none;
}

.home-top-countdown__announcement{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.home-top-countdown{
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: clamp(440px, 46vw, 575px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(40px, 6vw, 76px) clamp(10px, 4vw, 48px);
    text-align: center;
    animation: home-countdown-arrive .72s cubic-bezier(.22, 1, .36, 1) both;
}

.home-top-countdown::before{
    position: absolute;
    z-index: -3;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 38px 38px;
    content: '';
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 18%, transparent 72%);
    mask-image: radial-gradient(circle at 50% 50%, #000 18%, transparent 72%);
}

.home-top-countdown::after{
    position: absolute;
    z-index: -2;
    width: min(72vw, 720px);
    aspect-ratio: 1;
    border: 1px solid rgba(244,63,77,.09);
    border-radius: 50%;
    box-shadow:
        0 0 0 74px rgba(244,63,77,.015),
        0 0 110px rgba(244,63,77,.08);
    content: '';
}

.home-top-countdown__glow{
    position: absolute;
    z-index: -1;
    top: 44%;
    left: 50%;
    width: min(88%, 760px);
    height: 170px;
    border-radius: 50%;
    background: rgba(244,63,77,.09);
    filter: blur(58px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.home-top-countdown__logo{
    display: block;
    width: clamp(210px, 28vw, 330px);
    height: auto;
    margin-bottom: clamp(32px, 5vw, 54px);
    filter: drop-shadow(0 12px 30px rgba(0,0,0,.5));
    animation: home-countdown-logo-glow 3.2s ease-in-out infinite;
}

.home-top-countdown__timer{
    display: grid;
    width: min(100%, 850px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-top-countdown__unit{
    position: relative;
    min-width: 0;
    padding: 0 clamp(4px, 2vw, 22px);
}

.home-top-countdown__unit:not(:last-child)::after{
    position: absolute;
    top: .05em;
    right: 0;
    color: rgba(255,255,255,.18);
    content: ':';
    font: 700 clamp(40px, 7vw, 88px)/.85 'McPvP Display', monospace;
    transform: translateX(50%);
}

.home-top-countdown__value{
    display: block;
    color: #f7f7fb;
    font: 700 clamp(50px, 8vw, 106px)/.82 'McPvP Display', monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.06em;
    text-indent: -.06em;
    text-shadow: 0 0 34px rgba(244,63,77,.12);
}

.home-top-countdown__value.is-changing{
    animation: home-countdown-tick .3s cubic-bezier(.22, 1, .36, 1);
}

.home-top-countdown__label{
    display: block;
    margin-top: clamp(12px, 2vw, 20px);
    color: #73798b;
    font: 400 clamp(9px, 1vw, 11px)/1 'McPvP', sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.home-top-countdown__date{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: clamp(30px, 5vw, 48px) 0 0;
    color: #7f8494;
    font: 400 clamp(9px, 1vw, 11px)/1.4 'McPvP', sans-serif;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.home-top-countdown__date::before,
.home-top-countdown__date::after{
    width: clamp(26px, 5vw, 64px);
    height: 1px;
    background: rgba(255,255,255,.12);
    content: '';
}

.home-top-countdown.is-leaving{
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease;
}

.top-players--revealed{
    animation: home-top-players-reveal .46s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes home-countdown-arrive{
    from{ opacity: 0; transform: translateY(10px); }
}

@keyframes home-countdown-logo-glow{
    0%, 100%{ filter: drop-shadow(0 12px 30px rgba(0,0,0,.5)) drop-shadow(0 0 0 rgba(244,63,77,0)); }
    50%{ filter: drop-shadow(0 12px 30px rgba(0,0,0,.5)) drop-shadow(0 0 18px rgba(244,63,77,.18)); }
}

@keyframes home-countdown-tick{
    from{ opacity: .35; transform: translateY(-4px); }
}

@keyframes home-top-players-reveal{
    from{ opacity: 0; transform: translateY(12px); }
}

@media (max-width: 520px){
    .home-top-countdown{
        min-height: 390px;
        padding: 44px 0;
    }

    .home-top-countdown::after{
        width: 290px;
    }

    .home-top-countdown__logo{
        width: min(76vw, 225px);
        margin-bottom: 38px;
    }

    .home-top-countdown__unit{
        padding: 0 2px;
    }

    .home-top-countdown__unit:not(:last-child)::after{
        font-size: clamp(25px, 8vw, 34px);
    }

    .home-top-countdown__value{
        font-size: clamp(37px, 14vw, 55px);
    }

    .home-top-countdown__label{
        margin-top: 10px;
        font-size: 7px;
        letter-spacing: .08em;
    }

    .home-top-countdown__date{
        gap: 7px;
        margin-top: 32px;
        font-size: 7px;
        letter-spacing: .07em;
    }

    .home-top-countdown__date::before,
    .home-top-countdown__date::after{
        width: 18px;
    }
}

@media (prefers-reduced-motion: reduce){
    .home-top-countdown,
    .home-top-countdown__logo,
    .home-top-countdown__value.is-changing,
    .top-players--revealed{
        animation: none;
    }

    .home-top-countdown.is-leaving{
        transition: none;
    }
}

.podium{
    --podium-side-w: 170px;
    --podium-center-w: 190px;
    --podium-gap: 22px;
    display: grid;
    grid-template-columns: var(--podium-side-w) var(--podium-center-w) var(--podium-side-w);
    justify-content: center;
    align-items: end;
    gap: var(--podium-gap);
    width: 100%;
    margin: 0 auto 32px;
}

.podium{
    position: relative;
    isolation: isolate;
}

.podium-ambience{
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: visible;
    pointer-events: none;
    user-select: none;
}

.podium-laurel{
    position: absolute;
    top: 0;
    z-index: 3;
    width: 244px;
    height: 297px;
    display: block;
    object-fit: fill;
    opacity: .34;
    transform-origin: 50% 50%;
}

.podium-laurel--left{
    left: calc(50% - 556px);
    transform: scaleX(-1);
}

.podium-laurel--right{
    right: calc(50% - 564px);
}

.podium-particle-field{
    position: absolute;
    z-index: 1;
    display: block;
    overflow: hidden;
    opacity: 1;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 3px rgba(255, 246, 210, .45));
}

.podium-particle-field img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0;
    will-change: transform, opacity;
}

.podium-particle-field--left{
    top: 0;
    left: calc(50% - 476px);
    width: 290px;
    height: 292px;
    -webkit-mask-image: radial-gradient(ellipse 64% 74% at 82% 57%, #000 12%, #000 43%, rgba(0, 0, 0, .66) 64%, transparent 94%);
    mask-image: radial-gradient(ellipse 64% 74% at 82% 57%, #000 12%, #000 43%, rgba(0, 0, 0, .66) 64%, transparent 94%);
}

.podium-particle-field--left img{
    animation: podium-particles-in-from-left 6.4s linear infinite;
}

.podium-particle-field--right{
    top: 8px;
    right: calc(50% - 580px);
    width: 334px;
    height: 256px;
    -webkit-mask-image: radial-gradient(ellipse 64% 74% at 18% 57%, #000 12%, #000 43%, rgba(0, 0, 0, .66) 64%, transparent 94%);
    mask-image: radial-gradient(ellipse 64% 74% at 18% 57%, #000 12%, #000 43%, rgba(0, 0, 0, .66) 64%, transparent 94%);
}

.podium-particle-field--right img{
    animation: podium-particles-in-from-right 7.1s 1.15s linear infinite;
}

@keyframes podium-particles-in-from-left{
    0%{
        opacity: 0;
        transform: translate3d(-16px, 0, 0) rotate(180deg);
    }
    13%{ opacity: .68; }
    82%{ opacity: .68; }
    100%{
        opacity: 0;
        transform: translate3d(24px, 0, 0) rotate(180deg);
    }
}

@keyframes podium-particles-in-from-right{
    0%{
        opacity: 0;
        transform: translate3d(18px, 0, 0);
    }
    13%{ opacity: .66; }
    82%{ opacity: .66; }
    100%{
        opacity: 0;
        transform: translate3d(-24px, 0, 0);
    }
}

.podium::before{
    content: "";
    position: absolute;
    inset: -18% -10% -12% -10%;
    background: linear-gradient(180deg,#fff0 15%,#ffea051a 56.3063%,#ababab00);
    mask: radial-gradient(48% 75% at 50% 50%, #fff 67%, transparent 100%);
    -webkit-mask: radial-gradient(48% 75% at 50% 50%, #fff 67%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.podium-card{ position: relative; z-index: 1; }

.podium-card{
    --pod-w: 170px;
    --pod-h: 260px;
    --base-h: 34%;
    --tier-name:#fff;
    --place-fg: var(--tier-name);

    width: var(--pod-w);
    height: var(--pod-h);
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr var(--base-h);
    gap: 0;

    padding: 10px 14px 0;
    border-radius: 12px;
    background: #0b0c11;
    border: 1px solid rgba(255,255,255,.04);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 18px 32px rgba(0,0,0,.45);
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.podium-card.first  { --tier-name:#ffcc00; --place-fg:#ffcc00; --pod-w:190px; --pod-h:300px; z-index:2;
    background: linear-gradient(rgb(0, 0, 7) 39%, rgba(255, 221, 0, 0.23) 135%);
    justify-self: center;
}
.podium-card.second { --tier-name:#cfcfcf; --place-fg:#cfcfcf; --pod-w:170px; --pod-h:260px;
    background: linear-gradient(rgb(0, 0, 7) 31%, rgba(84, 84, 84, 0.53) 136%);
    justify-self: end;
}
.podium-card.third  { --tier-name:#cd7f32; --place-fg:#cd7f32; --pod-w:150px; --pod-h:230px;
    background: linear-gradient(rgb(0, 0, 8) 11%, rgba(107, 30, 0, 0.58) 125%);
    justify-self: start;
}

.podium-name{
    grid-row:1;
    margin: 6px 0 8px;
    font-weight: 800;
    font-size: clamp(14px, calc(var(--pod-w) / 8.5), 20px);
    letter-spacing: .5px;
    line-height: 1.05;
    color: var(--tier-name);
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podium-name.is-long{
    font-size: clamp(13px, calc(var(--pod-w) / 10), 17px);
    letter-spacing: .25px;
}

.podium-name.is-xlong{
    font-size: clamp(12px, calc(var(--pod-w) / 11.5), 15px);
    letter-spacing: .1px;
}

.podium-avatar{
    grid-row:2;
    align-self:end;
    justify-self:center;
    width:108px; height:108px;
    object-fit: contain;
    object-position: center bottom;
    z-index:2;
    margin:0;
}

.podium-card.first .podium-avatar{
    width:120px;
    height:120px;
}

.podium-avatar--loading,.skin-avatar--loading{
    visibility: hidden;
}

.podium-place{
    grid-row:3;
    display:flex; align-items:center; justify-content:center;
    font-weight: 900; font-size: 56px; line-height: 1; letter-spacing: 2px;
    color: var(--place-fg);
    text-shadow: rgb(0, 0, 0) 0px 0px 21px, rgb(0, 0, 0) 0px 2px 4px;
}

.podium-card.first  .podium-place{
    box-shadow: inset 0 0 24px rgba(255,180,0,.35);
    background: radial-gradient(92% 184% at 50% -72.5%, rgb(255, 200, 0) 0%, rgba(0, 0, 0, 0) 94.144144%); mask: radial-gradient(50% 219%, rgb(0, 0, 0) 43.243243%, rgba(0, 0, 0, 0) 100%); mask-size: auto; mask-composite: add; mask-mode: match-source; opacity: 1;
    font-size: 70px;

}
.podium-card.second .podium-place{
    background: radial-gradient(92% 184% at 50% -72.5%, rgb(186, 186, 186) 0%, rgba(0, 0, 0, 0) 94.144144%); mask: radial-gradient(44% 219% at 50% 0%, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%); mask-size: auto; mask-composite: add; mask-mode: match-source; opacity: 1;
    box-shadow: inset 0 0 20px rgba(160,160,160,.35);
}
.podium-card.third  .podium-place{
    background: radial-gradient(92% 184% at 50% -72.5%, rgb(222, 104, 0) 0%, rgba(0, 0, 0, 0) 94.144144%); mask: radial-gradient(44% 219% at 50% 0%, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%); mask-size: auto; mask-composite: add; mask-mode: match-source; opacity: 1;
    box-shadow: inset 0 0 20px rgba(205,127,50,.35);
    font-size: 36px;
    align-items: flex-start;
    padding-top: 6px;
}

.podium-card.first .podium-place,
.podium-card.second .podium-place{
    align-items: flex-start;
    padding-top: 6px;
}

@media (max-width: 520px){
    .podium{
        --podium-gap: 8px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .podium-particle-field--left{
        left: calc(50% - 236px);
    }
    .podium-particle-field--right{
        display: none;
    }
    .podium-card.first  { --pod-w:160px; --pod-h:260px; }
    .podium-card.second { --pod-w:140px; --pod-h:230px; }
    .podium-card.third  { --pod-w:128px; --pod-h:210px; }
    .podium-card{ width: 100%; }
    .podium-place{ font-size:44px; }
    .podium-card.first .podium-place{ font-size: 52px; }
    .podium-card.first .podium-place,
    .podium-card.second .podium-place{ padding-top: 4px; }
    .podium-card.third  .podium-place{ font-size: 38px; padding-top: 4px; align-items: flex-start; }
    .podium-avatar{ width:96px; height:96px; }
    .podium-card.first .podium-avatar{ width:108px; height:108px; }
}

.podium-avatar{
    display: block;
    transition: transform .18s ease-out;
    transform-origin: center bottom;
    will-change: transform;
}

.podium-card:hover .podium-avatar{
    transform: scale(1.06);
}

.podium-card:active .podium-avatar{
    transform: scale(1.03);
}
.podium-card:focus-visible .podium-avatar{
    transform: scale(1.06);
}

.podium-card:hover .podium-name,
.podium-card:focus-visible .podium-name{
    text-decoration: underline;
    text-underline-offset: 3px;
}

.podium-card:focus-visible{
    outline: 2px solid var(--tier-name);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce){
    .podium-avatar{ transition: none; }
    .podium-particle-field img{
        animation: none;
        opacity: .56;
        transform: none;
    }
    .podium-particle-field--left img{ transform: rotate(180deg); }
}

.top-list {
    list-style: none;
    margin: 40px auto 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 480px;
}

.top-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #14161f;
    border: 1px solid #23262f;
    border-radius: 8px;
    padding: 10px 16px;
    color: #e4e4e4;
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
}
.top-list-item .rank { width: 24px; font-weight: 700; color: #fff; }
.top-list-item .avatar { width: 48px; height: 48px; border-radius: 6px; }
.top-list-item .name {
    flex: 1;
    font-weight: 600;
    color: #d7d7d7;
    text-decoration: none;
}
.top-list-item .points { font-size: 14px; color: #aaa; }

.home-leaderboard-panel[hidden]{
    display: none;
}

.home-leaderboard-panel:not([hidden]){
    animation: home-leaderboard-in .2s ease-out;
}

@keyframes home-leaderboard-in{
    from{
        opacity: .3;
        transform: translateY(4px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

.leaderboard-wrap{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    text-align: center;
}

.home-leaderboard-switch{
    display: inline-grid;
    grid-auto-flow: column;
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(126, 137, 178, .2);
    border-radius: 7px;
    background: rgba(8, 10, 18, .72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.home-leaderboard-switch__option{
    min-width: 62px;
    min-height: 28px;
    padding: 4px 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #666b7c;
    font-family: 'McPvP', sans-serif;
    font-size: 10px;
    letter-spacing: .08em;
    line-height: 1;
    cursor: pointer;
    transition: color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.home-leaderboard-switch__option:hover{
    color: #aeb4c8;
}

.home-leaderboard-switch__option.is-active{
    color: #ffcf31;
    background: rgba(255, 200, 0, .09);
    box-shadow: inset 0 0 0 1px rgba(255, 200, 0, .16), 0 0 14px rgba(255, 190, 0, .06);
}

.home-leaderboard-switch__option:focus-visible{
    outline: 2px solid rgba(255, 207, 49, .85);
    outline-offset: 2px;
}

.leaderboard-link {
    color: rgb(112, 112, 112);
    text-decoration: none;
    font-weight: 400;
    transition: color .16s ease;
}

.leaderboard-link:hover{
    color: #aeb4c8;
}

@media (max-width: 440px){
    .leaderboard-wrap{
        flex-direction: column;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce){
    .home-leaderboard-panel:not([hidden]){
        animation: none;
    }

    .home-leaderboard-switch__option,
    .leaderboard-link{
        transition: none;
    }
}
.podium-spacer{
    width: min(1020px, 96%);
    height: 2px;
    margin: -4px auto 14px;
    background: linear-gradient(90deg,
    rgba(180, 198, 255, 0.00) 0%,
    rgba(180, 198, 255, 0.25) 10%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(180, 198, 255, 0.25) 90%,
    rgba(180, 198, 255, 0.00) 100%);
    -webkit-mask: radial-gradient(34% 89% at 50% 50%, rgb(0 0 0) 0%, rgb(0 0 0) 50.900901%, rgba(0 0 0 / 0) 100%);
    mask: radial-gradient(34% 89% at 50% 50%, rgb(0 0 0) 0%, rgb(0 0 0) 50.900901%, rgba(0 0 0 / 0) 100%);
    filter: drop-shadow(0 6px 14px rgba(148,178,255,.25));
    opacity: .9;
}
@media (max-width: 520px){
    .podium-spacer{ width: 96%; margin: -2px auto 10px; }
}

.top-list{
    margin: 12px auto 0;
    padding: 0;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-list-item{
    display: grid;
    grid-template-columns: 36px 52px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    background: linear-gradient(180deg,#0b0f1a 0%, #0a0d16 100%);
    border-radius: 12px;
    border: 1px solid #1a2a48;
    box-shadow:
        inset 0 0 0 1px rgba(114,145,245,.08),
        0 8px 20px rgba(0,0,0,.45);
    color: #e4e4e4;
    font-family: 'McPvP', sans-serif;
}

.top-list-item .rank{
    width: auto;
    font-weight: 900;
    font-size: 34px;
    line-height: 1;
    letter-spacing: 1px;
    color: #72a9ff;
    text-shadow:
        0 0 14px rgba(114,169,255,.75),
        0 2px 0 rgba(0,0,0,.65);
}

.top-list-item .avatar{
    width: 52px; height: 52px;
    border-radius: 8px;
    filter: drop-shadow(0px 1px 7px #556b82);
    object-fit: cover;
}

.top-list-item .name{
    font-weight: 700;
    font-size: 20px;
    color: #e9ecff;
    letter-spacing: .3px;
    text-decoration: none;
}

.top-list-item .name:hover,
.top-list-item .name:focus-visible{
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.top-list-item .name:focus-visible{
    outline: 2px solid #72a9ff;
    outline-offset: 3px;
}

.top-list-item .points{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #bfc8e8;
    white-space: nowrap;
}

.top-list-item .points-icon{
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255,200,0,.45));
    transform: translateY(-.4px);
}

.top-players .top-list{
    max-width: 550px;
    margin-top: 10px;
    gap: 10px;
}

.top-players .top-list-item{
    padding: 10px 14px;
    grid-template-columns: 30px 44px 1fr auto;
    gap: 12px;
    border-radius: 10px;
}

.live-matches { margin-top: 8px; }

.matches-header{
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #222;
}

.matches-colheads{
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr 120px 80px;
    gap: 16px;
    font-family: 'McPvP', sans-serif;
    font-size: 12px;
    color: #9197a6;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.matches-colheads .players { grid-column: 2; }
.matches-colheads .kit     { grid-column: 3; text-align: left; }
.matches-colheads .result  { grid-column: 4; text-align: left; }

.matches-list{
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-row{
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr 120px 80px;
    gap: 16px;
    align-items: center;
    background: linear-gradient(180deg, #0b0f1a 0%, #0a0d16 100%);
    border: 1px solid #1a2a48;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow:
        inset 0 0 0 1px rgba(114,145,245,.07),
        0 8px 18px rgba(0,0,0,.45);
}

.match-row .server{
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.swords{
    width: 28px; height: 28px;
    border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #0f121c;
    border: 1px solid #232a3d;
    box-shadow: inset 0 0 0 1px rgba(114,145,245,.06);
    color: #d6d9e6;
}
.swords-svg{ width: 18px; height: 18px; display: block; }
.server-name{
    color: #d7d7d7;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
}

.match-row .players{
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'McPvP', sans-serif;
}
.match-row .player{
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .2px;
}
.match-row .player.loser  { color: #72a9ff; }
.match-row .player.winner { color: #61ff89; }
.match-row a.player:hover,
.match-row a.player:focus-visible{
    text-decoration: underline;
    text-underline-offset: 3px;
}
.match-row a.player:focus-visible{
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}
.match-row .vs{
    color: #8ea3cc; opacity: .9; font-weight: 600;
    font-size: 12px; text-transform: uppercase; letter-spacing: .12em;
}

.match-row .kit{
    display: inline-flex; align-items: center; gap: 10px;
    color: #cfd3ff; font-weight: 600;
}
.match-row .kit-icon{
    width: 20px; height: 20px;
    image-rendering: pixelated;
    object-fit: contain;
    padding: 0; border: none; background: none; box-shadow: none;
}

.kit-icon-wrap{
    position: relative;
    display: inline-block;
}
.kit-icon-wrap::after{
    content: attr(data-title);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%) translateY(-8px);
    background: #0b0c11;
    color: #e7e9ef;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #2a2f3b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
    z-index: 10;
}
.kit-icon-wrap::before{
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%) translateY(2px);
    border: 6px solid transparent;
    border-top-color: #0b0c11;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
    z-index: 10;
}
.kit-icon-wrap:hover::after,
.kit-icon-wrap:hover::before{
    opacity: 1;
}

.match-row .result .score{
    font-family: 'McPvP', sans-serif;
    color: #e9ecff;
    font-weight: 800;
    letter-spacing: .5px;
}

.match-row:hover{
    border-color: #2a3e6e;
    box-shadow:
        inset 0 0 0 1px rgba(114,145,245,.12),
        0 10px 22px rgba(0,0,0,.5);
    transform: translateY(-1px);
}

@media (max-width: 820px){
    .matches-colheads{ display:none; }
    .match-row{
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }
    .match-row .server{ order: 1; }
    .match-row .players{ order: 2; }
    .match-row .kit{ order: 3; }
    .match-row .result{ order: 4; }
}

.top-players .top-list-item .rank{ font-size: 24px; }
.top-players .top-list-item .avatar{ width: 44px; height: 44px; }
.top-players .top-list-item .name{
    font-size: 16px;
    text-decoration: none;
}
.top-players .top-list-item .points{ font-size: 12px; }
.top-players .top-list-item .points::before{ font-size: 10px; }

.live-matches .matches-header{
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr 120px 80px;
    align-items: end;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #222;
}

.live-matches #live-matches-title{
    grid-column: 1;
    margin: 0;
    align-self: end;
}

.live-matches .matches-colheads{
    display: contents;
}

.live-matches .matches-colheads .players{ grid-column: 2; }
.live-matches .matches-colheads .kit    { grid-column: 3; text-align: left; }
.live-matches .matches-colheads .result { grid-column: 4; text-align: left; }

.live-matches .match-row{
    grid-template-columns: minmax(220px, 280px) 1fr 120px 80px;
}

.live-matches .match-row--empty{
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: center;
    color: #9197a6;
    text-align: center;
}

.live-matches .matches-list{ margin-top: 10px; }

/* Homepage client download banner */
.client-download{
    margin-top: 30px;
}

.client-download__banner{
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 173px;
    padding: 30px;
    overflow: hidden;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(29deg, #ff7300 0%, #6b0919 71%);
    transition:
        transform .8s cubic-bezier(.16, 1, .3, 1),
        box-shadow .8s cubic-bezier(.16, 1, .3, 1);
}

.client-download__content{
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 444px;
    max-width: 100%;
}

.client-download__lockup{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56.414px;
    overflow: clip;
}

.client-download__own-slot,
.client-download__mcpvp-slot{
    display: flex;
    flex: 0 0 138px;
    align-items: center;
    justify-content: center;
    overflow: clip;
}

.client-download__own-slot{
    height: 56.414px;
    align-items: flex-start;
}

.client-download__mcpvp-slot{
    height: 45px;
}

.client-download__own-logo,
.client-download__mcpvp-logo{
    display: block;
    flex: none;
    object-fit: fill;
    filter: drop-shadow(2px 1px 0 rgba(0, 0, 0, .4));
}

.client-download__own-logo{
    width: 125px;
    height: 45.414px;
}

.client-download__mcpvp-logo{
    width: 123px;
    height: 33.945px;
}

.client-download__times{
    flex: 0 0 auto;
    font-family: 'McPvP Banner', monospace;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
    color: #fff;
    text-shadow: 2px 1px 0 rgba(0, 0, 0, .38);
}

.client-download__copy{
    font-family: 'McPvP Banner', monospace;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    color: #fff;
    white-space: nowrap;
    text-shadow: 2px 1px 0 rgba(0, 0, 0, .38);
}

.client-download__pixels,
.client-download__liquid{
    position: absolute;
    display: block;
    pointer-events: none;
}

.client-download__pixels{
    z-index: 0;
    top: -264px;
    bottom: -244px;
    left: calc(50% - 30.634920635%);
    width: 61.26984127%;
    opacity: .15;
    transform: rotate(450deg);
}

.client-download__liquid{
    z-index: 1;
    inset: -82px -12px -183px;
    opacity: .27;
    mix-blend-mode: plus-lighter;
}

.client-download__pixels-canvas,
.client-download__liquid-canvas{
    display: block;
    width: 100%;
    height: 100%;
}

.client-download__pixels-canvas{
    image-rendering: pixelated;
}

.client-download__banner:hover{
    transform: scale(1.03);
    box-shadow: inset 0 0 50px -16px #fff;
}

.client-download__banner:focus-visible{
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.client-download__banner:active{
    transform: scale(1.01);
}

@media (max-width: 520px){
    .client-download{
        margin-top: 20px;
    }

    .client-download__banner{
        height: 150px;
        padding: 24px 12px;
    }

    .client-download__content{
        gap: 5px;
    }

    .client-download__lockup{
        gap: 8px;
        height: 47px;
    }

    .client-download__own-slot,
    .client-download__mcpvp-slot{
        flex-basis: 110px;
    }

    .client-download__own-slot{
        height: 47px;
    }

    .client-download__mcpvp-slot{
        height: 38px;
    }

    .client-download__own-logo{
        width: 100px;
        height: 37px;
    }

    .client-download__mcpvp-logo{
        width: 98px;
        height: 28px;
    }

    .client-download__times{
        font-size: 29px;
    }

    .client-download__copy{
        font-size: clamp(11px, 3.65vw, 15px);
    }
}

@media (prefers-reduced-motion: reduce){
    .client-download__banner{
        transition: none;
    }
}

/* Homepage server locations */
.server-locations{
    width: calc(100% + 20px);
    height: 489px;
    margin-top: 30px;
    margin-left: -10px;
    padding: 15px;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: #0b0e1a;
    box-shadow: inset 0 0 0 1px var(--mcpvp-panel-border);
    font-family: 'McPvP Banner', monospace;
    -webkit-font-smoothing: antialiased;
}

.server-locations__header{
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-bottom: 30px;
    text-align: center;
}

.server-locations__eyebrow,
.server-locations__caption{
    margin: 0;
    color: #707070;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
}

.server-locations__title-row{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.server-locations__title-row h2{
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
}

.server-locations__title-icon{
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    fill: none;
    stroke: #707070;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.server-locations__map-column{
    min-width: 0;
}

.server-locations__map{
    position: relative;
    height: 323px;
    overflow: hidden;
    border-radius: 0 0 20px 0;
    background: #000;
}

.server-locations__map img{
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.server-locations__map-count{
    position: absolute;
    z-index: 1;
    top: 15px;
    left: 20px;
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 23px;
}

.server-locations__map-count svg{
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    fill: none;
    stroke: #707070;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.server-locations__caption{
    margin-top: 10px;
}

.server-locations__list{
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.server-locations__region{
    min-width: 0;
    height: 45px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 20px 0 30px;
    border: 0;
    border-radius: 10px;
    background: var(--mcpvp-ranking-card);
    box-shadow: inset 0 0 0 1px var(--mcpvp-panel-border);
}

.server-locations__region-name{
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.server-locations__status{
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #00c267;
}

.server-locations__metrics{
    min-width: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.server-locations__metric{
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 0;
    border-radius: 4px;
    background: var(--mcpvp-nav-panel);
    box-shadow: inset 0 0 0 1px var(--mcpvp-panel-border);
    font-weight: 500;
    white-space: nowrap;
}

.server-locations__metric--servers{
    color: #fff;
    font-size: 14px;
}

.server-locations__metric--online{
    min-width: 106px;
    gap: 6px;
    color: #707070;
    font-size: 12px;
}

.server-locations__online-dot{
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #00c267;
}

@media (max-width: 900px){
    .server-locations{
        height: auto;
    }

    .server-locations__content{
        grid-template-columns: 1fr;
    }

    .server-locations__map{
        height: clamp(250px, 52vw, 390px);
    }
}

@media (max-width: 520px){
    .server-locations{
        width: 100%;
        margin-top: 20px;
        margin-left: 0;
        padding: 12px;
    }

    .server-locations__header{
        margin-bottom: 24px;
    }

    .server-locations__title-row h2{
        font-size: 22px;
    }

    .server-locations__title-icon{
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    .server-locations__map{
        height: 250px;
    }

    .server-locations__map-count{
        left: 15px;
        font-size: 16px;
    }

    .server-locations__caption{
        font-size: 14px;
    }

    .server-locations__region{
        height: auto;
        min-height: 78px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
        padding: 12px 14px;
    }

    .server-locations__region-name{
        gap: 12px;
        font-size: 16px;
    }

    .server-locations__metrics{
        width: 100%;
        margin-left: 22px;
        justify-content: flex-start;
    }

    .server-locations__metric{
        height: 31px;
    }

    .server-locations__metric--servers{
        font-size: 13px;
    }
}

@media (max-width: 820px){
    .live-matches .matches-colheads{ display: none; }
}

@media (max-width: 900px){
    .nav-link span, .btn-signin span{ display:none; }
    .navbar-content{ padding: 0 14px; }
    .nav-left, .nav-right{ gap: 10px; }
    .nav-center .logo{ padding: 6px 16px; }
    .logo-img{ height: 32px; }
}

@media (max-width: 768px) {
    .nav-link span, .btn-signin span { display: none; }
    .logo { padding: 6px 16px; }
    .logo-img { height: 32px; }
    .nav-left, .nav-right { gap: 4px; }

    .search-wrapper { padding: 0 16px; }
    .search-input {
        padding: 14px 14px 14px 46px;
        font-size: 14px;
    }
    .search-card { padding: 24px; }
    .search-tabs { gap: 10px; }
    .search-results-meta { align-items: stretch; }
    .search-sort { width: 100%; justify-content: space-between; }
    .search-sort label { flex: 0 0 auto; }
    .search-sort select { flex: 1 1 auto; }
}

@media (max-width: 900px) {
    .footer {
        height: auto;
        min-height: 210px;
        padding: 28px 0;
        overflow: visible;
    }
    .footer-content {
        height: auto;
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .footer-left {
        width: 100%;
        min-width: 0;
        height: auto;
    }
    .footer-legal {
        width: 100%;
        height: auto;
        min-height: 36px;
        padding-top: 10px;
        white-space: normal;
    }
    .footer-links { justify-self: start; }
}

@media (max-width: 600px) {
    .footer {
        min-height: 272px;
        padding: 28px 0;
    }
    .footer-content {
        justify-items: stretch;
        text-align: left;
    }
    .footer-left { align-items: flex-start; }
    .footer-legal {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 6px 10px;
        line-height: 1.45;
    }
    .footer-legal span:last-child { flex-basis: 100%; }
    .footer-links {
        width: 240px;
        height: 80px;
        justify-self: start;
        grid-template-columns: repeat(2, 100px);
        grid-template-rows: repeat(3, 20px);
        justify-content: start;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .search-wrapper { padding: 0 12px; }
    .search-card { padding: 20px; }
    .search-result {
        flex-direction: column;
        align-items: flex-start;
    }
    .result-arrow {
        align-self: flex-end;
    }

    :root {
        --auth-pad-x: 24px;
        --auth-pad-y: 32px;
    }

    .auth-card { padding: var(--auth-pad-y) var(--auth-pad-x) 48px; }
    .auth-logo img { height: 48px; }
    .auth-heading { font-size: 24px; margin-bottom: 24px; }
    .auth-input { font-size: 15px; padding: 12px 14px; }
    .form-row.form-aux { flex-direction: column; align-items: flex-start; gap: 12px; }
    .auth-submit { font-size: 15px; padding: 12px 20px; }
}

.navbar {
    background: linear-gradient(90deg, rgb(0, 0, 3) 0%, rgb(0, 0, 7) 33.783783%, rgb(0, 0, 7) 66.666664%, rgb(0, 0, 0) 103%) !important;
}

.navbar-content {
    background: linear-gradient(90deg, rgb(0, 0, 3) 0%, rgb(0, 0, 7) 33.783783%, rgb(0, 0, 7) 66.666664%, rgb(0, 0, 0) 103%) !important;
}

.nav-center .logo{
    background: linear-gradient(90deg, rgb(0, 0, 3) 0%, rgb(0, 0, 7) 33.783783%, rgb(0, 0, 7) 66.666664%, rgb(0, 0, 0) 103%) !important;
}

.logo-img{
    height: 42px !important;
    width: auto;
}

@media (max-width: 900px){
    .nav-center .logo{ padding: 2px 14px !important; }
    .logo-img{ height: 30px !important; }
}

@media (max-width: 540px) {
    :root {
        --link-pad: 10px;
        --btn-h: 32px;
        --nav-icon-size: 15px;
    }

    .navbar .container { padding: 10px 12px; }

    .navbar-content {
        height: auto;
        min-height: var(--nav-h);
        padding: 10px 12px;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 8px;
    }

    .nav-left, .nav-right {
        flex: 1 1 45%;
        justify-content: center;
    }

    .nav-center {
        position: static;
        transform: none;
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .nav-left, .nav-right { gap: 6px; }
    .nav-link, .btn-signin { padding: 0 var(--link-pad); }

    .logo { padding: 5px 12px; }
    .logo-img { height: 26px !important; }
}

.search-container{
    margin-top: 5px;
    padding: 15px 0;
    background: linear-gradient(90deg, rgb(0, 0, 3) 0%, rgb(0, 0, 7) 33.783783%, rgb(0, 0, 7) 66.666664%, rgb(0, 0, 0) 103%) !important;
    border-top: 0;
}

.search-wrapper{
    max-width: var(--site-shell-max);
    margin: 0 auto;
    padding: 0 var(--site-content-gutter);
    background: linear-gradient(90deg, rgb(0, 0, 3) 0%, rgb(0, 0, 7) 33.783783%, rgb(0, 0, 7) 66.666664%, rgb(0, 0, 0) 103%) !important;
}

.search-input{
    background: linear-gradient(90deg, rgb(0, 0, 3) 0%, rgb(0, 0, 7) 33.783783%, rgb(0, 0, 7) 66.666664%, rgb(0, 0, 0) 103%) !important;
    color: #fff;
    border: 1px solid #232323;
    font-family: 'McPvP', sans-serif;
}

.search-input:focus{
    background: linear-gradient(90deg, rgb(0, 0, 3) 0%, rgb(0, 0, 7) 33.783783%, rgb(0, 0, 7) 66.666664%, rgb(0, 0, 0) 103%) !important;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(255,68,68,.15);
}

.search-input::placeholder{
    font-family: 'McPvP', sans-serif;
    color: #777;
    opacity: 1;
}

.search-icon{ color: #777; }

.profile-container {
    border: 1px solid rgb(16, 20, 30);
    border-radius: 14px;
    padding: 24px;
}

.tiers-section { padding: 12px 0 80px; background: var(--mcpvp-bg) !important; }

.tiers-card{
    background: linear-gradient(90deg, rgb(0,0,3) 0%, rgb(0,0,7) 33.78%, rgb(0,0,7) 66.66%, rgb(0,0,0) 103%);
    border: 1px solid #1e293b;
    box-shadow: inset 0 0 0 1px rgba(30,41,59,.25);
    border-radius: 12px;
    padding: 14px;
}

.tiers-tabbar{
    display: flex; flex-wrap: wrap; gap: 12px;
    margin-bottom: 12px;
}
.tier-tab{
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 132px; height: 64px;
    background: linear-gradient(90deg, rgb(0,0,3) 0%, rgb(0,0,7) 33.78%, rgb(0,0,7) 66.66%, rgb(0,0,0) 103%);
    border: 1px solid #1e293b;
    border-radius: 12px;
    color: #a9b3c9;
    font-size: 12px; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase;
    gap: 6px; cursor: pointer;
    transition: color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.tier-tab--overall{
    box-shadow:
        inset 0 0 14px rgba(255,255,255,.18),
        inset 0 0 20px rgba(255,255,255,.08),
        0 10px 22px rgba(0,0,0,.55);
}
.tier-tab .tier-icon{ width: 20px; height: 20px; image-rendering: pixelated; }
.tier-tab i{ font-size: 18px; }
.tier-tab:hover{ color: #e6e9f6; border-color: #2a3550; }
.tier-tab--overall .tier-icon,
.tier-tab--overall i{
    transition: transform .2s ease, filter .2s ease;
}
.tier-tab--overall:hover .tier-icon,
.tier-tab--overall:hover i{
    transform: scale(1.5);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,.6));
}
.tier-tab.active{
    border-color: #fff; color: #fff;
    box-shadow: inset 0 0 14px rgba(255,255,255,.18),
    inset 0 0 20px rgba(255,255,255,.08);
}
.tier-tab--overall.active{
    box-shadow:
        inset 0 0 14px rgba(255,255,255,.18),
        inset 0 0 20px rgba(255,255,255,.08),
        0 10px 22px rgba(0,0,0,.55);
}

.tiers-toolbar{
    display: grid; grid-template-columns: 1fr auto; align-items: center;
    gap: 12px; padding-top: 8px; border-top: 1px solid #1e293b;
}
.tiers-search{ position: relative; }
.tiers-search input{
    width: 100%; height: 40px; border-radius: 10px;
    background: linear-gradient(90deg, rgb(0, 0, 3) 0%, rgb(0, 0, 7) 33.783783%, rgb(0, 0, 7) 66.666664%, rgb(0, 0, 0) 103%); border: 1px solid #232323; color: #fff;
    padding: 0 44px 0 40px; font-family: 'McPvP', sans-serif;
}
.tiers-search input::-webkit-search-cancel-button{
    -webkit-appearance: none;
    appearance: none;
    display: none;
}
.tiers-search input::-ms-clear{ display: none; }
.tiers-search > i{
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: #777;
}
.tiers-search-clear{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6f9df8;
    cursor: pointer;
    transition: color .15s ease, opacity .15s ease;
}
.tiers-search-clear:hover{ color: #fff; }
.tiers-search-clear i{ pointer-events: none; }
.tiers-search.is-loading .tiers-search-clear{
    color: transparent;
    cursor: default;
}
.tiers-search.is-loading .tiers-search-clear::after{
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid rgba(114,169,255,.35);
    border-top-color: #72a9ff;
    border-radius: 999px;
    animation: tiers-search-spin .75s linear infinite;
}
@keyframes tiers-search-spin{
    to{ transform: rotate(360deg); }
}
.tiers-tools{ display: inline-flex; gap: 8px; }
.tiers-filter{
    position: relative;
    display: inline-flex;
}
.tiers-filter.has-active-filter .icon-btn{
    color: #fff;
    border-color: #ffd766;
    box-shadow: 0 0 14px rgba(255,215,0,.16);
}
.tiers-filter-menu{
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 40;
    min-width: 210px;
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border: 1px solid #1e293b;
    border-radius: 10px;
    background: #080b13;
    box-shadow: 0 18px 36px rgba(0,0,0,.55), inset 0 0 0 1px rgba(114,145,245,.06);
}
.tiers-filter.is-open .tiers-filter-menu{ display: flex; }
.tiers-filter-field{
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #8f99b3;
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.tiers-filter-field select{
    height: 34px;
    border: 1px solid #232a3d;
    border-radius: 7px;
    background: #0d111d;
    color: #eef2ff;
    padding: 0 10px;
    font: 700 13px/1 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
}
.tiers-filter-check{
    display: flex;
    align-items: center;
    gap: 9px;
    color: #dce4f8;
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}
.tiers-filter-check input{
    width: 15px;
    height: 15px;
    accent-color: #ffd766;
}
.tiers-info{ position: relative; display: inline-flex; justify-content: center; }
.tiers-info-tooltip{
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    width: 260px;
    max-width: calc(100vw - 40px);
    padding: 16px;
    border-radius: 12px;
    background: #080b13;
    border: 1px solid #1e293b;
    box-shadow: 0 14px 28px rgba(0,0,0,.55);
    color: #e4e9ff;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -8px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    z-index: 40;
    pointer-events: none;
}
.tiers-info-tooltip::before{
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    width: 14px;
    height: 14px;
    background: #080b13;
    border-top: 1px solid #1e293b;
    border-left: 1px solid #1e293b;
    transform: translateX(-50%) rotate(45deg);
}
.tiers-info:hover .tiers-info-tooltip,
.tiers-info:focus-within .tiers-info-tooltip{
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
}
.tiers-info-tooltip__title{
    font-size: 16px;
    font-weight: 700;
    color: #f7f9ff;
    margin: 0 0 12px;
}
.tiers-info-tooltip__list{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tiers-info-tooltip__item{
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tiers-info-tooltip__heading{
    display: flex;
    align-items: center;
    gap: 8px;
}
.tiers-info-tooltip__icon{ width: 16px; height: 20px; display: block; object-fit: contain; image-rendering: pixelated; }
.tiers-info-tooltip__dash{ color: #6f7a9a; font-size: 13px; line-height: 1; }
.tiers-info-tooltip__label{
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .01em;
    color: #fff;
}
.tiers-info-tooltip__desc{
    display: block;
    font-size: 12px;
    color: #9aa1b7;
    letter-spacing: .01em;
}
.icon-btn{
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(90deg, rgb(0,0,3) 0%, rgb(0,0,7) 33.78%, rgb(0,0,7) 66.66%, rgb(0,0,0) 103%);
    border: 1px solid #1e293b; color: #a9b3c9; border-radius: 8px; cursor: pointer;
    text-decoration: none;
    transition: color .15s ease, border-color .15s ease;
}
.icon-btn:hover{ color: #fff; border-color: #fff; }

.tiers-head{
    display: grid;
    grid-template-columns: 60px minmax(220px, 1fr) 120px 1fr;
    align-items: center;
    gap: 10px;
    padding: 12px 6px; margin-top: 6px;
    color: #9197a6; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.tiers-head .col-points{ text-align: right; }
.tiers-head .col-region{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.tiers-list{ list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 10px; }

.tiers-row{
    display: grid; grid-template-columns: 60px minmax(220px, 1fr) 100px 120px 1fr;
    gap: 10px; align-items: center;
    background-color:  rgb(0, 0, 0);
    border: 1px solid #1a2a48; border-radius: 3px;
    padding: 12px 10px;
    box-shadow:
        inset 0 0 0 1px rgba(114,145,245,.08),
        0 8px 20px rgba(0,0,0,.45);
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease;
    perspective: 900px;
}
.tiers-row:hover{
    border-color: rgb(244, 42, 42);
    box-shadow:
        inset 0 0 0 1px rgba(255, 59, 59, .22),
        0 10px 22px rgba(0,0,0,.55);
}

.tiers-row.top1{ border-color: rgb(255, 200, 0); }
.tiers-row.top2{ border-color: rgb(184, 183, 182);}
.tiers-row.top3{ border-color: rgb(227, 135, 54);}
.tiers-row.top1:hover,
.tiers-row.top2:hover,
.tiers-row.top3:hover{
    border-color: rgb(244, 42, 42);
}

.rank-num{
    width: 40px; display: inline-block; text-align: center;
    font-weight: 900; font-size: 24px; line-height: 1; letter-spacing: 1px;
    color: #72a9ff; text-shadow: 0 0 10px rgba(114,169,255,.6);
}
.rank-num--wide{
    width: 54px;
    font-size: 20px;
    letter-spacing: 0;
}
.rank-num--extra-wide{
    width: 56px;
    font-size: 17px;
    letter-spacing: 0;
}
.rank-num.gold{   color: #f6c64a; text-shadow: 0 0 10px rgba(246,198,74,.6); }
.rank-num.silver{ color: #cfd3dd; text-shadow: 0 0 10px rgba(207,211,221,.5); }
.rank-num.bronze{ color: #cd7f32; text-shadow: 0 0 10px rgba(205,127,50,.6); }

.col-player{ display: inline-flex; align-items: center; gap: 12px; min-width: 220px; }
.avatar{ position: relative; display: inline-block; width: 40px; height: 40px; border-radius: 6px; image-rendering: pixelated; filter: drop-shadow(0 1px 8px #556b82); }
.avatar::after{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 38%, rgb(0, 0, 0) 65%);
    pointer-events: none;
}
.tiers-row .avatar{
    width: 42px;
    height: 42px;
    transition: transform .32s cubic-bezier(.2,.8,.35,1.05), filter .22s ease;
    transform: none;
    transform-origin: center;
}
.tiers-row:hover .avatar,
.tiers-row .avatar.tiers-avatar-active{
    transform: translateY(-8px) translateZ(52px) scale(2.25);
    filter: drop-shadow(0 8px 22px rgba(85,107,130,.98));
}
.player-name{ color: #e9ecff; font-weight: 700; text-decoration: none; }
.player-name:hover,
.player-name:focus-visible{ color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.player-name:focus-visible{ outline: 2px solid #72a9ff; outline-offset: 3px; border-radius: 2px; }
.player-points{ margin-left: 6px; color: #bfc8e8; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.player-points__icon{ width: 16px; height: 20px; border-radius: 4px; filter: drop-shadow(0 0 10px rgba(255,200,0,.45)); object-fit: cover; flex-shrink: 0; }

.col-region{
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.region-pill{
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; padding: 6px 12px; border-radius: 8px;
    background: #0b0c11; color: #cbbcff; border: 1px solid #3b3175;
    font-weight: 800; letter-spacing: .04em;
}
.region-pill.eu{ color: #a3ffdd; border-color: #146b63; }

.col-kits{ display: grid; grid-auto-flow: column; grid-auto-columns: minmax(44px, auto); gap: 10px; justify-content: end; }
.kit-tile{
    --kit-accent: #2a2f3b;
    --kit-glow: rgba(255,255,255,.02);
    --kit-brightness: .78;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 8px;
    position: relative;
}
.kit-icon{
    width: 40px; height: 40px; padding: 6px; border-radius: 6px;
    border: 1px solid var(--kit-accent); background: rgba(255,255,255,.02);
    box-shadow: inset 0 0 0 1px rgba(30,41,59,.25), 0 0 16px var(--kit-glow);
    filter: brightness(var(--kit-brightness));
    image-rendering: pixelated; object-fit: contain;
}
.kit-tier-label{
    min-width: 32px;
    padding: 3px 5px 2px;
    border-radius: 2px;
    background: transparent;
    border: 1px solid #FFD700;
    color: #FFD700;
    box-shadow: 0 0 10px rgba(255,215,0,.16);
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .03em;
    text-align: center;
    text-transform: uppercase;
    pointer-events: none;
}
.kit-tile--tier-1{ --kit-accent:#ffe37d; --kit-glow:rgba(255,215,0,.34); --kit-brightness:1.36; }
.kit-tile--tier-2{ --kit-accent:#f1f5ff; --kit-glow:rgba(226,232,240,.28); --kit-brightness:1.22; }
.kit-tile--tier-3{ --kit-accent:#ffbc82; --kit-glow:rgba(255,160,92,.22); --kit-brightness:1.08; }
.kit-tile--tier-4{ --kit-accent:#85c2ff; --kit-glow:rgba(96,165,250,.16); --kit-brightness:.96; }
.kit-tile--tier-5{ --kit-accent:#9de6be; --kit-glow:rgba(94,180,132,.12); --kit-brightness:.86; }
.kit-tile--pos-high .kit-icon{ transform: translateY(-1px); }
.kit-tile--pos-low{ opacity:.8; }
.kit-tile--retired{
    opacity: .74;
    filter: grayscale(.35);
}
.kit-tile--retired .kit-tier-label{
    color: rgba(255,215,0,.82);
    border-color: rgba(255,215,0,.68);
}
.kit-tile--empty{ opacity:.26; filter: grayscale(1); }

@media (max-width: 900px){
    .tiers-row, .tiers-head{ grid-template-columns: 44px minmax(160px,1fr) 84px 1fr; }
    .tier-tab{ width: 120px; height: 60px; }
}
@media (max-width: 720px){
    .col-kits{ grid-auto-columns: 40px; }
    .kit-icon{ width: 34px; height: 34px; }
}
@media (max-width: 640px){
    .tiers-row, .tiers-head{ grid-template-columns: 36px 1fr; }
    .col-region, .col-points, .col-kits{ grid-column: 1 / -1; justify-self: start; }
    .col-kits{ justify-content: start; }
}

@media (min-width: 901px){
    .tiers-tabbar{
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }

    .tier-tab{
        width: auto;
        min-width: 0;
        height: 56px;
        padding: 6px 6px;
        border-radius: 10px;
    }

    .tier-tab .tier-icon{ width: 18px; height: 18px; }
    .tier-tab i{ font-size: 16px; }
    .tier-tab span{
        font-size: 11px;
        letter-spacing: .06em;
        font-family: McPvP;
    }
}

@media (max-width: 900px){
    .tiers-tabbar{
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .tier-tab{
        flex: 0 0 auto;
        height: 52px;
        padding: 6px 8px;
        border-radius: 10px;
    }
    .tier-tab .tier-icon{ width: 18px; height: 18px; }
    .tier-tab i{ font-size: 16px; }
    .tier-tab span{ font-size: 11px; }
}


.tiers-grid{
    display: grid;
    grid-template-columns:
        var(--tiers-rank)
        minmax(var(--tiers-player-min), 1fr)
        var(--tiers-region)
        1fr;
    gap: 10px;
    align-items: center;
}

.tiers-head{ padding: 12px 10px; margin-top: 6px; }
.tiers-row{  padding: 12px 10px; }

/* center # and Region in their columns */
.tiers-grid .col-rank,
.tiers-grid .col-region {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    text-align: center;
    width: 100%;
}

/* keep points/right side aligned to the right */
.tiers-head .col-points,
.tiers-row .col-points,
.tiers-row .col-kits {
    justify-self: end;
    text-align: right;
}

.tiers-head .col-points{ white-space: nowrap; }

.is-hidden{ display: none !important; }

.kit-board{
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.kit-tier{
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kit-tier-head{
    height: 44px;
    display: flex; align-items: center;
    padding: 0 14px;
    font-family: 'McPvP Display', 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
    font-weight: 700; letter-spacing: .03em; font-size: 14px; color: #08090a;
    text-shadow:
        0 1px 0 rgba(255,255,255,.34),
        0 2px 4px rgba(0,0,0,.2);
    border: 2px solid transparent;
    border-radius: 2px;
    box-shadow: 0 10px 20px rgba(0,0,0,.35);
}
.kit-tier-head.t1{
    background: linear-gradient(180deg, #ffd65a 0%, #e4b72b 100%);
    border-color: #ffe37d;
}
.kit-tier-head.t2{
    background: linear-gradient(180deg, #e3e6ec 0%, #bfc4ce 100%);
    border-color: #ebebeb;
}
.kit-tier-head.t3{
    background: linear-gradient(180deg, #b88963 0%, #8a6048 100%);
    border-color: #c79a78;
}
.kit-tier-head.t4{
    background: linear-gradient(180deg, #9aa1ad 0%, #68717d 100%);
    border-color: #aeb5c0;
}
.kit-tier-head.t5{
    background: linear-gradient(180deg, #7f858f 0%, #565d66 100%);
    border-color: #969da8;
}

.kit-tier-list{
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.kit-item{
    --tier-bg: #0c0f19;
    --tier-tint: rgba(114,145,245,.05);
    --tier-border: #1a2a48;
    --tier-inner: rgba(114,145,245,.06);
    --tier-hover-border: #2a3e6e;
    --tier-hover-glow: rgba(114,145,245,.12);
    display: grid;
    grid-template-columns: 12px 28px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background:
        linear-gradient(90deg, var(--tier-tint) 0%, rgba(255,255,255,0) 72%),
        linear-gradient(90deg, #0d111d 0%, #090c15 100%);
    border: 1px solid var(--tier-border);
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px var(--tier-inner);
}
.kit-item:hover{
    border-color: var(--tier-hover-border);
    box-shadow: inset 0 0 0 1px var(--tier-hover-glow), 0 6px 14px rgba(0,0,0,.45);
}
.kit-item--tier-1{
    --tier-tint: rgba(255,215,0,.09);
    --tier-border: rgba(255,227,125,.5);
    --tier-inner: rgba(255,215,0,.12);
    --tier-hover-border: #ffe37d;
    --tier-hover-glow: rgba(255,215,0,.18);
}
.kit-item--tier-2{
    --tier-tint: rgba(226,232,240,.07);
    --tier-border: rgba(241,245,249,.34);
    --tier-inner: rgba(226,232,240,.1);
    --tier-hover-border: #f8fafc;
    --tier-hover-glow: rgba(226,232,240,.14);
}
.kit-item--tier-3{
    --tier-tint: rgba(184,137,99,.09);
    --tier-border: rgba(199,154,120,.36);
    --tier-inner: rgba(184,137,99,.12);
    --tier-hover-border: #c79a78;
    --tier-hover-glow: rgba(184,137,99,.16);
}
.kit-item--tier-4{
    --tier-tint: rgba(174,181,192,.04);
    --tier-border: rgba(174,181,192,.2);
    --tier-inner: rgba(174,181,192,.06);
    --tier-hover-border: #aeb5c0;
    --tier-hover-glow: rgba(174,181,192,.08);
}
.kit-item--tier-5{
    --tier-tint: rgba(150,157,168,.035);
    --tier-border: rgba(150,157,168,.18);
    --tier-inner: rgba(150,157,168,.055);
    --tier-hover-border: #969da8;
    --tier-hover-glow: rgba(150,157,168,.075);
}
.kit-item--pos-high{
    background:
        linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.03) 54%, rgba(255,255,255,0) 100%),
        linear-gradient(90deg, var(--tier-tint) 0%, rgba(255,255,255,0) 72%),
        linear-gradient(90deg, #0d111d 0%, #090c15 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
    filter: brightness(1.03) saturate(1.02);
}
.kit-item--pos-low{
    background: #0b0e18;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.28);
    filter: brightness(.9) saturate(.9);
}
.kit-item--retired{
    opacity: .82;
}
.kit-item--retired .kit-name{
    color: #aeb6c8;
}
.kit-item--placeholder{
    min-height: 50px;
    pointer-events: none;
}
.kit-placeholder-avatar,
.kit-placeholder-name,
.kit-placeholder-region{
    display: block;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.14), rgba(255,255,255,.06));
    background-size: 220% 100%;
    animation: kit-placeholder-pulse 1s ease-in-out infinite;
}
.kit-placeholder-avatar{
    width: 28px;
    height: 28px;
}
.kit-placeholder-name{
    height: 14px;
    min-width: 72px;
}
.kit-placeholder-region{
    width: 42px;
    height: 22px;
}
@keyframes kit-placeholder-pulse{
    0%{ background-position: 100% 0; }
    100%{ background-position: -100% 0; }
}
.kit-avatar{ width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; }
.kit-name{
    color:#e9ecff;
    font-weight:700;
    text-decoration:none;
    display: inline-block;
    transition: color 180ms ease, transform 180ms ease;
}
.kit-name:hover{
    color: #fff;
    transform: translateX(3px);
}
.kit-name:focus-visible{
    color: #fff;
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 2px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.kit-right{ display: inline-flex; align-items: center; gap: 8px; }
.region-pill.sm{
    padding: 4px 8px; border-radius: 6px; font-weight: 800; font-size: 11px;
    background: #0b0c11; border: 1px solid #3b3175; color:#cbbcff;
}
@media (max-width: 1200px){
    .kit-board{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px){
    .kit-board{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
    .kit-board{ grid-template-columns: 1fr; }
}

.kit-item{
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 10px;

    padding: 10px 12px;
    border-radius: 8px;
}
.kit-item:hover{
    border-color: var(--tier-hover-border);
    box-shadow: inset 0 0 0 1px var(--tier-hover-glow), 0 6px 14px rgba(0,0,0,.45);
}

.kit-avatar{
    width: 28px; height: 28px;
    border-radius: 6px;
    image-rendering: pixelated;
    box-shadow: 0 4px 10px rgba(0,0,0,.35);
}
.kit-name{
    color:#e9ecff;
    font-weight:700;
    text-decoration:none;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 180ms ease, transform 180ms ease;
}

.kit-name:hover{
    color: #fff;
    transform: translateX(3px);
}

.kit-right{
    display: inline-flex; align-items: center; gap: 8px;
}
.region-pill.sm{
    padding: 4px 8px; border-radius: 6px;
    font-weight: 800; font-size: 11px;
    background: #0b0c11; border: 1px solid #3b3175; color:#cbbcff;
}
.kit-tier-list{ gap: 10px; }

.kit-item{
    grid-template-columns: 22px minmax(0,1fr) max-content;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 6px;
}

.kit-avatar{
    width: 22px; height: 22px;
    border-radius: 4px;
    box-shadow: none;
    image-rendering: pixelated;
}

.kit-name{
    font-size: 12.5px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    transition: color 180ms ease, transform 180ms ease;
}

.kit-name:hover{
    color: #fff;
    transform: translateX(3px);
}
.kit-name--tier-1{
    color: #ffd766;
    text-shadow: 0 0 10px rgba(255,215,0,.22);
}
.kit-name--tier-1:hover{
    color: #ffe792;
}

.kit-right{
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.region-pill.sm{
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 10px;
    line-height: 1;
    min-width: 0;
}

.kit-item[role="button"]{
    cursor: pointer;
}
.kit-item:focus-visible{
    outline: 2px solid rgba(255,215,0,.72);
    outline-offset: 2px;
}

.tier-player-popup[hidden]{
    display: none;
}
.tier-player-popup{
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 18px;
}
.tier-player-popup__backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.28);
    backdrop-filter: blur(2px);
}
.tier-player-popup__panel{
    position: relative;
    width: min(620px, calc(100vw - 32px));
    max-height: calc(100svh - 36px);
    overflow: auto;
    padding: 18px;
    border: 1px solid #263552;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(16,21,35,.98), rgba(6,8,14,.98)),
        #090c15;
    box-shadow:
        inset 0 0 0 1px rgba(114,145,245,.08),
        0 24px 70px rgba(0,0,0,.72);
}
.tier-player-popup__close{
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2c3650;
    border-radius: 6px;
    background: #0b0f19;
    color: #d8def2;
    cursor: pointer;
}
.tier-player-popup__close:hover,
.tier-player-popup__close:focus-visible{
    color: #fff;
    border-color: #ff4242;
    outline: none;
}
.tier-player-popup__header{
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding-right: 40px;
}
.tier-player-popup__avatar{
    width: 64px;
    height: 64px;
    border-radius: 8px;
    image-rendering: pixelated;
    background: #080b12;
    box-shadow: 0 8px 18px rgba(0,0,0,.4);
}
.tier-player-popup__identity{
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tier-player-popup__name-row,
.tier-player-popup__meta{
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
}
.tier-player-popup__name{
    margin: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.tier-player-popup__profile-link{
    color: inherit;
    text-decoration: none;
}
.tier-player-popup__profile-link:hover,
.tier-player-popup__profile-link:focus-visible{
    text-decoration: underline;
    text-underline-offset: 4px;
}
.tier-player-popup__profile-link:focus-visible{
    outline: 2px solid #72a9ff;
    outline-offset: 3px;
    border-radius: 2px;
}
.tier-player-popup__rank{
    width: auto;
    min-width: 44px;
    font-size: 22px;
}
.tier-player-popup__points{
    color: #dbe3ff;
}
.tier-player-popup__kits{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(114,145,245,.16);
}
.tier-player-popup__kits .kit-tile{
    min-height: 76px;
}
.tier-player-popup-open{
    overflow: hidden;
}

@media (max-width: 560px){
    .tier-player-popup{
        padding: 10px;
    }
    .tier-player-popup__panel{
        width: calc(100vw - 20px);
        padding: 14px;
    }
    .tier-player-popup__header{
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 10px;
        padding-right: 34px;
    }
    .tier-player-popup__avatar{
        width: 52px;
        height: 52px;
    }
    .tier-player-popup__name{
        font-size: 18px;
    }
    .tier-player-popup__kits{
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }
    .tier-player-popup__kits .kit-icon{
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 900px){
    .kit-item{
        grid-template-columns: 20px minmax(0,1fr) max-content;
        gap: 5px;
        padding: 6px 6px;
    }
    .kit-avatar{ width: 20px; height: 20px; }
    .kit-name{ font-size: 12px; }
    .region-pill.sm{ padding: 2px 5px; font-size: 9.5px; }
}

.servers-section{ padding: 20px 0 80px; background: linear-gradient(90deg, rgb(0, 0, 3) 0%, rgb(0, 0, 7) 33.783783%, rgb(0, 0, 7) 66.666664%, rgb(0, 0, 0) 103%) !important; }

.servers-feature-panel{
    margin-bottom: 20px;
    padding: 18px;
    overflow: hidden;
    background: var(--mcpvp-panel);
    border: 1px solid var(--mcpvp-panel-border);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(29, 38, 59, .22);
}

.servers-feature-heading{
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 2px 2px 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(145, 151, 166, .55);
}

.servers-feature-heading i{
    color: #ff5b47;
    font-size: 18px;
    filter: drop-shadow(0 0 9px rgba(255, 52, 36, .35));
}

.servers-feature-heading h1{
    margin: 0;
    color: #f4f5ff;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: .035em;
}

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

.hot-server-card{
    --hot-accent: 0, 89, 255;
    position: relative;
    isolation: isolate;
    min-width: 0;
    min-height: 154px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: rgb(16, 5, 26);
    box-shadow: inset 0 0 5px rgba(255, 255, 255, .37);
    animation: hot-server-reveal 420ms cubic-bezier(.22, 1, .36, 1) both;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.hot-server-card:nth-child(2){ animation-delay: 70ms; }
.hot-server-card:nth-child(3){ animation-delay: 140ms; }
.hot-server-card--red{ --hot-accent: 255, 0, 0; }
.hot-server-card--orange{ --hot-accent: 255, 132, 0; }

.hot-server-card::before{
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(
        29deg,
        rgba(var(--hot-accent), .88) 0%,
        rgba(var(--hot-accent), .52) 22%,
        rgba(var(--hot-accent), .14) 48%,
        rgba(16, 5, 26, 0) 72%
    );
    pointer-events: none;
}

.hot-server-card:hover{
    z-index: 1;
    transform: translateY(-3px);
    box-shadow:
        inset 0 0 5px rgba(255, 255, 255, .5),
        0 16px 34px rgba(0, 0, 0, .36);
}

.hot-server-art{
    position: absolute;
    z-index: 0;
    object-fit: cover;
    object-position: 50% 50%;
    opacity: .62;
    pointer-events: none;
}

.hot-server-card--blue .hot-server-art{
    top: -.65%;
    left: 34.4%;
    width: 78%;
    height: 103.25%;
    opacity: .72;
}

.hot-server-card--red .hot-server-art{
    top: -104.55%;
    left: 0;
    width: 130.5%;
    height: 248.7%;
}

.hot-server-card--orange .hot-server-art{
    top: -91.56%;
    left: 0;
    width: 144%;
    height: 222.7%;
}

.hot-server-copy{
    position: absolute;
    z-index: 2;
    top: 30.6px;
    left: 25px;
    min-width: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .82);
}

.hot-server-copy h2{
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: 36px;
    font-weight: 500;
    line-height: 43.2px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-server-copy p{
    margin: 4px 0 0;
    overflow: hidden;
    color: #f0f2ff;
    font-size: 16px;
    font-weight: 500;
    line-height: 19.2px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-server-count{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12.7px;
    color: #dce2f5;
    font-size: 18px;
    font-weight: 500;
    line-height: 21.6px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hot-server-status-dot{
    width: 4px;
    height: 4px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #73e44f;
    box-shadow: 0 0 9px rgba(115, 228, 79, .75);
}

.hot-server-count.is-offline .hot-server-status-dot{
    background: #ff6565;
    box-shadow: 0 0 9px rgba(255, 71, 71, .7);
}

.hot-server-play{
    position: absolute;
    z-index: 2;
    right: 25px;
    bottom: 18px;
    width: 120px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: linear-gradient(rgb(175, 148, 255) -60%, rgb(0, 31, 69) 100%);
    color: #fff;
    box-shadow:
        inset 0 -2px 8px rgba(255, 255, 255, .78),
        4px 3px 18px 6px rgba(5, 4, 4, .55);
    font-size: 16px;
    font-weight: 500;
    line-height: 19.2px;
    text-decoration: none;
    text-shadow: 0 1px 3px #000;
    transform-origin: center;
    transition: transform 160ms cubic-bezier(.22, 1, .36, 1);
}

.hot-server-play:hover{
    transform: scale(1.05);
}

.hot-server-play:focus-visible{
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.servers-recent{
    margin-top: 18px;
    border-top: 1px solid rgba(145, 151, 166, .55);
}

.servers-recent summary{
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #edf0ff;
    cursor: pointer;
    font-size: 17px;
    list-style: none;
}

.servers-recent summary::-webkit-details-marker{ display: none; }
.servers-recent summary span{ display: inline-flex; align-items: center; gap: 10px; }
.servers-recent summary span i{ color: #cdd4ed; }

.servers-recent-chevron{
    color: #b4bdd9;
    font-size: 13px;
    transition: transform 180ms ease;
}

.servers-recent[open] .servers-recent-chevron{ transform: rotate(180deg); }

.servers-recent-placeholder{
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: 1px dashed rgba(115, 130, 178, .48);
    border-radius: 8px;
    background: rgba(3, 5, 15, .52);
    color: #929dbc;
    font-size: 14px;
}

@keyframes hot-server-reveal{
    from{ opacity: 0; transform: translateY(9px); }
    to{ opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px){
    .hot-server-grid{ grid-template-columns: 1fr; }
    .hot-server-card{ min-height: 146px; }
    .hot-server-copy h2{ font-size: 30px; }
}

@media (max-width: 540px){
    .servers-feature-panel{ padding: 14px; }
    .hot-server-card{
        min-height: 184px;
        padding: 0;
    }
    .hot-server-copy{ top: 24px; left: 18px; }
    .hot-server-copy h2{ font-size: 32px; line-height: 38.4px; }
    .hot-server-copy p{ font-size: 14px; }
    .hot-server-count{ margin-top: 9px; font-size: 16px; line-height: 19.2px; }
    .hot-server-play{ right: 18px; bottom: 17px; left: 18px; width: auto; }
    .servers-recent-placeholder{ align-items: flex-start; justify-content: flex-start; line-height: 1.45; }
}

@media (prefers-reduced-motion: reduce){
    .hot-server-card{ animation: none; transition: none; }
    .hot-server-card:hover{ transform: none; }
    .hot-server-art, .hot-server-play, .servers-recent-chevron{ transition: none; }
}

.servers-card{
    background: linear-gradient(90deg, rgb(0,0,3) 0%, rgb(0,0,7) 33.78%, rgb(0,0,7) 66.66%, rgb(0,0,0) 103%);
    border: 1px solid #1e293b;
    box-shadow: inset 0 0 0 1px rgba(30,41,59,.25);
    border-radius: 12px;
    padding: 14px;
}

.servers-titlebar{
    display:flex; align-items:center; justify-content:space-between;
    padding: 8px 8px 6px;
}
.servers-title{
    margin: 0;
    color:#e8ecff; font-weight: 700; letter-spacing:.02em; font-size: 16px;
}
.srv-filter{
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(90deg, rgb(0,0,3) 0%, rgb(0,0,7) 33.78%, rgb(0,0,7) 66.66%, rgb(0,0,0) 103%);
    border: 1px solid #1e293b; color:#a9b3c9; cursor:pointer;
}
.srv-filter:hover{ color:#fff; border-color:#fff; }

:root{
    --srv-flag: 24px;
    --srv-icon: 36px;
    --srv-domain-min: 220px;
    --srv-players: 160px;
    --srv-version: 210px;
    --srv-status: 92px;
    --srv-link: 36px;
}
.srv-grid{
    display: grid;
    grid-template-columns:
    minmax(var(--srv-domain-min), 1fr)
    var(--srv-players)
    var(--srv-version)
    var(--srv-status)
    var(--srv-link);
    gap: 10px;
}

.srv-head{
    padding: 8px 8px 10px;
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
    color:#9197a6; font-size: 12px; letter-spacing:.12em; text-transform: uppercase;
}
.srv-head .col-server,
.srv-head .col-players,
.srv-head .col-version,
.srv-head .col-status{ justify-self: start; }
.srv-head .col-link{ justify-self: end; }

.srv-list{ list-style:none; margin: 0; padding: 0; }
.srv-row{
    padding: 12px 14px;
    display: grid;
    align-items: center;
    background: #0b0f1a;
    border: 1px solid #1a2a48;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(114,145,245,.07);
    margin-top: 10px;
}
.srv-row:hover{
    border-color:#2a3e6e;
    box-shadow: inset 0 0 0 1px rgba(114,145,245,.12), 0 8px 18px rgba(0,0,0,.45);
}

.col-server{
    display:inline-flex; align-items:center; gap: 12px; min-width: 0;
}
.srv-flag{ width: var(--srv-flag); height: calc(var(--srv-flag) * .75); object-fit: cover; border-radius: 2px; }
.srv-icon{
    width: var(--srv-icon); height: var(--srv-icon);
    border-radius: 6px; display:inline-flex; align-items:center; justify-content:center;
    background:#0f121c; border:1px solid #232a3d;
    box-shadow: inset 0 0 0 1px rgba(114,145,245,.06);
}
.srv-icon > img{ width: 80%; height: 80%; object-fit: contain; display:block; }
.srv-domain{
    color:#d7d7d7; font-weight: 700; text-decoration: none;
    min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.srv-domain:hover{ color:#fff; text-decoration: underline; }

.srv-players, .srv-version{ color:#cfd3ff; }
.col-players, .col-version{ font-variant-numeric: tabular-nums; }

.status-pill{
    display:inline-flex; align-items:center; justify-content:center;
    min-width: 68px; padding: 5px 10px; border-radius: 6px;
    font-size: 12px; font-weight: 800; letter-spacing:.02em;
}
.status-pill.online{
    background: linear-gradient(180deg, #0f2f15 0%, #173e1e 100%);
    color:#57ff83; border:1px solid #125221;
}
.status-pill.offline{
    background: linear-gradient(180deg, #2f0f0f 0%, #3e1717 100%);
    color:#ff7575; border:1px solid #521212;
}

.srv-link{
    color:#999; padding: 6px; border-radius:6px; text-decoration:none;
    display:inline-flex; align-items:center; justify-content:center;
}
.srv-link:hover{ color:#ff4444; background: rgba(255,68,68,.10); }

.srv-divider{ height: 1px; background:#1e293b; margin: 12px 6px 10px; opacity:.6; }
.srv-pagination{
    display:flex; align-items:center; justify-content:center; gap: 6px;
    padding-bottom: 4px;
}
.pg{
    min-width: 28px; height: 28px; border-radius: 6px; cursor:pointer;
    background: #0b0c11; color:#a9b3c9; border:1px solid #1e293b;
}
.pg:hover{ color:#fff; border-color:#fff; }
.pg.active{
    color:#fff; border-color:#fff;
    box-shadow: inset 0 0 14px rgba(255,255,255,.18), inset 0 0 20px rgba(255,255,255,.08);
}

@media (max-width: 980px){
    :root{
        --srv-players: 140px;
        --srv-version: 170px;
        --srv-status: 84px;
    }
}
@media (max-width: 780px){
    .srv-grid{
        grid-template-columns: 1fr var(--srv-status) var(--srv-link);
        row-gap: 6px;
    }
    .col-players, .col-version{
        grid-column: 1 / -1;
        display: inline-flex; gap: 14px; color:#9aa3c8;
        font-size: 12px;
    }
    .srv-head{ display:flex; justify-content:space-between; }
    .srv-head .col-players,
    .srv-head .col-version,
    .srv-head .col-status{ display:none; }
}

.srv-head{
    padding: 12px 8px;
    border-top: 1px solid #1e293b;
    border-bottom: 1px solid #1e293b;
    align-items: center;
    color:#9197a6; font-size: 12px; letter-spacing:.12em;
    text-transform: uppercase;
}

.srv-head .col-server{
    display:flex; align-items:center; gap:12px; min-width:0;
}
.srv-head .servers-title{
    margin:0;
    color:#e8ecff;
    font-weight:700; letter-spacing:.02em; font-size:16px;
    text-transform:none;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.srv-head .col-players,
.srv-head .col-version,
.srv-head .col-status{ justify-self:start; }
.srv-head .col-link{ justify-self:end; }

.head-actions{ display:flex; justify-content:flex-end; position:relative; }
.srv-sort-menu{ position:relative; }
.srv-sort-menu > summary{ list-style:none; }
.srv-sort-menu > summary::-webkit-details-marker{ display:none; }
.srv-sort{
    width:32px; height:32px; border-radius:8px;
    background: linear-gradient(90deg, rgb(0,0,3) 0%, rgb(0,0,7) 33.78%, rgb(0,0,7) 66.66%, rgb(0,0,0) 103%);
    border:1px solid #1e293b; color:#a9b3c9; cursor:pointer;
    display:inline-flex; align-items:center; justify-content:center;
    transition: color .15s ease, border-color .15s ease;
}
.srv-sort:hover,
.srv-sort-menu[open] .srv-sort{ color:#fff; border-color:#fff; }
.srv-sort-sr-only{
    position:absolute;
    width:1px; height:1px;
    padding:0; margin:-1px;
    overflow:hidden; clip:rect(0, 0, 0, 0);
    white-space:nowrap; border:0;
}
.srv-sort-dropdown{
    position:absolute;
    z-index:20;
    top:calc(100% + 8px);
    right:0;
    width:190px;
    padding:7px;
    border:1px solid var(--mcpvp-panel-border, #1e293b);
    border-radius:9px;
    background:var(--mcpvp-nav-panel, #080b12);
    box-shadow:0 14px 32px rgba(0,0,0,.55);
    text-align:left;
    letter-spacing:normal;
    text-transform:none;
}
.srv-sort-dropdown-label{
    display:block;
    padding:5px 9px 7px;
    color:#9197a6;
    font-size:11px;
    font-weight:700;
    letter-spacing:.1em;
    text-transform:uppercase;
}
.srv-sort-option{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height:36px;
    padding:7px 9px;
    border-radius:6px;
    color:#c7ccdb;
    font-size:13px;
    font-weight:600;
    text-decoration:none;
}
.srv-sort-option:hover,
.srv-sort-option:focus-visible{
    background:rgba(255,255,255,.07);
    color:#fff;
}
.srv-sort-option.is-active{ color:#fff; }
.srv-sort-option.is-active i{ color:#ff4444; font-size:11px; }

.srv-celllink{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 6px 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border-radius: 6px;
}

.srv-domain{
    color:#d7d7d7;
    font-weight:700;
    min-width:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.srv-celllink:hover .srv-domain{ color:#fff; text-decoration: underline; }

.error-section{ padding:48px 0 96px; background: linear-gradient(90deg, rgb(0, 0, 3) 0%, rgb(0, 0, 7) 33.783783%, rgb(0, 0, 7) 66.666664%, rgb(0, 0, 0) 103%) !important; }
.error-card{
    background: linear-gradient(90deg, rgb(0,0,3) 0%, rgb(0,0,7) 34%, rgb(0,0,7) 66%, rgb(0,0,0) 103%);
    border:1px solid #1e293b; box-shadow: inset 0 0 0 1px rgba(30,41,59,.25);
    border-radius:12px; padding:56px 24px; text-align:center;
}
.error-code{
    margin:0 0 6px; font-size:72px; line-height:1; font-weight:900;
    color:red; text-shadow:0 0 18px rgba(246,0,0,.55);
}
.error-title{ margin:0 0 8px; font-size:22px; color:#e9ecff; font-weight:800; }
.error-text{ margin:0 0 22px; color:#a9b3c9; }
.error-actions{ display:flex; gap:10px; justify-content:center; }
.err-btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding:10px 16px; border-radius:8px; text-decoration:none; font-weight:700;
    border:1px solid #1e293b; color:#e8ecff; background:#0b0c11;
}
.err-primary{ border-color:#fff; box-shadow: inset 0 0 14px rgba(255,255,255,.18), inset 0 0 20px rgba(255,255,255,.08); }
.err-ghost:hover, .err-primary:hover{ color:#fff; border-color:#fff; }

.tourney-section{ padding: 12px 0 80px; background: linear-gradient(90deg, rgb(0, 0, 3) 0%, rgb(0, 0, 7) 33.783783%, rgb(0, 0, 7) 66.666664%, rgb(0, 0, 0) 103%); }

.t-card{
    background: linear-gradient(90deg, rgb(0,0,3) 0%, rgb(0,0,7) 34%, rgb(0,0,7) 66%, rgb(0,0,0) 103%);
    border: 1px solid #1e293b;
    box-shadow: inset 0 0 0 1px rgba(30,41,59,.25);
    border-radius: 12px;
    padding: 16px;
}

.t-hero{
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 16px;
    padding: 12px;
    border: 1px solid #232a3d;
    border-radius: 10px;
    background: #0b0f1a;
    box-shadow: inset 0 0 0 1px rgba(114,145,245,.07);
    text-decoration: none;
}

.t-hero-left{ padding: 6px 8px; }

.t-hero-title{
    margin: 0 0 6px;
    color: #b496ff;
    font-size: 28px; font-weight: 900; letter-spacing: .04em;
    display:flex; align-items:center; gap:10px;
}
.t-hero-title .t-kit{
    width: 22px; height: 22px; image-rendering: pixelated;
    border:1px solid #2a2f3b; border-radius:6px; padding:3px;
    background: rgba(255,255,255,.03);
    box-shadow: inset 0 0 0 1px rgba(30,41,59,.25);
}

.t-livebar{
    display:flex; align-items:center; gap:10px;
    color:#a9b3c9; font-weight:700; margin-bottom: 12px;
}
.t-live-dot{
    width: 8px; height: 8px; border-radius: 50%;
    background:#ff5252; box-shadow: 0 0 10px rgba(255,82,82,.8);
    position: relative;
}
.t-live-dot::after{
    content:""; position:absolute; inset:-6px; border-radius:50%;
    box-shadow: 0 0 0 0 rgba(255,82,82,.6);
    animation: t-ping 1.8s infinite ease-out;
}
@keyframes t-ping{
    0%{ box-shadow: 0 0 0 0 rgba(255,82,82,.6); }
    70%{ box-shadow: 0 0 0 9px rgba(255,82,82,0); }
    100%{ box-shadow: 0 0 0 0 rgba(255,82,82,0); }
}
.t-live-text{ letter-spacing:.08em; }
.t-eyes i{ margin-right:6px; }
.t-sep{ opacity:.6; }

.t-hero-kicker{
    margin: 8px 0 8px;
    color:#98a2c9; font-weight:700;
}

.t-hero-list{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.t-hero-row{
    display:grid; grid-template-columns: 28px 1fr;
    align-items:center; gap:10px;
    padding: 6px 8px;
    background:#0f121c; border:1px solid #232a3d; border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(114,145,245,.06);
    max-width: 320px;
}
.t-face{ width: 24px; height:24px; border-radius: 4px; image-rendering: pixelated; }
.t-name{ color:#e9ecff; font-weight:700; letter-spacing:.02em; }

.t-hero-preview{
    position: relative; display:block; border-radius: 10px; overflow:hidden;
    border: 1px solid #232a3d; background:#0a0d16;
    min-height: 210px;
}
.t-hero-thumb{
    position:absolute; inset:0; background-size: cover; background-position:center;
    filter: saturate(1.05);
}
.t-hero-preview::after{
    content:""; position:absolute; inset:0;
    background: radial-gradient(120% 120% at 20% 50%, rgba(0,0,0,.65) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,0) 70%);
}
.t-play{
    position:absolute; right: 26px; top: 50%; transform: translateY(-50%);
    width: 54px; height: 54px; border-radius: 50%;
    background: #fff; opacity:.95;
}
.t-play::before{
    content:""; position:absolute; left: 20px; top: 50%; transform: translateY(-50%);
    width: 0; height: 0; border-left: 14px solid #000;
    border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.t-live-stamp{
    position:absolute; left: 12px; bottom: 12px;
    font-weight: 900; letter-spacing:.08em; color:#ff4d4d;
    text-shadow: 0 0 12px rgba(255,77,77,.65);
}

.t-row{ margin-top: 18px; }
.t-section-title{
    margin: 0 0 10px; color:#e8ecff; font-size: 14px;
    letter-spacing:.04em; font-weight:800;
}

.t-grid{
    list-style:none; padding:0; margin:0;
    display:grid; grid-template-columns: repeat(6, minmax(140px,1fr));
    gap: 14px;
}

.t-card-tile{
    position: relative; border-radius: 10px; overflow: hidden;
    border: 1px solid #232a3d; background:#0a0d16;
    min-height: 160px; display:block;
    box-shadow: inset 0 0 0 1px rgba(114,145,245,.07);
}
.t-tile-link{ display:block; width:100%; height:100%; color:inherit; text-decoration:none; }
.t-tile-top{
    display:flex; align-items:flex-start; justify-content:space-between;
    padding: 10px 10px 0 10px;
}
.t-tile-top i{ color:#a9b3c9; }
.t-tile-name{
    font-weight:800; color:#e9ecff; line-height:1.05; letter-spacing:.02em;
}
.t-tile-name em{ color:#b496ff; font-style:normal; }

.t-art{
    position:absolute; left: 8px; bottom: 8px; width: 64px; height:64px;
    image-rendering: pixelated; object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(180,120,255,.55));
}

.t-card-tile.t-purple{
    background: radial-gradient(120% 120% at 20% 80%, rgba(178, 0, 255,.65) 0%, rgba(78,0,168,.55) 40%, #0a0d16 85%);
}
.t-card-tile.t-cyan{
    background: radial-gradient(120% 120% at 20% 80%, rgba(0,160,255,.55) 0%, rgba(0,60,160,.55) 40%, #0a0d16 85%);
}
.t-card-tile.t-blue{
    background: radial-gradient(120% 120% at 20% 80%, rgba(40,70,255,.55) 0%, rgba(18,34,168,.55) 40%, #0a0d16 85%);
}
.t-card-tile.t-red{
    background: radial-gradient(120% 120% at 20% 80%, rgba(255,50,50,.6) 0%, rgba(168,18,18,.55) 40%, #0a0d16 85%);
}
.t-card-tile.t-gold{
    background: radial-gradient(120% 120% at 20% 80%, rgba(255,208,0,.6) 0%, rgba(168,120,0,.5) 40%, #0a0d16 85%);
}

.t-card-tile:hover{
    border-color:#fff;
    box-shadow: inset 0 0 14px rgba(255,255,255,.16), inset 0 0 24px rgba(255,255,255,.08);
}

@media (max-width: 1100px){
    .t-grid{ grid-template-columns: repeat(4, minmax(140px,1fr)); }
    .t-hero{ grid-template-columns: 1fr 360px; }
}
@media (max-width: 840px){
    .t-grid{ grid-template-columns: repeat(3, minmax(140px,1fr)); }
    .t-hero{ grid-template-columns: 1fr; }
    .t-hero-preview{ min-height: 200px; order: -1; }
}
@media (max-width: 560px){
    .t-grid{ grid-template-columns: repeat(2, minmax(140px,1fr)); }
    .t-hero-title{ font-size: 24px; }
}

/* ===== Framer Tourney Index ===== */
.tourney-index {
    padding: 23px 0 184px;
    font-family: 'McPvP Display', monospace;
}

.tourney-index__container {
    max-width: var(--site-shell-max);
    padding-inline: var(--site-content-gutter);
}

.tourney-index__stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body:has(.tourney-index) .footer { min-height: 132px; }

.tourney-index__panel {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--mcpvp-panel-border);
    border-radius: 11px;
    background: #0b0e1a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .015);
    animation: tourney-panel-in 460ms cubic-bezier(.22, 1, .36, 1) both;
}

.tourney-index__panel:nth-child(2) { animation-delay: 70ms; }
.tourney-index__panel:nth-child(3) { animation-delay: 130ms; }

@keyframes tourney-panel-in {
    from {
        opacity: 0;
        transform: translateY(9px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tourney-feature {
    height: 390px;
    padding: 19px 24px 9px 19px;
}

.tourney-feature__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    height: 360px;
    overflow: hidden;
    border: 0;
    border-radius: 11px;
    background:
        linear-gradient(156deg, rgba(42, 214, 245, .18) 8%, rgba(19, 19, 36, 0) 35%),
        #080b17;
    box-shadow: inset 0 0 0 1px #1a2337;
}

.tourney-feature__copy {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    padding-bottom: 30px;
}

.tourney-feature__live {
    display: flex;
    width: 134px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    background: rgba(162, 148, 255, .3);
    color: #bdf3ff;
    font-size: 14px;
    line-height: 1;
}

.tourney-feature__content {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding-top: 10px;
}

.tourney-feature__title {
    display: flex;
    align-items: baseline;
    gap: 21.6015625px;
    margin: 0;
    color: #fff;
    font-family: 'McPvP Display', monospace;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.tourney-feature__title .tourney-feature__mc { margin-right: -21.6015625px; }

.tourney-feature__pvp { color: #f42a2a; }
.tourney-feature__accent { color: #2ad6f5; }

.tourney-feature__prize {
    display: flex;
    height: 73.296875px;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.tourney-feature__prize strong {
    color: #fff;
    font-family: 'Minecraft Ten', 'McPvP Display', sans-serif;
    font-size: 54px;
    font-weight: 400;
    line-height: 73.296875px;
    text-shadow: 0 4px 22px rgba(189, 243, 255, .08);
}

.tourney-feature__prize img {
    width: 19px;
    height: 19px;
    object-fit: cover;
    transform: translateY(3.5px);
}

.tourney-feature__prize img:last-child {
    width: 18px;
    height: 18px;
}

.tourney-feature__caption {
    margin: 5px 0 0;
    color: #707070;
    font-size: 12px;
    line-height: 14.4px;
}

.tourney-feature__watch {
    display: inline-flex;
    width: 169px;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    border: 1px solid #fff;
    border-radius: 5px;
    background: linear-gradient(105deg, #7dd9ff 0%, #4f70ff 47%, #2345f7 100%);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, .13);
    color: #fff;
    font-size: 20px;
    line-height: 24px;
    text-decoration: none;
    transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.tourney-feature__watch i {
    font-size: 13px;
    transition: transform 180ms ease;
}

.tourney-feature__watch:hover,
.tourney-feature__watch:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: inset 0 0 22px rgba(255, 255, 255, .22), 0 10px 24px rgba(52, 83, 255, .2);
}

.tourney-feature__watch:hover i { transform: translateX(3px); }
.tourney-feature__watch:focus-visible { outline: 2px solid #bdf3ff; outline-offset: 3px; }

.tourney-feature__visual {
    position: relative;
    display: block;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.tourney-feature__visual > img {
    position: absolute;
    inset: 16px 0;
    width: 100%;
    height: calc(100% - 32px);
    border-radius: 4px;
    object-fit: cover;
    transition: transform 650ms cubic-bezier(.22, 1, .36, 1), filter 300ms ease;
}

.tourney-feature__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 21px solid transparent;
    border-bottom: 21px solid transparent;
    border-left: 36px solid #fff;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .35));
    transform: translate(-38%, -50%);
    transition: transform 220ms cubic-bezier(.22, 1, .36, 1);
}

.tourney-feature__stamp {
    position: absolute;
    right: -18px;
    bottom: 28px;
    display: inline-flex;
    height: 26px;
    align-items: center;
    gap: 8px;
    padding: 0 14px 0 10px;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 5px;
    background: rgba(19, 25, 33, .52);
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
}

.tourney-feature__stamp i { color: #f42a2a; font-size: 12px; }

.tourney-feature__visual:hover > img { transform: scale(1.025); filter: saturate(1.08); }
.tourney-feature__visual:hover .tourney-feature__play { transform: translate(-38%, -50%) scale(1.1); }
.tourney-feature__visual:focus-visible { outline: 2px solid #bdf3ff; outline-offset: -4px; }

.tourney-upcoming {
    height: 350px;
    padding: 19px;
}

.tourney-index__heading,
.tourney-history__heading {
    position: relative;
    height: 33px;
    border-bottom: 1px solid #707070;
}

.tourney-index__heading h2,
.tourney-history__heading h2,
.tourney-history__heading > span {
    margin: 0;
    color: #fff;
    font-family: 'McPvP Display', monospace;
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
}

.tourney-carousel {
    position: relative;
    height: 257px;
    margin-top: 20px;
    overflow: hidden;
}

.tourney-carousel__track {
    display: flex;
    width: 100%;
    height: 257px;
    gap: 8px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    list-style: none;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.tourney-carousel__track::-webkit-scrollbar { display: none; }

.tourney-carousel__slide {
    --tourney-tile-accent: rgba(84, 84, 84, .53);
    flex: 0 0 170px;
    width: 170px;
    height: 257px;
}

.tourney-carousel__card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 10px;
    border: 1px solid #242938;
    border-radius: 5px;
    background: linear-gradient(#000007 31%, var(--tourney-tile-accent) 136%);
    color: inherit;
    text-decoration: none;
    transition: border-color 180ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1), filter 180ms ease;
}

.tourney-carousel__name {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding-left: 4px;
    color: #d1d1d1;
    font-size: 20px;
    line-height: 24px;
}

.tourney-carousel__name span:last-child { color: #f42a2a; }

.tourney-carousel__slide:nth-child(2) .tourney-carousel__name span:last-child { color: #5ca8ff; }
.tourney-carousel__slide:nth-child(4) .tourney-carousel__name span:last-child { color: #dbc934; }
.tourney-carousel__slide:nth-child(5) .tourney-carousel__name span:last-child { color: #554bff; }

.tourney-carousel__card > i {
    position: absolute;
    z-index: 2;
    top: 15px;
    right: 13px;
    color: #fff;
    font-size: 18px;
}

.tourney-carousel__card > img {
    position: absolute;
    left: 7px;
    bottom: 7px;
    width: 162px;
    height: 202px;
    object-fit: contain;
}

.tourney-carousel__card:hover,
.tourney-carousel__card:focus-visible {
    z-index: 3;
    border-color: rgba(255, 255, 255, .7);
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.tourney-carousel__card:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }

.tourney-carousel__control {
    position: absolute;
    z-index: 6;
    top: 50%;
    display: flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(4, 7, 15, .16);
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    transform: translateY(-50%);
    transition: background-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.tourney-carousel__control--previous { left: 10px; }
.tourney-carousel__control--next { right: 10px; }
.tourney-carousel__control:hover { background: rgba(4, 7, 15, .58); transform: translateY(-50%) scale(1.05); }
.tourney-carousel__control:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.tourney-carousel__control:disabled { opacity: 0; pointer-events: none; }

.tourney-history {
    height: 245px;
    padding: 19px;
}

.tourney-history__heading > span {
    position: absolute;
    top: 0;
    left: 52.84%;
    transform: translateX(-50%);
}

.tourney-history__rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.tourney-history__row {
    position: relative;
    display: flex;
    width: 100%;
    height: 29px;
    align-items: center;
    overflow: hidden;
    background: #060817;
    color: #fff;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.tourney-history__name {
    display: grid;
    min-width: 0;
    align-items: center;
    grid-template-columns: 52px minmax(0, 1fr);
    padding-left: 20px;
    font-size: 16px;
    line-height: 19px;
}

.tourney-history__name > img {
    width: 14px;
    height: 14px;
    object-fit: cover;
}

.tourney-history__name > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tourney-history__status {
    position: absolute;
    left: 52.84%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #707070;
    font-size: 16px;
    line-height: 19px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.tourney-history__status--live { color: #f42a2a; }
.tourney-history__status--live i { font-size: 12px; }

.tourney-history__details {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    padding-right: 14px;
    color: #b8b7b6;
    font-size: 14px;
    line-height: 17px;
    white-space: nowrap;
}

.tourney-history__details i { font-size: 11px; }

.tourney-history__row:hover,
.tourney-history__row:focus-visible {
    background: #0a0d20;
    transform: translateX(2px);
}

.tourney-history__row:focus-visible { outline: 1px solid #fff; outline-offset: -1px; }

@media (max-width: 900px) {
    .tourney-index { padding-bottom: 100px; }

    .tourney-feature {
        height: auto;
        padding: 15px;
    }

    .tourney-feature__inner {
        height: auto;
        grid-template-columns: 1fr;
    }

    .tourney-feature__copy { height: 360px; }
    .tourney-feature__visual { height: 320px; }
    .tourney-feature__visual > img { inset-block: 0; height: 100%; }
    .tourney-feature__stamp { bottom: 14px; }
}

@media (max-width: 620px) {
    .tourney-index__panel { border-radius: 9px; }

    .tourney-feature,
    .tourney-upcoming,
    .tourney-history { padding: 11px; }

    .tourney-feature__copy { height: 330px; }
    .tourney-feature__live { width: 118px; height: 42px; flex-basis: 42px; }
    .tourney-feature__content { margin-top: 0; padding-top: 8px; }
    .tourney-feature__title { gap: 7px; font-size: clamp(24px, 7.5vw, 31px); }
    .tourney-feature__title .tourney-feature__mc,
    .tourney-feature__title .tourney-feature__pvp { margin-right: -7px; }
    .tourney-feature__prize { height: 52px; gap: 14px; margin-top: 8px; }
    .tourney-feature__prize strong { font-size: clamp(40px, 13vw, 50px); line-height: 1.2; }
    .tourney-feature__watch { margin-top: 30px; }
    .tourney-feature__visual { height: 240px; }

    .tourney-upcoming { height: 340px; }
    .tourney-carousel__control--previous { left: 2px; }
    .tourney-carousel__control--next { right: 2px; }

    .tourney-history { height: 245px; }
    .tourney-history__heading > span { left: 59%; }
    .tourney-history__name { width: 61%; grid-template-columns: 30px minmax(0, 1fr); padding-left: 10px; font-size: 13px; }
    .tourney-history__status { left: 67%; font-size: 12px; }
    .tourney-history__details { padding-right: 8px; font-size: 0; }
    .tourney-history__details i { font-size: 11px; }
}

@media (max-width: 540px) {
    .footer-content,
    .search-wrapper,
    .tourney-index__container { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .tourney-index__panel { animation: none; }
    .tourney-feature__visual > img,
    .tourney-feature__play,
    .tourney-carousel__track,
    .tourney-carousel__card,
    .tourney-history__row { transition: none; scroll-behavior: auto; }
}

/* ===== Tourney View Page ===== */
.tourney-view { padding-bottom: 96px; }

.tourney-page-card{
    display:flex;
    flex-direction:column;
    gap:32px;
    padding:28px;
}

.tv-hero{
    display:grid;
    grid-template-columns: minmax(0,1fr) minmax(320px,360px);
    gap:28px;
    align-items:stretch;
}

.tv-hero-meta{ display:flex; flex-direction:column; gap:16px; }
.tv-hero-eyebrow{
    text-transform:uppercase;
    letter-spacing:.18em;
    font-size:12px;
    color:#8a96d6;
}
.tv-hero-title{
    margin:0;
    font-size:38px;
    color:#fff;
    letter-spacing:.04em;
    text-shadow:0 14px 40px rgba(0,0,0,.5);
}
.tv-hero-status{ display:flex; flex-wrap:wrap; align-items:center; gap:14px; }
.tv-live-badge{
    display:inline-flex; align-items:center; gap:8px;
    padding:6px 14px;
    border-radius:999px;
    border:1px solid rgba(255,78,122,.55);
    background:linear-gradient(135deg, rgba(78,22,64,.65) 0%, rgba(116,26,82,.75) 45%, rgba(36,14,32,.8) 100%);
    color:#fff;
    font-weight:800;
    font-size:12px;
    letter-spacing:.16em;
}
.tv-live-pulse{
    width:8px; height:8px; border-radius:50%;
    background:#ff4d7f;
    box-shadow:0 0 18px rgba(255,77,127,.8);
    position:relative;
}
.tv-live-pulse::after{
    content:"";
    position:absolute;
    inset:-6px;
    border-radius:inherit;
    box-shadow:0 0 0 0 rgba(255,77,127,.5);
    animation: tv-pulse 1.8s ease-out infinite;
}
@keyframes tv-pulse{
    0%{ box-shadow:0 0 0 0 rgba(255,77,127,.5); }
    70%{ box-shadow:0 0 0 12px rgba(255,77,127,0); }
    100%{ box-shadow:0 0 0 0 rgba(255,77,127,0); }
}
.tv-hero-viewers{
    display:inline-flex; align-items:center; gap:8px;
    color:#a8b4f1;
    font-weight:600;
    letter-spacing:.05em;
}
.tv-hero-viewers i{ color:inherit; }
.tv-hero-description{
    margin:8px 0 0;
    color:#aeb9e7;
    line-height:1.6;
    max-width:600px;
}
.tv-featured-list{ list-style:none; margin:18px 0 0; padding:0; display:grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap:12px; }
.tv-featured-item{
    display:flex; align-items:center; gap:12px;
    padding:12px 16px;
    border-radius:14px;
    background:rgba(12,16,30,.68);
    border:1px solid rgba(70,88,140,.5);
    box-shadow:inset 0 0 0 1px rgba(130,160,255,.08);
}
.tv-featured-avatar{
    width:36px; height:36px; border-radius:10px;
    display:flex; align-items:center; justify-content:center;
    font-weight:800;
    letter-spacing:.04em;
    color:#e6ecff;
    background:linear-gradient(145deg, rgba(78,102,182,.45), rgba(36,46,92,.85));
    border:1px solid rgba(118,140,210,.55);
}
.tv-featured-body{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.tv-featured-name{ color:#fff; font-weight:700; letter-spacing:.03em; }
.tv-featured-meta{ font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:#8f9ac9; }

.tv-hero-art{
    position:relative;
    min-height:260px;
    border-radius:18px;
    border:1px solid rgba(70,82,128,.55);
    background-size:cover;
    background-position:center;
    overflow:hidden;
    box-shadow:inset 0 0 0 1px rgba(138,160,255,.08), 0 26px 36px rgba(0,0,0,.45);
}
.tv-hero-art::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(120deg, rgba(6,8,18,.85) 0%, rgba(6,8,18,.4) 55%, rgba(6,8,18,0) 100%);
}
.tv-hero-kit{
    position:absolute;
    left:20px; bottom:20px;
    display:flex; align-items:center; gap:14px;
    padding:14px 16px;
    border-radius:14px;
    background:rgba(8,10,20,.85);
    border:1px solid rgba(120,146,255,.45);
    box-shadow:0 18px 32px rgba(0,0,0,.45);
    z-index:1;
}
.tv-hero-kit-icon{
    width:48px; height:48px;
    border-radius:12px;
    padding:6px;
    background:rgba(18,22,36,.88);
    border:1px solid rgba(120,146,255,.45);
    image-rendering:pixelated;
}
.tv-hero-kit-meta{ display:flex; flex-direction:column; gap:4px; }
.tv-hero-kit-meta span{ font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:#9aa6e6; }
.tv-hero-kit-meta strong{ color:#fff; font-size:16px; letter-spacing:.05em; }

.tv-layout{
    display:flex;
    flex-direction:column;
    gap:28px;
    align-items:stretch;
}
.tv-main{ display:flex; flex-direction:column; gap:20px; }
.tv-main--full{ width:100%; }

.tv-info-card{
    background:linear-gradient(145deg, rgba(12,16,28,.92) 0%, rgba(8,10,20,.95) 100%);
    border:1px solid rgba(68,80,122,.55);
    border-radius:16px;
    padding:20px 22px;
    display:flex; flex-direction:column; gap:18px;
    box-shadow:inset 0 0 0 1px rgba(132,162,255,.08), 0 22px 34px rgba(0,0,0,.4);
}
.tv-info-card--overview{ width:100%; }
.tv-info-card--overview .tv-info-grid{ grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); }
.tv-info-card--overview .tv-info-description{ max-width:720px; }
.tv-info-card--highlight{
    border-color:rgba(120,146,255,.6);
    background:linear-gradient(145deg, rgba(38,52,106,.6) 0%, rgba(16,20,44,.92) 100%);
}
.tv-info-title{ margin:0; font-size:13px; letter-spacing:.16em; text-transform:uppercase; color:#7c89ce; }
.tv-info-grid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:16px 18px; margin:0; padding:0; }
.tv-info-grid div{ display:flex; flex-direction:column; gap:6px; }
.tv-info-grid dt{ margin:0; font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:#6c78ae; }
.tv-info-grid dd{ margin:0; color:#eef1ff; font-weight:700; letter-spacing:.03em; font-size:15px; }
.tv-info-description{ margin:0; color:#97a4d2; line-height:1.6; }
.tv-tabs{
    display:inline-flex; align-items:center; gap:10px;
    padding:6px;
    border-radius:14px;
    background:rgba(12,16,28,.88);
    border:1px solid rgba(66,78,122,.55);
    box-shadow:inset 0 0 0 1px rgba(132,162,255,.06);
}
.tv-tab{
    position:relative;
    display:inline-flex; align-items:center; justify-content:center;
    padding:10px 20px;
    border-radius:10px;
    border:0;
    background:transparent;
    color:#8a96c6;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
    cursor:pointer;
    transition:color .2s ease, background .2s ease, box-shadow .2s ease;
}
.tv-tab:hover{ color:#d5ddff; }
.tv-tab.is-active{
    color:#fff;
    background:linear-gradient(135deg, rgba(92,114,220,.7), rgba(44,64,156,.9));
    box-shadow:0 16px 26px rgba(45,62,140,.5);
}
.tv-tab:focus-visible{ outline:2px solid #fff; outline-offset:2px; }

.tv-panels{ position:relative; }
.tv-panel{ display:none; }
.tv-panel.is-active{ display:block; }
.tv-panel-card{
    background:rgba(10,14,26,.88);
    border:1px solid rgba(64,76,118,.55);
    border-radius:16px;
    padding:20px;
    box-shadow:inset 0 0 0 1px rgba(130,160,255,.06), 0 20px 32px rgba(0,0,0,.4);
}

.tv-leaderboard-table{
    width:100%;
    border-collapse:collapse;
    background:rgba(10,14,26,.9);
    border-radius:12px;
    overflow:hidden;
}
.tv-leaderboard-table thead{ background:rgba(16,20,36,.92); color:#8f9bcf; text-transform:uppercase; font-size:12px; letter-spacing:.12em; }
.tv-leaderboard-table th,
.tv-leaderboard-table td{ padding:14px 18px; border-bottom:1px solid rgba(52,64,102,.45); text-align:left; }
.tv-leaderboard-table tbody tr:last-child td{ border-bottom:0; }
.tv-leaderboard-table tbody tr{ color:#e2e6ff; transition:background .2s ease; }
.tv-leaderboard-table tbody tr:hover{ background:rgba(88,110,188,.18); }
.tv-leaderboard-number{ font-family:'McPvP', serif; font-weight:800; letter-spacing:.12em; color:#9daaf5; }
.tv-leaderboard-player{ display:flex; flex-direction:column; gap:4px; }
.tv-leaderboard-player strong{ font-size:15px; letter-spacing:.03em; }
.tv-leaderboard-player span{ font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:#8b96c6; }

.tv-participant-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap:14px; }
.tv-participant-card{
    background:rgba(12,16,30,.82);
    border:1px solid rgba(64,76,120,.5);
    border-radius:12px;
    padding:14px;
    display:flex; flex-direction:column; gap:6px;
    box-shadow:inset 0 0 0 1px rgba(130,160,255,.05);
    color:#e2e6ff;
}
.tv-participant-card span{ font-size:12px; color:#8b96c4; letter-spacing:.06em; text-transform:uppercase; }

.bracket-board{
    position:relative;
    background:linear-gradient(135deg, rgba(6,8,16,.96), rgba(5,7,14,.86));
    border:1px solid rgba(64,76,120,.55);
    border-radius:16px;
    padding:16px;
    overflow:auto;
    box-shadow:inset 0 0 0 1px rgba(132,162,255,.07), 0 20px 32px rgba(0,0,0,.4);
}
.bracket-rounds{ position:relative; z-index:2; display:flex; align-items:flex-start; gap:48px; min-width:max-content; }
.bracket-round{ flex:0 0 180px; display:flex; flex-direction:column; gap:12px; }
.bracket-round-title{ margin:0; font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:#7e8ad2; }
.bracket-match-stack{ display:flex; flex-direction:column; gap:14px; }
.bracket-match{
    display:flex; flex-direction:column; gap:10px;
    padding:12px 12px 14px;
    border-radius:14px;
    background:linear-gradient(140deg, rgba(14,18,30,.9), rgba(8,10,20,.94));
    border:1px solid rgba(68,80,126,.55);
    box-shadow:inset 0 0 0 1px rgba(132,162,255,.06), 0 18px 28px rgba(0,0,0,.42);
    transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.bracket-match:hover{ border-color:#9fb2ff; box-shadow:0 24px 36px rgba(70,92,182,.45); }
.bracket-match.is-active{ border-color:#fff; box-shadow:0 0 0 1px rgba(255,255,255,.16), 0 24px 42px rgba(74,96,184,.6); }
.bracket-match[data-status="live"]{ border-color:rgba(255,78,122,.85); box-shadow:0 28px 44px rgba(255,78,122,.28); }
.bracket-players{ display:flex; flex-direction:column; gap:8px; }
.bracket-player{
    position:relative;
    display:flex; align-items:center; gap:10px;
    padding:6px 10px;
    border-radius:11px;
    background:rgba(14,18,30,.78);
    border:1px solid rgba(68,80,126,.55);
    color:#dce2ff;
    transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    min-height:42px;
}
.bracket-player::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    opacity:0;
    background:linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0));
    transition:opacity .2s ease;
}
.bracket-player:hover::after{ opacity:.08; }
.bracket-player.is-winner{
    background:linear-gradient(135deg, rgba(70,96,196,.82), rgba(36,52,120,.88));
    border-color:rgba(138,162,255,.8);
    color:#fff;
    box-shadow:0 14px 28px rgba(64,88,176,.45);
}
.bracket-player.is-active{
    border-color:#fff;
    color:#fff;
    box-shadow:0 0 0 1px rgba(255,255,255,.32), 0 20px 34px rgba(74,96,184,.6);
    transform:translateY(-1px);
    z-index:3;
}
.bracket-player.is-eliminated{ opacity:.78; }
.bracket-player.is-placeholder{ border-style:dashed; border-color:rgba(84,96,138,.55); color:#8f9ac2; }
.bracket-player-crest{
    width:28px; height:28px;
    border-radius:8px;
    display:flex; align-items:center; justify-content:center;
    font-weight:800;
    letter-spacing:.04em;
    background:linear-gradient(135deg, rgba(68,86,150,.5), rgba(32,40,78,.9));
    border:1px solid rgba(118,140,210,.55);
    color:#e4e9ff;
    flex-shrink:0;
}
.bracket-player-body{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.bracket-player-name{ font-size:13px; font-weight:700; letter-spacing:.03em; color:inherit; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bracket-player-score{ margin-left:auto; font-weight:800; font-size:14px; letter-spacing:.08em; color:#f2f4ff; }
.bracket-player-score.is-blank{ color:#6c769e; }

.bracket-lines{ position:absolute; inset:0; pointer-events:none; z-index:1; overflow:visible; }
.bracket-line{ fill:none; stroke:rgba(100,114,168,.45); stroke-width:2; transition:stroke .2s ease, stroke-width .2s ease, opacity .2s ease; }
.bracket-line-match{ stroke:rgba(98,112,166,.32); }
.bracket-line-advance{ stroke:rgba(140,156,220,.35); }
.bracket-line.is-active{ stroke:#fff; stroke-width:2.6; opacity:1; }

@media (max-width: 1100px){
    .tv-layout{ gap:24px; }
}

@media (max-width: 840px){
    .tv-info-card--overview .tv-info-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 560px){
    .tv-info-card--overview .tv-info-grid{ grid-template-columns:1fr; }
}

@media (max-width: 900px){
    .tv-hero{ grid-template-columns: 1fr; }
    .tv-hero-art{ min-height:220px; }
}

@media (max-width: 720px){
    .tourney-page-card{ padding:22px; }
    .tv-tabs{ flex-wrap:wrap; }
    .tv-featured-list{ grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); }
}

@media (max-width: 560px){
    .tv-hero-title{ font-size:30px; }
    .tv-info-grid{ grid-template-columns: 1fr; }
    .tv-hero-status{ gap:10px; }
}

.sv-section{ padding:14px 0 80px; background: linear-gradient(90deg, rgb(0, 0, 3) 0%, rgb(0, 0, 7) 33.783783%, rgb(0, 0, 7) 66.666664%, rgb(0, 0, 0) 103%); }
.sv-back{
    display:inline-flex; align-items:center; gap:10px; margin-bottom:10px;
    color:#e8ecff; text-decoration:none; font-weight:700;
}
.sv-back i{ font-size:14px; }

.sv-top{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; margin-top:6px; }
.sv-top-col{ display:flex; flex-direction:column; gap:8px; }
.sv-top-label{ color:#98a2c9; font-weight:700; letter-spacing:.04em; }

.sv-card{
    background: linear-gradient(90deg, rgb(0,0,3) 0%, rgb(0,0,7) 34%, rgb(0,0,7) 66%, rgb(0,0,0) 103%);
    border: 1px solid #1e293b; border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(30,41,59,.25);
    padding: 12px;
}

.sv-head{ display:grid; gap:10px; position:relative; min-height:115px; }
.sv-head-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.sv-head-main{ justify-content:flex-start; padding-right:88px; }
.sv-head-info{ display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.sv-head-main .sv-logo{
    width:calc(115px - 24px);
    height:calc(115px - 24px);
    flex-shrink:0;
    max-width:100%;
}
.sv-head-left{ display:flex; align-items:center; gap:12px; min-width:0; }
.sv-icon{
    width:44px; height:44px; object-fit:contain; border-radius:6px;
    background:#0f121c; border:1px solid #232a3d; image-rendering: pixelated;
}
.sv-name{
    font-family:'McPvP', sans-serif; font-weight:900; letter-spacing:.06em;
    color:#e9ecff; font-size:28px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.sv-quick{ display:flex; align-items:center; gap:8px; position:absolute; top:12px; right:12px; }
.sv-quick-btn{
    width:30px; height:30px; border-radius:8px; cursor:pointer;
    background: linear-gradient(90deg, rgb(0,0,3) 0%, rgb(0,0,7) 34%, rgb(0,0,7) 66%, rgb(0,0,0) 103%);
    border:1px solid #1e293b; color:#a9b3c9;
    display:inline-flex; align-items:center; justify-content:center;
    text-decoration: none;
}
.sv-quick-btn:hover{ color:#fff; border-color:#fff; }

.sv-copy{
    display:inline-flex; align-items:center; gap:10px; padding:8px 14px;
    border-radius:8px; cursor:pointer; font-weight:800;
    background: linear-gradient(135deg,#b60000 0%, #e00000 100%);
    border:1px solid rgba(255,68,68,.6); color:#fff;
    box-shadow: 0 2px 8px rgba(255,68,68,.35);
    font-family: 'McPvP', sans-serif;
    white-space:nowrap;
}
.sv-copy.copied{ filter: brightness(1.08); }
.sv-ping{
    position:absolute;
    right:12px;
    bottom:18px;
    color:#00f56a;
    font-weight:900;
    letter-spacing:.04em;
}

.sv-motd{ display:grid; grid-template-columns: 1fr auto; gap:12px; align-items:center; min-height:115px; }
.sv-motd-left{ display:flex; align-items:center; gap:12px; }
.sv-motd-left .sv-icon{ flex-shrink:0; }
.sv-motd-text{ display:flex; flex-direction:column; gap:6px; justify-content:center; min-width:0; }
.sv-motd-title{ font-weight:900; letter-spacing:.06em; color:#e9ecff; }
.sv-motd-title .sv-brand{ color:#ff7676; }
.sv-x{ color:#ff4d4d; margin:0 4px; }
.sv-version{ color:#a9b3c9; font-weight:700; }
.sv-tags{ color:#e8ecff; font-weight:800; letter-spacing:.02em; }
.sv-dot{ display:inline-block; width:8px; height:8px; background:#fff; border-radius:50%; margin:0 8px; }

.sv-motd-right{ text-align:right; }
.sv-count{ color:#e9ecff; font-weight:900; letter-spacing:.06em; }
.sv-region{ color:#a9b3c9; }

.sv-bottom{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; margin-top:12px; }
.sv-card-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.sv-card-title{ color:#e9ecff; font-weight:800; display:flex; align-items:center; gap:8px; }
.sv-card-title i{ color:#a9b3c9; }

.sv-range{ display:flex; gap:8px; }
.sv-range-btn{
    padding:6px 10px; border-radius:8px; cursor:pointer; font-weight:800; font-size:12px;
    background: #0b0c11; color:#a9b3c9; border:1px solid #1e293b;
}
.sv-range-btn.active{ border-color:#fff; color:#fff; box-shadow: inset 0 0 14px rgba(255,255,255,.18), inset 0 0 20px rgba(255,255,255,.08); }

.sv-chart-wrap{
    position:relative;
    background:#0b0f1a; border:1px solid #1a2a48; border-radius:8px; padding:12px;
    box-shadow: inset 0 0 0 1px rgba(114,145,245,.07);
}

.sv-chart-tooltip{
    position:absolute;
    transform:translate(-50%, -100%);
    background:rgba(11,15,26,.92);
    border:1px solid #1a2a48;
    border-radius:6px;
    padding:4px 10px;
    color:#e9ecff;
    font-size:12px;
    font-weight:700;
    letter-spacing:.02em;
    pointer-events:none;
    white-space:nowrap;
    box-shadow:0 6px 18px rgba(5,10,24,.45);
    display:none;
}

.sv-chart-tooltip.show{
    display:block;
}

.sv-info{ margin:0; padding:0; }
.sv-info-row{ display:grid; grid-template-columns: 120px 1fr; gap:10px; align-items:center; padding:10px 12px; }
.sv-info-row + .sv-info-row{ border-top:1px solid #1e293b; }
.sv-info dt{ color:#98a2c9; font-weight:800; letter-spacing:.04em; }
.sv-info dd{ margin:0; color:#e9ecff; font-weight:700; }
.sv-info dd.ok{ color:#10b981; }
.sv-info dd.bad{ color:#ef4444; }
.sv-flag{ width:16px; height:12px; border-radius:2px; object-fit:cover; margin-right:8px; vertical-align:-2px; }

@media (max-width: 1024px){
    .sv-name{ font-size:24px; }
    .sv-top, .sv-bottom{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
    .sv-name{ font-size:20px; }
    .sv-icon{ width:38px; height:38px; }
    .sv-count{ font-size:14px; }
    .sv-head{ min-height:auto; }
    .sv-motd{ min-height:auto; }
    .sv-head-main .sv-logo{
        width:38px;
        height:38px;
    }
}

.srv-pagination{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin: 10px 6px 2px;
    width: 100%;
}

.srv-pagination .pg,
.srv-pagination .pg:link,
.srv-pagination .pg:visited{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:34px;
    height:34px;
    padding:0 12px;
    border-radius:8px;
    font-family:'McPvP', sans-serif;
    font-weight:800;
    font-size:13px;
    letter-spacing:.04em;
    line-height:1;
    text-decoration:none;
    color:#a9b3c9;
    background: linear-gradient(90deg, rgb(0,0,3) 0%, rgb(0,0,7) 34%, rgb(0,0,7) 66%, rgb(0,0,0) 103%);
    border:1px solid #1e293b;
    box-shadow: inset 0 0 0 1px rgba(114,145,245,.06);
    transition: color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .08s ease;
}

.srv-pagination .pg:hover{
    color:#fff;
    border-color:#fff;
    box-shadow: inset 0 0 14px rgba(255,255,255,.16), inset 0 0 24px rgba(255,255,255,.08);
    transform: translateY(-1px);
}

.srv-pagination .pg.active,
.srv-pagination .pg[aria-current="page"]{
    color:#fff;
    border-color:#fff;
    box-shadow: inset 0 0 14px rgba(255,255,255,.18), inset 0 0 20px rgba(255,255,255,.08);
    cursor: default;
    transform:none;
}

.srv-pagination .pg.disabled{
    opacity:.45;
    pointer-events:none;
    filter: grayscale(.1);
}

.srv-pagination .pg:not(.pg-prev):not(.pg-next){
    min-width:32px;
    padding:0 10px;
}

.srv-pagination .ellipsis{
    min-width:auto;
    padding:0 4px;
    background:transparent;
    border:0;
    box-shadow:none;
    color:#606a87;
}

.srv-pagination .pg:focus-visible{
    outline:2px solid #ff5252;
    outline-offset:2px;
}

@media (max-width: 780px){
    .srv-pagination{ justify-content:center; }
}

.user-menu{ position: relative; }
.user-menu > summary::-webkit-details-marker{ display:none; }
.user-menu > summary{ list-style: none; cursor: pointer; }

.user-menu .caret{ font-size:12px; opacity:.7; margin-left:4px; transition: transform .15s ease; }
.user-menu[open] .caret{ transform: rotate(180deg); }

.user-dropdown{
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 170px;
    padding: 6px;
    background: #0b0c11;
    border: 1px solid #1e293b;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(255,255,255,.04);
    z-index: 1100;
}

.user-dropdown .user-item{
    display: flex; align-items: center; gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #e7e9ef;
    font-weight: 700; font-size: 12px;
    text-align: left; cursor: pointer;
}
.user-dropdown .user-item i{ width: 16px; text-align: center; }

.user-dropdown .user-item:hover{
    color:#fff; border-color:#fff;
    box-shadow: inset 0 0 14px rgba(255,255,255,.12),
    inset 0 0 20px rgba(255,255,255,.06);
}

@media (max-width: 900px){
    .user-menu > summary.nav-link span{ display: inline !important; }
}

.user-dropdown .user-item { text-decoration: none; }

.rules-section{ padding:12px 0 80px; background: linear-gradient(90deg, rgb(0, 0, 3) 0%, rgb(0, 0, 7) 33.783783%, rgb(0, 0, 7) 66.666664%, rgb(0, 0, 0) 103%); }

.rules-card{
    background: linear-gradient(90deg, rgb(0,0,3) 0%, rgb(0,0,7) 34%, rgb(0,0,7) 66%, rgb(0,0,0) 103%);
    border: 1px solid #1e293b;
    box-shadow: inset 0 0 0 1px rgba(30,41,59,.25);
    border-radius: 12px;
    padding: 18px;
}

.rules-top{ padding: 14px 10px 6px; }
.rules-h1{
    margin: 0 0 14px 0;
    color:#e9ecff;
    font-weight: 900;
    letter-spacing: .04em;
    font-size: 22px;
}
.rules-intro{
    margin: 0;
    color:#9ea5b9;
    max-width: 1040px;
    line-height: 1.7;
}

.rules-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 80px;
    row-gap: 74px;
    padding: 44px 10px 26px;
}

.rules-bloc{
    text-align: center;
    padding: 0 10px;
}
.rules-sub{
    margin: 0 0 16px 0;
    color:#e8ecff;
    font-weight: 800;
    letter-spacing: .02em;
    font-size: 18px;
}
.rules-copy{
    margin: 0 auto;
    color:#a9b3c9;
    max-width: 36ch;
    line-height: 1.75;
}

@media (max-width: 1024px){
    .rules-grid{ grid-template-columns: repeat(2, 1fr); column-gap: 48px; row-gap: 48px; }
}
@media (max-width: 640px){
    .rules-grid{ grid-template-columns: 1fr; row-gap: 28px; }
    .rules-intro{ max-width: none; }
}

.profile-section{padding:10px 0 80px;background: linear-gradient(90deg, rgb(0, 0, 3) 0%, rgb(0, 0, 7) 33.783783%, rgb(0, 0, 7) 66.666664%, rgb(0, 0, 0) 103%); }
.profile-header{background:transparent;border-bottom:1px solid var(--mcpvp-panel-border);padding:0 0 18px;min-height:52px;display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:16px;flex-wrap:wrap}
.profile-title{--profile-glow-rgb:102,255,18;--profile-accent-rgb:197,255,178;min-width:0;margin:0;color:#fff;font-size:46px;font-weight:500;line-height:1.2;letter-spacing:normal;overflow-wrap:anywhere;background-image:linear-gradient(180deg,#fff 0%,#fff 42%,rgb(var(--profile-accent-rgb)) 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;-webkit-text-stroke:.25px rgba(255,255,255,.28);paint-order:stroke fill;text-shadow:0 1px 1px rgba(0,0,0,.9),0 0 8px rgba(var(--profile-glow-rgb),.72),0 0 20px rgba(var(--profile-glow-rgb),.38)}
.profile-tabs{display:flex;gap:10px;margin-left:auto;align-items:center;flex-wrap:wrap}

.tab-btn{min-height:40px;padding:8px 16px;background:linear-gradient(90deg,rgb(0,0,3) 0%,rgb(0,0,7) 33.783783%,rgb(0,0,7) 66.666664%,rgb(0,0,0) 103%);border:1px solid transparent;border-radius:8px;color:#8b8b8b;font:inherit;font-size:14px;font-weight:500;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:color .15s ease,border-color .15s ease,box-shadow .15s ease}
.tab-btn:hover{color:#bdbdbd}
.tab-btn.active{border-color:#fff;color:#fff;box-shadow:inset 0 0 14px rgba(255,255,255,.18),inset 0 0 20px rgba(255,255,255,.08)}

.profile-grid{display:grid;grid-template-columns:204px 1fr 400px;gap:15px;align-items:start}
.left-column,.middle-column,.right-column{display:flex;flex-direction:column}

.player-card{border:1px solid rgb(25,39,54);text-align:center;margin-bottom:20px;background-image:linear-gradient(rgb(0,0,7) 39%,rgba(89,255,0,.5) 135%);backdrop-filter:blur(46px);opacity:1;position:relative;overflow:hidden;width:204px;height:341px;min-width:204px;min-height:341px;max-width:204px;max-height:341px;flex:0 0 204px;display:flex;align-items:flex-end;justify-content:center}
.player-card::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,7,.35) 39%,rgba(89,255,0,.4) 100%);z-index:1}
.player-skin{display:flex;justify-content:center;align-items:flex-end;width:100%;height:100%;padding:0;box-sizing:border-box}
.skin-image{width:100%;height:100%;display:block;transition:transform .3s ease,box-shadow .3s ease;object-fit:contain}
.player-skin,.skin-image{position:relative;z-index:0}

.section-title{font-size:18px;font-weight:600;margin:0 0 10px;display:flex;align-items:center;gap:10px;color:#fff}
.skins-title{margin:18px 0 6px}
.activity-title{justify-content:center;margin:0 0 10px}

.skins-section{background:linear-gradient(90deg,rgb(0,0,3) 0%,rgb(0,0,7) 33.783783%,rgb(0,0,7) 66.666664%,rgb(0,0,0) 103%);border:1px solid #1e293b;border-radius:5px;padding:16px;box-shadow:inset 0 0 0 1px rgba(30,41,59,.25)}
.skins-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.skin-item{display:block;aspect-ratio:1;background:#1a1a1a;border:2px solid #2a2a2a;cursor:pointer;transition:all .2s ease;position:relative;overflow:hidden}
.skin-item::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#73ff73,#5acc5a);opacity:.2}
.skin-item:hover:not(.active){border-color:#ff4444;transform:scale(1.05)}
.skin-empty{display:block;text-align:center;color:#cbd5e1;font-size:12px;padding:8px}

.badges-title{margin:0 0 10px}
.section-status-badge{padding:3px 6px;border:1px solid var(--mcpvp-panel-border);border-radius:4px;background:var(--mcpvp-nav-panel);color:#8f98aa;font-size:9px;font-weight:600;line-height:1;letter-spacing:.08em;text-transform:uppercase}
.badges-section{background:linear-gradient(90deg,rgb(0,0,3) 0%,rgb(0,0,7) 33.78%,rgb(0,0,7) 66.66%,rgb(0,0,0) 103%);border:1px solid #1e293b;border-radius:5px;padding:12px;box-shadow:inset 0 0 0 1px rgba(30,41,59,.25)}
.badges-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.badge-slot{display:block;aspect-ratio:1;background:#080b12;border:2px solid #2a2a2a;box-shadow:inset 0 0 0 1px rgba(255,255,255,.015)}

.kits-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(48px,1fr));gap:4px;padding:6px}
.ranking-kit{width:100%;min-width:0;padding:4px 2px;text-align:center;transition:all .2s ease;display:flex;flex-direction:column;align-items:center;gap:4px;background:transparent;border:none;cursor:pointer}
.ranking-kit:focus-visible{outline:2px solid rgba(255,215,0,.6);outline-offset:2px}
.ranking-kit.is-active .kit-icon{border-color:#ffd700;box-shadow:0 0 14px rgba(255,215,0,.35)}
.ranking-kit.is-active .kit-rank{box-shadow:0 0 14px rgba(255,215,0,.35)}
.kit-icon{width:36px;height:36px}
.rankings-section .kit-rank{min-width:38px;background:transparent;color:#FFD700;border:1px solid #FFD700;padding:3px 6px;font-size:10px;font-weight:800;text-transform:uppercase;line-height:1}
.rankings-section .ranking-kit:hover .kit-rank{box-shadow:0 0 12px rgba(255,215,0,.25)}
.rankings-section .kit-icon{padding:7px;border:1px solid #2a2f3b;border-radius:0;background:rgba(255,255,255,.02);box-shadow:inset 0 0 0 1px rgba(30,41,59,.25);width:38px;height:38px;object-fit:contain;display:block;image-rendering:pixelated;image-rendering:crisp-edges}
.middle-column .rankings-section{background:linear-gradient(90deg,rgb(0,0,3) 0%,rgb(0,0,7) 33.783783%,rgb(0,0,7) 66.666664%,rgb(0,0,0) 103%);border:1px solid #1e293b;border-radius:5px;box-shadow:inset 0 0 0 1px rgba(30,41,59,.25)}
.elo-section{background:linear-gradient(90deg,rgb(0,0,3) 0%,rgb(0,0,7) 33.78%,rgb(0,0,7) 66.66%,rgb(0,0,0) 103%);border:1px solid #1e293b;box-shadow:inset 0 0 0 1px rgba(30,41,59,.25);border-radius:2px;padding:12px;height:236px;max-height:236px;margin-top:10px;display:grid;grid-template-rows:auto auto 1fr;gap:6px}
.elo-header{display:flex;justify-content:space-between;align-items:center;margin:0}
.elo-header .section-title{display:flex;align-items:center;gap:8px}
.elo-reset-btn{border:1px solid transparent;background:transparent;color:#a9b3c9;font-size:16px;line-height:1;width:18px;height:18px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.elo-reset-btn:hover{color:#fff;border-color:#fff}
.elo-reset-btn:focus-visible{outline:2px solid rgba(255,215,0,.6);outline-offset:2px}
.elo-reset-btn.is-hidden{display:none}
.time-selector{display:flex;gap:6px}
.elo-section .time-btn{-webkit-appearance:none;appearance:none;background:transparent;color:#fff;border:1px solid transparent;padding:6px 10px;font-size:12px;font-weight:700;line-height:1;letter-spacing:.04em;border-radius:2px;cursor:pointer}
.elo-section .time-btn:hover{border-color:#fff}
.elo-section .time-btn.active{border-color:#fff}
.elo-legend{min-height:18px;display:flex;align-items:center;gap:14px;color:#a9b3c9;font-size:10px;line-height:1}
.elo-legend__metric{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.elo-legend__dot{width:7px;height:7px;border-radius:999px;box-shadow:0 0 8px color-mix(in srgb,var(--metric-color) 55%,transparent);background:var(--metric-color)}
.elo-legend__value{color:#fff;font-weight:700}
.chart-container{position:relative;height:100%!important;min-height:0;padding:0;border:none;border-radius:2px;background:#000}
#eloChart{display:block;width:100%!important;height:100%!important;background:transparent!important}
.chart-empty{position:absolute;inset:0;display:grid;place-items:center;margin:0;color:#788196;font-size:11px;text-align:center}
.chart-empty[hidden]{display:none}

.history-title{margin:20px 0 10px}
.history-card{background:linear-gradient(90deg,rgb(0,0,3) 0%,rgb(0,0,7) 33.78%,rgb(0,0,7) 66.66%,rgb(0,0,0) 103%);border:1px solid #1e293b;box-shadow:inset 0 0 0 1px rgba(30,41,59,.25);border-radius:2px;padding:12px;padding-right:8px}
.history-scroll{--row-h:34px;--row-gap:6px;height:200px;max-height:200px;overflow:auto}
.history-scroll::-webkit-scrollbar{width:8px}
.history-scroll::-webkit-scrollbar-thumb{background:#232a3d;border-radius:8px}
.history-scroll::-webkit-scrollbar-track{background:transparent}
.history-table{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--row-gap)}
.history-row{min-height:var(--row-h);display:grid;grid-template-columns:26px .95fr 100px 70px 28px;align-items:center;padding:6px 10px;border-radius:8px;gap:8px;background:#0f121c;border:1px solid #232a3d;padding-right:6px}
.history-row.is-empty{grid-template-columns:1fr;padding:0}
.history-row.is-empty>*{display:none}
.history-index{justify-self:center;font-weight:900;font-size:13px;color:#72a9ff;text-shadow:0 0 10px rgba(114,169,255,.6)}
.history-name{color:#fff;font-weight:600;letter-spacing:.02em;font-size:13px}
.history-date{color:#cfd6e6;font-variant-numeric:tabular-nums;letter-spacing:.02em;margin-right:6px;font-size:12px}
.history-ago{color:#8a93a6;font-weight:600;letter-spacing:.03em;font-size:12px}
.history-card .copy-btn{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:1px solid #232a3d;border-radius:6px;color:#a9b3c9;transition:border-color .15s ease,color .15s ease,background .15s ease}
.history-card .copy-btn:hover{color:#fff;border-color:#fff;background:rgba(255,255,255,.04)}
.history-card .copy-btn svg{width:14px;height:14px}
.history-row .copy-btn{justify-self:end}
.history-title .history-icon{color:#fff;font-size:14px;line-height:1;margin-right:8px;opacity:.95}

.activity-section{--row-inset:6px;background:linear-gradient(90deg,rgb(0,0,3) 0%,rgb(0,0,7) 33.78%,rgb(0,0,7) 66.66%,rgb(0,0,0) 103%);height: 310px;border:1px solid #1e293b;border-radius:5px;padding:19px;box-shadow:inset 0 0 0 1px rgba(30,41,59,.25)}
.activity-header{display:flex;align-items:center;justify-content:center;margin:0 0 8px}
.activity-status{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:12px;width:100%;flex-wrap:wrap}
.activity-online-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;margin:0;border:1px solid #1e293b;border-radius:10px;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:none;color:#4ade80;box-shadow:inset 0 0 0 1px rgba(30,41,59,.25);background:linear-gradient(90deg,rgba(0,0,7,.9) 0%,rgba(6,20,8,.85) 50%,rgba(0,0,0,.9) 100%)}
.activity-current-server{display:flex;align-items:center;gap:10px;justify-content:center;margin:0;padding:10px 12px;border:1px solid #1e293b;border-radius:12px;background:rgba(0,0,0,.45);box-shadow:inset 0 0 0 1px rgba(30,41,59,.25);text-decoration:none;color:inherit;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease}
.activity-current-server:hover{border-color:#4ade80;background:rgba(6,20,8,.85);box-shadow:inset 0 0 0 1px rgba(74,222,128,.35)}
.activity-current-server:focus-visible{outline:2px solid #bbf7d0;outline-offset:3px}
.activity-current-details{display:flex;flex-direction:column;gap:2px;line-height:1.2;align-items:center;text-align:center}
.activity-current-label{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#4ade80;font-weight:800}
.activity-current-name{color:#e8ffe8;font-weight:900;letter-spacing:.03em}
.activity-current-server .status-dot{color:#4ade80;flex-shrink:0}
.current-dot{color:#4ade80}
.activity-connect-form{margin:0}
.activity-connect-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;background:linear-gradient(90deg,rgba(68,255,68,.14) 0%,rgba(132,255,132,.22) 50%,rgba(68,255,68,.14) 100%);border:1px solid #4ade80;border-radius:10px;color:#e8ffe8;font-weight:900;letter-spacing:.08em;font-family:'McPvP',sans-serif;text-transform:uppercase;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;background-color:#0b160c;box-shadow:0 10px 28px rgba(74,222,128,.25),inset 0 1px 0 rgba(255,255,255,.05)}
.activity-connect-btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(16,185,129,.24);border-color:#22c55e}
.activity-connect-btn:focus-visible{outline:2px solid #bbf7d0;outline-offset:3px}
.activity-connect-btn i{font-size:14px;color:inherit}
.activity-online-pill.is-online{color:#4ade80}
.activity-online-pill.is-offline{color:#9ca3af}
.activity-tabbar{display:flex;justify-content:center;align-items:stretch;gap:6px;width:100%;margin:30px 0 20px;flex-wrap:wrap}
.activity-tab{flex:1;display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;background:linear-gradient(90deg,rgb(0,0,3) 0%,rgb(0,0,7) 33.78%,rgb(0,0,7) 66.66%,rgb(0,0,0) 103%);border:1px solid #1e293b;border-radius:8px;color:#8b8b8b;font-size:12px;font-weight:600;font-family:'McPvP',sans-serif;cursor:pointer;transition:color .15s ease,border-color .15s ease}
.activity-tab:hover{color:#bdbdbd}
.activity-tab.active{border-color:#fff;color:#fff;box-shadow:inset 0 0 14px rgba(255,255,255,.18),inset 0 0 20px rgba(255,255,255,.08)}
.activity-list{list-style:none;margin:0;padding:0 0 8px;display:flex;flex-direction:column;gap:6px;height:130px;overflow-y:auto}
.activity-row{display:grid;align-items:center;grid-template-columns:20px 24px 1fr auto auto;gap:8px;padding:6px 8px;background:#14161f;border:1px solid #23262f;border-radius:6px;width:calc(100% - (var(--row-inset)*2));margin-inline:var(--row-inset)}
.activity-row:hover{border-color:#ff4444;background:#1b1e29}
.row-rank{width:20px;text-align:center;font-weight:900;font-size:14px;line-height:1;color:#72a9ff;text-shadow:0 0 10px rgba(114,169,255,.6)}
.row-icon.swords{width:24px;height:24px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;background:#0f121c;border:1px solid #232a3d;box-shadow:inset 0 0 0 1px rgba(114,145,245,.06);color:#d6d9e6}
.swords-svg{width:14px;height:14px;display:block}
.row-domain{font-weight:700;font-size:13px;color:#d7d7d7}
.row-joins{font-size:12px;color:#e4e4e4;display:inline-flex;align-items:center;gap:6px}
.row-link{color:#999;padding:4px;border-radius:6px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.row-link:hover{color:#ff4444;background:rgba(255,68,68,.1)}
.row-link i{font-size:12px}
.is-hidden{display:none!important}

.status-dot{width:8px;height:8px;background:currentColor;border-radius:50%;animation:pulse 2s infinite}
.activity-online-pill.is-offline .status-dot{animation:none}
@keyframes pulse{0%{box-shadow:0 0 0 0 currentColor}70%{box-shadow:0 0 0 6px rgba(16,185,129,0)}100%{box-shadow:0 0 0 0 rgba(16,185,129,0)}}
.join-btn svg{width:20px;height:20px}
.match-item.win .match-result{background:#10b981;color:#fff}
.match-item.loss .match-result{background:#ef4444;color:#fff}

.matches-title{margin:20px 0 10px}
.matches-title .match-icon{color:#fff;font-size:14px;line-height:1;margin-right:8px;opacity:.95}
.history-card,.matches-card{background:linear-gradient(90deg,rgb(0,0,3) 0%,rgb(0,0,7) 33.78%,rgb(0,0,7) 66.66%,rgb(0,0,0) 103%);border:1px solid #1e293b;box-shadow:inset 0 0 0 1px rgba(30,41,59,.25);border-radius:2px;padding:12px}
.matches-scroll{--row-h:62px;--row-gap:8px;height:calc(var(--row-h)*5 + var(--row-gap)*4);max-height:340px;overflow:auto}
.matches-scroll::-webkit-scrollbar{width:8px}
.matches-scroll::-webkit-scrollbar-thumb{background:#232a3d;border-radius:8px}
.match-table{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--row-gap)}
.match-row{min-height:var(--row-h);display:grid;align-items:center;grid-template-columns:32px minmax(220px,1.2fr) 64px minmax(220px,1fr);gap:12px;padding:8px 10px;background:#0f121c;border:1px solid #232a3d;border-radius:10px}
.match-row.is-empty{visibility:hidden}
.match-kit{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center}
.match-kit img{width:22px;height:22px;image-rendering:pixelated;display:block}
.match-thumb{height:44px;border-radius:8px;overflow:hidden;position:relative;border:1px solid #232a3d;box-shadow:inset 0 0 0 1px rgba(30,41,59,.25);background:linear-gradient(180deg,rgba(0,0,0,.35),rgba(0,0,0,.55)),var(--img,linear-gradient(90deg,#14161f,#0f121c));background-size:cover;background-position:center}
.match-map{position:absolute;inset:auto 0 0 0;padding:8px 12px;font-weight:700;color:#fff;letter-spacing:.02em;text-shadow:0 1px 0 rgba(0,0,0,.5);font-size:14px}
.match-score{justify-self:center;color:#e7e9ef;font-variant-numeric:tabular-nums;letter-spacing:.03em;font-weight:800;font-size:14px}
.match-players{display:grid;grid-template-columns:auto 24px auto;align-items:center;gap:10px}
.player-chip{display:inline-flex;align-items:center;justify-content:center;min-width:120px;height:36px;padding:0 12px;background:#0c0f18;border:1px solid #232a3d;border-radius:8px;color:#cfd6e6;font-weight:700;letter-spacing:.02em;font-size:14px}
.player-chip.you{color:#73ff73}
.player-chip.opp.win{color:#73ff73}
.match-row.win .player-chip.you{color:#73ff73}
.match-row.loss .player-chip.you{color:#9aa2b5}
.match-players .vs{color:#7b8296;font-weight:700;text-align:center}

.skin-item.head-tile{border:0;box-shadow:inset 0 0 0 2px #2a2a2a;background:transparent;cursor:default}
.skin-item.head-tile::before{content:none!important}
.skin-item.head-tile .mc-head-img{width:100%;height:100%;display:block;object-fit:contain;image-rendering:pixelated}
.skin-item.head-tile:hover{border-color:transparent;box-shadow:inset 0 0 0 2px #2a2a2a;transform:none}

@media (max-width:1200px){
    .profile-grid{grid-template-columns:204px 1fr;gap:20px}
    .right-column{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
    .right-column{grid-column:1 / -1}
}
@media (max-width:768px){
    .profile-header{align-items:center;gap:12px;padding-bottom:16px;margin-bottom:20px}
    .profile-title{flex:1 1 auto;min-width:0}
    .profile-tabs{margin-left:auto;justify-content:flex-end;gap:8px;flex-shrink:0;flex-wrap:nowrap}
    .profile-tabs .tab-btn{padding:8px 12px;font-size:13px}
    .profile-grid{grid-template-columns:1fr}
    .right-column{grid-template-columns:1fr}
    .kits-grid{grid-template-columns:repeat(3,1fr)}
    .skins-grid{grid-template-columns:repeat(4,1fr)}
    .elo-header{flex-direction:column;align-items:flex-start;gap:15px}
    .time-selector{align-self:stretch;justify-content:space-between}
    .activity-row{grid-template-columns:24px 36px 1fr auto}
    .row-link{display:none}
    .matches-scroll{--row-h:56px}
    .match-row{grid-template-columns:28px 1fr 56px;grid-auto-rows:auto;grid-template-areas:"kit thumb score" ". players players";gap:8px}
    .match-kit{grid-area:kit}
    .match-thumb{grid-area:thumb}
    .match-score{grid-area:score}
    .match-players{grid-area:players}
    .player-chip{min-width:0;height:32px;font-size:13px}
}
@media (max-width:480px){
    .profile-header{align-items:stretch}
    .profile-title{flex:1 1 100%;font-size:32px}
    .profile-tabs{width:100%;margin-left:0;gap:6px}
    .profile-tabs .tab-btn{flex:1;padding:7px 10px;font-size:12px}
    .profile-container{padding:20px 0}
    .kits-grid{grid-template-columns:1fr}
    .history-item{flex-wrap:wrap;gap:8px}
    .history-date,.history-ago{width:50%;text-align:center}
}

/* Account Page */
.account-section{padding:40px 0;background: linear-gradient(90deg, rgb(0, 0, 3) 0%, rgb(0, 0, 7) 33.783783%, rgb(0, 0, 7) 66.666664%, rgb(0, 0, 0) 103%); }
.account-wrapper{display:flex;gap:20px}
.account-sidebar{width:220px;background:#0b0c11;border:1px solid #1a1a1a;border-radius:8px}
.sidebar-title{margin:0;padding:16px 20px;font-size:18px;font-weight:600;color:#fff;border-bottom:1px solid #1a1a1a}
.sidebar-nav{display:flex;flex-direction:column}
.sidebar-link{padding:12px 20px;color:#bbb;text-decoration:none;border-bottom:1px solid #1a1a1a}
.sidebar-link:last-child{border-bottom:none}
.sidebar-link:hover,.sidebar-link.active{background:#1a1a1a;color:#fff}
.account-content{flex:1;background:#0b0c11;border:1px solid #1a1a1a;border-radius:8px;padding:20px}
.account-title{margin:0 0 20px;font-size:24px;font-weight:600;color:#fff}
.account-card{display:flex;align-items:center;gap:20px;padding:20px 0;border-bottom:1px solid #1a1a1a;margin-bottom:20px}
.account-avatar{width:64px;height:64px;border-radius:50%;background:#1a1a1a;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:600;color:#fff}
.account-details{flex:1;min-width:0}
.account-details .account-name{font-size:18px;font-weight:600;color:#fff}
.account-details .account-email{font-size:14px;color:#aaa}
.account-section-block{margin-top:20px}
.account-form .auth-submit{width:auto;padding:10px 24px}
.account-card--stacked{align-items:flex-start;justify-content:space-between}
.account-action{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 16px;border:1px solid #ff4444;border-radius:8px;color:#fff;text-decoration:none;background:rgba(255,68,68,.12)}
button.account-action{font-family:inherit;cursor:pointer}
.account-action:hover{background:rgba(255,68,68,.2)}
.account-notice{margin:0 0 18px;padding:12px 14px;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:rgba(255,255,255,.05);color:#e7e9ef}
.account-key{word-break:break-all}
.connections-content{overflow:hidden}
.connections-header{padding:2px 0 22px;border-bottom:1px solid var(--mcpvp-panel-border,#1a1a1a);margin-bottom:20px;animation:connections-enter .24s ease-out both}
.connections-header .account-title{margin-bottom:7px}
.connections-header p{max-width:650px;margin:0;color:#8d96ad;font-size:14px;line-height:1.55}
.connections-kicker{display:block;margin-bottom:5px;color:#ff6262;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.connections-error{margin:0 0 18px;padding:12px 14px;border:1px solid rgba(255,102,102,.36);border-radius:8px;background:rgba(255,68,68,.08);color:#ff9a9a;font-size:13px;line-height:1.5}
.connection-provider{display:grid;grid-template-columns:48px minmax(0,1fr);gap:16px;padding:20px 0;border-bottom:1px solid var(--mcpvp-panel-border,#1a1a1a);animation:connections-enter .24s calc(.05s + var(--connection-index,0) * .035s) ease-out both}
.connection-provider:last-child{border-bottom:0}
.connection-provider-mark{display:flex;width:48px;height:48px;align-items:center;justify-content:center;border-radius:12px;font-size:22px}
.connection-provider-mark--discord{background:rgba(88,101,242,.13);color:#8f98ff}
.connection-provider-mark--twitch{background:rgba(145,70,255,.13);color:#b788ff}
.connection-provider-mark--youtube{background:rgba(255,0,0,.11);color:#ff6262}
.connection-provider-body{min-width:0}
.connection-provider-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.connection-provider-heading h2{margin:0;color:#fff;font-size:18px}
.connection-provider-heading p{max-width:620px;margin:0;color:#8d96ad;font-size:13px;line-height:1.5}
.connection-state{flex:0 0 auto;padding:5px 9px;border:1px solid #32384a;border-radius:999px;color:#8d96ad;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.connection-state.is-connected{border-color:rgba(82,196,116,.35);background:rgba(82,196,116,.08);color:#8ee6aa}
.connection-actions{display:flex;align-items:center;gap:12px;margin-top:20px;flex-wrap:wrap}
.connection-primary{gap:8px;transition:transform .16s ease,background .16s ease,border-color .16s ease}
.connection-primary:hover{transform:translateY(-2px)}
.connection-disconnect{border:0;background:transparent;color:#a5aec2;font:inherit;font-size:13px;cursor:pointer;transition:color .15s ease}
.connection-disconnect:hover{color:#fff}
.connection-disconnect:focus-visible{outline:2px solid #ff5252;outline-offset:4px}
.connection-identity{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;margin-top:20px;padding:14px;border:1px solid #23283a;border-radius:8px;background:#070913;transition:border-color .16s ease,transform .16s ease}
.connection-identity:hover{transform:translateY(-1px);border-color:#343b50}
.connection-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover}
.connection-avatar--fallback{display:flex;align-items:center;justify-content:center;background:#191d2a;color:#fff;font-size:18px;font-weight:700}
.connection-identity-copy{display:flex;min-width:0;flex-direction:column;gap:3px}
.connection-identity-copy strong{color:#fff;font-size:14px}
.connection-identity-copy span{overflow:hidden;color:#8d96ad;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.connection-disconnect{color:#ff8a8a}
@keyframes connections-enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.registration-success{position:relative;isolation:isolate;display:grid;min-height:calc(100svh - 160px);place-items:center;overflow:hidden;padding:88px 24px 140px;background:radial-gradient(circle at 50% 38%,rgba(255,68,68,.09),transparent 34%),linear-gradient(180deg,#0d1020 0%,var(--mcpvp-bg,#0e1120) 72%)}
.registration-success-visual{position:absolute;z-index:-1;top:45%;left:50%;width:min(680px,82vw);aspect-ratio:1;transform:translate(-50%,-50%);opacity:.7;pointer-events:none}
.registration-success-visual span{position:absolute;inset:0;border:1px solid rgba(255,82,82,.11);border-radius:50%;animation:registration-orbit 9s ease-in-out infinite alternate}
.registration-success-visual span:nth-child(2){inset:15%;border-color:rgba(255,255,255,.055);animation-delay:-3s}
.registration-success-visual span:nth-child(3){inset:31%;border-color:rgba(255,82,82,.16);animation-delay:-6s}
.registration-success-content{width:min(720px,100%);text-align:center;animation:registration-success-in .42s cubic-bezier(.2,.8,.2,1) both}
.registration-success-mark{display:flex;width:72px;height:72px;align-items:center;justify-content:center;margin:0 auto 24px;border:1px solid rgba(255,92,92,.42);border-radius:50%;background:rgba(255,68,68,.12);box-shadow:0 0 0 10px rgba(255,68,68,.035),0 20px 60px rgba(0,0,0,.28);color:#ff6d6d;font-size:27px;animation:registration-mark-in .52s .08s cubic-bezier(.2,1.2,.3,1) both}
.registration-success-kicker{display:block;margin-bottom:9px;color:#ff6d6d;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.registration-success h1{margin:0;color:#fff;font-size:clamp(32px,4vw,48px);font-weight:700;line-height:1.08;letter-spacing:-.02em}
.registration-success-content>p{max-width:590px;margin:20px auto 0;color:#a5aec2;font-size:15px;line-height:1.65}
.registration-success-error{max-width:560px;margin:24px auto 0;padding:11px 14px;border:1px solid rgba(255,102,102,.36);border-radius:8px;background:rgba(255,68,68,.08);color:#ff9a9a;font-size:13px;line-height:1.5}
.registration-success-actions{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:32px;animation:registration-actions-in .38s .18s ease-out both}
.registration-success-connect{display:inline-flex;min-height:46px;align-items:center;justify-content:center;gap:9px;padding:0 22px;border:1px solid #ff5252;border-radius:9px;background:#ed4444;color:#fff;font-size:14px;font-weight:700;text-decoration:none;box-shadow:0 12px 30px rgba(237,68,68,.18);transition:transform .16s ease,background .16s ease,box-shadow .16s ease}
.registration-success-connect:hover{transform:translateY(-2px);background:#fa5151;box-shadow:0 16px 36px rgba(237,68,68,.25)}
.registration-success-connect:focus-visible,.registration-success-skip:focus-visible{outline:2px solid #ff6d6d;outline-offset:4px}
.registration-success-actions form{margin:0}
.registration-success-skip{min-height:44px;padding:0;border:0;background:transparent;color:#a5aec2;font:inherit;font-size:13px;cursor:pointer;transition:color .16s ease,transform .16s ease}
.registration-success-skip:hover{transform:translateY(-1px);color:#fff}
.registration-success-content>small{display:block;margin-top:21px;color:#727c93;font-size:11px;line-height:1.5}
@keyframes registration-success-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes registration-mark-in{from{opacity:0;transform:scale(.72) rotate(-8deg)}to{opacity:1;transform:scale(1) rotate(0)}}
@keyframes registration-actions-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes registration-orbit{from{transform:scale(.98);opacity:.65}to{transform:scale(1.03);opacity:1}}
@media (prefers-reduced-motion:reduce){.registration-success-content,.registration-success-mark,.registration-success-actions,.registration-success-visual span{animation:none}}
.server-partner-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:2px 0 20px;border-bottom:1px solid var(--mcpvp-panel-border,#1a1a1a);margin-bottom:20px}
.server-partner-identity{min-width:0}
.server-partner-name{margin:0;color:#fff;font-size:20px;font-weight:600;line-height:1.3}
.server-partner-name span,.server-partner-ip span{color:#8d96ad;font-weight:500}
.server-partner-ip{margin:5px 0 0;color:#d6dae4;font-size:14px}
.server-api-key-trigger{flex:0 0 auto;gap:8px}
.server-application-notice{display:flex;flex-direction:column;gap:3px;margin-bottom:20px;padding:12px 14px;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:rgba(255,255,255,.05)}
.server-application-notice strong{color:#fff;font-size:14px}
.server-application-notice span{color:#8d96ad;font-size:12px}
.api-key-input{width:100%;min-height:38px;padding:10px 12px;border:1px solid #23283a;border-radius:8px;background:#070913;color:#e7e9ef;font-family:'Menlo','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:13px}
.api-key-input:focus{outline:2px solid #ff5252;outline-offset:2px}
.api-key-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.api-key-button{gap:8px}
.server-api-key-modal{width:min(520px,calc(100vw - 32px));padding:0;border:1px solid #2c3244;border-radius:10px;background:#0b0c11;color:#e7e9ef;box-shadow:0 24px 80px rgba(0,0,0,.58)}
.server-api-key-modal[open]{animation:server-modal-in .16s ease-out}
.server-api-key-modal::backdrop{background:rgba(0,0,5,.76);backdrop-filter:blur(3px)}
.server-api-key-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 20px 0}
.server-api-key-modal-header span{display:block;margin-bottom:4px;color:#ff6262;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.server-api-key-modal-header h2{margin:0;color:#fff;font-size:20px}
.server-api-key-close{display:flex;width:34px;height:34px;align-items:center;justify-content:center;border:1px solid #343a4e;border-radius:7px;background:transparent;color:#a5aec2;cursor:pointer}
.server-api-key-close:hover{background:#151824;color:#fff}
.server-api-key-close:focus-visible{outline:2px solid #ff5252;outline-offset:2px}
.server-api-key-intro{margin:12px 20px 16px;color:#8d96ad;font-size:13px;line-height:1.5}
.server-api-key-modal .api-key-input{width:calc(100% - 40px);margin:0 20px}
.server-api-key-modal .api-key-actions{padding:14px 20px 20px}
@keyframes server-modal-in{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.server-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.server-section-heading .section-title{margin-bottom:5px}
.server-section-heading p,.server-page-header p{max-width:680px;margin:0;color:#8d96ad;font-size:13px;line-height:1.5}
.server-details-form{margin-top:14px}
.server-details-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.server-description-field{margin-top:18px}
.server-description-label{margin-bottom:8px}
.server-description-label label{display:block;margin-bottom:4px}
.server-description-label p{margin:0;color:#8d96ad;font-size:12px;line-height:1.4}
.server-description-textarea{width:100%;min-height:120px;resize:vertical;line-height:1.5}
.server-field-meta{display:flex;justify-content:space-between;gap:16px;margin-top:7px;color:#737d94;font-size:12px;line-height:1.4}
.server-field-meta--end{justify-content:flex-end}
.server-management-list{display:grid;gap:10px;margin-top:14px}
.server-management-card{display:grid;grid-template-columns:42px minmax(0,1fr) 20px;align-items:center;gap:14px;padding:16px;border:1px solid #23283a;border-radius:8px;background:#070913;color:#e7e9ef;text-decoration:none;transition:transform .16s ease,border-color .16s ease,background .16s ease}
.server-management-card:hover{transform:translateY(-2px);border-color:#4a3040;background:#0c0d16}
.server-management-card:focus-visible{outline:2px solid #ff5252;outline-offset:2px}
.server-management-icon{display:flex;width:42px;height:42px;align-items:center;justify-content:center;border-radius:8px;background:rgba(255,68,68,.12);color:#ff6262;font-size:16px}
.server-management-copy{display:flex;min-width:0;flex-direction:column;gap:4px}
.server-management-copy strong{color:#fff;font-size:15px}
.server-management-copy>span{color:#8d96ad;font-size:12px;line-height:1.4}
.server-management-arrow{color:#687086;font-size:12px;transition:transform .16s ease,color .16s ease}
.server-management-card:hover .server-management-arrow{transform:translateX(3px);color:#ff6262}
.server-back-link{display:inline-flex;align-items:center;gap:8px;margin-bottom:22px;color:#a5aec2;font-size:13px;text-decoration:none;transition:color .15s ease}
.server-back-link:hover{color:#fff}
.server-back-link i{font-size:11px}
.server-page-header{padding-bottom:20px;border-bottom:1px solid #1a1a1a;margin-bottom:20px}
.server-page-kicker{display:block;margin-bottom:5px;color:#ff6262;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.server-page-header .account-title{margin-bottom:6px}
@media (max-width:640px){
    .server-partner-header{align-items:stretch;flex-direction:column}
    .server-api-key-trigger{align-self:flex-start}
    .server-details-grid{grid-template-columns:1fr;gap:0}
}
.server-settings-form{margin-top:14px}
.server-settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-bottom:20px}
.server-setting-toggle{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;min-height:72px;padding:12px 14px;border:1px solid #1a1a1a;border-radius:8px;background:#070913;color:#e7e9ef;font-size:14px}
.server-setting-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.server-setting-label{color:#fff;font-weight:600}
.server-setting-description{color:#8d96ad;font-size:12px;line-height:1.35}
.server-setting-control{padding-top:2px;flex:0 0 auto}
.server-setting-toggle input[type="checkbox"]{appearance:none;width:44px;height:24px;border-radius:999px;border:1px solid #343a4e;background:#111827;position:relative;flex:0 0 auto;cursor:pointer;transition:background .15s ease,border-color .15s ease}
.server-setting-toggle input[type="checkbox"]::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#8b93a7;transition:transform .15s ease,background .15s ease}
.server-setting-toggle input[type="checkbox"]:checked{background:#b91c1c;border-color:#ff4444}
.server-setting-toggle input[type="checkbox"]:checked::after{transform:translateX(20px);background:#fff}
.server-setting-toggle input[type="checkbox"]:focus-visible{outline:2px solid #ff5252;outline-offset:2px}
.server-setting-select{min-width:132px;border:1px solid #343a4e;border-radius:6px;background:#111827;color:#e7e9ef;padding:7px 28px 7px 10px;font-size:13px;cursor:pointer}
.server-setting-select:focus{border-color:#ff5252;outline:none;box-shadow:0 0 0 2px rgba(255,82,82,.18)}
@media (max-width: 640px){
    .server-setting-select{width:100%;min-width:0}
    .server-setting-control:has(.server-setting-select){width:100%;padding-top:0}
}
.account-divider{height:1px;background:#1a1a1a;margin:28px 0 24px}
.server-styling-form{margin-top:14px}
.server-color-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.server-color-field>label{display:block;margin-bottom:8px;color:#fff;font-size:14px;font-weight:600}
.server-color-control{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:8px}
.server-color-picker{width:46px;height:42px;padding:3px;border:1px solid #343a4e;border-radius:8px;background:#070913;cursor:pointer}
.server-color-picker::-webkit-color-swatch-wrapper{padding:0}
.server-color-picker::-webkit-color-swatch{border:0;border-radius:5px}
.server-color-picker::-moz-color-swatch{border:0;border-radius:5px}
.server-color-picker:focus-visible{outline:2px solid #ff5252;outline-offset:2px}
.server-color-text{width:100%;font-family:'Menlo','SFMono-Regular',Consolas,'Liberation Mono',monospace;text-transform:uppercase}
.server-color-clear{min-height:42px;padding:0 12px;border:1px solid #343a4e;border-radius:8px;background:transparent;color:#a5aec2;font:inherit;font-size:12px;cursor:pointer;transition:border-color .15s ease,color .15s ease,background .15s ease}
.server-color-clear:hover{border-color:#525b72;background:#111522;color:#fff}
.server-color-clear:focus-visible{outline:2px solid #ff5252;outline-offset:2px}
.server-duel-score-field{display:flex;max-width:360px;flex-direction:column;align-items:flex-start;gap:8px}
.server-duel-score-field label{color:#fff;font-size:14px;font-weight:600}
.server-duel-score-select{width:100%;min-height:42px}
.server-styling-grid{display:grid;gap:16px;margin-bottom:16px}
.server-styling-field label{display:block;margin-bottom:8px;color:#fff;font-size:14px;font-weight:600}
.server-styling-textarea{width:100%;min-height:0;resize:vertical;line-height:1.45;font-family:'Menlo','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:13px}
.server-styling-textarea::placeholder{color:#687086;opacity:1}
.server-styling-description{margin-top:7px;color:#8d96ad;font-size:12px;line-height:1.4}
.server-styling-help{display:flex;align-items:flex-start;gap:8px 10px;flex-wrap:wrap;margin:4px 0 18px;color:#8d96ad;font-size:12px;line-height:1.4}
.server-styling-placeholders{display:flex;flex:1 1 100%;flex-direction:column;align-items:flex-start;gap:6px}
.server-styling-placeholder{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:8px;max-width:100%;padding:3px 7px;border:1px solid #23283a;border-radius:6px;background:#070913;color:#8d96ad}
.server-styling-placeholders code{color:#e7e9ef;font-size:12px}
.server-styling-placeholder span{font-size:11px}
@media (max-width:640px){
    .server-color-grid{grid-template-columns:1fr}
}

.bracket-match-stack {
    position: relative;
}

:root{
    --bracket-round-w: 220px;
}

.bracket-round{
    flex: 0 0 var(--bracket-round-w);
    width: var(--bracket-round-w);
    min-width: var(--bracket-round-w);
    max-width: var(--bracket-round-w);
}

.bracket-match-stack{ width: 100%; }
.bracket-match{ width: 100%; }

:root {
    --bracket-min-gap: 14px;
}

.bracket-players,
.bracket-player,
.bracket-player-body,
.bracket-match { min-width: 0; }

.bracket-player-name{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

:root{
    --bracket-round-w: 200px;
}

.bracket-rounds{ gap: 40px; }
.bracket-match-stack{ gap: 12px; }
.bracket-players{ gap: 6px; }

.bracket-match{ padding: 10px 10px 12px; }
.bracket-player{
    min-height: 36px;
    padding: 4px 8px;
}

.bracket-player-crest{
    width: 24px; height: 24px;
    border-radius: 7px;
}
.bracket-player-name{ font-size: 12px; }
.bracket-player-score{ font-size: 13px; }

.bracket-players,
.bracket-player,
.bracket-player-body,
.bracket-match { min-width: 0; }
.bracket-player-name{
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}

/* Register Page */
.register-page {
    padding: 64px 0 96px;
}

.register-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.register-header .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e7e9ef;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 12px;
    font-weight: 700;
}

.register-title {
    margin: 12px 0 10px;
    font-size: 42px;
    color: #fff;
}

.register-lede {
    margin: 0;
    color: #c8cbd7;
    font-size: 18px;
    line-height: 1.6;
}

.register-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.register-step {
    position: relative;
    padding: 24px;
    border-radius: 18px;
    background: radial-gradient(circle at 20% 20%, rgba(255, 0, 0, 0.08), rgba(255, 0, 0, 0) 50%),
        #0b0c11;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 16px 30px rgba(0, 0, 0, 0.35);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(255, 0, 0, 0.12);
    color: #ff6b6b;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.step-title {
    margin: 16px 0 10px;
    font-size: 24px;
    color: #fff;
}

.step-body {
    margin: 0;
    color: #c8cbd7;
    line-height: 1.6;
}

.step-body code {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: 'Menlo', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 14px;
}

:root{
    --bracket-round-min: 200px;
}

.bracket-rounds{
    min-width: max-content;
    width: 100%;
    gap: 40px;
}

.bracket-round{
    flex: 1 1 var(--bracket-round-min);
    min-width: var(--bracket-round-min);
    width: auto;
    max-width: none;
}

.bracket-match-stack{ width: 100%; }
.bracket-match{ width: 100%; }

.bracket-players,
.bracket-player,
.bracket-player-body,
.bracket-match { min-width: 0; }
.bracket-player-name{
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
/* Match History Header Bar */
.matches-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0 10px;
}

.matches-header-bar .matches-title {
    margin: 0;
}

/* View Picker */
.matches-view-picker {
    display: flex;
    gap: 4px;
    background: #0b0c11;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 4px;
}

.view-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}

.view-btn:hover {
    color: #a9b3c9;
}

.view-btn.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: #1e293b;
    color: #fff;
}

.view-btn i {
    font-size: 14px;
}

/* Grid View Container */
.matches-grid-view {
    padding: 12px;
    max-height: 320px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.matches-grid-view::-webkit-scrollbar {
    width: 8px;
}

.matches-grid-view::-webkit-scrollbar-thumb {
    background: #232a3d;
    border-radius: 8px;
}

.matches-grid-view::-webkit-scrollbar-track {
    background: transparent;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

/* Match Card */
.match-card {
    background: linear-gradient(rgb(20, 29, 38) 0%, rgb(1, 0, 5) 74.324324%);
    border: 1px solid rgb(25, 39, 54);
    border-radius: 5px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(54px);
    -webkit-backdrop-filter: blur(54px);
}

.match-card.win {
    border-color: #3ccf4e;
}

.match-card.loss {
    border-color: #ff4d4d;
}

.match-card.win:hover {
    border-color: #48e35c;
}

.match-card.loss:hover {
    border-color: #ff6a6a;
}

.match-card:hover {
    border-color: #3a4560;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Kit Icon */
.match-card-kit {
    width: 32px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(4, 4, 10);
    border-radius: 2px;
    box-shadow: rgba(8, 8, 23, 0.58) 0px 0px 14px 7px;
}

.match-card-kit img {
    width: 18px;
    height: 18px;
    image-rendering: pixelated;
}

/* Map Thumbnail */
.match-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    background: var(--img, #14161f);
    background-size: cover;
    background-position: center;
    box-shadow: rgb(0, 0, 0) 0px 0px 36px 17px inset;
}

.match-card-map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: -0.04em;
    text-align: center;
    text-shadow: rgb(0, 0, 0) 1px 1px 2px;
    z-index: 1;
}

/* Score */
.match-card-score {
    font-size: 18px;
    font-weight: 800;
    color: #e7e9ef;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

/* Players */
.match-card-players {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.match-card-player {
    font-size: 13px;
    font-weight: 500;
    color: rgb(112, 112, 112);
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 6px 12px;
    background: rgb(4, 6, 14);
    border-radius: 5px;
    text-align: center;
    box-sizing: border-box;
}

.match-card-player.winner {
    color: rgb(86, 204, 27);
}

.match-card-vs {
    font-size: 12px;
    color: rgb(112, 112, 112);
    font-weight: 500;
    letter-spacing: -0.04em;
}

/* List View */
.matches-list-view {
    /* inherits existing styles */
}

/* Responsive */
@media (max-width: 768px) {
    .matches-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .match-card {
        padding: 10px;
    }

    .match-card-score {
        font-size: 16px;
    }

    .match-card-player {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .matches-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .matches-header-bar {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* Compact live-matches layout on mobile */
@media (max-width: 820px) {
    .live-matches .match-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "server result"
            "players kit";
        gap: 8px 12px;
        padding: 12px;
    }

    .live-matches .match-row .server  { grid-area: server; }
    .live-matches .match-row .players { grid-area: players; min-width: 0; }
    .live-matches .match-row .kit     { grid-area: kit; justify-self: flex-end; }
    .live-matches .match-row .result  { grid-area: result; justify-self: flex-end; }

    .live-matches .match-row .player {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .live-matches .match-row .vs { flex: 0 0 auto; }

    .live-matches .match-row .result .score {
        white-space: nowrap;
    }
}

.rankings-section .kits-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
    gap: 4px;
    padding: 6px;
}

@media (max-width: 480px){
    .rankings-section .kits-grid{
        grid-template-columns: repeat(auto-fit, 44px);
        overflow: visible;
    }

    .rankings-section .ranking-kit{
        width: 44px;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .skins-section .skins-grid {
        grid-template-columns: repeat(auto-fit, minmax(48px, max-content));
        justify-content: flex-start;
        gap: 6px;
    }

    .skins-section .skin-item.head-tile {
        width: 48px;
        height: 48px;
        aspect-ratio: auto;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: inset 0 0 0 2px #2a2a2a;
        background: transparent;
    }

    .skins-section .skin-item.head-tile .mc-head-img {
        width: 100%;
        height: 100%;
        max-width: 48px;
        max-height: 48px;
        object-fit: contain;
        image-rendering: pixelated;
    }
}

@media (max-width: 520px) {
    .home-section .container{
        padding: 0 12px;
    }

    .home-well{
        padding: 16px 12px;
        border-radius: 12px;
    }

    .home-well__divider{
        margin: 20px 0;
    }

    .podium{
        --podium-gap: 6px;
        grid-template-columns: minmax(0, .92fr) minmax(0, 1.16fr) minmax(0, .92fr);
    }

    .podium::before{
        inset: -18% 0 -12% 0;
    }

    .podium-card{
        width: 100%;
        min-width: 0;
        padding: 8px 6px 0;
    }

    .podium-name{
        margin: 4px 0 6px;
        padding: 1px 0 2px;
        font-size: clamp(11px, 3.1vw, 13px);
        line-height: 1.25;
        letter-spacing: 0;
        white-space: nowrap;
    }

    .podium-card.first .podium-name{
        font-size: clamp(11px, 3.4vw, 13.5px);
    }

    .podium-name.is-long,
    .podium-name.is-xlong,
    .podium-card.first .podium-name.is-long,
    .podium-card.first .podium-name.is-xlong{
        font-size: clamp(9.5px, 2.8vw, 12px);
    }

    .top-players .top-list-item{
        grid-template-columns: 28px 40px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 10px;
    }

    .top-players .top-list-item .avatar{
        width: 40px;
        height: 40px;
    }

    .top-players .top-list-item .name{
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .top-players .top-list-item .points{
        gap: 6px;
    }
}

@media (max-width: 640px) {
    .tiers-section .container{
        padding: 0 12px;
    }

    .tiers-card{
        padding: 10px;
    }

    .tiers-head.tiers-grid{
        display: none;
    }

    .tiers-row.tiers-grid{
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 8px 10px;
        padding: 10px 8px;
    }

    .tiers-row.tiers-grid .col-rank{
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: start;
        justify-self: center;
        padding-top: 6px;
        width: auto;
    }

    .tiers-row.tiers-grid .col-player{
        grid-column: 2;
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        grid-template-areas:
            "avatar name"
            "avatar points";
        align-items: center;
        gap: 2px 10px;
        min-width: 0;
        width: 100%;
    }

    .tiers-row.tiers-grid .avatar{
        grid-area: avatar;
        width: 36px;
        height: 36px;
    }

    .tiers-row.tiers-grid .player-name{
        grid-area: name;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tiers-row.tiers-grid .player-points{
        grid-area: points;
        margin-left: 0;
        font-size: 12px;
        white-space: nowrap;
    }

    .tiers-row.tiers-grid .col-region{
        grid-column: 2;
        grid-row: 2;
        justify-content: flex-start;
        justify-self: start;
        width: auto;
        margin-top: 8px;
    }

    .tiers-row.tiers-grid .col-kits{
        grid-column: 1 / -1;
        justify-self: start;
        justify-content: flex-start;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        margin-top: 4px;
        text-align: left;
    }

    .tiers-row.tiers-grid .kit-icon{
        width: 32px;
        height: 32px;
        padding: 5px;
    }

    .tiers-row.tiers-grid .kit-tier-label{
        min-width: 28px;
        font-size: 9px;
    }

    .tiers-row:hover .avatar,
    .tiers-row .avatar.tiers-avatar-active{
        transform: none;
    }
}

body,
.navbar,
.home-section,
.search-page,
.search-container,
.search-wrapper,
.tiers-section,
.servers-section,
.error-section,
.tourney-section,
.sv-section,
.rules-section,
.profile-section,
.account-section {
    background: var(--mcpvp-bg) !important;
}

.navbar-content,
.nav-center .logo {
    background: var(--mcpvp-nav-panel) !important;
    border-color: var(--mcpvp-panel-border);
}

.search-card,
.auth-card,
.discord-card,
.tiers-card,
.tiers-filter-menu,
.tiers-info-tooltip,
.servers-card,
.error-card,
.t-card,
.tv-info-card,
.tv-panel-card,
.tv-participant-card,
.sv-card,
.rules-card,
.profile-container,
.skins-section,
.badges-section,
.middle-column .rankings-section,
.elo-section,
.history-card,
.matches-card,
.activity-section,
.account-sidebar,
.account-content,
.register-step,
.tier-player-popup__panel,
.user-dropdown {
    background: var(--mcpvp-panel);
    border-color: var(--mcpvp-panel-border);
    box-shadow: inset 0 0 0 1px rgba(29, 38, 59, .22);
}

.profile-container {
    background: var(--mcpvp-content-well);
}

.tiers-info-tooltip::before {
    background: var(--mcpvp-panel);
    border-color: var(--mcpvp-panel-border);
}

.tier-tab,
.search-tab,
.icon-btn,
.tiers-search input,
.search-input,
.search-input:focus,
.srv-filter,
.srv-sort,
.pg,
.srv-pagination .pg,
.sv-quick-btn,
.sv-range-btn,
.tab-btn,
.activity-tab,
.matches-view-picker,
.region-pill,
.region-pill.sm,
.tier-player-popup__close,
.err-btn {
    background: var(--mcpvp-nav-panel) !important;
    border-color: var(--mcpvp-panel-border);
}

.tiers-toolbar,
.srv-head,
.servers-header,
.sv-info-row + .sv-info-row,
.sidebar-title,
.sidebar-link,
.account-card {
    border-color: var(--mcpvp-panel-border);
}

.tiers-row,
.top-list-item,
.server-item,
.srv-row,
.kit-item,
.history-row,
.activity-row,
.match-row,
.match-card,
.match-card-player,
.player-chip {
    background: var(--mcpvp-ranking-card);
    border-color: var(--mcpvp-panel-border);
}

.tiers-row.tiers-row--empty,
.tiers-row[data-empty="true"]{
    grid-template-columns: 1fr;
    min-height: 86px;
    cursor: default;
    color: #aeb8d6;
}

.tiers-row.tiers-row--empty:hover,
.tiers-row[data-empty="true"]:hover{
    border-color: var(--mcpvp-panel-border);
    box-shadow: inset 0 0 0 1px rgba(29, 38, 59, .22);
}

.tiers-row.tiers-row--empty .col-rank,
.tiers-row.tiers-row--empty .col-region,
.tiers-row.tiers-row--empty .col-kits,
.tiers-row[data-empty="true"] .col-rank,
.tiers-row[data-empty="true"] .col-region,
.tiers-row[data-empty="true"] .col-kits{
    display: none;
}

.tiers-row.tiers-row--empty.tiers-grid .col-player,
.tiers-row[data-empty="true"].tiers-grid .col-player{
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    color: #aeb8d6;
    font-size: 14px;
    line-height: 1.45;
    letter-spacing: .03em;
    text-align: center;
    white-space: normal;
}

.kit-item.kit-item--pos-high {
    background:
        linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.03) 54%, rgba(255,255,255,0) 100%),
        linear-gradient(90deg, var(--tier-tint) 0%, rgba(255,255,255,0) 72%),
        var(--mcpvp-ranking-card);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
    filter: brightness(1.03) saturate(1.02);
}

.kit-item.kit-item--pos-low {
    background:
        linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,.08)),
        var(--mcpvp-ranking-card);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.28);
    filter: brightness(.9) saturate(.9);
}

/* Authentication and account security */
.auth-intro{margin-bottom:28px}
.auth-kicker,.security-kicker{display:block;margin-bottom:8px;color:#ff6666;font-size:12px;font-weight:700;text-transform:uppercase}
.auth-intro .auth-heading{margin-bottom:8px;letter-spacing:0}
.auth-copy{margin:0;color:#9aa4bd;font-size:14px;line-height:1.55}
.auth-secondary{width:100%;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 20px;border:1px solid #39445e;border-radius:8px;background:#171c31;color:#f5f7ff;font:600 15px 'McPvP',serif;cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .18s ease}
.auth-secondary:hover{border-color:#65718d;background:#1d243c;transform:translateY(-1px)}
.auth-secondary:disabled,.account-action:disabled{cursor:wait;opacity:.65;transform:none}
.auth-secondary i{color:#ff6868;font-size:18px}
.auth-divider{display:flex;align-items:center;gap:12px;margin:26px 0;color:#737d96;font-size:11px;text-transform:uppercase}
.auth-divider::before,.auth-divider::after{content:"";height:1px;flex:1;background:#252d43}
.passkey-status{margin:12px 0 0;color:#aeb8d6;font-size:13px;line-height:1.45}
.passkey-status.is-error{color:#ff8585}
.auth-code-input{font-variant-numeric:tabular-nums;letter-spacing:0;text-align:center}
.password-toggle i{width:20px;font-size:17px}

.security-content{min-width:0;padding:28px}
.security-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:24px;border-bottom:1px solid var(--mcpvp-panel-border)}
.security-header .account-title{margin:0;font-size:26px;letter-spacing:0}
.security-state,.security-status,.security-count{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border:1px solid #2f3c58;border-radius:999px;background:#171d31;color:#bac4da;font-size:12px;font-weight:700}
.security-state{gap:7px;min-height:32px;padding:0 12px;color:#98dfb0;border-color:#28563a;background:#11271b}
.security-status{min-width:52px;min-height:26px;padding:0 9px}
.security-status.is-enabled{color:#98dfb0;border-color:#28563a;background:#11271b}
.security-count{min-width:28px;height:28px;padding:0 8px}
.security-section{padding:28px 0;border-bottom:1px solid var(--mcpvp-panel-border)}
.security-section:last-child{padding-bottom:4px;border-bottom:0}
.security-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.security-section-heading h2{margin:0 0 5px;color:#fff;font-size:19px;font-weight:700;letter-spacing:0}
.security-section-heading p{margin:0;color:#909bb3;font-size:13px;line-height:1.45}
.security-inline-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;margin-bottom:18px}
.security-field label,.security-confirm-form label{display:block;margin-bottom:8px;color:#cbd2e2;font-size:13px;font-weight:600}
.security-field .auth-input{min-height:42px;padding:10px 13px}
.security-primary{min-height:42px;gap:8px;background:#b72f38;border-color:#e64e57}
.security-primary:hover{background:#cd3943}
.security-list{border-top:1px solid #252d43}
.security-list-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:13px;min-height:72px;padding:13px 0;border-bottom:1px solid #252d43}
.security-item-icon{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border:1px solid #303a53;border-radius:8px;background:#171d31;color:#ff7070;font-size:17px}
.security-item-copy{display:flex;min-width:0;flex-direction:column;gap:4px}
.security-item-copy strong{overflow:hidden;color:#f6f7fb;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.security-item-copy span{color:#818ca5;font-size:12px;line-height:1.35}
.security-remove,.security-danger,.security-text-button,.security-icon-button{border:0;background:none;color:#aeb8cd;font:600 12px 'McPvP',serif;cursor:pointer}
.security-remove{display:inline-flex;align-items:center;gap:7px;padding:9px;border-radius:6px}
.security-remove:hover,.security-danger:hover{background:rgba(255,84,84,.1);color:#ff7777}
.security-empty{display:flex;align-items:center;justify-content:center;gap:10px;min-height:74px;border-bottom:1px solid #252d43;color:#77829c;font-size:13px}
.security-unsupported{margin:0 0 18px;color:#8f99b0;font-size:13px}
.security-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.security-danger{min-height:38px;display:inline-flex;align-items:center;gap:8px;padding:0 13px;border:1px solid #542b35;border-radius:8px;color:#ef9a9f}
.two-factor-setup{display:grid;grid-template-columns:240px minmax(0,1fr);align-items:start;gap:24px}
.two-factor-qr{width:240px;height:240px;border:8px solid #fff;border-radius:8px;background:#fff}
.two-factor-setup-copy{display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:14px}
.security-step{color:#dce1ed;font-size:13px;font-weight:600}
.two-factor-secret{max-width:100%;padding:9px 10px;border:1px solid #343e58;border-radius:6px;background:#090c19;color:#dce1ed;font-size:12px;overflow-wrap:anywhere}
.security-confirm-form{width:100%;margin-top:6px}
.security-confirm-row{display:grid;grid-template-columns:minmax(120px,180px) auto;gap:10px}
.security-text-button{padding:0;color:#8f99b0;text-decoration:underline;text-underline-offset:3px}
.security-text-button:hover{color:#fff}
.recovery-panel{margin:0 0 22px;padding:16px;border:1px solid #554a2b;border-radius:8px;background:#211d12}
.recovery-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:13px}
.recovery-heading>div{display:flex;flex-direction:column;gap:3px}
.recovery-heading strong{color:#ffe39a;font-size:14px}
.recovery-heading span{color:#b8a879;font-size:12px}
.security-icon-button{width:34px;height:34px;border:1px solid #5b5031;border-radius:6px;color:#ffe39a}
.security-icon-button:hover,.security-icon-button.is-copied{background:#3a321b;color:#fff}
.recovery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.recovery-grid code{padding:7px 9px;border-radius:5px;background:#11131d;color:#f6e6b7;font-size:12px;text-align:center;overflow-wrap:anywhere}

@media (max-width: 780px){
    .account-wrapper{flex-direction:column}
    .account-sidebar{width:100%}
    .sidebar-nav{flex-direction:row;overflow-x:auto}
    .sidebar-link{flex:1 0 auto;text-align:center;border-right:1px solid var(--mcpvp-panel-border);border-bottom:0}
    .sidebar-link:last-child{border-right:0}
    .two-factor-setup{grid-template-columns:1fr}
}

@media (max-width: 560px){
    .auth-wrapper{padding:48px 12px 96px}
    .registration-success{min-height:calc(100svh - 120px);padding:66px 18px 100px}
    .registration-success-mark{width:62px;height:62px;margin-bottom:20px;font-size:23px}
    .registration-success h1{font-size:32px}
    .registration-success-content>p{font-size:14px}
    .registration-success-actions{align-items:stretch;flex-direction:column;gap:8px;margin-top:28px}
    .registration-success-connect{width:100%}
    .registration-success-skip{width:100%}
    .security-content{padding:20px 16px}
    .security-header{align-items:center}
    .security-inline-form,.security-confirm-row{grid-template-columns:1fr}
    .security-inline-form .account-action,.security-confirm-row .account-action{width:100%}
    .security-list-item{grid-template-columns:38px minmax(0,1fr)}
    .security-list-item form{grid-column:2}
    .security-remove{padding-left:0}
    .two-factor-qr{width:min(240px,100%);height:auto;justify-self:center}
    .recovery-grid{grid-template-columns:1fr}
    .connection-provider{grid-template-columns:1fr}
    .connection-provider-heading{flex-direction:column}
    .connection-identity{grid-template-columns:44px minmax(0,1fr)}
    .connection-identity form{grid-column:2}
    .connection-disconnect{padding:0}
}

/* MCPVP client page */
@font-face {
    font-family: "MCPVP Pixel";
    src: url("fonts/mcpvp.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Pixelify Sans";
    src: url("fonts/client-pixelify.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: "Press Start 2P";
    src: url("fonts/client-press-start.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

html.client-document {
    --client-bg: #0e1326;
    --client-panel: #0b0e1a;
    --client-panel-deep: #04040a;
    --client-border: #1d263b;
    --client-red: #f42a2a;
    --client-muted: #707070;
    --client-cyan: #00c3ff;
}

html.client-document {
    min-height: 100%;
    scroll-behavior: smooth;
    scrollbar-width: none;
    background: var(--client-bg);
}

html.client-document::-webkit-scrollbar {
    display: none;
}

.client-body {
    min-width: 800px;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    color: #fff;
    background: var(--client-bg);
    font-family: "MCPVP Pixel", monospace;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    scrollbar-width: none;
}

.client-body::-webkit-scrollbar {
    display: none;
}

.client-body button,
.client-body a {
    font: inherit;
}

.client-body button {
    color: inherit;
}

.client-body button,
.client-body a,
.client-body video,
.client-body img {
    -webkit-tap-highlight-color: transparent;
}

.client-body button:focus-visible,
.client-body a:focus-visible,
.client-showcase:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.client-page {
    position: relative;
    isolation: isolate;
    display: flex;
    min-width: 800px;
    min-height: 2456px;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(180deg, var(--client-bg) .862069%, #5e272d 103%);
}

.client-page__particles {
    position: absolute;
    z-index: -1;
    top: 354px;
    left: -10%;
    width: 120%;
    height: 2100px;
    pointer-events: none;
    background: url("../images/client/particles.png") center / 1180px 1400px repeat-y;
    opacity: .055;
    transform: rotate(90deg) scale(1.25);
    -webkit-mask-image: radial-gradient(45% 60% at 78% 50%, transparent 25%, #000 70%, transparent 98%);
    mask-image: radial-gradient(45% 60% at 78% 50%, transparent 25%, #000 70%, transparent 98%);
}

.client-frame {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-width: 800px;
    max-width: 1360px;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 30px;
    padding: 40px 30px 30px;
}

.client-body .navbar {
    min-width: 800px;
    font-family: "McPvP", sans-serif;
}

/* Page rhythm */
.client-main {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 30px;
}

.client-main h1,
.client-main h2,
.client-main p {
    margin: 0;
    font-weight: 500;
}

/* Co-brand banners */
.client-co-brand {
    position: relative;
    isolation: isolate;
    display: flex;
    width: 100%;
    height: 135px;
    flex: 0 0 135px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(29deg, #ff7300 0%, #6b0919 71%);
}

.client-co-brand--bottom {
    background: linear-gradient(29deg, #ff1500 0%, #541b09 71%);
}

.client-co-brand__pixels,
.client-co-brand__glow {
    position: absolute;
    pointer-events: none;
}

.client-co-brand--top .client-co-brand__pixels {
    z-index: 0;
    top: -567px;
    right: -81px;
    bottom: -567px;
    left: -74px;
    background: url("../images/client/banner-top.png") center / 100% 100% no-repeat;
    image-rendering: pixelated;
    opacity: .15;
    transform: rotate(90deg);
}

.client-co-brand--bottom .client-co-brand__pixels {
    z-index: 0;
    top: -224px;
    bottom: -786px;
    left: 50%;
    width: 106.428571%;
    background: url("../images/client/banner-bottom.png") center / 100% 100% no-repeat;
    image-rendering: pixelated;
    opacity: .15;
    transform: translateX(-50%) scale(1.015);
    transform-origin: center;
    animation: client-bottom-logo-flow 9s ease-in-out infinite alternate;
    will-change: transform;
}

.client-co-brand__glow {
    z-index: 1;
    top: -82px;
    right: -12px;
    bottom: -183px;
    left: -12px;
    background: url("../images/client/banner-glow.png") center / cover no-repeat;
    mix-blend-mode: plus-lighter;
    opacity: .27;
    transform: scale(1.04);
    animation: client-banner-flow 7s ease-in-out infinite alternate;
    will-change: transform, filter;
}

.client-co-brand__lockup {
    position: relative;
    z-index: 2;
    display: flex;
    width: 444px;
    height: 80px;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.client-co-brand__logo-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.client-co-brand__logo-slot--dawn {
    width: 199px;
    height: 75px;
    padding-bottom: 15px;
}

.client-co-brand__logo-slot--mcpvp {
    width: 192px;
    height: 80px;
    padding-top: 2px;
}

.client-co-brand__logo-slot img {
    display: block;
    object-fit: fill;
    filter: drop-shadow(2px 1px 0 rgba(0, 0, 0, .25));
}

.client-co-brand__logo-slot--dawn img {
    width: 165px;
    height: 60px;
}

.client-co-brand__logo-slot--mcpvp img {
    width: 162px;
    height: 45px;
}

.client-co-brand__times {
    flex: 0 0 auto;
    color: #fff;
    font-size: 34px;
    line-height: 1.2;
    text-shadow: 2px 1px 0 rgba(0, 0, 0, .38);
}

.client-co-brand__bottom-row {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0 55px;
}

.client-co-brand__lockup--bottom {
    width: auto;
}

/* Download hero */
.client-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    width: 100%;
    height: 303px;
    flex: 0 0 303px;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding-top: 20px;
    background: radial-gradient(45% 106% at 50% 100%, rgba(250, 112, 0, 0) 29%, rgba(255, 255, 255, 0) 100%);
}

.client-hero__particles {
    position: absolute;
    z-index: -1;
    top: -43px;
    width: 464px;
    height: 400px;
    overflow: hidden;
    pointer-events: none;
    opacity: .96;
}

.client-hero__particles--left {
    left: -40px;
    transform: rotate(180deg);
    -webkit-mask-image: radial-gradient(50% 25% at 59.6% 53%, #000 0%, transparent 98%);
    mask-image: radial-gradient(50% 25% at 59.6% 53%, #000 0%, transparent 98%);
}

.client-hero__particles--right {
    right: 8px;
    -webkit-mask-image: radial-gradient(50% 25% at 59.6% 57%, #000 0%, transparent 98%);
    mask-image: radial-gradient(50% 25% at 59.6% 57%, #000 0%, transparent 98%);
}

.client-hero__stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    mix-blend-mode: screen;
    animation: client-particle-flow 3.6s linear infinite;
    will-change: transform, opacity;
}

.client-hero__stars--second {
    animation-delay: -1.8s;
}

@keyframes client-particle-flow {
    0% {
        opacity: 0;
        transform: translate3d(-42px, 0, 0) scale(.94);
    }
    18% { opacity: .88; }
    70% { opacity: .8; }
    100% {
        opacity: 0;
        transform: translate3d(50px, 0, 0) scale(1.08);
    }
}

.client-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    animation: client-hero-in 650ms cubic-bezier(.2, .8, .2, 1) both;
}

.client-hero h1 {
    color: #fff;
    font-size: 36px;
    line-height: 1.2;
    white-space: nowrap;
}

.client-hero h1 span {
    color: #ff3030;
}

.client-downloads {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.client-downloads__row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.client-button,
.client-downloads__chevron,
.client-showcase__arrows button {
    border: 1px solid transparent;
    cursor: pointer;
}

.client-button {
    display: inline-flex;
    height: 70px;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-radius: 5px;
    color: #fff;
    font-size: 24px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: .12px .6px .86px -.67px rgba(0, 0, 0, .39), .46px 2.29px 3.27px -1.33px rgba(0, 0, 0, .42), 2px 10px 14.28px -2px rgba(0, 0, 0, .57);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.client-button svg {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-button--platform {
    width: 398px;
    padding: 15px 35px 15px 30px;
    border-color: var(--client-red);
    background: linear-gradient(#000 0%, #2e0000 100%);
    color: #f76d01;
}

.client-button--platform span,
.client-button--download span {
    color: transparent;
    background: linear-gradient(0deg, var(--client-red) 31%, #fff 124%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.client-button--platform:hover,
.client-button--download:hover {
    transform: scale(1.007);
    box-shadow: 0 0 17px rgba(244, 42, 42, .28), 2px 10px 14px -2px rgba(0, 0, 0, .62);
}

.client-downloads__chevron {
    display: inline-flex;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-color: var(--client-red);
    background: #000;
    box-shadow: .12px .6px .86px -.67px rgba(0, 0, 0, .39), .46px 2.29px 3.27px -1.33px rgba(0, 0, 0, .42), 2px 10px 14.28px -2px rgba(0, 0, 0, .57);
}

.client-downloads__chevron svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 180ms ease;
}

.client-downloads__chevron.is-open svg {
    transform: rotate(180deg);
}

.client-downloads__options {
    position: absolute;
    z-index: 10;
    top: 78px;
    right: 0;
    display: grid;
    width: 180px;
    overflow: hidden;
    border: 1px solid var(--client-red);
    border-radius: 5px;
    background: #060611;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .65);
}

.client-downloads__options[hidden] {
    display: none;
}

.client-downloads__options button,
.client-downloads__options a {
    display: flex;
    height: 42px;
    align-items: center;
    padding: 0 15px;
    border: 0;
    border-bottom: 1px solid rgba(244, 42, 42, .2);
    color: #b8b7b6;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    text-align: left;
}

.client-downloads__options button:hover,
.client-downloads__options a:hover {
    color: #fff;
    background: rgba(244, 42, 42, .12);
}

/* Carousel */
.client-showcase {
    position: relative;
    display: grid;
    width: 100%;
    height: 441px;
    flex: 0 0 441px;
    grid-template-columns: minmax(0, 1fr) 1px 747px;
    overflow: hidden;
    border: 1px solid var(--client-border);
    border-radius: 5px;
    background: var(--client-panel);
}

.client-showcase__copy {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: flex-start;
    padding: 85px 40px 72px;
    background: var(--client-panel);
}

.client-showcase__text {
    transition: opacity 170ms ease, transform 220ms ease;
}

.client-showcase__counter {
    display: block;
    margin-bottom: 15px;
    color: #757575;
    font-size: 18px;
    line-height: 1.2;
}

.client-showcase h2 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 36px;
    line-height: 1.2;
}

.client-showcase p {
    max-width: 375px;
    color: var(--client-muted);
    font-size: 14px;
    line-height: 1.2;
}

.client-showcase__divider {
    width: 1px;
    height: 100%;
    background: var(--client-border);
}

.client-showcase__media {
    position: relative;
    display: flex;
    min-width: 0;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 25px 35px;
    overflow: hidden;
    border: 0;
    background: var(--client-panel-deep);
    cursor: pointer;
}

.client-showcase__media img {
    display: block;
    width: 677px;
    height: 391px;
    flex: 0 0 677px;
    border-radius: 0;
    object-fit: cover;
    transition: opacity 170ms ease, transform 240ms cubic-bezier(.2, .8, .2, 1);
}

.client-showcase.is-changing .client-showcase__text,
.client-showcase.is-changing .client-showcase__media img {
    opacity: .1;
    transform: translateY(5px) scale(.995);
}

.client-showcase__arrows {
    position: absolute;
    bottom: 23px;
    left: 40px;
    display: flex;
    gap: 15px;
}

.client-showcase__arrows button {
    display: inline-flex;
    width: 63px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: linear-gradient(135deg, #4a34c2 0%, #1f1738 100%);
    box-shadow: 0 7px 15px rgba(0, 0, 0, .38);
    transition: transform 140ms ease, filter 140ms ease;
}

.client-showcase__arrows button:hover {
    filter: brightness(1.16);
    transform: scale(1.03);
}

.client-showcase__arrows button:active {
    transform: scale(.95);
}

.client-showcase__arrows svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Three benefits */
.client-benefits {
    display: grid;
    width: 100%;
    height: 374px;
    flex: 0 0 374px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.client-benefit {
    display: flex;
    min-width: 0;
    height: 374px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 25px;
    overflow: hidden;
    border: 1px solid var(--client-border);
    border-radius: 5px;
    background: var(--client-panel);
}

.client-benefit__visual {
    position: relative;
    display: flex;
    width: 100%;
    height: 152px;
    flex: 0 0 152px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(105% 150% at 50% 152%, #ff2121 0%, #171d2b 100%);
}

.client-benefit__visual::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 45%);
    pointer-events: none;
}

.client-benefit__image {
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 11px rgba(255, 60, 60, .45));
}

.client-benefit__image--latency {
    width: 186px;
    height: 186px;
}

.client-benefit__image--trust {
    width: 104px;
    height: 104px;
}

.client-benefit__image--beta {
    width: 96px;
    height: 96px;
}

.client-benefit h2 {
    color: #fff;
    font-size: 20px;
    line-height: 1.2;
    text-align: center;
}

.client-benefit p {
    color: var(--client-muted);
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
}

/* Queue */
.client-queue {
    display: grid;
    width: 100%;
    height: 441px;
    flex: 0 0 441px;
    grid-template-columns: 63.36% minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--client-border);
    border-radius: 5px;
    background: var(--client-panel);
}

.client-queue__media {
    display: flex;
    height: 441px;
    align-items: flex-start;
    justify-content: center;
    padding: 25px 35px;
    overflow: hidden;
    background: var(--client-panel-deep);
}

.client-queue__media video {
    display: block;
    width: 100%;
    height: 391px;
    border-radius: 5px;
    object-fit: cover;
}

.client-queue__copy {
    display: flex;
    min-width: 0;
    height: 441px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    padding: 25px 45px 25px 40px;
}

.client-queue__spinner {
    position: relative;
    display: block;
    width: 30px;
    height: 30px;
    border: 3px dotted #fff;
    border-radius: 50%;
    animation: client-spin 20s linear infinite;
}

.client-queue h2 {
    margin-top: -10px;
    color: #fff;
    font-size: 36px;
    line-height: 1.2;
}

.client-queue h2 span {
    color: #f0a7aa;
}

.client-queue p {
    max-width: 350px;
    color: var(--client-muted);
    font-size: 14px;
    line-height: 1.2;
}

/* Cape */
.client-cape {
    display: grid;
    width: 100%;
    height: 377px;
    flex: 0 0 377px;
    grid-template-columns: 472px minmax(0, 1fr);
    gap: 30px;
    padding: 25px;
    overflow: hidden;
    border: 1px solid var(--client-border);
    border-radius: 5px;
    background: var(--client-panel);
}

.client-cape__visual {
    position: relative;
    isolation: isolate;
    height: 327px;
    overflow: hidden;
    border: 1px solid var(--client-border);
    border-radius: 5px;
    background: linear-gradient(348deg, #610000 -52%, var(--client-panel) 73%);
}

.client-cape__rays,
.client-cape__glow,
.client-cape__character {
    position: absolute;
    display: block;
    pointer-events: none;
}

.client-cape__rays {
    z-index: 1;
    bottom: -166px;
    left: 50%;
    width: 658px;
    height: 658px;
    opacity: .25;
    transform: translateX(-50%);
    animation: client-rays-in 1.2s ease both, client-rays-spin 30s linear 1.2s infinite;
    -webkit-mask-image: radial-gradient(39% 38%, transparent 20%, rgba(0, 0, 0, .5) 60%, transparent 87%);
    mask-image: radial-gradient(39% 38%, transparent 20%, rgba(0, 0, 0, .5) 60%, transparent 87%);
}

.client-cape__glow {
    z-index: 0;
    top: 50%;
    left: 50%;
    width: 464px;
    height: 481px;
    opacity: .55;
    transform: translate(-50%, -50%);
    -webkit-mask-image: radial-gradient(50% 25% at 60% 57%, #000, transparent 98%);
    mask-image: radial-gradient(50% 25% at 60% 57%, #000, transparent 98%);
}

.client-cape__character {
    z-index: 2;
    top: -114px;
    left: 50%;
    width: 312px;
    height: 532px;
    object-fit: fill;
    transform: translateX(-50%);
}

.client-cape__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
}

.client-cape__details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.client-cape__eyebrow {
    display: block;
    margin-bottom: 0;
    color: var(--client-red);
    font-size: 16px;
    line-height: 1.2;
}

.client-cape h2 {
    color: #fff;
    font-size: 36px;
    line-height: 1.2;
}

.client-cape p {
    color: var(--client-muted);
    font-size: 14px;
    line-height: 1.2;
}

.client-cape__button {
    position: relative;
    display: inline-flex;
    width: 300px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(244, 42, 42, .72);
    border-radius: 5px;
    background-color: #020000;
    background-image: url("../images/client/claim-flow.png");
    background-repeat: no-repeat;
    background-position: 50% 38%;
    background-size: 324px 311px;
    box-shadow: inset 0 0 22px rgba(244, 42, 42, .2), 0 7px 18px rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 17px;
    line-height: 1;
    text-decoration: none;
    text-shadow: 0 1px 2px #000, 0 0 10px rgba(244, 42, 42, .68);
    cursor: pointer;
    animation: client-claim-flow 4.8s ease-in-out infinite alternate;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
    will-change: background-position, filter;
}

.client-cape__button:hover {
    border-color: var(--client-red);
    box-shadow: inset 0 0 24px rgba(244, 42, 42, .28), 0 0 17px rgba(244, 42, 42, .24), 0 9px 20px rgba(0, 0, 0, .42);
    transform: translateY(-1px);
}

.client-cape__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.client-button--download {
    width: 282px;
    flex: 0 0 282px;
    padding: 15px 35px 15px 30px;
    border-color: var(--client-red);
    background: linear-gradient(#000 0%, #2e0000 100%);
    color: #f76d01;
}

/* Client layout sizing for the shared site footer */
.client-body .footer {
    width: 100%;
    min-width: 800px;
}

@keyframes client-hero-in {
    from { opacity: 0; transform: translateY(13px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes client-spin {
    to { transform: rotate(360deg); }
}

@keyframes client-rays-in {
    from { opacity: 0; }
    to { opacity: .38; }
}

@keyframes client-rays-spin {
    from { transform: translateX(-50%) rotate(0); }
    to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes client-bottom-logo-flow {
    from { transform: translateX(-50%) translate3d(-12px, -3px, 0) scale(1.02); }
    to { transform: translateX(-50%) translate3d(12px, 3px, 0) scale(1.06); }
}

@keyframes client-banner-flow {
    from {
        filter: saturate(.9) brightness(.86);
        transform: translate3d(-18px, -4px, 0) scale(1.04);
    }
    to {
        filter: saturate(1.18) brightness(1.08);
        transform: translate3d(18px, 4px, 0) scale(1.09);
    }
}

@keyframes client-claim-flow {
    from {
        background-position: 47% 30%;
        filter: brightness(.82) saturate(.92);
    }
    to {
        background-position: 53% 70%;
        filter: brightness(1.12) saturate(1.2);
    }
}

@media (prefers-reduced-motion: reduce) {
    html.client-document { scroll-behavior: auto; }

    .client-hero__content,
    .client-hero__stars,
    .client-cape__rays,
    .client-queue__spinner,
    .client-co-brand--bottom .client-co-brand__pixels,
    .client-co-brand__glow,
    .client-cape__button {
        animation: none;
    }

    .client-hero__stars--first { opacity: .96; }
    .client-hero__stars--second { display: none; }

    .client-showcase__text,
    .client-showcase__media img,
    .client-button,
    .client-showcase__arrows button {
        transition: none;
    }
}
