/* Font */
@font-face {
    font-family: 'McPvP';
    src: url('fonts/mcpvp.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* 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-retired: 50px;
    --tiers-region: 120px;

}

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

body {
    margin: 0;
    font-family: 'McPvP', serif;
    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%);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.navbar-content{
    height: var(--nav-h);
    padding: 0 28px;
    border-radius: 14px;
    background: #0b0c11;
    border: 1px solid rgb(16, 20, 30);
    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-right { justify-content: flex-end; }
.nav-center { flex: 0 0 auto; display: flex; justify-content: center; }
.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: rgba(255, 255, 255, 0.05);
    border: 1px solid rgb(16, 20, 30);
    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 .signin-icon{ width: 18px; height: 18px; 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;
}

.footer {
    border-top: 1px solid #333;
    padding: 32px 0 20px;
    font-family: 'McPvP', sans-serif;
    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%);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.footer-logo img {
    height: 48px;
    width: auto;
}

.footer-content {
    color: #777;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    font-size: 12px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-info { margin: 0; }

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 20px;
    font-size: 14px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.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-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));*/
}

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

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

.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 { margin: 0; }

.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;
    margin-bottom: 12px;
}

.podium{
    display:flex; justify-content:center; align-items:flex-end;
    gap:22px; margin-bottom:32px;
}

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

.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%);
}
.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%);
}
.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%);
}

.podium-name{
    grid-row:1;
    margin: 6px 0 8px;
    font-weight: 800; font-size: 20px; letter-spacing: .5px;
    color: var(--tier-name);
}

.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{ gap:14px; }
    .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-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);
}

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

.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; }

.leaderboard-wrap { text-align: center; margin-top: 24px; }
.leaderboard-link {
    color: rgb(112, 112, 112);
    text-decoration: none;
    font-weight: 400;
}
.podium-spacer{
    width: min(940px, 92%);
    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 .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 .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 .matches-list{ margin-top: 10px; }

@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: 600px) {
    .footer-content { flex-direction: column; text-align: center; }
    .footer-left { align-items: center; gap: 12px; }
    .footer-links { margin-top: 16px; grid-template-columns: repeat(3, auto); justify-content: center; justify-items: center; text-align: center; }
    .footer-links a { justify-content: center; }
    .footer-info { font-size: 13px; }
    .footer-logo img { height: 40px; }
}

@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 {
        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: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    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; 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; }

.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 12px 0 40px; font-family: 'McPvP', sans-serif;
}
.tiers-search i{
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: #777;
}
.tiers-tools{ display: inline-flex; gap: 8px; }
.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;
    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) 100px 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-retired,
