:root {
    --bg: #080a0f;
    --panel: #10131b;
    --panel-2: #141925;
    --ink: #f4f6fb;
    --muted: #8f98aa;
    --line: #232938;
    --accent: #f0c55a;
    --up: #75dda0;
    --down: #ff7d8a;

    --premier-pink: #ff83de;
    --premier-cyan: #75dcff;
    --premier-violet: #a58bff;
    --elite-blue: #5799ff;
    --contender-violet: #9187df;
    --rookie-green: #718c7b;

    --mono: "JetBrains Mono", monospace;
    --sans: "Inter", sans-serif;
    --display: "Archivo Black", sans-serif;
    --brand: "Rajdhani", "Inter", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color: var(--ink);
    color-scheme: dark;
    font-family: var(--sans);
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 20% -10%, rgba(73, 87, 140, 0.18), transparent 32%),
        linear-gradient(180deg, #090b11, #080a0f 55%);
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.ambient {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    filter: blur(90px);
    opacity: 0.16;
}

.ambient-a {
    top: 120px;
    right: -120px;
    width: 380px;
    height: 380px;
    background: #6c5cff;
}

.ambient-b {
    top: 500px;
    left: -140px;
    width: 300px;
    height: 300px;
    background: #d5a52c;
}

.preview-banner {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 9px 5vw;
    background: #d7ad42;
    color: #161006;
    font-size: 13px;
}

.preview-banner a {
    color: inherit;
    font-weight: 800;
}

.top,
.sections,
main,
.bottom {
    position: relative;
    z-index: 1;
}

/* Header ------------------------------------------------------------------- */

.top {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 10, 15, 0.82);
    backdrop-filter: blur(16px);
}

.top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1240px;
    margin: auto;
    padding: 20px 24px 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    text-decoration: none;
}

.brand-mark {
    position: relative;
    display: flex;
    flex: 0 0 68px;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    padding: 6px;
    overflow: hidden;
    transform: none;
    clip-path: none;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    background: linear-gradient(145deg, #fff 0%, #f8fbff 55%, #edf4f8 100%);
    box-shadow:
        inset 0 1px 0 #fff,
        inset 0 -1px 0 rgba(60, 90, 110, 0.10),
        0 0 0 1px rgba(110, 205, 240, 0.13),
        0 7px 18px rgba(0, 0, 0, 0.40),
        0 0 22px rgba(100, 215, 255, 0.08);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.brand-mark::before {
    content: "";
    position: absolute;
    top: 4px;
    right: 8px;
    left: 8px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
    pointer-events: none;
}

.brand-mark img,
.brand-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    transform: none;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
    transform: translateY(-2px);
    border-color: #fff;
    box-shadow:
        inset 0 1px 0 #fff,
        inset 0 -1px 0 rgba(60, 90, 110, 0.10),
        0 0 0 1px rgba(115, 220, 255, 0.20),
        0 9px 23px rgba(0, 0, 0, 0.43),
        0 0 28px rgba(115, 220, 255, 0.13);
}

.brand-copy {
    min-width: 0;
}

.brand h1 {
    margin: 0;
    color: #f7fbff;
    font: 700 30px/0.92 var(--brand);
    letter-spacing: 0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.brand-sub {
    margin: 7px 0 0;
    overflow: hidden;
    color: #8995a8;
    font: 600 10px var(--mono);
    letter-spacing: 0.045em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-side {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 7px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #2b3242;
    border-radius: 8px;
    background: #11151e;
    color: #dfe5ee;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease,
        color 0.16s ease;
}

.social-btn:hover,
.social-btn:focus-visible {
    transform: translateY(-1px);
}

.social-btn.twitch:hover,
.social-btn.twitch:focus-visible {
    border-color: #7150b7;
    background: #1a1328;
    color: #efe8ff;
}

.social-btn.discord {
    cursor: not-allowed;
    opacity: 0.48;
}

.social-btn small {
    margin-left: 6px;
    color: #7f8999;
    font: 700 8px var(--mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.live-summary {
    display: flex;
    gap: 7px;
}

.live-summary > div {
    min-width: 92px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0d1017;
}

.live-summary span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.live-summary strong {
    font: 700 14px var(--mono);
}

.modes {
    display: flex;
    gap: 8px;
    max-width: 1240px;
    margin: auto;
    padding: 0 24px 13px;
}

.mode-btn,
.section-tab {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.mode-btn {
    padding: 7px 11px;
    border-radius: 6px;
    font: 600 12px var(--sans);
}

.mode-btn:hover,
.mode-btn:focus-visible {
    color: #e7ebf3;
}

.mode-btn.is-active {
    background: #1b2030;
    color: #fff;
}

/* Primary navigation ------------------------------------------------------- */

.sections {
    display: flex;
    gap: 6px;
    max-width: 1240px;
    margin: 18px auto 0;
    padding: 0 24px;
    overflow: auto;
}

.section-tab {
    padding: 10px 13px;
    border-bottom: 2px solid transparent;
    font-weight: 700;
    white-space: nowrap;
}

.section-tab:hover,
.section-tab:focus-visible {
    color: #dce2ec;
}

.section-tab.is-active {
    border-color: #d4a83b;
    color: #f5d170;
}

/* Layout ------------------------------------------------------------------- */

main {
    max-width: 1240px;
    margin: auto;
    padding: 32px 24px 80px;
}

.view {
    display: none;
}

.view.is-active {
    display: block;
}

.ranking-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 22px;
}

.ranking-hero h2,
.section-title h2 {
    margin: 8px 0;
    font: 32px/1.05 var(--display);
}

.ranking-hero p,
.section-title p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
}

.eyebrow,
.card-kicker {
    color: #b0b8c8;
    font: 700 10px var(--mono);
    letter-spacing: 0.16em;
}

.section-title {
    margin-bottom: 20px;
}

.panel,
.card,
.log,
.prose {
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(15, 18, 26, 0.92);
}

.empty {
    padding: 32px;
    border: 1px dashed #303746;
    border-radius: 12px;
    color: #7f8999;
    text-align: center;
}

.empty.full-span {
    grid-column: 1 / -1;
}

.empty strong {
    display: block;
    margin-bottom: 6px;
    color: #dce1ea;
}

/* Tier legend -------------------------------------------------------------- */

.tier-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.legend {
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font: 700 10px var(--mono);
}

.legend.premier {
    border-color: rgba(139, 220, 255, 0.62);
    background: linear-gradient(
        105deg,
        rgba(255, 119, 219, 0.18),
        rgba(100, 215, 255, 0.18),
        rgba(159, 128, 255, 0.15)
    );
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.14),
        0 0 18px rgba(111, 207, 255, 0.08);
    color: #f6f8ff;
}

.legend.elite {
    border-color: #315b91;
    background: #0d1b2e;
    color: #a9ccff;
}

.legend.contender {
    border-color: #50487e;
    background: #18152a;
    color: #c9c4ff;
}

.legend.rookie {
    border-color: #334139;
    background: #101713;
    color: #9eafa4;
}

/* Top 4 -------------------------------------------------------------------- */

.podium {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 18px 0 24px;
}

.podium-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 132px;
    padding: 15px;
    overflow: hidden;
    border: 1px solid rgba(150, 222, 255, 0.45);
    border-radius: 13px;
    background:
        radial-gradient(circle at 12% 5%, rgba(255, 121, 219, 0.15), transparent 35%),
        radial-gradient(circle at 85% 15%, rgba(105, 219, 255, 0.15), transparent 38%),
        linear-gradient(140deg, rgba(28, 31, 47, 0.98), rgba(13, 17, 27, 0.98));
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.10),
        0 8px 30px rgba(70, 171, 226, 0.07);
    --glow: #8fe7ff;
}

.podium-card::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--glow);
    filter: blur(45px);
    opacity: 0.17;
    pointer-events: none;
}

