:root {
    color-scheme: dark;
    --page: #111d3a;
    --page-deep: #070b1b;
    --surface: #f6f8fb;
    --surface-strong: #ffffff;
    --ink: #132131;
    --muted: #687586;
    --line: #e4e9ef;
    --teal: #ffb13b;
    --teal-dark: #d04b2f;
    --blue: #7297ff;
    --orange: #ff7a32;
    --red: #ed5d72;
    --gold: #f5be4b;
    --silver: #b9c7d5;
    --bronze: #cb8b62;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--page-deep);
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: #edf4fb;
    background:
        radial-gradient(circle at 12% 4%, rgba(255, 117, 42, .22) 0, transparent 31%),
        radial-gradient(circle at 86% 18%, rgba(104, 139, 255, .2) 0, transparent 34%),
        linear-gradient(155deg, var(--page) 0%, var(--page-deep) 72%);
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.page-glow {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .38;
    pointer-events: none;
    animation: glow-drift 9s ease-in-out infinite alternate;
}

.page-glow-one {
    top: 90px;
    right: -210px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 145, 54, .38), transparent 68%);
}

.page-glow-two {
    top: 440px;
    left: -300px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(100, 133, 255, .32), transparent 68%);
    animation-delay: -4s;
}

.maple-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.maple-particles span {
    --x: 7%;
    --delay: -3s;
    --duration: 18s;
    --size: 28px;
    position: absolute;
    top: -12vh;
    left: var(--x);
    width: var(--size);
    aspect-ratio: 1;
    opacity: .18;
    background: url("../favicon.png") center / contain no-repeat;
    filter: saturate(1.25) drop-shadow(0 5px 10px rgba(255, 100, 30, .22));
    animation: leaf-fall var(--duration) linear var(--delay) infinite;
}

.maple-particles span:nth-child(2) { --x: 21%; --delay: -12s; --duration: 21s; --size: 18px; }
.maple-particles span:nth-child(3) { --x: 39%; --delay: -6s; --duration: 16s; --size: 24px; }
.maple-particles span:nth-child(4) { --x: 58%; --delay: -15s; --duration: 23s; --size: 20px; }
.maple-particles span:nth-child(5) { --x: 73%; --delay: -9s; --duration: 19s; --size: 30px; }
.maple-particles span:nth-child(6) { --x: 88%; --delay: -1s; --duration: 17s; --size: 21px; }

.site-header,
main,
footer {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(30, 54, 102, .94), rgba(8, 18, 42, .96));
    box-shadow: inset 0 1px rgba(255, 255, 255, .18), 0 8px 24px rgba(0, 0, 0, .22);
}

.brand-mark img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.brand-copy strong,
.brand-copy small {
    display: block;
}

.brand-copy strong {
    font-size: .96rem;
    letter-spacing: -.01em;
}

.brand-copy small {
    margin-top: 2px;
    color: #8fa1b1;
    font-size: .68rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    color: #c8d4df;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.back-link:hover {
    border-color: rgba(255, 177, 59, .65);
    color: #fff;
    transform: translateY(-1px);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    align-items: end;
    gap: 64px;
    padding: 78px 22px 58px;
}

.live-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: #a9bdca;
    font-size: .71rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.live-label span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 5px rgba(255, 177, 59, .13), 0 0 18px var(--teal);
    animation: live-pulse 1.8s ease-out infinite;
}

h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(3.35rem, 8vw, 6.9rem);
    font-weight: 760;
    letter-spacing: -.068em;
    line-height: .88;
}

h1 em {
    color: transparent;
    font-style: normal;
    background: linear-gradient(100deg, #ffd45b 0%, #ff8a3d 42%, #ff5f68 72%, #8aa7ff 100%);
    background-size: 180% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    animation: title-shimmer 7s ease-in-out infinite alternate;
}

.hero-copy > p {
    max-width: 620px;
    margin: 26px 0 0;
    color: #91a4b4;
    font-size: clamp(.95rem, 1.6vw, 1.1rem);
    line-height: 1.65;
}

.update-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    background: rgba(255, 255, 255, .055);
    box-shadow: inset 0 1px rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
    animation: card-hover 4.5s ease-in-out infinite;
}