.tiers-head .col-region{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.tiers-head .col-retired{
    color: inherit;
    font-weight: inherit;
}

.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.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{ color: #fff; text-decoration: none; }
.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-retired{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #e9ecff;
    font-weight: 700;
}
.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{ display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kit-icon{
    width: 40px; height: 40px; padding: 6px; border-radius: 6px;
    border: 1px solid #2a2f3b; background: rgba(255,255,255,.02);
    box-shadow: inset 0 0 0 1px rgba(30,41,59,.25);
    image-rendering: pixelated; object-fit: contain;
}
.kit-rank{
    background: transparent; color: #FFD700; border: 1px solid #FFD700;
    padding: 4px 8px; line-height: 1; font-size: 10px; font-weight: 800; text-transform: uppercase;
}

@media (max-width: 900px){
    .tiers-row, .tiers-head{ grid-template-columns: 44px minmax(160px,1fr) 70px 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-retired, .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-retired)
        var(--tiers-region)
        1fr;
    gap: 10px;
    align-items: center;
}

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

/* center #, Retired, Region in their columns */
.tiers-grid .col-rank,
.tiers-grid .col-retired,
.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(4, 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-weight: 900; letter-spacing: .08em; font-size: 14px; color: #000;
    border: 2px solid transparent;
    border-radius: 2px;
    box-shadow: 0 10px 20px rgba(0,0,0,.35);
}
.kit-tier-head.t1{
    background: linear-gradient(138deg, rgb(255, 200, 0) 39%, rgb(255, 227, 128) 65%, rgb(255, 200, 0) 85%);
    border-color: #ffe37d;
}
.kit-tier-head.t2{
    background: linear-gradient(138deg, rgb(184, 183, 182) 26%, rgb(255, 255, 255) 65%, rgb(184, 183, 182) 100%);
    border-color: #ebebeb;
}
.kit-tier-head.t3{
    background: linear-gradient(122deg, rgb(227, 135, 54) 24%, rgb(255, 193, 143) 63%, rgb(227, 135, 54) 100%);
    border-color: #ffbc82;
}
.kit-tier-head.t4{
    background: linear-gradient(135deg, rgb(86, 147, 209) 28%, rgb(138, 196, 255) 60.601139%, rgb(86, 147, 209) 84%);
    border-color: #85c2ff;
}

.kit-tier-list{
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.kit-item{
    display: grid;
    grid-template-columns: 12px 28px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #0c0f19;
    border: 1px solid #1a2a48;
    border-radius: 8px;
}
.kit-item:hover{
    border-color: #2a3e6e;
    box-shadow: inset 0 0 0 1px rgba(114,145,245,.12), 0 6px 14px rgba(0,0,0,.45);
}
.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-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;
}
.ht-badge{
    border:1px solid #FFD700; color:#FFD700; font-size:10px; font-weight:800;
    padding: 2px 6px; border-radius: 4px; line-height: 1;
}
.trend{ color:#a9ffc1; }

@media (max-width: 1100px){
    .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;
    background: #0c0f19;
    border: 1px solid #1a2a48;
    border-radius: 8px;
}
.kit-item:hover{
    border-color: #2a3e6e;
    box-shadow: inset 0 0 0 1px rgba(114,145,245,.12), 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;
}
.ht-badge{
    border:1px solid #FFD700; color:#FFD700;
    font-size:10px; font-weight:800; line-height:1;
    padding: 2px 6px; border-radius: 4px;
}

.trend{ font-size: 12px; line-height: 1; }
.trend.up   { color:#a9ffc1; }
.trend.down { color:#ff9f9f; }

.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-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;
}

.ht-badge{
    font-size: 9px;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 3px;
    border-width: 1px;
}

.kit-item .trend{ font-size: 11px; line-height: 1; }

@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; }
    .ht-badge{ font-size: 8.5px; padding: 2px 4px; }
    .kit-item .trend{ font-size: 10.5px; }
}

.servers-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%) !important; }

.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 8px;
    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: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; }
.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{ color:#fff; border-color:#fff; }

.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; }
}

/* ===== 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%); }

/* Card shell matches your site panels */
.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;
}

/* Header & intro (left aligned like screenshot) */
.rules-top{ padding: 14px 10px 6px; }
.rules-h1{
    margin: 0 0 14px 0;
    color:#e9ecff;
    font-weight: 900;
    letter-spacing: .04em;
    font-size: 22px;                 /* screenshot scale */
}
.rules-intro{
    margin: 0;
    color:#9ea5b9;                    /* soft grey like the mock */
    max-width: 1040px;                /* keeps line length comfortable */
    line-height: 1.7;
}

/* 3-column centered blurbs with generous vertical rhythm */
.rules-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 80px;                 /* big horizontal spacing like the image */
    row-gap: 74px;                    /* large vertical spacing between rows */
    padding: 44px 10px 26px;          /* space between intro and grid */
}

.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;                  /* mirrors the narrow paragraphs in the mock */
    line-height: 1.75;
}

/* Responsive: 2 cols on medium; 1 col on small */
@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:#000;border-bottom:1px solid #1a1a1a;padding:12px 0;display:flex;align-items:center;justify-content:space-between;margin-bottom:30px;gap:12px}
.profile-title{font-size:32px;font-weight:600;margin:0;color:#fff;display:flex;align-items:center;gap:15px}
.profile-tabs{display:flex;gap:10px;margin-left:auto;align-items:center;flex-wrap:wrap}

.tab-btn{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-size:14px;font-weight:500;text-decoration:none;transition:color .15s ease,border-color .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);padding-top:20px;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}
.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{margin-top:25px;margin-bottom:60px;display:flex;justify-content:center}
.skin-image{width:144px;height:auto;display:block;transition:transform .3s ease,box-shadow .3s ease}
.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:0 0 10px}
.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}
.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}