.podium-rank {
    position: absolute;
    top: 9px;
    right: 11px;
    color: #7f8796;
    font: 700 11px var(--mono);
}

.podium-name {
    font-size: 15px;
    font-weight: 800;
}

.podium-lp {
    margin-top: 5px;
    background: linear-gradient(90deg, #fff, #bdeeff, #f2c2ff);
    background-clip: text;
    color: transparent;
    font: 700 21px var(--mono);
    -webkit-background-clip: text;
}

.podium-tier {
    margin-top: 5px;
    color: #c9ecf8;
    font: 700 9px var(--mono);
    letter-spacing: 0.12em;
}

/* Leaderboard -------------------------------------------------------------- */

.leaderboard-panel {
    padding: 17px;
}

.panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 4px 3px 14px;
}

.panel-head h2 {
    margin: 5px 0 0;
    font-size: 20px;
}

.search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0b0e14;
    color: #657084;
}

.search:focus-within {
    border-color: #3a4558;
}

.search input {
    width: 220px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: 500 13px var(--sans);
}

.ladder-head {
    display: grid;
    grid-template-columns: 88px minmax(260px, 1fr) 150px 130px 190px;
    gap: 12px;
    padding: 4px 18px 10px;
    color: #667080;
    font: 700 9px var(--mono);
    letter-spacing: 0.12em;
}

.ladder-head span:nth-child(n + 3) {
    text-align: right;
}

.ladder {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.tier-divider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0 2px;
    padding: 8px 12px;
    border-bottom: 1px solid #262d3a;
}

.tier-divider:first-child {
    margin-top: 2px;
}

.tier-divider-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.tier-divider-title strong {
    font: 800 10px var(--mono);
    letter-spacing: 0.16em;
}

.tier-divider-slots {
    color: #687181;
    font: 700 9px var(--mono);
    letter-spacing: 0.10em;
}

.tier-emblem {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid #363e4d;
    background: #11151d;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    font: 700 9px var(--mono);
}

.tier-divider-premier {
    border-color: rgba(151, 222, 255, 0.48);
    background: linear-gradient(
        90deg,
        rgba(255, 116, 218, 0.11),
        rgba(93, 215, 255, 0.12),
        rgba(164, 132, 255, 0.08),
        transparent
    );
}

