:root {
    --champ-gold: #ffd76a;
    --champ-gold-soft: #ffe9a9;
    --champ-silver: #dce5ef;
    --champ-bronze: #d69a69;
    --champ-ink: #07090f;
    --champ-panel: rgba(16, 18, 27, .96);
    --champ-line: rgba(255, 255, 255, .09);
    --champ-muted: rgba(255, 255, 255, .62);
}

.champions-page {
    background:
        radial-gradient(circle at 50% -20%, rgba(255, 203, 74, .08), transparent 32rem),
        var(--cp-bg, #080a0f);
}

.champ-shell {
    width: min(1240px, 100%);
    margin-inline: auto;
}

.champ-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3.35rem);
    border: 1px solid rgba(255, 215, 106, .28);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(31, 33, 44, .98), rgba(8, 10, 16, .99) 62%),
        #0b0d13;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .045);
}

.champ-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 106, .65), transparent);
}

.champ-hero-orb {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
}

.champ-hero-orb-one {
    width: 28rem;
    height: 28rem;
    right: -7rem;
    top: -17rem;
    background: radial-gradient(circle, rgba(255, 210, 91, .27), rgba(255, 210, 91, 0) 68%);
}

.champ-hero-orb-two {
    width: 18rem;
    height: 18rem;
    left: 24%;
    bottom: -15rem;
    background: radial-gradient(circle, rgba(119, 88, 255, .16), transparent 68%);
}

.champ-stars span {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff4c6;
    box-shadow: 0 0 12px rgba(255, 223, 126, .95);
    animation: champTwinkle 3.4s ease-in-out infinite;
}

.champ-stars span:nth-child(1) { top: 16%; right: 22%; }
.champ-stars span:nth-child(2) { top: 30%; right: 11%; animation-delay: .7s; }
.champ-stars span:nth-child(3) { top: 68%; right: 28%; animation-delay: 1.4s; }
.champ-stars span:nth-child(4) { top: 15%; left: 46%; animation-delay: 2s; }
.champ-stars span:nth-child(5) { top: 78%; left: 62%; animation-delay: 2.7s; }

.champ-kicker {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--champ-gold);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.champ-kicker-icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid rgba(255, 215, 106, .36);
    border-radius: 50%;
    background: rgba(255, 215, 106, .08);
    font-size: 1rem;
}

.champ-title {
    margin: .8rem 0 .85rem;
    max-width: 800px;
    color: #fff;
    font-size: clamp(2.5rem, 7vw, 5.7rem);
    font-weight: 1000;
    letter-spacing: -.065em;
    line-height: .88;
    text-wrap: balance;
}

.champ-sub {
    max-width: 720px;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(1rem, 1.8vw, 1.14rem);
    line-height: 1.7;
}

.champ-rule-note {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .8rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
    color: rgba(255, 255, 255, .62);
    font-size: .78rem;
}

.champ-rule-note span { color: var(--champ-gold); }

.champ-week-form {
    padding: 1rem;
    border: 1px solid rgba(255, 215, 106, .16);
    border-radius: 20px;
    background: rgba(4, 6, 11, .36);
    backdrop-filter: blur(12px);
}

.champ-week-form .form-label {
    margin-bottom: .55rem;
    color: var(--champ-gold-soft);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.week-select {
    min-height: 48px;
    border-color: rgba(255, 215, 106, .28) !important;
    border-radius: 14px !important;
    background-color: #0a0c12 !important;
    color: #fff !important;
    box-shadow: none !important;
}

.champ-week-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.champ-current-week {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 230px;
    padding: .75rem 1.4rem;
    border: 1px solid rgba(255, 215, 106, .19);
    border-radius: 18px;
    background: rgba(255, 255, 255, .025);
}

.champ-current-week span {
    color: var(--champ-gold);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.champ-current-week strong { color: #fff; font-size: 1.05rem; }
.champ-current-week small { color: var(--champ-muted); }

.champ-nav-button {
    display: inline-grid;
    grid-template-columns: auto 1fr;
    column-gap: .65rem;
    align-items: center;
    color: rgba(255, 255, 255, .76);
    text-decoration: none;
    transition: transform .2s ease, color .2s ease;
}

.champ-nav-button span {
    grid-row: 1 / 3;
    font-size: 1.55rem;
    color: var(--champ-gold);
}

.champ-nav-button small { color: var(--champ-muted); font-size: .72rem; }
.champ-nav-button strong { color: #fff; }
.champ-nav-button.is-next { grid-template-columns: 1fr auto; text-align: right; }
.champ-nav-button.is-next span { grid-column: 2; }
.champ-nav-button:hover { color: #fff; transform: translateX(-3px); }
.champ-nav-button.is-next:hover { transform: translateX(3px); }

.champ-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.champ-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 104px;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--champ-line);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018));
    box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.champ-stat-icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 215, 106, .2);
    border-radius: 15px;
    background: rgba(255, 215, 106, .06);
    color: var(--champ-gold);
    font-size: 1.3rem;
}

