/* Dedicated selectors keep deferred homepage styles from altering this wall. */
.champions-arena.wk-champions {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    padding: 34px 24px 36px;
    color: #fff;
    background: radial-gradient(ellipse at 50% 0, #171791 0, transparent 58%),
        repeating-linear-gradient(140deg, transparent 0 160px, #2521be1f 160px 270px, transparent 270px 470px), #06064e;
}
.wk-champions *, .wk-champions *::before, .wk-champions *::after { box-sizing: border-box; }
.wk-champions__shell { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; }
.wk-champions__header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 138px;
    margin: 0 42px;
    padding: 18px 26px 24px;
    border: 1px solid #655aff80;
    border-bottom: 0;
    border-radius: 36px 36px 0 0;
    background: linear-gradient(115deg, #030345d9, #0b075fc2);
}
.wk-champions__heading { position: relative; z-index: 2; flex: 1; min-width: 0; }
.wk-champions__heading h2 {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0;
    color: #ffde66;
    font-size: clamp(26px, 3.5vw, 46px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.8px;
    text-shadow: 0 2px 0 #855007, 0 0 20px #ffca4252;
}
.wk-champions__heading h2 > span { font-size: .95em; filter: drop-shadow(0 0 10px #ffd84766); }
.wk-champions__heading p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 9px 0 0 56px;
    color: #e7e4ff;
    font-size: clamp(13px, 1.45vw, 19px);
    line-height: 1.5;
    letter-spacing: .5px;
}
.wk-champions__heading p span { color: #ffd647; }
.wk-champions__trophies {
    position: absolute;
    right: 146px;
    bottom: -3px;
    width: 290px;
    height: 160px;
    object-fit: cover;
    object-position: center 62%;
    opacity: .98;
    pointer-events: none;
    mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent);
}
.wk-champions__heading { padding-right: 220px; }
.wk-champions__class-picker {
    position: relative;
    z-index: 3;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    margin: 0;
    padding: 0 13px;
    border: 1.5px solid #ffe263;
    border-radius: 28px;
    background: #090745;
    color: #fff;
    box-shadow: 0 0 13px #ffcd5b33, inset 0 0 8px #ffd13e12;
}
.wk-champions__class-picker select {
    appearance: none;
    -webkit-appearance: none;
    width: auto;
    max-width: 155px;
    min-height: 44px;
    margin: 0;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
}
.wk-champions__class-picker option { background: #0b094a; color: #fff; }
.wk-champions__class-picker:focus-within { outline: 3px solid #fff1a8; outline-offset: 4px; }
.wk-champions__class-picker select:focus { outline: none; }
.wk-champions__class-picker svg { pointer-events: none; }
.wk-champions__class-button { min-height: 44px; margin: 0; padding: 0 2px; border: 0; background: transparent; color: #fff; font: inherit; font-size: 15px; font-weight: 750; cursor: pointer; }
.wk-champions__class-button[hidden] { display: none; }
.wk-champions__class-button:focus { outline: none; }
.wk-champions__class-picker:has([aria-expanded="true"]) svg { transform: rotate(180deg); }
.wk-champions__class-menu { position: fixed; z-index: 1110; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; padding: 7px; border: 1px solid #ffe06a; border-radius: 17px; background: linear-gradient(145deg, #17115b, #080632); box-shadow: 0 12px 30px #03002180, 0 0 15px #ffce5b26; color: #fff; }
.wk-champions__class-menu[hidden] { display: none; }
.wk-champions__class-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 41px; padding: 9px 12px; margin: 0; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #eeeaff; font: inherit; font-size: 14px; font-weight: 650; line-height: 1.4; text-align: left; cursor: pointer; }
.wk-champions__class-option span { visibility: hidden; color: #ffe47a; }
.wk-champions__class-option[aria-selected="true"] { border-color: #ffd65a55; background: linear-gradient(100deg, #ffc95529, #e1ac3010); color: #ffe47a; }
.wk-champions__class-option[aria-selected="true"] span { visibility: visible; }
.wk-champions__class-option:hover, .wk-champions__class-option:focus-visible { outline: none; border-color: #aca0ff80; background: #6a56cd42; }
.wk-champions__board {
    position: relative;
    padding: 23px 24px 25px;
    border: 1px solid #8273ffb3;
    border-radius: 32px;
    background: linear-gradient(180deg, #1512738c, #030333b3);
    box-shadow: inset 0 3px 14px #b09bff2b, 0 15px 45px #00032e66;
}
.wk-champions__roster { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; }
.wk-champions__roster[hidden] { display: none; }
.wk-champion {
    position: relative;
    isolation: isolate;
    grid-column: span 2;
    display: flex;
    align-items: center;
    flex-direction: column;
    min-width: 0;
    padding: 14px 13px 12px;
    border: 1.5px solid var(--champion-color);
    border-radius: 13px;
    overflow: hidden;
    background: #100828;
    box-shadow: inset 0 0 17px color-mix(in srgb, var(--champion-color) 44%, transparent), 0 0 14px color-mix(in srgb, var(--champion-color) 20%, transparent);
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}
.wk-champion:nth-child(5) { grid-column: 2 / span 2; }
.wk-champion__backdrop { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.wk-champion::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, #00000015, #00000012 65%, #00000030); pointer-events: none; }
.wk-champion__game {
    width: 100%;
    min-height: 23px;
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(15px, 1.35vw, 18px);
    font-weight: 800;
    line-height: 1.3;
    text-shadow: 0 2px 5px #000b;
    overflow-wrap: anywhere;
}
.wk-champion__portrait {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 0 8px;
    border: 2px solid #fff8cc;
    border-radius: 50%;
    background: #f7e9c6;
    box-shadow: 0 0 0 2px var(--champion-color), 0 0 15px var(--champion-color), inset 0 0 12px #fff9;
}
.wk-champion__avatar { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.wk-champion__crown { position: absolute; z-index: 2; top: -16px; left: 50%; transform: translateX(-50%); filter: drop-shadow(0 1px 2px #0007); }
.wk-champion__name { width: 100%; margin: 0; color: #fff; font-size: 16px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; text-shadow: 0 2px 4px #000b; }
.wk-champion__school {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    width: 100%;
    overflow: hidden;
    margin: 4px 0 0;
    color: #eeeaff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 3px #000;
}
.wk-champion__details-toggle {
    position: absolute;
    z-index: 3;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.wk-champion__details-toggle:focus-visible { outline: 2px solid #fff8cc; outline-offset: -5px; }
.wk-champion-tooltip {
    position: fixed;
    z-index: 1100;
    width: 340px;
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 17px 19px;
    border: 1px solid var(--champion-color, #ffda6a);
    border-radius: 15px;
    background: #100d36;
    color: #f4f0ff;
    box-shadow: 0 10px 35px #0007;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    text-align: left;
}
.wk-champion-tooltip[hidden] { display: none; }
.wk-champion-tooltip p { margin: 0; }
.wk-champion-tooltip .wk-champion-tooltip__name { margin-bottom: 10px; color: var(--champion-color); font-size: 16px; font-weight: 800; line-height: 1.35; }
.wk-champion-tooltip .wk-champion-tooltip__label { margin: 12px 0 4px; color: #c6bedf; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.wk-champion-tooltip__bio { white-space: pre-wrap; }
.wk-champion-tooltip__traits { display: flex; flex-wrap: wrap; gap: 6px; }
.wk-champion-tooltip__traits span { max-width: 100%; padding: 3px 8px; border-radius: 8px; background: #ffffff0d; color: var(--champion-color); font-size: 12px; }
.wk-champion--open .wk-champion__portrait { background: #08042a99; }
.wk-champion__open-icon { font-size: 35px; line-height: 1; }
.wk-champions__empty { margin: 20px; color: #fff; text-align: center; }
.wk-champions__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wk-champions__ribbon {
    position: absolute;
    z-index: 0;
    width: 600px;
    height: 170px;
    top: -40px;
    border-radius: 50%;
    border-bottom: 14px solid #c890f2;
    background: linear-gradient(170deg, transparent 65%, #4a15d9 66%, #8c38ed 82%, #f7be63 84%, #ffdc95 87%, #6622ca 94%);
    box-shadow: 0 6px 14px #7c37ef55;
    pointer-events: none;
}
.wk-champions__ribbon--left { left: -370px; transform: rotate(33deg); }
.wk-champions__ribbon--right { right: -370px; transform: rotate(-33deg); }
.wk-champions__ribbon--bottom-left { top: auto; bottom: -85px; left: -355px; transform: rotate(35deg); }
.wk-champions__ribbon--bottom-right { top: auto; bottom: -85px; right: -355px; transform: rotate(-35deg); }
.wk-champions::after { content: '✦'; position: absolute; right: 3%; bottom: 13%; color: #ffe091; font-size: 29px; text-shadow: 0 0 14px #ffbd33; pointer-events: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .wk-champion:hover { transform: translateY(-3px); box-shadow: 0 0 22px color-mix(in srgb, var(--champion-color) 36%, transparent); }
}
@media (max-width: 1100px) {
    .wk-champions__header { margin: 0 24px; padding-left: 20px; padding-right: 20px; }
    .wk-champions__heading { padding-right: 140px; }
    .wk-champions__trophies { right: 140px; width: 210px; height: 140px; }
    .wk-champions__heading p { margin-left: 0; letter-spacing: 0; }
    .wk-champions__roster { gap: 12px; }
    .wk-champions__board { padding: 20px; }
}
@media (max-width: 900px) {
    .wk-champions__roster { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .wk-champion:nth-child(5) { grid-column: span 2; }
    .wk-champion:nth-child(7) { grid-column: 3 / span 2; }
    .wk-champions__heading { padding-right: 0; }
    .wk-champions__trophies { display: none; }
    .wk-champions__header { min-height: 120px; }
}
@media (max-width: 600px) {
    /* Override the legacy fixed 360px homepage width on small phones. */
    html:has(#wall-of-champions), body:has(#wall-of-champions) { width: 100%; min-width: 0; }
    body:has(#wall-of-champions) .mob-footer-fixed, body:has(#wall-of-champions) .footer-fixed { width: 100%; min-width: 0; }
    .champions-arena.wk-champions { padding: 22px 6px; }
    .wk-champions__header { justify-content: center; flex-wrap: wrap; gap: 12px; margin: 0; padding: 18px 8px 20px; border-radius: 24px 24px 0 0; }
    .wk-champions__heading { flex-basis: 100%; text-align: center; }
    .wk-champions__heading h2 { justify-content: center; gap: 7px; font-size: clamp(24px, 6.8vw, 36px); letter-spacing: -.8px; }
    .wk-champions__heading p { justify-content: center; gap: 6px; margin-top: 8px; font-size: 12px; }
    .wk-champions__class-picker { min-height: 38px; padding: 0 10px; gap: 6px; }
    .wk-champions__class-picker select { min-height: 38px; max-width: 160px; font-size: 13px; }
    .wk-champions__class-button { min-height: 38px; font-size: 13px; }
    .wk-champions__trophies { display: block; position: static; width: 108px; height: 70px; margin: -6px 0; object-position: center; }
    .wk-champions__board { padding: 12px 6px; border-radius: 20px; }
    .wk-champions__roster { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; }
    .wk-champion:nth-child(7) { grid-column: 2 / span 2; }
    .wk-champion { padding: 12px 8px 10px; border-radius: 11px; }
    .wk-champion__game { display: flex; justify-content: center; align-items: center; min-height: 36px; margin-bottom: 14px; font-size: 15px; }
    .wk-champion__portrait { width: 64px; height: 64px; }
    .wk-champion__name { font-size: 14px; }
    .wk-champion__school { -webkit-line-clamp: 3; font-size: 10px; }
    .wk-champions__ribbon--left { left: -455px; }
    .wk-champions__ribbon--right { right: -455px; }
    .wk-champions__ribbon--bottom-left { left: -465px; }
    .wk-champions__ribbon--bottom-right { right: -465px; }
}
@media (max-width: 359px) {
    .wk-champions__trophies { display: none; }
    .wk-champion { padding: 12px 5px 10px; }
    .wk-champion__game { font-size: 14px; }
    .wk-champion__name { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .wk-champion { transition: none; } }