.tier-divider-premier .tier-emblem {
    border-color: rgba(197, 239, 255, 0.72);
    background: linear-gradient(
        135deg,
        rgba(255, 116, 218, 0.24),
        rgba(93, 215, 255, 0.27),
        rgba(164, 132, 255, 0.20)
    );
    box-shadow: 0 0 16px rgba(105, 214, 255, 0.10);
    color: #fff;
}

.tier-divider-elite {
    border-color: #29486d;
    background: linear-gradient(90deg, rgba(38, 93, 166, 0.16), transparent);
}

.tier-divider-elite .tier-emblem {
    border-color: #396b9f;
    background: #10253e;
    color: #b9d7ff;
}

.tier-divider-contender {
    border-color: #38335d;
}

.tier-divider-contender .tier-emblem {
    border-color: #4c4675;
    background: #1c1930;
    color: #cbc7ff;
}

.tier-divider-rookie {
    border-color: #29382f;
    background: linear-gradient(90deg, rgba(71, 94, 79, 0.11), transparent);
}

.tier-divider-rookie .tier-emblem {
    border-color: #3a4b40;
    background: #141d17;
    color: #9dac9f;
}

.rank-entry {
    --tier: #454d5e;
    position: relative;
    display: grid;
    grid-template-columns: 88px minmax(260px, 1fr) 150px 130px 190px;
    align-items: center;
    gap: 12px;
    min-height: 86px;
    padding: 11px 18px;
    overflow: hidden;
    border: 1px solid #202633;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.006));
    cursor: pointer;
    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

.rank-entry::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 2px;
    background: var(--tier);
    opacity: 0.72;
}

.rank-entry:hover,
.rank-entry:focus-visible {
    transform: translateY(-1px);
    border-color: #394252;
    outline: 0;
}

.rank-entry.provisional-row {
    opacity: 0.78;
}