.champ-stat-card strong { display: block; color: #fff; font-size: clamp(1.2rem, 2.4vw, 1.75rem); line-height: 1; }
.champ-stat-card small { display: block; margin-top: .35rem; color: var(--champ-muted); font-size: .78rem; }

.champ-podium-section {
    position: relative;
    padding: 3.6rem 1rem 1rem;
}

.champ-podium-glow {
    position: absolute;
    top: 0;
    left: 50%;
    width: 48rem;
    height: 22rem;
    max-width: 100%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(255, 204, 75, .14), transparent 66%);
    pointer-events: none;
}

.champ-podium {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr) minmax(0, 1fr);
    gap: 1.15rem;
    align-items: end;
}

.champ-podium-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-width: 0;
    padding: 1.6rem 1.25rem 1.3rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(33, 36, 48, .98), rgba(10, 12, 18, .99)),
        #0b0d13;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .04);
    text-align: center;
}

.champ-podium-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto 0 0;
    height: 34%;
    opacity: .22;
    background: linear-gradient(180deg, transparent, currentColor);
}

.champ-podium-card.first {
    padding-top: 2.55rem;
    transform: translateY(-1.6rem);
    border-color: rgba(255, 215, 106, .52);
    color: rgba(255, 215, 106, .28);
    box-shadow: 0 35px 90px rgba(255, 190, 48, .1), inset 0 1px rgba(255, 244, 205, .12);
}

.champ-podium-card.second { border-color: rgba(220, 229, 239, .3); color: rgba(220, 229, 239, .22); }
.champ-podium-card.third { border-color: rgba(214, 154, 105, .34); color: rgba(214, 154, 105, .24); }

.champ-crown {
    position: absolute;
    z-index: 4;
    top: .75rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--champ-gold);
    font-size: 2rem;
    text-shadow: 0 0 24px rgba(255, 211, 92, .8);
    animation: champFloat 3.4s ease-in-out infinite;
}

.champ-winner-rays {
    position: absolute;
    z-index: -1;
    top: -11rem;
    left: 50%;
    width: 30rem;
    height: 30rem;
    transform: translateX(-50%);
    opacity: .18;
    background: repeating-conic-gradient(from 0deg, rgba(255, 220, 118, .42) 0 7deg, transparent 7deg 16deg);
    -webkit-mask-image: radial-gradient(circle, #000 0 35%, transparent 70%);
    mask-image: radial-gradient(circle, #000 0 35%, transparent 70%);
    animation: champRotate 28s linear infinite;
}

.champ-rank-medallion {
    position: absolute;
    z-index: 5;
    top: 1.2rem;
    right: 1.2rem;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: rgba(5, 7, 11, .74);
    color: #fff;
    font-weight: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.champ-avatar-frame {
    position: relative;
    width: 144px;
    height: 144px;
    margin: .45rem auto 1.15rem;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .19);
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .02));
    box-shadow: 0 22px 40px rgba(0, 0, 0, .32);
}

.first .champ-avatar-frame {
    width: 176px;
    height: 176px;
    border-color: rgba(255, 215, 106, .75);
    box-shadow: 0 0 0 5px rgba(255, 215, 106, .055), 0 24px 55px rgba(255, 190, 49, .14);
}

.champ-avatar { width: 100%; height: 100%; border-radius: 27px; object-fit: cover; }