.kits-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:3px}
.ranking-kit{padding:8px 2px;text-align:center;transition:all .2s ease;display:flex;flex-direction:column;align-items:center;gap:6px}
.kit-icon{width:36px;height:36px}
.rankings-section .kit-rank{background:transparent;color:#FFD700;border:1px solid #FFD700;padding:4px 12px;font-size:11px;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:10px;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:46px;height:46px;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:210px;max-height:210px;margin-top:10px;display:grid;grid-template-rows:auto 1fr;gap:6px}
.elo-header{display:flex;justify-content:space-between;align-items:center;margin:0}
.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}
.chart-container{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}

.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%);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-online-pill{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;margin-top:15px;margin-bottom:43px;border:1px solid #1e293b;border-radius:8px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:none;color:rgb(61,165,255)}
.activity-online-pill.is-online{color:rgb(61,165,255)}
.activity-online-pill.is-offline{color:#9ca3af}
.activity-tabbar{display:flex;justify-content:center;align-items:center;gap:6px;width:100%;margin:6px 0 10px;flex-wrap:wrap}
.activity-tab{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;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}

.ban-title{margin:20px 0 10px}
.ban-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 #3a1010;box-shadow:inset 0 0 0 1px rgba(128,16,16,.25);border-radius:6px;padding:12px;padding-right:8px;max-width:100%}
.ban-scroll{--ban-row-h:30px;--ban-row-gap:6px;height:200px;max-height:200px;width:100%;overflow:auto}
.ban-scroll::-webkit-scrollbar{width:8px}
.ban-scroll::-webkit-scrollbar-thumb{background:#3a1010;border-radius:8px}
.ban-table{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--ban-row-gap);width:100%}
.ban-row{width:100%;min-height:var(--ban-row-h);display:grid;grid-template-columns:minmax(0,1fr) auto minmax(90px,110px);align-items:center;gap:10px;padding:6px 8px;background:linear-gradient(180deg,#1a0505 0%,#140304 100%);border:1px solid #4a1414;box-shadow:inset 0 0 0 1px rgba(255,40,40,.06);border-radius:8px;box-sizing:border-box;font-size:12.5px;line-height:1;transform:none}
.ban-row:hover{border-color:#6b1c1c;box-shadow:inset 0 0 0 1px rgba(255,64,64,.12),0 6px 16px rgba(0,0,0,.45)}
.ban-row.is-empty{min-height:var(--ban-row-h);grid-template-columns:1fr;justify-items:center;align-items:center;color:#ff6e6e;font-weight:600}
.ban-server{color:#ff5b5b;font-weight:800;letter-spacing:.02em;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ban-date{color:#ff6e6e;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.ban-reason-badge{justify-self:end;padding:4px 8px;border-radius:6px;background:rgba(255,32,32,.08);border:1px solid #7a1b1b;color:#ff5b5b;font-weight:800;white-space:nowrap;max-width:120px;overflow:hidden;text-overflow:ellipsis;box-shadow:inset 0 0 12px rgba(255,64,64,.08)}
.ban-title .history-icon{color:#fff;font-size:14px;line-height:1;margin-right:8px;opacity:.95}

.skin-item.head-tile{border:0;box-shadow:inset 0 0 0 2px #2a2a2a;background:transparent}
.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}

@media (max-width:1200px){
    .profile-grid{grid-template-columns:280px 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{flex-wrap:nowrap;align-items:center;gap:10px}
    .profile-title{flex:1;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}
    .ban-row{grid-template-columns:1fr auto}
    .ban-reason-badge{grid-column:1/-1;justify-self:start}
}
@media (max-width:480px){
    .profile-tabs{gap:6px}
    .profile-tabs .tab-btn{padding:6px 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 .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}

/* Allow absolute positioning of matches within each column (round) */
.bracket-match-stack {
    position: relative;
}

:root{
    /* tweak to taste */
    --bracket-round-w: 220px;
}

/* keep flex or grid—either works once the width is locked */
.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);  /* stops growth from long names */
}

/* make the boxes fill the column width */
.bracket-match-stack{ width: 100%; }
.bracket-match{ width: 100%; }

/* Optional: minimum vertical gap enforced by JS as a fallback */
:root {
    --bracket-min-gap: 14px; /* keep in sync with your existing gap */
}

.bracket-players,
.bracket-player,
.bracket-player-body,
.bracket-match { min-width: 0; }  /* critical for truncation in flex layouts */

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

/* === smaller bracket scale === */
:root{
    --bracket-round-w: 200px;   /* was 220px; change to taste */
}

/* tighten spacing */
.bracket-rounds{ gap: 40px; }            /* was 48px */
.bracket-match-stack{ gap: 12px; }       /* was 14px */
.bracket-players{ gap: 6px; }            /* was 8px */

/* smaller card + rows */
.bracket-match{ padding: 10px 10px 12px; } /* was 12px 12px 14px */
.bracket-player{
    min-height: 36px;          /* was 42px */
    padding: 4px 8px;          /* was 6px 10px */
}

/* smaller avatar, name, score */
.bracket-player-crest{
    width: 24px; height: 24px; /* was 28x28 */
    border-radius: 7px;
}
.bracket-player-name{ font-size: 12px; } /* was 13px */
.bracket-player-score{ font-size: 13px; }/* was 14px */

/* keep text truncation working in flex */
.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;
}

/* Bracket column sizing — expand to use all available width */
:root{
    --bracket-round-min: 200px;          /* minimum width per round */
}

.bracket-rounds{
    /* still allow horizontal scroll on small screens */
    min-width: max-content;
    width: 100%;                          /* fill the board width */
    gap: 40px;                            /* keep your current gap */
}

/* Each round can grow; no fixed max so the board uses the whole width */
.bracket-round{
    flex: 1 1 var(--bracket-round-min);   /* <-- was 0 0 200px */
    min-width: var(--bracket-round-min);
    width: auto;
    max-width: none;                      /* important: remove the old max */
}

/* keep matches taking the full column width */
.bracket-match-stack{ width: 100%; }
.bracket-match{ width: 100%; }

/* truncation safety in flex layouts */
.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;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.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: all 0.2s ease;
    backdrop-filter: blur(54px);
    -webkit-backdrop-filter: blur(54px);
    scroll-snap-align: start;
}

.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: 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; }
    .live-matches .match-row .kit     { grid-area: kit; justify-self: flex-end; }
    .live-matches .match-row .result  { grid-area: result; justify-self: flex-end; }

    /* Make sure the score itself never wraps */
    .live-matches .match-row .result .score {
        white-space: nowrap;
    }
}

/* Keep Rankings kits in a single row on all screen sizes */
.rankings-section .kits-grid{
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

/* Optional: allow horizontal scroll on very small screens instead of squishing too hard */
@media (max-width: 480px){
    .rankings-section .kits-grid{
        overflow-x: auto;
        padding-bottom: 4px;          /* so the scrollbar doesn't sit on the content */
    }

    .rankings-section .ranking-kit{
        min-width: 60px;              /* stop the cards from becoming microscopic */
    }
}

/* Mobile: shrink skin tiles + heads in profile Skins section */
@media (max-width: 768px) {
    /* Make grid tracks small and content‑sized just in the Skins section */
    .skins-section .skins-grid {
        grid-template-columns: repeat(auto-fit, minmax(48px, max-content));
        justify-content: flex-start;
        gap: 6px;
    }

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

    /* Make sure the head never exceeds 32x32 */
    .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;
    }
}

/* Mobile fix: keep Top Players on one line without horizontal overflow */
@media (max-width: 520px) {
    .podium{
        gap: 6px; /* tighten the spacing so three cards fit comfortably */
    }

    /* Stop the glow from sticking out past the container on phones */
    .podium::before{
        inset: -18% 0 -12% 0; /* no horizontal overflow, keep vertical glow */
    }

    /* Make three cards fill 100% width (3 cards + 2 * 4px gap = 100%) */
    .podium-card{
        width: calc((100% - 8px) / 3);
        min-width: 0;      /* allow flex items to shrink */
    }

    /* Let long names wrap so they don't force extra width */
    .podium-name{
            font-size: 14px;  /* was 20px */


        word-break: break-word;
    }
}
