/* The Leaderboards (WEBSITE.md 21.120, the design of 21.98): the overview's cards, the clocks, the tabs, one board at
   a time with its podium, its rows and its side, the speedrun cards, the raid race, the realm firsts' plaques and the
   champions. The site's own look (site.css's colours and fonts); nothing here reaches outside .mb-lb but the
   trophy on a nameplate, which shows wherever a plate does. */

.mb-lb {
    --lb-gold-1: #D9A441;
    --lb-silver: #C9CDD6;
    --lb-bronze: #C98A55;
    --lb-up: #3DDC84;
    --lb-down: #E24B4A;
    --lb-ally: #81D4FA;
    --lb-horde: #E86A69;
    padding-bottom: 48px;
}

.mb-lb .mb-empty {
    margin: 0;
}

/* ------------------------------------------------------------------ head, search and clocks */

.mb-lb-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title find" "lede find";
    align-items: end;
    gap: 6px 24px;
    margin-bottom: 18px;
}

.mb-lb-head .mb-section-title {
    grid-area: title;
}

.mb-lb-lede {
    grid-area: lede;
    margin: 0;
    color: var(--mb-muted);
}

.mb-lb-find {
    grid-area: find;
    display: flex;
    gap: 8px;
}

.mb-lb-find input {
    width: 280px;
    max-width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--mb-line);
    border-radius: 6px;
    background: #0f0f11;
    color: var(--mb-head);
    font: inherit;
    font-size: 15px;
}

.mb-lb-find input:focus {
    outline: 2px solid var(--mb-gold-hi);
    outline-offset: 1px;
}

.mb-lb-ranks {
    margin: 0 0 16px;
    padding: 12px 16px;
    border: 1px dashed var(--mb-line);
    border-radius: 8px;
    background: var(--mb-panel);
}

.mb-lb-ranks-head {
    margin: 0 0 6px;
}

.mb-lb-ranks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
}

.mb-lb-clocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.mb-lb-clockcard {
    display: grid;
    gap: 2px;
    padding: 11px 14px;
    border: 1px solid var(--mb-soft);
    border-radius: 8px;
    background: var(--mb-panel);
}

.mb-lb-k {
    font-family: var(--mb-display);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mb-gold);
}

.mb-lb-clock {
    color: var(--mb-head);
}

.mb-lb-clock-k {
    color: var(--mb-muted);
    font-size: 14px;
}

.mb-lb-countdown {
    font-family: var(--mb-display);
    font-size: 20px;
    color: var(--mb-head);
    font-variant-numeric: tabular-nums;
}

.mb-lb-clockcard .mb-lb-countdown {
    font-size: 22px;
}

.mb-lb-note {
    display: block;
    font-size: 13px;
    color: var(--mb-muted);
}

.mb-lb-live {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mb-display);
    font-size: 19px;
    color: var(--mb-head);
}

.mb-lb-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--lb-up);
    animation: mb-lb-pulse 2s infinite;
}

@keyframes mb-lb-pulse {
    0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); }
    70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
    100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .mb-lb-dot { animation: none; }
}

/* ------------------------------------------------------------------ tabs */

/* Wider screens take every board's tab on as many lines as they need (fourteen since 21.121 did not fit one line at
   1440 px and hid the first tabs); phones keep one line that scrolls, with a fade (the narrow screens' rules below). */
.mb-lb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 18px;
    padding: 0 0 10px;
    overflow-x: auto;
    border-bottom: 1px solid var(--mb-line);
    scrollbar-width: thin;
}

.mb-lb-tab {
    flex: none;
    padding: 7px 14px;
    border: 1px solid var(--mb-soft);
    border-radius: 999px;
    font-family: var(--mb-display);
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--mb-muted) !important;
    white-space: nowrap;
}

.mb-lb-tab:hover {
    color: var(--mb-head) !important;
    border-color: var(--mb-line);
}

.mb-lb-tab.is-active {
    border-color: var(--mb-gold);
    background: var(--mb-soft);
    color: var(--mb-head) !important;
}

.mb-lb-tab .mb-count {
    margin-left: 4px;
}

.mb-lb-body:focus {
    outline: none;
}

