/* DPL: latest three tournament champions and a single switchable match panel.
   Scoped to the homepage. Existing /matches/ styles are unchanged. */
.home-page .home-recent-champions {
    margin-top: 12px;
    min-width: 0;
    flex: 0 0 auto;
}
.home-page .home-recent-champions-heading {
    margin: 0 0 8px;
    padding: 0 2px;
    color: #c48aff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 1.15px;
    text-transform: uppercase;
}
.home-page .home-recent-champions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.home-page .home-recent-champion.home-champion-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 9px;
    min-width: 0;
    min-height: 126px;
    margin: 0;
    padding: 15px 18px 13px;
    border-color: rgba(164, 91, 242, .62);
    background-color: #110d1e;
    background-size: cover;
    background-position: center;
}
.home-page .home-recent-champion .home-champion-main,
.home-page .home-recent-champion .home-recent-champion-score {
    position: relative;
    z-index: 1;
    min-width: 0;
}
.home-page .home-recent-champion .home-champion-kicker {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.4;
}
.home-page .home-recent-champion button.home-champion-team {
    margin-top: 10px;
    gap: 11px;
    width: 100%;
}
.home-page .home-recent-champion button.home-champion-team .group-v2-team-logo,
.home-page .home-recent-champion button.home-champion-team .home-champion-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 8px;
}
.home-page .home-recent-champion button.home-champion-team .home-champion-team-copy strong {
    font-size: clamp(15px, 1.3vw, 20px);
    overflow-wrap: anywhere;
}
.home-page .home-recent-champion button.home-champion-team .home-champion-team-copy > span {
    margin-top: 3px;
    font-size: 11px;
}
.home-page .home-recent-champion-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 6px;
    border-top: 1px solid rgba(163, 105, 238, .16);
    color: #af9ec2;
    font-size: 11px;
}
.home-page .home-recent-champion-score strong {
    color: #cdb4f9;
    font-size: 14px;
    white-space: nowrap;
}
/* One full-width panel where the previous side-by-side panels were. */
.home-page .home-match-columns.home-match-tabs-section {
    display: block;
    width: 100%;
    flex: 0 0 auto;
    min-height: 0;
    margin: 12px 0 26px;
}
.home-page .home-match-tabs-section > .home-panel.home-match-tabbed-panel {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    border-color: rgba(54, 151, 233, .66);
    background: #071827;
}
.home-page .home-match-tabs-section > .home-panel.home-match-tabbed-panel.is-results {
    border-color: rgba(40, 201, 130, .67);
    background: #061d17;
    box-shadow: 0 0 17px rgba(22, 204, 121, .14);
}
.home-page .home-match-tabbed-panel .home-match-tabbed-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    min-height: 51px;
    padding: 0 12px;
}
.home-page .home-match-tabbed-panel .home-match-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 5px 0;
}
.home-page .home-match-tabbed-panel .home-match-tab {
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #99a7b8;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}
.home-page .home-match-tabbed-panel .home-match-tab.is-active {
    border-color: rgba(75, 181, 255, .31);
    background: rgba(30, 126, 194, .18);
    color: #56c0ff;
}
.home-page .home-match-tabbed-panel.is-results .home-match-tab.is-active {
    border-color: rgba(57, 220, 141, .33);
    background: rgba(10, 135, 88, .18);
    color: #4be89e;
}
.home-page .home-match-tabbed-panel .home-match-tab:focus-visible {
    outline: 2px solid #f2ca70;
    outline-offset: 2px;
}
.home-page .home-match-tabbed-panel .home-match-tab-content {
    display: block;
    height: 250px;
    min-height: 200px;
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg, rgba(8, 32, 54, .92), #061320);
}
.home-page .home-match-tabbed-panel.is-results .home-match-tab-content {
    background: linear-gradient(180deg, #082c21, #051812);
}
.home-page .home-match-tabbed-panel .home-match-tab-content[hidden] {
    display: none !important;
}
.home-page .home-match-tabbed-panel .home-empty-list {
    min-height: 245px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.home-page .home-match-tabbed-panel .home-match-row,
.home-page .home-match-tabbed-panel .home-result-row {
    min-height: 75px;
}
.home-page .home-match-tabbed-panel.is-results .home-result-score strong {
    color: #49e69b;
}
@media (max-width: 940px) {
    .home-page .home-recent-champions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 620px) {
    .home-page .home-recent-champions-grid {
        grid-template-columns: 1fr;
    }
    .home-page .home-recent-champion.home-champion-card {
        min-height: 116px;
    }
    .home-page .home-match-tabbed-panel .home-match-tabbed-header {
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px 12px;
    }
    .home-page .home-match-tabbed-panel .home-match-tab {
        padding: 8px 9px;
        font-size: 11px;
    }
    .home-page .home-match-tabbed-panel .home-match-tab-content {
        height: 250px;
    }
    .home-page .home-match-tabbed-panel .home-match-row,
    .home-page .home-match-tabbed-panel .home-result-row {
        flex: 0 0 auto;
        min-height: 83px;
    }
}
/* Override older viewport-filling dashboard rules, which targeted the two-panel grid. */
@media (min-width: 1101px) and (min-height: 820px) {
    .home-page main.home-shell:has(.home-recent-champions) .home-match-columns.home-match-tabs-section {
        display: block;
        flex: 0 0 auto;
        min-height: 0;
    }
}
@media (max-width: 760px) {
    .home-page main.home-shell:has(.home-recent-champions) .home-match-columns.home-match-tabs-section {
        display: block;
        flex: 0 0 auto;
        min-height: 0;
        padding: 0;
    }
}
/* Explicit green state must outrank the legacy blue :first-child panel selectors. */
.home-page .home-match-columns.home-match-tabs-section > .home-panel.home-match-tabbed-panel.is-results {
    border-color: rgba(38, 209, 126, .67);
}
.home-page .home-match-columns.home-match-tabs-section > .home-panel.home-match-tabbed-panel.is-results .home-match-tabbed-header {
    border-bottom-color: rgba(47, 211, 132, .25);
    background: linear-gradient(90deg, #0b4a35, #081f1a 66%, #071713);
}
.home-page .home-match-columns.home-match-tabs-section > .home-panel.home-match-tabbed-panel.is-results .home-match-tab-content {
    background: linear-gradient(180deg, #082c21, #051812);
}
.home-page .home-match-columns.home-match-tabs-section > .home-panel.home-match-tabbed-panel.is-results .home-panel-link {
    color: #71e7ad;
    border-color: rgba(42, 195, 119, .29);
    background: rgba(6, 43, 29, .68);
}