.update-icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px;
    color: var(--teal);
    font-size: 1.25rem;
    background: rgba(255, 177, 59, .13);
    animation: icon-bob 2.4s ease-in-out infinite;
}

.update-card small,
.update-card strong {
    display: block;
}

.update-card small {
    margin-bottom: 5px;
    color: #8498a8;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.update-card strong {
    color: #eef6fa;
    font-size: .82rem;
    font-weight: 650;
    line-height: 1.42;
}

.update-card strong[data-state="error"] {
    color: #ff91a2;
}

.leaderboard {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 32px;
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 34px 110px rgba(0, 0, 0, .46), 0 0 0 1px rgba(255, 178, 60, .08);
}

.board-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding: 36px 40px 30px;
    background: var(--surface-strong);
}

.section-kicker {
    margin: 0 0 8px;
    color: #c5462f;
    font-size: .67rem;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}

h2 {
    margin: 0;
    color: #102030;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    letter-spacing: -.045em;
}

#board-description {
    max-width: 660px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.5;
}

.board-tabs {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 4px;
    padding: 5px;
    border: 1px solid #e5eaf0;
    border-radius: 14px;
    background: #eef2f6;
}

.board-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    color: #6a7785;
    font-size: .76rem;
    font-weight: 780;
    background: transparent;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.board-tabs button[aria-selected="true"] {
    color: #fff;
    background: linear-gradient(135deg, #152c54, #213b6a);
    box-shadow: 0 7px 18px rgba(23, 43, 79, .24), inset 0 1px rgba(255, 255, 255, .12);
    transform: translateY(-1px);
}

.board-tabs button[aria-selected="true"] span {
    color: #ffc44f;
    animation: tab-spark 1.8s ease-in-out infinite;
}

.board-tabs button:focus-visible,
.back-link:focus-visible,
.brand:focus-visible {
    outline: 3px solid rgba(26, 208, 176, .45);
    outline-offset: 3px;
}

.podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 18px;
    min-height: 548px;
    padding: 42px 40px 34px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 50% 0, rgba(255, 189, 70, .18), transparent 34%),
        radial-gradient(circle at 15% 80%, rgba(108, 141, 255, .12), transparent 30%),
        linear-gradient(180deg, #f5f8fb, #edf2f6);
}

.podium-card,
.podium-skeleton {
    position: relative;
    min-width: 0;
    min-height: 455px;
    overflow: hidden;
    border: 1px solid rgba(18, 39, 59, .08);
    border-radius: 24px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 12px 30px rgba(17, 34, 50, .08);
}

.podium-card {
    animation: podium-enter .58s cubic-bezier(.2, .8, .2, 1) both;
    transition: transform .28s ease, box-shadow .28s ease;
}

.podium-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 48px rgba(17, 34, 50, .15);
}

.podium-card[data-rank="1"] {
    order: 2;
    min-height: 492px;
    border-color: rgba(245, 190, 75, .6);
    box-shadow: 0 18px 42px rgba(90, 68, 20, .13);
}

.podium-card[data-rank="1"] { animation-delay: .06s; }
.podium-card[data-rank="2"] { animation-delay: .12s; }
.podium-card[data-rank="3"] { animation-delay: .18s; }

.podium-card[data-rank="2"] {
    order: 1;
}

.podium-card[data-rank="3"] {
    order: 3;
}

.podium-rank {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 31px;
    padding: 0 10px;
    border-radius: 999px;
    color: #4d3a11;
    font-size: .7rem;
    font-weight: 850;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 5px 14px rgba(16, 31, 45, .12);
    backdrop-filter: blur(10px);
}

.podium-rank::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

.podium-card[data-rank="2"] .podium-rank::before {
    background: var(--silver);
}

