#battleground-scores {
    --bgs-bg: #07110f;
    --bgs-surface: #0d1b17;
    --bgs-surface-2: #12251f;
    --bgs-surface-3: #172f27;
    --bgs-line: rgba(215, 177, 87, .18);
    --bgs-line-strong: rgba(215, 177, 87, .42);
    --bgs-gold: #d8b25a;
    --bgs-gold-light: #f5db91;
    --bgs-jade: #50b982;
    --bgs-jade-dark: #1f7452;
    --bgs-text: #edf4ef;
    --bgs-muted: #94a79e;
    --bgs-alliance: #4b95e9;
    --bgs-horde: #d8594f;
    --bgs-shadow: 0 18px 45px rgba(0, 0, 0, .32);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--bgs-text);
    border: 1px solid var(--bgs-line-strong);
    border-radius: 16px;
    background:
        radial-gradient(circle at 15% 0%, rgba(46, 132, 91, .12), transparent 34%),
        radial-gradient(circle at 90% 16%, rgba(195, 140, 46, .08), transparent 30%),
        var(--bgs-bg);
    box-shadow: var(--bgs-shadow);
    font-family: inherit;
    line-height: 1.5;
}

#battleground-scores,
#battleground-scores * {
    box-sizing: border-box;
}

#battleground-scores [hidden] {
    display: none !important;
}

#battleground-scores a {
    color: inherit;
    text-decoration: none;
}

#battleground-scores img {
    display: block;
    max-width: 100%;
}

#battleground-scores h2,
#battleground-scores h3,
#battleground-scores h4,
#battleground-scores p {
    margin: 0;
}

#battleground-scores button,
#battleground-scores input,
#battleground-scores select {
    font: inherit;
}

#battleground-scores :focus-visible {
    outline: 3px solid rgba(245, 219, 145, .9);
    outline-offset: 3px;
}

.bgs-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.bgs-hero {
    position: relative;
    min-height: 270px;
    padding: 38px 38px 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px minmax(190px, .55fr);
    gap: 28px;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--bgs-line-strong);
    background:
        linear-gradient(90deg, rgba(4, 13, 11, .96), rgba(10, 31, 24, .76) 47%, rgba(4, 13, 11, .92)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 12px);
}

.bgs-hero::before,
.bgs-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.bgs-hero::before {
    inset: 0;
    background:
        radial-gradient(circle at 54% 50%, rgba(66, 180, 123, .22), transparent 24%),
        linear-gradient(110deg, transparent 0 56%, rgba(216, 178, 90, .05) 56% 57%, transparent 57% 100%);
}

.bgs-hero::after {
    width: 420px;
    height: 420px;
    top: -260px;
    right: -100px;
    border: 1px solid rgba(216, 178, 90, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(216, 178, 90, .025), 0 0 0 78px rgba(216, 178, 90, .018);
}

.bgs-hero-copy,
.bgs-crest,
.bgs-realm-control {
    position: relative;
    z-index: 1;
}

.bgs-eyebrow,
.bgs-kicker {
    color: var(--bgs-gold-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.bgs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.bgs-hero h2 {
    color: #fff8df;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.035em;
    text-shadow: 0 3px 20px rgba(0, 0, 0, .48);
}

.bgs-hero-copy > p {
    max-width: 620px;
    margin-top: 16px !important;
    color: #b7c8bf;
    font-size: 15px;
}

.bgs-season-line {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.bgs-season-line span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 5px 10px;
    color: #cad8d0;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(0, 0, 0, .22);
    font-size: 11px;
}

.bgs-season-line i {
    color: var(--bgs-gold);
}

.bgs-crest {
    width: 192px;
    aspect-ratio: 1;
    justify-self: center;
    border-radius: 50%;
    background: url('../images/pandaria-crest.svg') center / contain no-repeat;
    filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .42));
}

.bgs-crest::after {
    content: "";
    position: absolute;
    inset: 14%;
    border-radius: 50%;
    box-shadow: 0 0 28px rgba(109, 213, 151, .25);
    animation: bgs-pulse 4s ease-in-out infinite;
}

.bgs-realm-control {
    justify-self: stretch;
    padding: 18px;
    border: 1px solid rgba(216, 178, 90, .2);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(23, 51, 42, .86), rgba(6, 17, 14, .88));
    box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 12px 24px rgba(0, 0, 0, .2);
}