.champ-place-label {
    color: var(--champ-muted);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.first .champ-place-label { color: var(--champ-gold); }

.champ-player-name {
    margin: .35rem 0 .15rem;
    overflow: hidden;
    color: #fff;
    font-size: clamp(1.14rem, 2.1vw, 1.5rem);
    font-weight: 1000;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.champ-player-points {
    color: var(--champ-gold-soft);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 1000;
}

.champ-player-points span { margin-left: .25rem; color: var(--champ-gold); font-size: .68em; }

.champ-player-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
    margin: 1rem 0;
}

.champ-player-metrics > div {
    min-width: 0;
    padding: .75rem .55rem;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 16px;
    background: rgba(255, 255, 255, .025);
}

.champ-player-metrics span { color: var(--champ-gold); }
.champ-player-metrics strong { display: block; color: #fff; font-size: .97rem; }
.champ-player-metrics small { display: block; overflow: hidden; color: var(--champ-muted); font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }

.champ-badge-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .38rem;
}

.champ-achievement {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: .35rem;
    padding: .36rem .62rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
    color: rgba(255, 255, 255, .78);
    font-size: .7rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.champ-achievement span { flex: 0 0 auto; }
.champ-achievement.is-gold { border-color: rgba(255, 215, 106, .38); background: rgba(255, 215, 106, .1); color: #ffe7a2; }
.champ-achievement.is-silver { border-color: rgba(220, 229, 239, .3); background: rgba(220, 229, 239, .08); color: #edf4fb; }
.champ-achievement.is-bronze { border-color: rgba(214, 154, 105, .34); background: rgba(214, 154, 105, .09); color: #f2bb8f; }
.champ-achievement.is-chest { border-color: rgba(99, 205, 169, .28); background: rgba(99, 205, 169, .08); color: #9de6cf; }
.champ-achievement.is-power { border-color: rgba(141, 129, 255, .3); background: rgba(141, 129, 255, .09); color: #c3bbff; }
.champ-achievement.is-history { border-color: rgba(255, 215, 106, .2); color: #e7d596; }

.champ-profile-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: 1.05rem;
    padding: .62rem .9rem;
    border: 1px solid rgba(255, 215, 106, .24);
    border-radius: 12px;
    background: rgba(255, 215, 106, .055);
    color: var(--champ-gold-soft);
    font-size: .78rem;
    font-weight: 900;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.champ-profile-link:hover { transform: translateY(-2px); background: rgba(255, 215, 106, .11); color: #fff1c7; }

.champ-panel {
    overflow: hidden;
    padding: clamp(1rem, 2.5vw, 1.55rem);
    border: 1px solid var(--champ-line);
    border-radius: 28px;
    background: var(--champ-panel);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .025);
}

.champ-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.champ-panel-kicker { color: var(--champ-gold); font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.champ-panel h2 { margin: .2rem 0 0; color: #fff; font-size: clamp(1.45rem, 3vw, 2.15rem); font-weight: 1000; letter-spacing: -.035em; }
.champ-panel p { margin: .35rem 0 0; color: var(--champ-muted); }
.champ-panel-emblem { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255, 215, 106, .18); border-radius: 16px; background: rgba(255, 215, 106, .055); color: var(--champ-gold); font-size: 1.3rem; }

.champ-table { --bs-table-bg: transparent; --bs-table-color: #f4f1e9; --bs-table-border-color: rgba(255, 255, 255, .07); }
.champ-table thead th { padding: .8rem 1rem; border-bottom-width: 1px; color: rgba(255, 255, 255, .48); font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.champ-table tbody td { padding: .82rem 1rem; }
.champ-rank-row { transition: background .18s ease; }
.champ-rank-row:hover { background: rgba(255, 255, 255, .025); }
.champ-rank-row.rank-1 { background: linear-gradient(90deg, rgba(255, 215, 106, .06), transparent 55%); }
.champ-rank-row.rank-2 { background: linear-gradient(90deg, rgba(220, 229, 239, .035), transparent 55%); }
.champ-rank-row.rank-3 { background: linear-gradient(90deg, rgba(214, 154, 105, .045), transparent 55%); }

.champ-table-rank {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 11px;
    background: rgba(255, 255, 255, .035);
    color: #fff;
    font-weight: 1000;
}

.rank-1 .champ-table-rank { border-color: rgba(255, 215, 106, .35); color: var(--champ-gold); }
.rank-2 .champ-table-rank { border-color: rgba(220, 229, 239, .28); color: var(--champ-silver); }
.rank-3 .champ-table-rank { border-color: rgba(214, 154, 105, .3); color: #efb487; }

.champ-player-cell {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    min-width: 0;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.champ-player-cell img { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 13px; object-fit: cover; }
.champ-player-cell:hover { color: var(--champ-gold-soft); }
.champ-table-points { color: var(--champ-gold-soft); }
.champ-badge-stack.is-table { justify-content: flex-start; }

.champ-mobile-ranking { display: grid; gap: .65rem; }
.champ-mobile-rank-card {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
    padding: .8rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 17px;
    background: rgba(255, 255, 255, .025);
    color: #fff;
    text-decoration: none;
}
.champ-mobile-rank-card img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.champ-mobile-rank-copy { min-width: 0; }
.champ-mobile-rank-copy strong, .champ-mobile-rank-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.champ-mobile-rank-copy small { color: var(--champ-muted); }
.champ-mobile-arrow { color: var(--champ-gold); font-size: 1.6rem; }

.champ-hall-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
}

.champ-hall-card {
    position: relative;
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 20px;
    background: rgba(255, 255, 255, .025);
}

.champ-hall-card.is-elite { border-color: rgba(255, 215, 106, .16); background: linear-gradient(145deg, rgba(255, 215, 106, .045), rgba(255, 255, 255, .02)); }
.champ-hall-position { position: absolute; top: .8rem; right: .85rem; color: rgba(255, 255, 255, .32); font-size: .72rem; font-weight: 1000; }
.champ-hall-card.is-elite .champ-hall-position { color: var(--champ-gold); }

.champ-hall-player {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    padding-right: 2rem;
    color: #fff;
    text-decoration: none;
}

.champ-hall-player img { flex: 0 0 50px; width: 50px; height: 50px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 15px; object-fit: cover; }
.champ-hall-player div { min-width: 0; }
.champ-hall-player strong, .champ-hall-player small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.champ-hall-player strong { font-weight: 950; }
.champ-hall-player small { color: var(--champ-muted); font-size: .72rem; }
.champ-hall-player:hover { color: var(--champ-gold-soft); }

.champ-hall-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .45rem;
    margin: .9rem 0;
}

.champ-hall-stats > div { padding: .6rem .4rem; border-radius: 12px; background: rgba(255, 255, 255, .025); text-align: center; }
.champ-hall-stats strong { display: block; color: #fff; font-size: 1.08rem; }
.champ-hall-stats span { color: var(--champ-muted); font-size: .64rem; }
.champ-badge-stack.is-hall { justify-content: flex-start; }

.empty-champ {
    padding: 5rem 1rem;
    border: 1px dashed rgba(255, 215, 106, .3);
    border-radius: 28px;
    color: rgba(255, 255, 255, .68);
    text-align: center;
}
.empty-champ-icon { margin-bottom: .7rem; color: var(--champ-gold); font-size: 3rem; }
.empty-champ h2 { font-size: 1.4rem; }

@keyframes champTwinkle { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.4); } }
@keyframes champFloat { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -6px); } }
@keyframes champRotate { to { transform: translateX(-50%) rotate(360deg); } }

@media (max-width: 1050px) {
    .champ-podium { grid-template-columns: 1fr 1.08fr 1fr; gap: .8rem; }
    .champ-avatar-frame { width: 122px; height: 122px; }
    .first .champ-avatar-frame { width: 150px; height: 150px; }
    .champ-hall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .champ-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .champ-podium-section { padding-top: 1rem; }
    .champ-podium { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
    .champ-podium-card.first { order: -1; transform: none; }
    .champ-podium-card.second { order: 2; }
    .champ-podium-card.third { order: 3; }
    .champ-avatar-frame, .first .champ-avatar-frame { width: 146px; height: 146px; }
}

@media (max-width: 640px) {
    .champ-shell { padding-inline: .75rem !important; }
    .champ-hero { border-radius: 26px; }
    .champ-title { font-size: clamp(2.55rem, 15vw, 4rem); }
    .champ-week-nav { grid-template-columns: 1fr 1fr; }
    .champ-current-week { grid-column: 1 / 3; grid-row: 1; min-width: 0; }
    .champ-stat-grid { gap: .65rem; }
    .champ-stat-card { min-height: 90px; padding: .85rem; gap: .7rem; }
    .champ-stat-icon { flex-basis: 39px; width: 39px; height: 39px; }
    .champ-stat-card strong { font-size: 1.05rem; }
    .champ-panel { border-radius: 22px; }
    .champ-panel-emblem { display: none; }
    .champ-hall-grid { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
    .champ-stat-grid { grid-template-columns: 1fr; }
    .champ-podium-card { border-radius: 24px; }
    .champ-player-metrics { grid-template-columns: 1fr; }
    .champ-nav-button small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .champ-stars span,
    .champ-crown,
    .champ-winner-rays {
        animation: none !important;
    }
    .champ-profile-link,
    .champ-nav-button {
        transition: none !important;
    }
}