.podium-card[data-rank="3"] .podium-rank::before {
    background: var(--bronze);
}

.podium-movement {
    position: absolute;
    top: 18px;
    right: 17px;
    z-index: 2;
}

.podium-portrait {
    display: grid;
    height: 310px;
    padding: 14px;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(18, 39, 59, .07);
    background:
        linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .1)),
        radial-gradient(circle at 50% 72%, #ffe3a4 0, #f6e9d6 30%, #e6edf7 74%);
}

.podium-card[data-rank="1"] .podium-portrait {
    height: 347px;
    background: radial-gradient(circle at 50% 72%, #ffe285 0, #fff2c9 36%, #e8eef7 76%);
}

.avatar-frame {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    overflow: hidden;
}

.podium-portrait .avatar-frame {
    width: min(100%, 230px);
    height: auto;
    aspect-ratio: 420 / 500;
    overflow: visible;
}

.avatar-frame::after {
    content: "";
    position: absolute;
    right: 14%;
    bottom: 11%;
    left: 14%;
    height: 18px;
    border-radius: 50%;
    background: rgba(24, 42, 54, .12);
    filter: blur(8px);
}

.avatar-frame img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    image-rendering: pixelated;
}

.avatar-initial {
    position: relative;
    z-index: 1;
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border: 1px solid rgba(19, 36, 51, .1);
    border-radius: 24px;
    color: #547080;
    font-size: 1.8rem;
    font-weight: 850;
    background: rgba(255, 255, 255, .72);
}

.podium-info {
    padding: 19px 20px 20px;
}

.podium-info h3 {
    overflow: hidden;
    margin: 0;
    color: #142536;
    font-size: 1.08rem;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0 16px;
}

.podium-class {
    margin: 0;
    color: #6b7a88;
    font-size: .73rem;
}

.level-badge {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    padding: 0 8px;
    border: 1px solid #f1d7b9;
    border-radius: 999px;
    color: #a5472d;
    font-size: .64rem;
    font-weight: 820;
    background: #fff4e6;
}

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

.podium-stat {
    min-width: 0;
    padding: 10px 11px;
    border-radius: 12px;
    background: #f1f5f8;
}

.podium-stat small,
.podium-stat strong {
    display: block;
}