/* ------------------------------------------------------------------ a board's head, boxes and layout */

.mb-lb-board-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px 24px;
    margin-bottom: 14px;
}

.mb-lb-board-head h3 {
    font-size: 26px;
}

.mb-lb-sub {
    max-width: 74ch;
    margin: 4px 0 0;
    color: var(--mb-muted);
    font-size: 16px;
}

.mb-lb-board-clock .mb-lb-clock {
    display: grid;
    justify-items: end;
}

.mb-lb-box {
    margin-top: 14px;
    border: 1px solid var(--mb-line);
    border-radius: 10px;
    background: var(--mb-panel);
}

.mb-lb-box > h4 {
    padding: 11px 16px;
    border-bottom: 1px solid var(--mb-soft);
    font-size: 15px;
}

.mb-lb-box > p,
.mb-lb-box > .mb-empty {
    padding: 12px 16px;
    margin: 0;
    font-size: 15px;
}

.mb-lb-box > p + p {
    padding-top: 0;
}

.mb-lb-box > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 16px 12px;
    font-size: 14px;
}

.mb-lb-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
}

.mb-lb-aside .mb-lb-box:first-child {
    margin-top: 0;
}

.mb-lb-two {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 14px;
}

.mb-lb-sides {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.mb-lb-sides .mb-subhead {
    margin-bottom: 8px;
}

/* ------------------------------------------------------------------ switches and filters */

.mb-lb-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 14px;
}

.mb-lb-switch,
.mb-lb-seg {
    display: inline-flex;
    flex-wrap: wrap;
    border: 1px solid var(--mb-line);
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: 12px;
}

.mb-lb-controls .mb-lb-switch {
    margin-bottom: 0;
}

.mb-lb-switch button,
.mb-lb-seg button {
    padding: 6px 13px;
    border: 0;
    border-right: 1px solid var(--mb-soft);
    background: transparent;
    color: var(--mb-muted);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.mb-lb-switch button:last-child,
.mb-lb-seg button:last-child {
    border-right: 0;
}

.mb-lb-switch button.is-on,
.mb-lb-seg button.is-on {
    background: var(--mb-soft);
    color: var(--mb-head);
}

.mb-lb-switch button:focus-visible,
.mb-lb-seg button:focus-visible,
.mb-lb-chip:focus-visible {
    outline: 2px solid var(--mb-gold-hi);
    outline-offset: -2px;
}

.mb-lb-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 12px;
}

.mb-lb-filters .mb-lb-seg {
    margin-bottom: 0;
}

.mb-lb-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.mb-lb-chip {
    padding: 3px;
    border: 1px solid var(--mb-soft);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    opacity: .7;
}

.mb-lb-chip[aria-pressed="true"] {
    border-color: var(--mb-gold);
    background: var(--mb-soft);
    opacity: 1;
}

.mb-lb-chip .mb-icon-class {
    width: 24px;
    height: 24px;
}

.mb-lb-filtered {
    margin: 0;
    font-size: 14px;
    color: var(--mb-muted);
}

.mb-lb-filtered:empty {
    display: none;
}

/* ------------------------------------------------------------------ places, movement, values */

.mb-lb-place {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: none;
    border: 1px solid var(--mb-soft);
    border-radius: 6px;
    font-family: var(--mb-display);
    font-size: 13px;
    color: var(--mb-muted);
}