.rank-entry.tier-elite {
    --tier: var(--elite-blue);
    border-color: #284d7c;
    background: linear-gradient(100deg, rgba(31, 83, 154, 0.28), rgba(14, 27, 47, 0.92) 37%, #10151e);
}

.rank-entry.tier-contender {
    --tier: var(--contender-violet);
    border-color: #39345a;
    background: linear-gradient(90deg, rgba(65, 56, 111, 0.18), #12151e 36%, #11141b);
}

.rank-entry.tier-rookie {
    --tier: var(--rookie-green);
    border-color: #26342c;
    background: linear-gradient(100deg, rgba(57, 77, 65, 0.16), #111713 36%, #101419);
}

.rank-zone {
    display: flex;
    align-items: center;
    gap: 9px;
}

.rank-medallion {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #343c4b;
    background: #161b25;
    clip-path: polygon(50% 0, 92% 22%, 92% 78%, 50% 100%, 8% 78%, 8% 22%);
    font: 800 12px var(--mono);
}

.tier-elite .rank-medallion {
    border-color: #477fbe;
    background: linear-gradient(145deg, #17345a, #10233d);
    box-shadow: inset 0 0 12px rgba(84, 155, 255, 0.08);
    color: #cce2ff;
}

.tier-contender .rank-medallion {
    background: #292442;
    color: #d0ccff;
}

.tier-rookie .rank-medallion {
    border-color: #344a3b;
    background: #162019;
    color: #a9b8ae;
}

.rank-identity {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.rank-copy {
    min-width: 0;
}

.rank-name-line {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.rank-name {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tier-sign {
    flex: none;
    padding: 4px 6px;
    border: 1px solid #343b49;
    border-radius: 4px;
    color: #aeb5c1;
    font: 800 8px var(--mono);
    letter-spacing: 0.10em;
}

.tier-elite .tier-sign {
    border-color: #315d8d;
    background: #10223a;
    color: #afcff8;
}

.tier-contender .tier-sign {
    border-color: #4c4675;
    background: #1c1930;
    color: #cbc7ff;
}

.tier-rookie .tier-sign {
    border-color: #33483b;
    background: #111b15;
    color: #93a69a;
}

.rank-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    color: #727c8d;
    font: 600 9px var(--mono);
    text-transform: uppercase;
}

.leader-tag {
    color: #ddb857;
}

.move {
    font: 700 9px var(--mono);
}

.move.up,
.d.up,
.hero-delta.up {
    color: var(--up);
}

.move.down,
.d.down,
.hero-delta.down {
    color: var(--down);
}

.move.same {
    color: #687181;
}

.form-zone,
.record-zone,
.lp-zone {
    text-align: right;
}

.form-dots {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}

.form-dot {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 1px solid #343b48;
    border-radius: 4px;
    font: 800 8px var(--mono);
    transition: transform 0.15s ease;
}

.rank-entry:hover .form-dot {
    transform: translateY(-1px);
}

.win-dot {
    border-color: #315943;
    background: #14261d;
    color: #83e1a7;
}

.loss-dot {
    border-color: #63333b;
    background: #29171b;
    color: #ff8c98;
}

.form-empty {
    color: #656e7d;
}

.form-label,
.record-zone span,
.peak-label {
    display: block;
    margin-top: 5px;
    color: #667080;
    font: 700 8px var(--mono);
    letter-spacing: 0.08em;
}

.active-streak {
    color: #f1c869 !important;
    text-shadow: 0 0 12px rgba(241, 200, 105, 0.12);
}

.record-zone strong {
    font: 800 16px var(--mono);
}

.record-metrics {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 5px;
    white-space: nowrap;
}

.record-metrics span {
    display: inline !important;
    margin: 0 !important;
    color: #727d8e;
    font: 700 8px var(--mono);
    letter-spacing: 0;
}

.record-metrics .positive-metric {
    color: #77d99a;
}

.record-metrics .negative-metric {
    color: #e9828d;
}

.lp-top {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 6px;
}

.lp-top strong {
    font: 800 25px var(--mono);
    letter-spacing: -0.05em;
}

.lp-top span {
    color: #d0aa4e;
    font: 800 9px var(--mono);
}

.lp-progress {
    height: 3px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 9px;
    background: #252b36;
}

.lp-progress i {
    display: block;
    height: 100%;
    background: var(--tier);
    opacity: 0.82;
}

.foot {
    margin: 12px 4px 1px;
    color: #747d8c;
    font-size: 11px;
}

/* Premier ------------------------------------------------------------------ */

.rank-entry.tier-premier {
    --tier: #8deaff;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(170, 232, 255, 0.72);
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 112, 215, 0.19), transparent 30%),
        radial-gradient(circle at 76% 0%, rgba(101, 222, 255, 0.22), transparent 34%),
        radial-gradient(circle at 95% 100%, rgba(164, 125, 255, 0.13), transparent 38%),
        linear-gradient(110deg, rgba(21, 29, 41, 0.96), rgba(10, 16, 25, 0.96) 48%, rgba(20, 18, 32, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -1px 0 rgba(115, 220, 255, 0.07),
        0 9px 30px rgba(0, 0, 0, 0.28),
        0 0 22px rgba(103, 213, 255, 0.10);
    backdrop-filter: blur(10px);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.rank-entry.tier-premier::before {
    content: "";
    position: absolute;
    z-index: 4;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(
        110deg,
        #ff83dc,
        #78e5ff 25%,
        #fff 43%,
        #aa91ff 62%,
        #ff8ede 80%,
        #78e5ff
    );
    background-size: 260% 100%;
    opacity: 0.88;
    pointer-events: none;
    animation: premier-prism-border 4.5s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.rank-entry.tier-premier::after {
    content: "";
    position: absolute;
    z-index: 3;
    top: -100%;
    left: -34%;
    width: 18%;
    height: 300%;
    transform: rotate(18deg);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(121, 224, 255, 0.08),
        rgba(255, 255, 255, 0.30),
        rgba(255, 145, 219, 0.12),
        transparent
    );
    filter: blur(1px);
    pointer-events: none;
    animation: premier-crystal-shine 5.5s ease-in-out infinite;
}

.rank-entry.tier-premier:hover,
.rank-entry.tier-premier:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(219, 249, 255, 0.94);
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.20),
        0 14px 38px rgba(0, 0, 0, 0.33),
        0 0 28px rgba(101, 218, 255, 0.18),
        0 0 40px rgba(255, 104, 208, 0.08);
}

.rank-entry.tier-premier .rank-name {
    background: linear-gradient(90deg, #fff 0%, #baf3ff 23%, #ffb9e6 48%, #cbb6ff 72%, #fff 100%);
    background-size: 220% 100%;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 7px rgba(121, 224, 255, 0.16));
    font-weight: 900;
    animation: premier-prism-text 4s ease-in-out infinite;
    -webkit-background-clip: text;
}

.rank-entry.tier-premier .rank-medallion {
    border: 1px solid rgba(218, 247, 255, 0.92);
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.34), transparent 23%),
        linear-gradient(145deg, rgba(255, 123, 218, 0.42), rgba(91, 217, 255, 0.42) 50%, rgba(159, 121, 255, 0.34));
    box-shadow:
        inset 0 0 14px rgba(255, 255, 255, 0.15),
        0 0 10px rgba(110, 220, 255, 0.28),
        0 0 20px rgba(255, 104, 209, 0.10);
    color: #fff;
    animation: premier-crystal-pulse 2.8s ease-in-out infinite;
}

.rank-entry.tier-premier .tier-sign {
    border-color: rgba(191, 237, 255, 0.60);
    background: linear-gradient(
        105deg,
        rgba(255, 126, 216, 0.13),
        rgba(101, 219, 255, 0.15),
        rgba(157, 126, 255, 0.11)
    );
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
    color: #effcff;
}

.rank-entry.tier-premier .lp-top strong {
    background: linear-gradient(90deg, #fff, #b8f1ff 33%, #ffb6e3 61%, #c7b3ff);
    background-size: 220% 100%;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 8px rgba(113, 220, 255, 0.18));
    animation: premier-prism-text 4s ease-in-out infinite;
    -webkit-background-clip: text;
}

.rank-entry.tier-premier .lp-top span {
    color: #c9edf7;
}

.rank-entry.tier-premier .lp-progress {
    height: 4px;
    background: rgba(202, 240, 255, 0.10);
}

.rank-entry.tier-premier .lp-progress i {
    background: linear-gradient(90deg, #ff82d9, #75dcff, #a58bff, #ff82d9);
    background-size: 220% 100%;
    box-shadow: 0 0 10px rgba(111, 220, 255, 0.42);
    animation: premier-prism-bar 2.5s linear infinite;
}

/* Premier top 3: only the rank medallion material changes. */
.rank-entry.tier-premier[data-rank="1"] .rank-medallion {
    border-color: rgba(255, 235, 155, 0.95);
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.42), transparent 23%),
        linear-gradient(145deg, #fff0a8, #d8a936 48%, #765018);
    box-shadow:
        inset 0 0 14px rgba(255, 255, 255, 0.20),
        0 0 10px rgba(244, 196, 75, 0.34),
        0 0 22px rgba(244, 196, 75, 0.13);
}

.rank-entry.tier-premier[data-rank="2"] .rank-medallion {
    border-color: rgba(225, 240, 248, 0.95);
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.40), transparent 23%),
        linear-gradient(145deg, #fff, #aebdca 48%, #56616c);
    box-shadow:
        inset 0 0 14px rgba(255, 255, 255, 0.20),
        0 0 10px rgba(190, 218, 232, 0.26),
        0 0 20px rgba(190, 218, 232, 0.10);
}

.rank-entry.tier-premier[data-rank="3"] .rank-medallion {
    border-color: rgba(239, 174, 133, 0.92);
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.34), transparent 23%),
        linear-gradient(145deg, #f0b088, #ad6845 48%, #603824);
    box-shadow:
        inset 0 0 14px rgba(255, 255, 255, 0.16),
        0 0 10px rgba(208, 117, 72, 0.27),
        0 0 20px rgba(208, 117, 72, 0.10);
}

@keyframes premier-prism-border {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 260% 50%;
    }
}