.bgs-realm-control label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: var(--bgs-gold-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.bgs-select-wrap {
    position: relative;
}

.bgs-select-wrap select {
    width: 100%;
    min-height: 44px;
    padding: 0 38px 0 12px;
    color: var(--bgs-text);
    border: 1px solid rgba(216, 178, 90, .3);
    border-radius: 8px;
    outline: 0;
    appearance: none;
    background: #0a1713;
    cursor: pointer;
}

.bgs-select-wrap > i {
    position: absolute;
    top: 50%;
    right: 13px;
    color: var(--bgs-gold);
    transform: translateY(-50%);
    pointer-events: none;
}

.bgs-realm-control small {
    display: block;
    margin-top: 8px;
    color: var(--bgs-muted);
    font-size: 10px;
}

.bgs-periods {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 6px;
    margin: -1px 24px 0;
    padding: 10px;
    border: 1px solid var(--bgs-line);
    border-top-color: transparent;
    border-radius: 0 0 12px 12px;
    background: rgba(9, 22, 18, .95);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.bgs-period {
    position: relative;
    min-height: 58px;
    display: grid;
    grid-template-columns: 25px 1fr;
    grid-template-rows: auto auto;
    column-gap: 9px;
    align-content: center;
    padding: 8px 13px;
    overflow: hidden;
    color: #a7bbb0 !important;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.bgs-period::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    opacity: 0;
    background: linear-gradient(90deg, transparent, var(--bgs-gold), transparent);
}

.bgs-period > i {
    grid-row: 1 / 3;
    align-self: center;
    color: #688178;
    font-size: 18px;
}

.bgs-period span {
    font-size: 13px;
    font-weight: 800;
}

.bgs-period small {
    color: #677c72;
    font-size: 10px;
}

.bgs-period:hover {
    color: var(--bgs-text) !important;
    border-color: rgba(216, 178, 90, .13);
    background: rgba(255, 255, 255, .025);
    transform: translateY(-1px);
}

.bgs-period.is-active {
    color: #fff6d9 !important;
    border-color: rgba(216, 178, 90, .34);
    background: linear-gradient(145deg, rgba(52, 107, 80, .45), rgba(20, 50, 39, .6));
    box-shadow: inset 0 1px rgba(255, 255, 255, .05);
}

.bgs-period.is-active > i {
    color: var(--bgs-gold-light);
}

.bgs-period.is-active small {
    color: #9db7a9;
}

.bgs-period.is-active::after {
    opacity: 1;
}

.bgs-system-message,
.bgs-partial-notice {
    margin: 22px 24px 0;
}

.bgs-system-message {
    min-height: 120px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(216, 178, 90, .35);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(77, 55, 19, .35), rgba(22, 23, 15, .78));
}

.bgs-system-message--error {
    border-color: rgba(216, 89, 79, .5);
    background: linear-gradient(145deg, rgba(87, 29, 24, .36), rgba(22, 16, 15, .78));
}

.bgs-system-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    color: var(--bgs-gold-light);
    border: 1px solid rgba(216, 178, 90, .4);
    border-radius: 50%;
    background: rgba(0, 0, 0, .25);
    font-size: 21px;
}

.bgs-system-message h3 {
    color: #fff5d8;
    font-size: 17px;
}

.bgs-system-message p {
    margin-top: 5px !important;
    color: #b9c5bf;
    font-size: 13px;
}

.bgs-partial-notice {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    color: #d8cda8;
    border: 1px solid rgba(216, 178, 90, .18);
    border-radius: 8px;
    background: rgba(89, 67, 22, .18);
    font-size: 11px;
}

.bgs-partial-notice i {
    color: var(--bgs-gold-light);
}

.bgs-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 24px;
}

.bgs-stat {
    --stat-color: var(--bgs-gold);
    min-width: 0;
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 11px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 52%),
        var(--bgs-surface);
    box-shadow: inset 0 1px rgba(255, 255, 255, .025);
    transition: transform .2s ease, border-color .2s ease;
}

