/* What-if page: a region's bracket as four columns of games, each game two stacked team buttons. */
.whatif-region, .whatif-finalfour {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
}
.whatif-round {
    display: flex;
    flex-direction: column;
    min-width: 11rem;
}
.whatif-round-name {
    font-weight: 600;
    font-size: .85rem;
    margin-bottom: .25rem;
}
.whatif-round-games {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex: 1;
    gap: .5rem;
}
.whatif-game {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid var(--bs-border-color);
    border-radius: .375rem;
    padding: 2px;
}
.whatif-team {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid transparent;
}
.whatif-seed {
    display: inline-block;
    min-width: 1.4rem;
    color: var(--bs-secondary-color);
    font-size: .8em;
}
.whatif-open:hover { border-color: var(--app-accent); }
.whatif-won {
    background: color-mix(in srgb, var(--app-accent) 22%, transparent);
    border-color: var(--app-accent);
    font-weight: 600;
}
.whatif-lost { opacity: .5; text-decoration: line-through; }
.whatif-empty { color: var(--bs-secondary-color); font-style: italic; }
/* Real results: shown, but not clickable. */
.whatif-team.whatif-played:disabled { opacity: 1; }
.whatif-team.whatif-played.whatif-won { background: var(--bs-secondary-bg); border-color: var(--bs-border-color); }
.whatif-team.whatif-played.whatif-lost { opacity: .5; }
.whatif-delta { font-weight: normal; font-size: .8em; }

/* Full bracket: two regions down each side, flowing into the Final Four and championship in the middle. */
.whatif-full-pane { overflow-x: auto; }
.whatif-full {
    display: flex;
    align-items: stretch;
    gap: .5rem;
    min-width: 76rem;
}
.whatif-full-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1 1 0;
    min-width: 0;
}
.whatif-full-region-name {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .8rem;
    color: var(--app-accent);
}
.whatif-full-region.whatif-right .whatif-full-region-name { text-align: right; }
.whatif-full .whatif-region { gap: .3rem; overflow: visible; }
.whatif-full-region.whatif-right .whatif-region { flex-direction: row-reverse; }
.whatif-full-region.whatif-right .whatif-round-name { text-align: right; }
.whatif-full .whatif-round { min-width: 0; flex: 1 1 0; }
.whatif-full .whatif-round-name { font-size: .7rem; font-weight: 600; color: var(--bs-secondary-color); }
.whatif-full .whatif-round-games { gap: .25rem; }
.whatif-full .whatif-game { padding: 1px; gap: 1px; }
.whatif-full .whatif-team {
    font-size: .72rem;
    line-height: 1.15;
    padding: 1px 4px;
}
.whatif-full .whatif-team .team-logo { width: 14px; height: 14px; }
.whatif-full .whatif-seed { min-width: 1.1rem; }
.whatif-full-middle {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex: 0 0 auto;
}
.whatif-full-middle > .whatif-round { min-width: 8.5rem; flex: 0 0 auto; }
.whatif-full-middle .whatif-finalfour { flex-direction: column; }
.whatif-full-final .whatif-round-name,
.whatif-full-semi .whatif-round-name { text-align: center; }
.whatif-full-final .whatif-game { border-color: var(--app-accent); }
.whatif-champion {
    margin-top: .4rem;
    text-align: center;
    font-weight: 700;
}