@keyframes premier-crystal-shine {
    0%,
    58% {
        left: -34%;
        opacity: 0;
    }

    64% {
        opacity: 1;
    }

    82% {
        left: 120%;
        opacity: 0.85;
    }

    100% {
        left: 120%;
        opacity: 0;
    }
}

@keyframes premier-prism-text {
    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes premier-crystal-pulse {
    0%,
    100% {
        filter: brightness(1);
        box-shadow:
            inset 0 0 14px rgba(255, 255, 255, 0.13),
            0 0 9px rgba(110, 220, 255, 0.19),
            0 0 17px rgba(255, 104, 209, 0.07);
    }

    50% {
        filter: brightness(1.16);
        box-shadow:
            inset 0 0 17px rgba(255, 255, 255, 0.22),
            0 0 15px rgba(110, 220, 255, 0.40),
            0 0 25px rgba(255, 104, 209, 0.15);
    }
}

@keyframes premier-prism-bar {
    to {
        background-position: 220% 50%;
    }
}

/* Minecraft avatars -------------------------------------------------------- */

.skin-wrap {
    position: relative;
    flex: none;
}

.skin-wrap.avatar-crop {
    --avatar-size: 48px;
    position: relative;
    flex: none;
    width: calc(var(--avatar-size) * 1.05);
    height: calc(var(--avatar-size) * 1.34);
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.skin-wrap.avatar-crop .avatar-render {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 118% !important;
    max-width: none;
    height: auto !important;
    transform: translate(-50%, -50%) scale(1.10);
    transform-origin: 50% 35%;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.34));
    image-rendering: pixelated;
    object-fit: contain;
}

.skin-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #b6becd;
    font: 700 15px var(--mono);
}

.rank-entry .skin-wrap.avatar-crop {
    position: relative;
    width: 62px;
    height: 76px;
    margin: -7px 1px -7px -3px;
    overflow: visible;
}

.rank-entry .skin-wrap.avatar-crop .avatar-render {
    top: 88% !important;
    width: 124% !important;
    transform: translate(-50%, -50%) scale(1.12) !important;
}

.rank-entry:hover .skin-wrap.avatar-crop .avatar-render,
.rank-entry:focus-visible .skin-wrap.avatar-crop .avatar-render {
    top: 88% !important;
    transform: translate(-50%, -50%) scale(1.16) !important;
}

