/* „Um wos geht's?“ (STAKES). Theme-Farben über Variablen (PBASE-02);
   FCB-Rot für K.-o.-Spiel, Finale, Spitzenspiel und die Bayern-Zeile. */

.stakes {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: calc(100% - 60px);
    min-height: 0;
}

.stakes-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.stakes-kicker b {
    color: var(--text-main);
}

.stakes-competition {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.stakes-competition.is-light {
    filter: brightness(0) invert(1);
}

.stakes-big {
    color: var(--fcb-red, #DC052D);
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.stakes-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stakes-label {
    padding: 6px 14px;
    border: 1px solid var(--accent-border, rgba(255, 255, 255, .3));
    color: var(--text-main);
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.stakes-label.is-strong {
    border-color: var(--fcb-red, #DC052D);
    background: var(--fcb-red, #DC052D);
}

.stakes-table {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stakes-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px 56px 56px;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, .03);
    color: var(--text-muted);
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.stakes-row .stakes-rank {
    color: var(--text-main);
    font-weight: 900;
    text-align: left;
}

.stakes-row .stakes-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-align: left;
}

.stakes-row .stakes-team img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.stakes-row .stakes-team b {
    overflow: hidden;
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 24px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stakes-row strong {
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 26px;
}

.stakes-row.is-bayern {
    border-left: 4px solid var(--fcb-red, #DC052D);
    background: rgba(220, 5, 45, .16);
}

.stakes-row.is-opponent {
    border-left: 4px solid rgba(255, 255, 255, .5);
}

.stakes-row.is-gap {
    display: block;
    padding: 0 10px;
    background: none;
    text-align: center;
}

.stakes-note {
    color: var(--text-muted);
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.stakes-ranges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}

.stakes-ranges div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 12px;
    border-left: 4px solid var(--card-border, rgba(255, 255, 255, .2));
    background: rgba(255, 255, 255, .03);
}

.stakes-ranges .is-win {
    border-left-color: var(--fcb-red, #DC052D);
}

.stakes-ranges span {
    color: var(--text-muted);
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.stakes-ranges b {
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 26px;
}

.stakes-course {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stakes-course strong {
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 72px;
    line-height: 1;
}

.stakes-course span {
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 30px;
}

.stakes-facts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: auto 0 0;
    padding: 0;
    list-style: none;
}

.stakes-facts li,
.stakes-line {
    margin: 0;
    color: var(--text-main);
    font-family: Arial, sans-serif;
    font-size: 24px;
    line-height: 1.3;
}

.stakes-facts li {
    padding: 8px 12px;
    background: rgba(255, 255, 255, .03);
}

.stakes-need {
    margin: 0;
    padding: 14px 16px;
    border-left: 4px solid var(--fcb-red, #DC052D);
    background: rgba(220, 5, 45, .14);
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1.2;
}

.stakes-outlook {
    margin: auto 0 0;
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 32px;
    line-height: 1.2;
}

.is-knockout .stakes-line,
.is-final .stakes-line {
    color: var(--text-muted);
}