.podium-stat small {
    margin-bottom: 3px;
    color: #8995a1;
    font-size: .58rem;
    font-weight: 780;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.podium-stat strong {
    overflow: hidden;
    color: #203344;
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-skeleton {
    min-height: 455px;
    background: linear-gradient(100deg, #e8edf1 20%, #f7f9fb 38%, #e8edf1 56%);
    background-size: 300% 100%;
    animation: shimmer 1.4s infinite linear;
}

.podium-skeleton-tall {
    min-height: 492px;
}

@keyframes shimmer {
    to { background-position: -150% 0; }
}

.ranking-list-wrap {
    padding: 14px 28px 28px;
    background: #fff;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.ranking-table th {
    height: 54px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    color: #8a95a0;
    font-size: .63rem;
    font-weight: 820;
    letter-spacing: .1em;
    text-align: left;
    text-transform: uppercase;
}

.ranking-table th:first-child,
.ranking-table td:first-child {
    width: 118px;
}

.ranking-table th:nth-child(2),
.ranking-table td:nth-child(2) {
    width: 34%;
}

.ranking-table th:nth-child(3),
.ranking-table td:nth-child(3) {
    width: 18%;
}

.ranking-table th:nth-child(4),
.ranking-table td:nth-child(4),
.ranking-table th:nth-child(5),
.ranking-table td:nth-child(5) {
    width: 18%;
    text-align: right;
}

.ranking-table td {
    height: 82px;
    padding: 10px 14px;
    border-bottom: 1px solid #edf0f3;
    color: #293b4b;
    font-size: .82rem;
    vertical-align: middle;
}

.ranking-table tbody tr {
    animation: row-enter .36s cubic-bezier(.2, .75, .25, 1) both;
    animation-delay: calc(var(--row-index, 1) * 22ms);
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.ranking-table tbody tr:hover {
    background: #fffaf4;
    box-shadow: inset 4px 0 #ffad3c;
    transform: translateX(3px);
}

.table-rank {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rank-number {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #dfe5ea;
    border-radius: 11px;
    color: #506171;
    font-size: .76rem;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    background: #f6f8fa;
}

.movement {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    color: #87939d;
    font-size: .64rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: #edf1f4;
}

.movement.positive,
.delta.positive {
    color: #087f6e;
    background: #e4f7f2;
}

.movement.negative,
.delta.negative {
    color: #bd4055;
    background: #fdecef;
}

.movement.new {
    color: #315ecc;
    background: #eaf0ff;
}

.character-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.table-avatar {
    width: 64px;
    height: 72px;
    flex: 0 0 64px;
    border: 1px solid #e2e8ed;
    border-radius: 14px;
    background: radial-gradient(circle at 50% 75%, #ffe4b3, #eef2f6 70%);
}

.table-avatar .avatar-initial {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: .86rem;
}

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

.character-name {
    display: block;
    overflow: hidden;
    color: #152738;
    font-size: .9rem;
    font-weight: 780;
    letter-spacing: -.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.character-subtitle {
    display: block;
    margin-top: 4px;
    color: #93a0aa;
    font-size: .65rem;
}

.class-pill {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 9px;
    border: 1px solid #f0ddca;
    border-radius: 999px;
    color: #a24c31;
    font-size: .67rem;
    font-weight: 720;
    background: #fff7ed;
}

.metric-value,
.mesos-value {
    display: block;
    color: #1c2f40;
    font-size: .86rem;
    font-weight: 790;
    font-variant-numeric: tabular-nums;
}

.cell-detail {
    display: flex;
    justify-content: flex-end;
    min-height: 20px;
    margin-top: 4px;
    gap: 5px;
}

.metric-caption {
    color: #98a3ad;
    font-size: .62rem;
}

.delta {
    display: inline-flex;
    min-height: 20px;
    align-items: center;
    padding: 0 6px;
    border-radius: 999px;
    color: #8b96a0;
    font-size: .61rem;
    font-weight: 760;
    font-variant-numeric: tabular-nums;
    background: #f0f3f5;
}

.ranking-empty {
    margin: 0;
    padding: 70px 24px;
    color: var(--muted);
    text-align: center;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px 6px 48px;
    color: #7f92a2;
    font-size: .7rem;
    line-height: 1.55;
}

footer p {
    max-width: 700px;
    margin: 0;
}

footer a {
    color: #b8c7d2;
    font-weight: 750;
    text-underline-offset: 4px;
}

@keyframes glow-drift {
    from { transform: translate3d(-18px, -10px, 0) scale(.96); }
    to { transform: translate3d(24px, 20px, 0) scale(1.06); }
}

@keyframes leaf-fall {
    0% { transform: translate3d(0, -15vh, 0) rotate(0deg); }
    45% { transform: translate3d(38px, 48vh, 0) rotate(190deg); }
    100% { transform: translate3d(-24px, 118vh, 0) rotate(410deg); }
}

@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 177, 59, .38), 0 0 18px var(--teal); }
    75%, 100% { box-shadow: 0 0 0 9px rgba(255, 177, 59, 0), 0 0 18px var(--teal); }
}

@keyframes title-shimmer {
    from { background-position: 0 50%; }
    to { background-position: 100% 50%; }
}

@keyframes card-hover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes icon-bob {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-3px) rotate(5deg); }
}

@keyframes tab-spark {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 transparent); }
    50% { transform: scale(1.18); filter: drop-shadow(0 0 5px #ffc44f); }
}

@keyframes podium-enter {
    from { opacity: 0; transform: translateY(20px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes row-enter {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 60px;
    }

    .update-card {
        width: min(100%, 430px);
    }

    .board-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .ranking-table th:nth-child(2),
    .ranking-table td:nth-child(2) {
        width: 30%;
    }
}

@media (max-width: 720px) {
    .site-header,
    main,
    footer {
        width: min(100% - 24px, 1240px);
    }

    .site-header {
        min-height: 74px;
    }

    .brand-copy small {
        display: none;
    }

    .back-link {
        padding: 9px 11px;
    }

    .hero {
        padding: 48px 8px 42px;
    }

    h1 {
        font-size: clamp(3.1rem, 16vw, 5.2rem);
    }

    .leaderboard {
        border-radius: 24px;
    }

    .board-header {
        padding: 28px 22px 24px;
    }

    .board-tabs {
        width: 100%;
    }

    .board-tabs button {
        flex: 1 1 0;
        justify-content: center;
        padding-inline: 8px;
    }

    .podium {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 24px 18px;
    }

    .podium-card,
    .podium-card[data-rank="1"],
    .podium-skeleton,
    .podium-skeleton-tall {
        display: grid;
        grid-template-columns: 40% 1fr;
        min-height: 260px;
    }

    .podium-card[data-rank="1"] {
        order: 1;
    }

    .podium-card[data-rank="2"] {
        order: 2;
    }

    .podium-card[data-rank="3"] {
        order: 3;
    }

    .podium-portrait,
    .podium-card[data-rank="1"] .podium-portrait {
        height: 100%;
        min-height: 260px;
        padding: 12px;
        border-right: 1px solid rgba(18, 39, 59, .07);
        border-bottom: 0;
    }

    .podium-portrait .avatar-frame {
        width: min(100%, 190px);
        max-height: 236px;
    }

    .podium-info {
        align-self: center;
        padding: 48px 16px 16px;
    }

    .podium-meta {
        margin-bottom: 12px;
    }

    .ranking-list-wrap {
        padding: 8px 12px 18px;
    }

    .ranking-table,
    .ranking-table tbody {
        display: block;
        width: 100%;
    }

    .ranking-table thead {
        display: none;
    }

    .ranking-table tr {
        display: grid;
        grid-template-columns: 78px minmax(0, 1fr) minmax(88px, auto);
        grid-template-rows: auto auto;
        margin: 8px 0;
        padding: 12px;
        border: 1px solid #e8edf1;
        border-radius: 16px;
    }

    .ranking-table td {
        width: auto !important;
        height: auto;
        padding: 4px;
        border: 0;
        text-align: left !important;
    }

    .ranking-table .rank-cell {
        grid-row: 1 / 3;
        align-self: center;
    }

    .table-rank {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .ranking-table .character-cell {
        grid-column: 2;
        grid-row: 1;
    }

    .ranking-table .class-cell {
        grid-column: 2;
        grid-row: 2;
        padding-left: 78px;
    }

    .ranking-table .primary-cell {
        grid-column: 3;
        grid-row: 1;
        align-self: end;
        text-align: right !important;
    }

    .ranking-table .mesos-cell {
        grid-column: 3;
        grid-row: 2;
        text-align: right !important;
    }

    .character-profile {
        gap: 10px;
    }

    .table-avatar {
        width: 56px;
        height: 68px;
        flex-basis: 56px;
    }

    .cell-detail {
        justify-content: flex-end;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
        padding-inline: 6px;
    }
}

@media (max-width: 430px) {
    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .back-link {
        border: 0;
    }

    .podium-card,
    .podium-card[data-rank="1"] {
        grid-template-columns: 42% 1fr;
        min-height: 294px;
    }

    .podium-portrait,
    .podium-card[data-rank="1"] .podium-portrait {
        min-height: 294px;
    }

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

    .ranking-table tr {
        grid-template-columns: 58px minmax(0, 1fr) minmax(74px, auto);
        padding: 9px;
    }

    .rank-number {
        width: 31px;
        height: 31px;
    }

    .ranking-table .class-cell {
        padding-left: 4px;
    }

    .class-pill {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .table-avatar {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