.rank-entry.tier-premier .skin-wrap.avatar-crop {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.rank-entry.tier-premier .skin-wrap.avatar-crop .avatar-render {
    filter:
        drop-shadow(0 8px 8px rgba(0, 0, 0, 0.36))
        drop-shadow(0 0 8px rgba(117, 220, 255, 0.17))
        drop-shadow(0 0 11px rgba(255, 131, 222, 0.10));
}

.podium-card .skin-wrap.avatar-crop {
    align-self: center;
    width: 70px;
    height: 108px;
    margin: -2px 5px -2px -5px;
    overflow: visible;
}

.podium-card .skin-wrap.avatar-crop .avatar-render {
    top: 55% !important;
    width: 112% !important;
    height: auto !important;
    transform: translate(-50%, -50%) scale(1.06);
    transform-origin: 50% 38%;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.rival-player .skin-wrap.avatar-crop {
    width: calc(var(--avatar-size) * 1.08);
    height: calc(var(--avatar-size) * 1.35);
}

.rival-player .skin-wrap.avatar-crop .avatar-render {
    width: 122% !important;
    transform: translate(-50%, -50%) scale(1.10);
}

.profile-hero .skin-wrap.avatar-crop {
    width: 94px;
    height: 126px;
    margin: -18px 0 -18px -8px;
}

.profile-hero .skin-wrap.avatar-crop .avatar-render {
    top: 49%;
    width: 126% !important;
    transform: translate(-50%, -50%) scale(1.12);
}

/* Highlights --------------------------------------------------------------- */

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.card {
    position: relative;
    padding: 19px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(18, 22, 32, 0.97), rgba(12, 15, 22, 0.98));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.card.wide {
    grid-column: 1 / -1;
}

.card h3 {
    margin: 5px 0 15px;
    font-size: 16px;
}

.card::after {
    content: "";
    position: absolute;
    right: -95px;
    bottom: -115px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(95, 129, 193, 0.13), transparent 68%);
    pointer-events: none;
}

.card:nth-child(1)::after {
    background: radial-gradient(circle, rgba(87, 211, 139, 0.15), transparent 68%);
}

.card:nth-child(2)::after {
    background: radial-gradient(circle, rgba(235, 100, 120, 0.13), transparent 68%);
}

.card:nth-child(3)::after {
    background: radial-gradient(circle, rgba(240, 183, 80, 0.14), transparent 68%);
}

.card:nth-child(4)::after {
    background: radial-gradient(circle, rgba(113, 190, 255, 0.14), transparent 68%);
}

.hero-name {
    display: block;
    font-size: 22px;
    font-weight: 800;
}

.hero-delta {
    display: block;
    margin-top: 6px;
    font: 700 29px var(--mono);
}

.hero-note {
    color: var(--muted);
    font-size: 12px;
}

.mini {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #222734;
    font-size: 13px;
}

.mini b {
    color: #e8edf5;
    font-family: var(--mono);
}

.stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.stats > .stat-card {
    position: relative;
    min-height: 94px;
    padding: 14px;
    overflow: hidden;
    border: 1px solid #222c3a;
    border-radius: 11px;
    background: linear-gradient(145deg, #101621, #0b0f16);
}

.stats > .stat-card::before {
    content: "";
    position: absolute;
    inset: auto -20% -70% 20%;
    height: 100%;
    background: radial-gradient(circle, rgba(93, 144, 232, 0.16), transparent 65%);
}

.stat-icon {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    filter: saturate(0.8);
}

.stat-v {
    display: block;
    font: 700 25px var(--mono);
}

.stat-k {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font: 700 8px var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Rivalries ---------------------------------------------------------------- */

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

.rival-card {
    position: relative;
    padding: 15px 16px;
    overflow: hidden;
    border: 1px solid #242b38;
    border-radius: 14px;
    background: linear-gradient(145deg, #121620, #0d1017);
}

.rival-card.featured {
    grid-column: 1 / -1;
    padding: 18px 20px;
    border-color: #403722;
    background:
        radial-gradient(circle at 50% 20%, rgba(210, 168, 66, 0.08), transparent 38%),
        linear-gradient(145deg, #141821, #0d1017);
}

.rival-card-head,
.rival-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rival-card-head {
    margin-bottom: 3px;
}

.rival-kicker {
    color: #9ea7b7;
    font: 800 9px var(--mono);
    letter-spacing: 0.14em;
}

.rival-count {
    color: #6e7787;
    font: 700 9px var(--mono);
}

.rival-duel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px 0 12px;
}

.rival-player {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.rival-player.right {
    flex-direction: row-reverse;
    text-align: right;
}

.rival-player strong {
    display: block;
    max-width: 150px;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rival-card .skin-wrap {
    filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.22));
}

.rival-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    text-align: center;
}

.versus {
    display: block;
    color: #5d6675;
    font: 800 9px var(--mono);
    letter-spacing: 0.15em;
}

.rival-score {
    display: block;
    margin: 6px 0 5px;
    font: 800 25px/1 var(--mono);
    white-space: nowrap;
}

.featured .rival-score {
    font-size: 31px;
}

.rival-goals {
    color: #778190;
    font: 700 8px var(--mono);
    white-space: nowrap;
}

.rival-split {
    display: flex;
    height: 5px;
    overflow: hidden;
    border-radius: 9px;
    background: #202632;
}

.rival-split i {
    display: block;
    height: 100%;
}

.rival-a {
    background: #d1aa4c;
}

.rival-b {
    background: #7489aa;
}

.rival-foot {
    margin-top: 10px;
    color: #77808e;
    font: 600 9px var(--mono);
}

.rival-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #778190;
    font: 700 9px var(--mono);
}

.rival-mini b {
    color: #d8dee8;
    font-size: 10px;
}

/* Match log ---------------------------------------------------------------- */

.logs {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.jornada-head {
    display: flex;
    justify-content: space-between;
    padding: 18px 4px 4px;
    color: #8d96a7;
}

.jornada-head h3 {
    margin: 0;
    font-size: 13px;
}

.jornada-head span {
    font: 10px var(--mono);
}

.log {
    display: grid;
    grid-template-columns: 70px 1fr 245px;
    align-items: center;
    padding: 12px 14px;
}

.log-id {
    color: #667080;
    font: 10px var(--mono);
}

.log-teams {
    display: grid;
    grid-template-columns: minmax(100px, 1fr) 55px minmax(100px, 1fr);
    align-items: center;
    gap: 10px;
}

.log-teams span:last-child {
    text-align: right;
}

.log-score {
    text-align: center !important;
    font: 700 17px var(--mono);
}

.log-meta {
    margin-top: 4px;
    color: #687181;
    font: 9px var(--mono);
    text-align: center;
}

.win {
    font-weight: 800;
}

.lose {
    color: #7c8594;
}

.ledger {
    font: 10px var(--mono);
    text-align: right;
}

.ledger > div {
    margin: 2px 0;
}

.ba {
    color: #788191;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
    font: 11px var(--mono);
}

.btn {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #11151e;
    color: #dfe3eb;
    cursor: pointer;
}

.btn:hover:not(:disabled),
.btn:focus-visible:not(:disabled) {
    border-color: #3b4558;
    background: #151b27;
}

.btn:disabled {
    cursor: default;
    opacity: 0.35;
}

/* Format / information ----------------------------------------------------- */

.prose {
    max-width: 850px;
    padding: 28px;
}

.prose h2 {
    margin: 8px 0 28px;
    font: 27px var(--display);
}

.prose h3 {
    margin-top: 28px;
}

.prose p {
    color: #adb5c3;
    line-height: 1.7;
}

.prose b {
    color: #fff;
}

.callout {
    padding: 14px 16px;
    border-left: 3px solid #c9a446;
    background: #171610;
}

/* Player profile ----------------------------------------------------------- */

.profile-overlay {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: flex;
    justify-content: flex-end;
}

.profile-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(3, 5, 9, 0.72);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.player-profile {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    height: 100%;
    padding: 28px 26px 50px;
    overflow: auto;
    border-left: 1px solid #2a3140;
    background: linear-gradient(180deg, #11151f, #0b0e14);
    box-shadow: -18px 0 55px rgba(0, 0, 0, 0.38);
}

.profile-close {
    position: absolute;
    top: 15px;
    right: 18px;
    width: 34px;
    height: 34px;
    border: 1px solid #303747;
    border-radius: 9px;
    background: #151a24;
    color: #cbd3df;
    font-size: 22px;
    cursor: pointer;
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 12px 42px 22px 0;
    border-bottom: 1px solid var(--line);
}

.profile-hero h2 {
    margin: 0 0 5px;
    font: 24px var(--display);
}

.profile-current {
    color: #aab3c2;
    font-size: 12px;
}

.honour-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 18px 0;
}

.honour {
    padding: 12px;
    border: 1px solid #262e3d;
    border-radius: 10px;
    background: #121722;
}

.honour strong {
    display: block;
    color: #f1f5fb;
    font: 800 20px var(--mono);
}

.honour span {
    display: block;
    margin-top: 4px;
    color: #7f8999;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-section {
    margin-top: 24px;
}

.profile-section h3 {
    margin: 0 0 10px;
    color: #a9b2c1;
    font-size: 13px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.career-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #202632;
}

.career-row strong {
    display: block;
    font-size: 12px;
}

.career-row span {
    display: block;
    margin-top: 3px;
    color: #7f8999;
    font-size: 10px;
}

.career-place {
    color: #e8edf5;
    font: 800 13px var(--mono);
    text-align: right;
}

.title-badge {
    display: inline-flex;
    margin: 4px 5px 0 0;
    padding: 5px 8px;
    border: 1px solid #3b4351;
    border-radius: 999px;
    color: #dbe3ef;
    font: 700 9px var(--mono);
}

.title-badge.champion {
    border-color: #735f31;
    background: rgba(220, 177, 70, 0.06);
    color: #f2d37a;
}

/* Footer ------------------------------------------------------------------- */

.bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    max-width: 1240px;
    margin: auto;
    padding: 24px;
    border-top: 1px solid #171c25;
    color: #677080;
    font-size: 10px;
}

.data-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 7px;
    border: 1px solid #2b3441;
    border-radius: 999px;
    color: #9aa5b6;
    font: 700 8px var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.data-status::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #737d8d;
}

.data-status[data-state="live"] {
    border-color: #28513b;
    color: #8ad9a8;
}

.data-status[data-state="live"]::before {
    background: #75dda0;
    box-shadow: 0 0 7px rgba(117, 221, 160, 0.38);
}

.data-status[data-state="cached"],
.data-status[data-state="snapshot"] {
    border-color: #594c2e;
    color: #d9bd76;
}

.data-status[data-state="cached"]::before,
.data-status[data-state="snapshot"]::before {
    background: #d3ad58;
}

.skin-credit {
    margin-left: auto;
}

.dot {
    color: #3f4652;
}

/* 404 ---------------------------------------------------------------------- */

.error-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 28px;
}