.mb-lb-place-1 { border-color: var(--lb-gold-1); background: var(--lb-gold-1); color: #1a1408; }
.mb-lb-place-2 { border-color: var(--lb-silver); background: var(--lb-silver); color: #15161a; }
.mb-lb-place-3 { border-color: var(--lb-bronze); background: var(--lb-bronze); color: #1a0f07; }

.mb-move {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-width: 34px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.mb-move-up { color: var(--lb-up); }
.mb-move-down { color: var(--lb-down); }
.mb-move-same { color: var(--mb-muted); }

.mb-move-new {
    font-family: var(--mb-display);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mb-gold-hi);
}

.mb-lb-value {
    display: grid;
    justify-items: end;
    color: var(--mb-head);
    font-weight: 600;
    font-variant-numeric: lining-nums tabular-nums;
    white-space: nowrap;
}

.mb-lb-value .mb-lb-note {
    font-weight: 400;
    white-space: normal;
    text-align: right;
}

.mb-lb-value .mb-money img {
    width: 13px;
    height: 13px;
}

/* ------------------------------------------------------------------ podium and ranking rows */

.mb-lb-podium {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    align-items: end;
    gap: 10px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.mb-lb-pod {
    position: relative;
    display: grid;
    justify-items: stretch;
    gap: 8px;
    padding: 18px 10px 12px;
    border: 1px solid var(--mb-soft);
    border-radius: 12px;
    background: var(--mb-panel);
    text-align: center;
}

.mb-lb-pod-1 {
    padding-top: 26px;
    border-color: rgba(217, 164, 65, .55);
    background: linear-gradient(180deg, rgba(217, 164, 65, .14), var(--mb-panel) 70%);
}

.mb-lb-pod-2 { background: linear-gradient(180deg, rgba(201, 205, 214, .08), var(--mb-panel) 70%); }
.mb-lb-pod-3 { background: linear-gradient(180deg, rgba(201, 138, 85, .1), var(--mb-panel) 70%); }

.mb-lb-pod-place {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-family: var(--mb-display);
    font-size: 13px;
    background: var(--lb-gold-1);
    color: #1a1408;
}

.mb-lb-pod-2 .mb-lb-pod-place { background: var(--lb-silver); color: #15161a; }
.mb-lb-pod-3 .mb-lb-pod-place { background: var(--lb-bronze); color: #1a0f07; }

.mb-lb-pod .mb-plate {
    text-align: left;
}

.mb-lb-pod-value {
    font-family: var(--mb-display);
    font-size: 19px;
    color: var(--mb-head);
}

.mb-lb-pod-value .mb-money img {
    width: 15px;
    height: 15px;
}

.mb-lb-pod-note {
    font-size: 13px;
    color: var(--mb-gold-hi);
}

.mb-lb-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mb-lb-row {
    display: grid;
    grid-template-columns: 26px 38px minmax(0, 1fr) 176px;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 4px 8px;
    border: 1px solid transparent;
    border-radius: 10px;
}

.mb-lb-row:hover {
    border-color: var(--mb-soft);
    background: rgba(255, 255, 255, .015);
}

.mb-lb-row .mb-plate {
    min-width: 0;
}

.mb-lb-row[hidden],
.mb-lb-pod[hidden] {
    display: none;
}

/* ------------------------------------------------------------------ the overview */

/* Three cards a row on six columns, so a last row of two or one stretches across instead of leaving a hole. */
.mb-lb-cards {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.mb-lb-cards > .mb-lb-card {
    grid-column: span 2;
}

.mb-lb-cards > .mb-lb-card:nth-child(3n+1):nth-last-child(2),
.mb-lb-cards > .mb-lb-card:nth-child(3n+2):last-child {
    grid-column: span 3;
}

.mb-lb-cards > .mb-lb-card:nth-child(3n+1):last-child {
    grid-column: span 6;
}

.mb-lb-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    border: 1px solid var(--mb-line);
    border-radius: 10px;
    background: var(--mb-panel);
    min-width: 0;
}

.mb-lb-card > header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--mb-soft);
}

.mb-lb-card h4 {
    font-size: 16px;
}

.mb-lb-pill {
    padding: 1px 7px;
    border: 1px solid var(--mb-soft);
    border-radius: 999px;
    font-size: 12px;
    color: var(--mb-gold-hi);
    white-space: nowrap;
}

.mb-lb-pill .mb-lb-countdown {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.mb-lb-card-body {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 12px 14px;
    min-width: 0;
}

.mb-lb-card > footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-top: 1px solid var(--mb-soft);
    font-size: 13px;
    color: var(--mb-muted);
}

.mb-lb-card > footer a {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.mb-lb-minilist,
.mb-lb-guildlist,
.mb-lb-bests,
.mb-lb-famelist,
.mb-lb-feed,
.mb-lb-champs,
.mb-lb-clears,
.mb-lb-weeks,
.mb-lb-places,
.mb-lb-bossfirsts,
.mb-lb-protectors {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mb-lb-mini {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.mb-lb-card .mb-plate {
    padding: 5px 8px 5px 6px;
}

.mb-lb-card .mb-armory-avatar {
    transform: scale(.8);
    transform-origin: left center;
    margin-right: -10px;
}

.mb-lb-vs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mb-lb-side {
    display: grid;
    gap: 6px;
    align-content: start;
    padding: 8px;
    border: 1px solid var(--mb-soft);
    border-radius: 8px;
    min-width: 0;
}

.mb-lb-side-alliance { background: linear-gradient(180deg, rgba(129, 212, 250, .08), transparent); }
.mb-lb-side-horde { background: linear-gradient(180deg, rgba(226, 75, 74, .1), transparent); }

.mb-lb-rank {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--mb-muted);
}

.mb-lb-rank img {
    width: 18px;
    height: 18px;
}

.mb-lb-cities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.mb-lb-cities li {
    display: grid;
    min-width: 0;
}

.mb-lb-cities .mb-plate-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mb-plate-name[data-class] {
    font-weight: 700;
}

.mb-lb-run {
    display: grid;
    gap: 5px;
}

.mb-lb-run-name {
    font-family: var(--mb-display);
    color: var(--mb-head);
}

.mb-lb-run-time {
    font-family: var(--mb-display);
    font-size: 24px;
    line-height: 1;
    color: var(--mb-gold-hi);
    font-variant-numeric: tabular-nums;
}

.mb-lb-delta {
    font-size: 13px;
    color: var(--lb-up);
}

.mb-lb-party {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
}

.mb-lb-party .mb-icon-class {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.mb-lb-more {
    font-size: 12px;
    color: var(--mb-muted);
}

.mb-lb-bests li {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 10px;
}

.mb-lb-bests .mb-lb-run-time {
    font-size: 18px;
}

.mb-lb-champs {
    padding: 10px 16px 4px;
}

.mb-lb-guildlist li,
.mb-lb-champ,
.mb-lb-fame-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    align-items: baseline;
    font-size: 14px;
}

.mb-lb-guildlist .mb-lb-note,
.mb-lb-champ .mb-lb-k,
.mb-lb-fame-row .mb-lb-k {
    grid-column: 1 / -1;
}

.mb-lb-guild {
    color: #7fd99b;
}

.mb-lb-feed .mb-lb-ev {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(217, 164, 65, .06);
    font-size: 14px;
}

.mb-lb-feed .mb-lb-ev:last-child {
    border-bottom: 0;
}

.mb-lb-ago {
    font-size: 12px;
    color: var(--mb-muted);
    white-space: nowrap;
}

.mb-lb-badge {
    display: inline-flex;
    justify-content: center;
    padding: 1px 7px;
    border-radius: 3px;
    font-family: var(--mb-display);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    vertical-align: middle;
}

.mb-lb-badge-rec { background: rgba(232, 189, 101, .14); color: var(--mb-gold-hi); border: 1px solid var(--mb-line); }
.mb-lb-badge-first { background: rgba(255, 125, 10, .12); color: #FFB067; border: 1px solid rgba(255, 125, 10, .4); }
.mb-lb-badge-race { background: rgba(168, 151, 219, .14); color: #C3B6EC; border: 1px solid rgba(168, 151, 219, .4); }
.mb-lb-badge-champ { background: rgba(61, 220, 132, .12); color: var(--lb-up); border: 1px solid rgba(61, 220, 132, .4); }
.mb-lb-badge-week { background: rgba(129, 212, 250, .12); color: var(--lb-ally); border: 1px solid rgba(129, 212, 250, .35); }
.mb-lb-badge-lead { background: rgba(255, 165, 0, .12); color: #FFA500; border: 1px solid rgba(255, 165, 0, .4); }

.mb-lb-famelist {
    padding: 10px 16px 14px;
}

.mb-lb-moments .mb-lb-feed {
    padding: 4px 0;
}

/* ------------------------------------------------------------------ city protectors */

.mb-lb-protector {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

/* ------------------------------------------------------------------ speedruns */

.mb-lb-runs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.mb-lb-rc {
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 13px 14px;
    border: 1px solid var(--mb-soft);
    border-radius: 10px;
    background: var(--mb-panel);
    min-width: 0;
}

.mb-lb-rc[hidden] {
    display: none;
}

.mb-lb-rc.is-open {
    grid-column: 1 / -1;
}

.mb-lb-rc-record {
    border-color: rgba(61, 220, 132, .45);
}

.mb-lb-rc-empty {
    border-style: dashed;
}

.mb-lb-rc-empty .mb-lb-run-time {
    font-size: 17px;
    color: var(--mb-muted);
}

.mb-lb-rc h4 {
    font-size: 15px;
}

.mb-lb-rc-open {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border: 1px solid var(--mb-soft);
    border-radius: 6px;
    background: transparent;
    color: var(--mb-gold);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.mb-lb-rc-open[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.mb-lb-runlist {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mb-lb-runlist summary {
    display: grid;
    grid-template-columns: 26px auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border: 1px solid var(--mb-soft);
    border-radius: 8px;
    cursor: pointer;
    list-style: none;
}

.mb-lb-runlist summary::-webkit-details-marker {
    display: none;
}

.mb-lb-runlist .mb-lb-run-time {
    font-size: 18px;
}

.mb-lb-runlist summary > span:last-child {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mb-lb-runlist details[open] summary svg {
    transform: rotate(180deg);
}

.mb-lb-runlist .mb-run-players {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 6px;
    padding: 8px 0 4px;
}

/* ------------------------------------------------------------------ weekly challenge */

.mb-lb-week {
    display: grid;
    gap: 4px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(217, 164, 65, .06);
}

.mb-lb-places li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 2px 10px;
    align-items: center;
    font-size: 14px;
}

.mb-lb-places li > span:last-child {
    grid-column: 2;
}

/* ------------------------------------------------------------------ raid race */

.mb-lb-raids {
    flex-wrap: wrap;
}

.mb-lb-race {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mb-lb-race-row {
    display: grid;
    grid-template-columns: 26px minmax(140px, 1fr) 150px minmax(0, 1.2fr) auto;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid var(--mb-soft);
    border-radius: 10px;
    background: var(--mb-panel);
}

.mb-lb-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mb-lb-progress b {
    font-family: var(--mb-display);
    color: var(--mb-head);
    font-weight: 600;
}

.mb-lb-bar {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .07);
    overflow: hidden;
}

.mb-lb-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--mb-gold), var(--mb-gold-hi));
}

.mb-lb-pips {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.mb-lb-pip {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 1px solid var(--mb-soft);
    border-radius: 3px;
    background: rgba(255, 255, 255, .03);
    vertical-align: middle;
}

.mb-lb-pip.is-down {
    border-color: var(--mb-gold);
    background: var(--mb-gold);
}

.mb-lb-pip.is-first {
    border-color: #FFB067;
    background: #FF7D0A;
    box-shadow: 0 0 0 2px rgba(255, 125, 10, .25);
}

.mb-lb-legend {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--mb-muted);
}

/* ------------------------------------------------------------------ realm firsts */

.mb-lb-firsts {
    margin-bottom: 18px;
}

.mb-lb-firsts .mb-subhead {
    margin-bottom: 8px;
}

.mb-lb-plaques {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px;
}

.mb-lb-plaque {
    display: grid;
    align-content: start;
    gap: 3px;
    padding: 10px 12px;
    border: 1px dashed var(--mb-soft);
    border-radius: 10px;
    min-width: 0;
}

.mb-lb-plaque.is-won {
    border: 1px solid rgba(217, 164, 65, .55);
    background: linear-gradient(180deg, rgba(217, 164, 65, .1), transparent 80%);
}

.mb-lb-plaque-wide {
    grid-column: 1 / -1;
}

.mb-lb-plaque-wide.is-won .mb-plate-name {
    font-family: var(--mb-display);
    font-size: 22px;
}

.mb-lb-plaque-icon .mb-icon-class,
.mb-lb-plaque-icon .mb-icon-race {
    width: 26px;
    height: 26px;
}

.mb-lb-plaque .mb-plate-name,
.mb-lb-plaque .mb-armory-guild {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mb-lb-more-firsts,
.mb-lb-raid-firsts {
    margin-top: 8px;
    border: 1px solid var(--mb-soft);
    border-radius: 10px;
}

.mb-lb-more-firsts > summary,
.mb-lb-raid-firsts > summary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    font-family: var(--mb-display);
    color: var(--mb-head);
    cursor: pointer;
    list-style: none;
}

.mb-lb-more-firsts > summary::-webkit-details-marker,
.mb-lb-raid-firsts > summary::-webkit-details-marker {
    display: none;
}

.mb-lb-more-firsts > .mb-lb-plaques {
    padding: 0 12px 12px;
}

.mb-lb-bossfirsts {
    padding: 0 14px 12px;
}

.mb-lb-boss-first {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid rgba(217, 164, 65, .06);
    font-size: 14px;
}

.mb-lb-boss-first .mb-lb-k {
    font-size: 12px;
}

.mb-lb-boss-first:not(.is-won) .mb-lb-k {
    color: var(--mb-muted);
}

.mb-lb-clears li {
    display: grid;
    grid-template-columns: minmax(150px, .8fr) minmax(0, 1.4fr) auto;
    gap: 10px;
    align-items: baseline;
    font-size: 14px;
}

.mb-lb-clears {
    padding: 10px 16px 14px;
}

/* ------------------------------------------------------------------ champions */

.mb-lb-month {
    margin-bottom: 20px;
}

.mb-lb-month > h4 {
    font-size: 20px;
}

.mb-lb-month .mb-lb-list {
    padding: 10px 10px 12px;
}

.mb-lb-month h5 {
    margin: 4px 16px;
}

/* ------------------------------------------------------------------ the boards of 21.121 */

/* A name alone that opens the armory's window, in the short lists. */
.mb-lb-name {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.mb-lb-name:hover {
    text-decoration: underline;
}

.mb-lb-name:focus-visible {
    outline: 2px solid var(--mb-gold-hi);
    outline-offset: 2px;
}

.mb-lb-lifelist {
    padding: 0;
}

.mb-lb-lifelist .mb-lb-fame-row + .mb-lb-fame-row {
    margin-top: 6px;
}

/* The guilds: a row like a character's, the guild's name and what it holds where the plate goes. */
.mb-lb-guildplate {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 6px 0;
}

.mb-lb-guildplate .mb-lb-guild {
    overflow: hidden;
    font-family: var(--mb-display);
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mb-lb-guildfacts {
    color: var(--mb-muted);
    font-size: 13px;
}

/* The class champions: a card for each class. */
.mb-lb-classgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mb-lb-classcard {
    min-width: 0;
    border: 1px solid var(--mb-line);
    border-radius: 10px;
    background: var(--mb-panel);
}

.mb-lb-classcard > h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--mb-soft);
    font-size: 17px;
}

.mb-lb-classcard > h4 .mb-icon-class {
    width: 24px;
    height: 24px;
}

.mb-lb-classcard .mb-lb-k {
    text-decoration: none;
}

.mb-lb-classcard .mb-lb-fame-row {
    padding: 4px 0;
}

.mb-lb-classcard .mb-lb-value {
    font-size: 13px;
}

.mb-lb-classcard .mb-lb-value .mb-money img {
    width: 12px;
    height: 12px;
}

/* The legendaries: a card for each weapon. */
.mb-lb-legends {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mb-lb-legend {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--mb-line);
    border-radius: 10px;
    background: var(--mb-panel);
}

.mb-lb-legend > header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.mb-lb-legend > header img {
    display: block;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 128, 0, .7);
    border-radius: 6px;
}

.mb-lb-legend h4 {
    color: #ff8000;
    font-size: 18px;
}

.mb-lb-legend-n {
    display: grid;
    justify-items: end;
    color: var(--mb-muted);
    font-size: 12px;
}

.mb-lb-legend-n b {
    color: var(--mb-head);
    font-family: var(--mb-display);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

.mb-lb-legend.is-unclaimed {
    opacity: .7;
}

.mb-lb-bearers {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.7;
}

.mb-lb-legend > .mb-empty {
    margin: 10px 0 0;
    padding: 0;
}

/* ------------------------------------------------------------------ the trophy on a nameplate */

.mb-trophy {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    padding: 0 4px;
    border: 1px solid rgba(217, 164, 65, .6);
    border-radius: 4px;
    color: #E8BD65;
    font-size: 11px;
    line-height: 16px;
    vertical-align: middle;
}

.mb-trophy-icon {
    display: block;
}

/* ------------------------------------------------------------------ narrower screens */

@media (max-width: 1100px) {
    .mb-lb-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mb-lb-cards > .mb-lb-card,
    .mb-lb-cards > .mb-lb-card:nth-child(3n+1):nth-last-child(2),
    .mb-lb-cards > .mb-lb-card:nth-child(3n+2):last-child,
    .mb-lb-cards > .mb-lb-card:nth-child(3n+1):last-child {
        grid-column: auto;
    }

    .mb-lb-cards > .mb-lb-card:nth-child(2n+1):last-child {
        grid-column: span 2;
    }

    .mb-lb-board {
        grid-template-columns: minmax(0, 1fr);
    }

    .mb-lb-classgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mb-lb-race-row {
        grid-template-columns: 26px minmax(0, 1fr) 150px;
    }

    .mb-lb-race-row .mb-lb-pips {
        grid-column: 2 / -1;
    }

    .mb-lb-race-row > .mb-lb-note {
        grid-column: 2 / -1;
    }
}

@media (max-width: 760px) {
    .mb-lb-head {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "title" "lede" "find";
    }

    .mb-lb-find input {
        width: auto;
        flex: 1;
        min-width: 0;
    }

    .mb-lb-tabs {
        flex-wrap: nowrap;
        margin-right: -16px;
        padding-right: 16px;
        -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
        mask-image: linear-gradient(90deg, #000 85%, transparent);
    }

    .mb-lb-cards,
    .mb-lb-two,
    .mb-lb-sides,
    .mb-lb-vs {
        grid-template-columns: minmax(0, 1fr);
    }

    .mb-lb-cards > .mb-lb-card:nth-child(2n+1):last-child {
        grid-column: auto;
    }

    .mb-lb-podium {
        grid-template-columns: 1fr;
    }

    .mb-lb-pod {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        text-align: left;
        padding: 10px 10px 10px 34px;
    }

    .mb-lb-pod-place {
        top: 50%;
        left: 6px;
        transform: translateY(-50%);
    }

    .mb-lb-pod-1 { order: -1; }

    .mb-lb-pod-note {
        grid-column: 1 / -1;
    }

    .mb-lb-row {
        grid-template-columns: 26px minmax(0, 1fr) auto;
        grid-template-areas: "place plate value" "move plate value";
        padding: 4px 4px 4px 2px;
    }

    .mb-lb-row > .mb-lb-place { grid-area: place; }
    .mb-lb-row > .mb-move { grid-area: move; min-width: 0; justify-content: center; }
    .mb-lb-row > .mb-plate,
    .mb-lb-row > .mb-lb-guildplate { grid-area: plate; }
    .mb-lb-row > .mb-lb-value { grid-area: value; }

    .mb-lb-classgrid,
    .mb-lb-legends {
        grid-template-columns: minmax(0, 1fr);
    }

    .mb-lb-row .mb-lb-value .mb-lb-note {
        display: none;
    }

    .mb-lb-feed .mb-lb-ev {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .mb-lb-feed .mb-lb-ago {
        grid-column: 2;
    }

    .mb-lb-protector {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .mb-lb-protector > .mb-lb-k {
        grid-column: 1 / -1;
    }

    .mb-lb-race-row {
        grid-template-columns: 26px minmax(0, 1fr);
    }

    .mb-lb-race-row .mb-lb-progress,
    .mb-lb-race-row .mb-lb-pips,
    .mb-lb-race-row > .mb-lb-note {
        grid-column: 2;
    }

    .mb-lb-boss-first,
    .mb-lb-clears li {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .mb-lb-runlist summary {
        grid-template-columns: 26px auto 1fr;
    }

    .mb-lb-runlist summary > span:last-child {
        grid-column: 2 / -1;
    }

    .mb-lb-board-clock .mb-lb-clock {
        justify-items: start;
    }
}