.bgs-stat:hover {
    border-color: color-mix(in srgb, var(--stat-color) 42%, transparent);
    transform: translateY(-2px);
}

.bgs-stat--jade { --stat-color: var(--bgs-jade); }
.bgs-stat--alliance { --stat-color: var(--bgs-alliance); }
.bgs-stat--horde { --stat-color: var(--bgs-horde); }
.bgs-stat--tied { --stat-color: #b2b8b4; }
.bgs-stat--class { --stat-color: var(--class, var(--bgs-jade)); }

.bgs-stat-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--stat-color);
    border: 1px solid color-mix(in srgb, var(--stat-color) 36%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--stat-color) 10%, rgba(0, 0, 0, .35));
    font-size: 16px;
}

.bgs-stat-icon img {
    width: 25px;
    height: 25px;
    border-radius: 5px;
}

.bgs-stat > div {
    min-width: 0;
}

.bgs-stat small,
.bgs-stat span {
    display: block;
    overflow: hidden;
    color: var(--bgs-muted);
    font-size: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bgs-stat small {
    color: #b4c2bb;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bgs-stat strong {
    display: block;
    margin: 2px 0 1px;
    overflow: hidden;
    color: #fff8e1;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    line-height: 1.15;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bgs-faction-panel,
.bgs-podium-section,
.bgs-ranking {
    margin: 0 24px 24px;
    border: 1px solid var(--bgs-line);
    border-radius: 12px;
    background: linear-gradient(155deg, rgba(255, 255, 255, .018), transparent 44%), var(--bgs-surface);
    box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 14px 32px rgba(0, 0, 0, .17);
}

.bgs-faction-panel,
.bgs-podium-section {
    padding: 22px;
}

.bgs-section-heading,
.bgs-ranking-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.bgs-section-heading h3,
.bgs-ranking-head h3 {
    margin-top: 2px !important;
    color: #f5edda;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
}

.bgs-period-chip,
.bgs-live-dot {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 29px;
    padding: 4px 10px;
    color: #b8c8bf;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: rgba(0, 0, 0, .2);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bgs-live-dot i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #65d28f;
    box-shadow: 0 0 0 4px rgba(101, 210, 143, .1);
}

.bgs-faction-numbers {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 22px;
}

.bgs-faction {
    display: flex;
    align-items: center;
    gap: 13px;
}

.bgs-faction img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 5px 7px rgba(0, 0, 0, .4));
}

.bgs-faction > div {
    display: flex;
    flex-direction: column;
}

.bgs-faction strong {
    color: #f5f8f6;
    font-size: 23px;
    line-height: 1.1;
}

.bgs-faction span {
    color: var(--bgs-muted);
    font-size: 10px;
}

.bgs-horde {
    justify-content: flex-end;
    text-align: right;
}

.bgs-alliance strong { color: #9dcdff; }
.bgs-horde strong { color: #ffaaa3; }

.bgs-versus {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--bgs-gold-light);
    border: 1px solid var(--bgs-line-strong);
    border-radius: 50%;
    background: #091611;
    font-size: 9px;
    font-weight: 900;
}

.bgs-balance {
    height: 9px;
    display: flex;
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 999px;
    background: #060d0b;
}

.bgs-balance span {
    min-width: 0;
    transition: width .5s ease;
}

.bgs-balance-alliance {
    background: linear-gradient(90deg, #255994, var(--bgs-alliance));
    box-shadow: 0 0 12px rgba(75, 149, 233, .5);
}

.bgs-balance-horde {
    margin-left: auto;
    background: linear-gradient(90deg, var(--bgs-horde), #8a302b);
    box-shadow: 0 0 12px rgba(216, 89, 79, .5);
}

.bgs-balance-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #71877d;
    font-size: 9px;
}

.bgs-podium-section {
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 120%, rgba(58, 149, 103, .16), transparent 45%),
        linear-gradient(155deg, rgba(255, 255, 255, .018), transparent 44%),
        var(--bgs-surface);
}

.bgs-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    align-items: end;
    margin-top: 33px;
}