.error-card {
    width: min(620px, 100%);
    padding: 38px;
    border: 1px solid #273041;
    border-radius: 18px;
    background:
        radial-gradient(circle at 12% 5%, rgba(255, 121, 219, 0.08), transparent 34%),
        radial-gradient(circle at 88% 8%, rgba(105, 219, 255, 0.10), transparent 36%),
        linear-gradient(145deg, rgba(18, 22, 32, 0.98), rgba(10, 13, 20, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    text-align: center;
}

.error-brand {
    justify-content: center;
    margin-bottom: 28px;
}

.error-code {
    margin: 0;
    background: linear-gradient(90deg, #fff, #b8f1ff 45%, #e6c3ff);
    background-clip: text;
    color: transparent;
    font: 72px/1 var(--display);
    letter-spacing: -0.05em;
    -webkit-background-clip: text;
}

.error-card h2 {
    margin: 14px 0 8px;
    font-size: 22px;
}

.error-card p {
    max-width: 440px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.6;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-top: 24px;
}

.error-actions .btn {
    text-decoration: none;
}

.error-actions .btn.primary {
    border-color: #41546a;
    background: #182231;
    color: #f4f8ff;
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 1080px) {
    .header-side {
        align-items: flex-end;
        flex-direction: column-reverse;
        gap: 8px;
    }

    .social-links {
        align-self: flex-end;
    }
}

@media (max-width: 980px) {
    .ladder-head {
        display: none;
    }

    .rank-entry {
        grid-template-columns: 72px minmax(220px, 1fr) 120px 170px;
    }

    .form-zone {
        display: none;
    }

    .record-metrics {
        gap: 5px;
    }

    .record-metrics span:nth-child(2) {
        display: none !important;
    }

    .rival-card.featured {
        grid-column: auto;
    }

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

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

    .ranking-hero {
        display: block;
    }

    .tier-legend {
        justify-content: flex-start;
        margin-top: 16px;
    }

    .live-summary > div:not(.countdown) {
        display: none;
    }

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

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .log {
        grid-template-columns: 48px 1fr;
    }

    .ledger {
        grid-column: 2;
        margin-top: 9px;
        text-align: left;
    }
}

@media (max-width: 760px) {
    .top-inner {
        align-items: flex-start;
    }

    .header-side {
        gap: 7px;
    }

    .social-btn {
        min-height: 34px;
        padding: 0 9px;
        font-size: 10px;
    }

    .social-btn small {
        display: none;
    }
}

@media (max-width: 700px) {
    .rank-entry {
        grid-template-columns: 54px minmax(180px, 1fr) 120px;
        gap: 8px;
        padding: 10px 11px;
    }

    .record-zone {
        display: none;
    }

    .record-metrics {
        display: none;
    }

    .rank-medallion {
        width: 36px;
        height: 36px;
    }

    .tier-sign {
        display: none;
    }

    .rank-sub span:nth-child(2) {
        display: none;
    }

    .lp-top strong {
        font-size: 20px;
    }

    .rank-entry .skin-wrap.avatar-crop {
        width: 52px;
        height: 66px;
        margin-left: -4px;
    }

    .rank-entry .skin-wrap.avatar-crop .avatar-render {
        width: 122% !important;
    }

    .rival-duel {
        grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
    }

    .rival-player,
    .rival-player.right {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .rival-score,
    .featured .rival-score {
        font-size: 20px;
    }

    .rival-goals {
        font-size: 7px;
    }

    .rival-foot {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .player-profile {
        padding: 24px 18px 44px;
    }

    .stats > .stat-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .top-inner {
        padding: 15px 15px 11px;
    }

    .modes,
    .sections,
    main {
        padding-right: 15px;
        padding-left: 15px;
    }

    .brand {
        gap: 11px;
    }

    .brand-mark {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
        padding: 4px;
        border-radius: 12px;
    }

    .brand-mark img,
    .brand-logo {
        border-radius: 8px;
    }

    .brand h1 {
        font-size: 23px;
    }

    .brand-sub {
        max-width: 190px;
        margin-top: 4px;
        font-size: 9px;
    }

    .live-summary {
        display: none;
    }

    .header-side {
        align-items: flex-end;
        flex-direction: column;
    }

    .ranking-hero h2,
    .section-title h2 {
        font-size: 27px;
    }

    .podium {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .podium-card {
        min-height: 105px;
        padding: 11px;
    }

    .podium-card .skin-wrap.avatar-crop {
        width: 58px;
        height: 88px;
        margin: -1px 3px -1px -4px;
    }

    .podium-card .skin-wrap.avatar-crop .avatar-render {
        top: 55% !important;
        width: 110% !important;
        transform: translate(-50%, -50%) scale(1.04);
    }

    .podium-lp {
        font-size: 17px;
    }

    .leaderboard-panel {
        padding: 10px;
    }

    .panel-head {
        display: block;
    }

    .search {
        margin-top: 12px;
    }

    .search input {
        width: 100%;
    }

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

    .preview-banner {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .skin-credit {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 440px) {
    .social-btn.discord {
        display: none;
    }

    .brand-sub {
        max-width: 150px;
    }

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

    .error-card {
        padding: 28px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