.bgs-champion {
    --class: var(--bgs-jade);
    position: relative;
    min-width: 0;
    min-height: 220px;
    padding: 42px 16px 17px;
    text-align: center;
    border: 1px solid color-mix(in srgb, var(--class) 26%, rgba(255, 255, 255, .06));
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 26%, color-mix(in srgb, var(--class) 13%, transparent), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 32%),
        #0a1713;
    box-shadow: inset 0 1px rgba(255, 255, 255, .03);
}

.bgs-champion--1 {
    grid-column: 2;
    grid-row: 1;
    min-height: 244px;
    border-color: rgba(216, 178, 90, .48);
    background:
        radial-gradient(circle at 50% 26%, rgba(216, 178, 90, .18), transparent 40%),
        linear-gradient(180deg, rgba(216, 178, 90, .055), transparent 35%),
        #0b1914;
    box-shadow: inset 0 1px rgba(255, 255, 255, .045), 0 15px 28px rgba(0, 0, 0, .25);
}

.bgs-champion--2 { grid-column: 1; grid-row: 1; }
.bgs-champion--3 { grid-column: 3; grid-row: 1; }

.bgs-medal {
    position: absolute;
    top: -15px;
    left: 50%;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #e5edf0;
    border: 2px solid #91a0a5;
    border-radius: 50%;
    background: linear-gradient(145deg, #66757b, #26343a);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .35);
    font-size: 13px;
    font-weight: 900;
    transform: translateX(-50%);
}

.bgs-champion--1 .bgs-medal {
    width: 42px;
    height: 42px;
    top: -20px;
    color: #4e320d;
    border-color: #ffe7a1;
    background: linear-gradient(145deg, #ffedae, #b77925);
    font-size: 17px;
}

.bgs-champion--3 .bgs-medal {
    color: #ffe0be;
    border-color: #c88750;
    background: linear-gradient(145deg, #a66538, #49301f);
}

.bgs-portrait {
    position: relative;
    width: 63px;
    height: 63px;
    display: grid;
    place-items: center;
    margin: 0 auto 11px;
    border: 2px solid #6a7c73;
    border-radius: 50%;
    background: #07100d;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .3);
}

.bgs-champion--1 .bgs-portrait {
    width: 72px;
    height: 72px;
    border-color: var(--bgs-gold);
    box-shadow: 0 0 0 4px rgba(216, 178, 90, .08), 0 10px 20px rgba(0, 0, 0, .38);
}

.bgs-portrait > img {
    width: 38px;
    height: 38px;
    image-rendering: auto;
}

.bgs-class-badge {
    position: absolute;
    right: -4px;
    bottom: -3px;
    width: 25px;
    height: 25px;
    padding: 2px;
    border: 2px solid #0b1713;
    border-radius: 50%;
    background: #101d19;
}

.bgs-class-badge img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.bgs-champion-rank {
    color: var(--bgs-gold);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.bgs-champion h4 {
    margin-top: 1px !important;
    overflow: hidden;
    color: #fff7df;
    font-size: 16px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bgs-champion h4 a:hover {
    color: var(--bgs-gold-light);
}

.bgs-champion p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--class);
    font-size: 10px;
}

.bgs-champion p i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #52645b;
}

.bgs-champion-copy > strong {
    display: block;
    margin-top: 9px;
    color: #fff4ce;
    font-size: 24px;
    line-height: 1;
}

.bgs-champion-copy > small {
    color: var(--bgs-muted);
    font-size: 9px;
    text-transform: uppercase;
}

.bgs-ranking {
    overflow: hidden;
}

.bgs-ranking-head {
    padding: 21px 22px;
    border-bottom: 1px solid var(--bgs-line);
}

.bgs-ranking-head p {
    color: var(--bgs-muted);
    font-size: 10px;
}

.bgs-search-wrap {
    position: relative;
    width: min(100%, 260px);
}

.bgs-search-wrap > i {
    position: absolute;
    top: 15px;
    left: 13px;
    color: #6c8176;
    font-size: 12px;
}

.bgs-search-wrap input {
    width: 100%;
    height: 42px;
    padding: 0 13px 13px 35px;
    color: var(--bgs-text);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    outline: 0;
    background: rgba(0, 0, 0, .23);
    font-size: 12px;
}

.bgs-search-wrap input::placeholder {
    color: #62746b;
}

.bgs-search-wrap input:focus {
    border-color: rgba(216, 178, 90, .55);
    box-shadow: 0 0 0 3px rgba(216, 178, 90, .07);
}

.bgs-search-wrap > span {
    position: absolute;
    right: 10px;
    bottom: 2px;
    color: #687c72;
    font-size: 8px;
    pointer-events: none;
}

.bgs-table-wrap {
    overflow-x: auto;
}

.bgs-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    color: var(--bgs-text);
}

.bgs-table thead {
    background: rgba(0, 0, 0, .22);
}

.bgs-table th {
    padding: 11px 12px;
    color: #81958b;
    border-bottom: 1px solid var(--bgs-line);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .075em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.bgs-table td {
    padding: 11px 12px;
    color: #b8c7c0;
    border-bottom: 1px solid rgba(255, 255, 255, .045);
    font-size: 11px;
    vertical-align: middle;
}

.bgs-table tbody tr {
    background: transparent;
    transition: background .18s ease;
}

.bgs-table tbody tr:hover {
    background: rgba(73, 150, 108, .075);
}

.bgs-table tbody tr:last-child td {
    border-bottom: 0;
}

.bgs-rank {
    width: 32px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    color: #8ea298;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 6px;
    background: rgba(0, 0, 0, .16);
    font-size: 10px;
    font-weight: 900;
}

.bgs-rank--1 {
    color: #ffdc78;
    border-color: rgba(216, 178, 90, .45);
    background: rgba(216, 178, 90, .1);
}

.bgs-rank--2 {
    color: #d4e3e7;
    border-color: rgba(181, 204, 211, .34);
    background: rgba(181, 204, 211, .07);
}

.bgs-rank--3 {
    color: #e0a77b;
    border-color: rgba(190, 113, 64, .36);
    background: rgba(190, 113, 64, .08);
}

.bgs-player {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 135px;
}

.bgs-player-race {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border: 1px solid #50655b;
    border-radius: 50%;
    background: #07100d;
}

.bgs-player-race--alliance { border-color: rgba(75, 149, 233, .65); }
.bgs-player-race--horde { border-color: rgba(216, 89, 79, .65); }

.bgs-player-race img {
    width: 20px;
    height: 20px;
}

.bgs-player > span:last-child {
    min-width: 0;
}

.bgs-player strong,
.bgs-player small {
    display: block;
}

.bgs-player strong {
    max-width: 140px;
    overflow: hidden;
    color: #f1f5f2;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bgs-player:hover strong {
    color: var(--bgs-gold-light);
}

.bgs-player small {
    color: #697e73;
    font-size: 9px;
}

.bgs-faction-tag,
.bgs-class {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.bgs-faction-tag {
    min-height: 23px;
    padding: 3px 7px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
}

.bgs-faction-tag i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.bgs-faction-tag--alliance { color: #80baff; }
.bgs-faction-tag--horde { color: #ff8e85; }
.bgs-faction-tag--neutral { color: #aebdb5; }

.bgs-class {
    --class: #a7b4ae;
    color: var(--class);
    font-size: 10px;
}

.bgs-class img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.bgs-score-cell {
    min-width: 112px;
}

.bgs-score-cell > strong {
    color: #fff2c8;
    font-size: 13px;
}

.bgs-score-bar {
    width: 80px;
    height: 3px;
    margin-top: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
}

.bgs-score-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--bgs-jade-dark), var(--bgs-gold));
}

.bgs-share {
    color: #90ad9e;
    font-weight: 700;
}

.bgs-lifetime,
.bgs-last-seen {
    color: #82958b !important;
    white-space: nowrap;
}

.bgs-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.bgs-status::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: currentColor;
}

.bgs-status--online {
    color: #65d28f;
    background: rgba(101, 210, 143, .06);
}

.bgs-status--online::before {
    box-shadow: 0 0 0 4px rgba(101, 210, 143, .1);
}

.bgs-status--offline {
    color: #788c82;
    background: rgba(120, 140, 130, .05);
}

.bgs-empty,
.bgs-filter-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bgs-empty {
    min-height: 300px;
    padding: 38px 20px;
}

.bgs-empty-crest {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    color: var(--bgs-gold);
    border: 1px solid var(--bgs-line-strong);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 178, 90, .12), transparent 70%);
    font-size: 24px;
}

.bgs-empty h4 {
    margin-top: 14px !important;
    color: #f4edda;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
}

.bgs-empty p {
    margin-top: 5px !important;
    color: var(--bgs-muted);
    font-size: 12px;
}

.bgs-empty > span {
    margin-top: 9px;
    color: var(--bgs-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bgs-filter-empty {
    min-height: 180px;
    color: var(--bgs-muted);
}

.bgs-filter-empty i {
    margin-bottom: 8px;
    color: var(--bgs-gold);
    font-size: 24px;
}

.bgs-filter-empty strong {
    color: #e9f0ec;
    font-size: 14px;
}

.bgs-filter-empty span {
    font-size: 10px;
}

.bgs-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 0 24px 24px;
    color: #6f8278;
    font-size: 9px;
}

.bgs-footer p {
    max-width: 690px;
}

.bgs-footer i {
    margin-right: 5px;
    color: var(--bgs-gold);
}

.bgs-footer > span {
    flex: 0 0 auto;
    white-space: nowrap;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(9px);
    transition: opacity .35s ease, transform .35s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.bgs-champion--1.is-visible {
    transform: translateY(-12px);
}

.class-warrior { --class: #c79c6e; }
.class-paladin { --class: #f58cba; }
.class-hunter { --class: #abd473; }
.class-rogue { --class: #fff569; }
.class-priest { --class: #f3f3f3; }
.class-death-knight { --class: #c41f3b; }
.class-shaman { --class: #4a88ff; }
.class-mage { --class: #69ccf0; }
.class-warlock { --class: #9482c9; }
.class-monk { --class: #00ff96; }
.class-druid { --class: #ff7d0a; }
.class-unknown { --class: #9aa9a1; }

@keyframes bgs-pulse {
    0%, 100% { opacity: .35; transform: scale(.98); }
    50% { opacity: .8; transform: scale(1.04); }
}

@media (max-width: 1050px) {
    .bgs-hero {
        grid-template-columns: minmax(0, 1fr) 160px;
    }

    .bgs-crest {
        width: 150px;
    }

    .bgs-realm-control {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto minmax(180px, 320px) 1fr;
        gap: 12px;
        align-items: center;
        padding: 12px 15px;
    }

    .bgs-realm-control label,
    .bgs-realm-control small {
        margin: 0;
    }

    .bgs-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .bgs-hero {
        min-height: auto;
        padding: 30px 24px;
    }

    .bgs-periods {
        grid-template-columns: repeat(4, minmax(104px, 1fr));
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }

    .bgs-period {
        scroll-snap-align: start;
    }

    .bgs-periods::-webkit-scrollbar {
        height: 4px;
    }

    .bgs-periods::-webkit-scrollbar-thumb {
        background: rgba(216, 178, 90, .28);
        border-radius: 99px;
    }

    .bgs-podium {
        gap: 9px;
    }

    .bgs-champion {
        padding-left: 10px;
        padding-right: 10px;
    }

    .bgs-table {
        min-width: 850px;
    }
}

@media (max-width: 700px) {
    #battleground-scores {
        border-radius: 12px;
    }

    .bgs-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .bgs-hero-copy > p {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .bgs-season-line {
        justify-content: center;
    }

    .bgs-crest {
        grid-row: 1;
        width: 118px;
    }

    .bgs-realm-control {
        grid-column: auto;
        display: block;
        text-align: left;
    }

    .bgs-realm-control label {
        margin-bottom: 7px;
    }

    .bgs-realm-control small {
        margin-top: 7px;
    }

    .bgs-periods,
    .bgs-system-message,
    .bgs-partial-notice,
    .bgs-faction-panel,
    .bgs-podium-section,
    .bgs-ranking {
        margin-left: 13px;
        margin-right: 13px;
    }

    .bgs-periods {
        padding: 7px;
    }

    .bgs-period {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: 60px;
        text-align: center;
    }

    .bgs-period > i {
        grid-row: auto;
        font-size: 15px;
    }

    .bgs-period span {
        font-size: 11px;
    }

    .bgs-period small {
        display: none;
    }

    .bgs-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        padding: 18px 13px;
    }

    .bgs-stat {
        min-height: 100px;
        padding: 12px;
    }

    .bgs-stat-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .bgs-stat strong {
        font-size: 19px;
    }

    .bgs-faction-panel,
    .bgs-podium-section {
        padding: 17px;
    }

    .bgs-podium {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 28px;
    }

    .bgs-champion--1,
    .bgs-champion--2,
    .bgs-champion--3 {
        grid-column: 1;
        grid-row: auto;
        min-height: 205px;
    }

    .bgs-champion--1 { order: 1; }
    .bgs-champion--2 { order: 2; }
    .bgs-champion--3 { order: 3; }
    .bgs-champion--1.is-visible { transform: translateY(0); }

    .bgs-ranking-head {
        align-items: stretch;
        flex-direction: column;
    }

    .bgs-search-wrap {
        width: 100%;
    }

    .bgs-table-wrap {
        padding: 10px;
        overflow: visible;
    }

    .bgs-table,
    .bgs-table tbody,
    .bgs-table tr,
    .bgs-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .bgs-table thead {
        display: none;
    }

    .bgs-table tbody {
        display: grid;
        gap: 10px;
    }

    .bgs-table tbody tr {
        position: relative;
        padding: 8px 12px 10px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, .075);
        border-radius: 10px;
        background: linear-gradient(145deg, rgba(255, 255, 255, .025), transparent 50%), #0a1713;
    }

    .bgs-table tbody tr::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 3px;
        height: 100%;
        background: linear-gradient(var(--bgs-gold), var(--bgs-jade-dark));
        opacity: .55;
    }

    .bgs-table td {
        min-height: 37px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        padding: 7px 0;
        text-align: right;
        border-bottom: 1px solid rgba(255, 255, 255, .045);
    }

    .bgs-table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: #6e8378;
        font-size: 8px;
        font-weight: 800;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .bgs-table td:last-child {
        border-bottom: 0;
    }

    .bgs-player-cell {
        min-height: 52px !important;
    }

    .bgs-player {
        min-width: 0;
    }

    .bgs-player strong {
        max-width: 170px;
    }

    .bgs-score-cell {
        min-width: 0;
    }

    .bgs-score-cell > strong,
    .bgs-score-cell > .bgs-score-bar {
        margin-left: auto;
    }

    .bgs-score-cell {
        flex-wrap: wrap;
    }

    .bgs-score-cell::before {
        margin-right: auto;
    }

    .bgs-score-bar {
        width: 100%;
        flex-basis: 100%;
        order: 3;
    }

    .bgs-footer {
        flex-direction: column;
        gap: 7px;
        padding: 0 13px 18px;
    }
}

@media (max-width: 430px) {
    .bgs-hero {
        padding: 25px 16px;
    }

    .bgs-hero h2 {
        font-size: 35px;
    }

    .bgs-season-line {
        align-items: stretch;
        flex-direction: column;
    }

    .bgs-season-line span {
        justify-content: center;
    }

    .bgs-summary {
        grid-template-columns: 1fr;
    }

    .bgs-stat {
        min-height: 82px;
    }

    .bgs-faction-numbers {
        grid-template-columns: 1fr auto 1fr;
        gap: 8px;
    }

    .bgs-faction {
        align-items: center;
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .bgs-horde {
        flex-direction: column-reverse;
    }

    .bgs-faction img {
        width: 38px;
        height: 38px;
    }

    .bgs-section-heading h3,
    .bgs-ranking-head h3 {
        font-size: 19px;
    }

    .bgs-period-chip,
    .bgs-live-dot {
        display: none;
    }

    .bgs-system-message {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

    #battleground-scores [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
