/* Score emphasis only: standings, statistics, brackets, and links remain intact. */
.game-card, .game-panel { container-type: inline-size; }
.team-score, .panel-team-score {
    font-variant-numeric: tabular-nums;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.055em;
    color: #fff5cf !important;
    -webkit-text-fill-color: currentColor;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    text-shadow: 0 3px 0 #0b1830, 0 0 30px #f6c65b40 !important;
    background: linear-gradient(160deg, #23354d, #0b1427);
    border: 1px solid #eac56a55;
    border-radius: 18px;
    padding: 12px clamp(10px, 3cqi, 24px);
    margin: 14px auto !important;
    width: fit-content;
    min-width: 1.4em;
    box-sizing: content-box;
    box-shadow: inset 0 1px 0 #ffffff15, 0 8px 24px #0003;
}
.team-score { font-size: clamp(2.5rem, 12cqi, 4.6rem) !important; }
.panel-team-score { font-size: clamp(2.6rem, 15cqi, 7.5rem) !important; }
.score-just-changed {
    border-color: #78f4bb;
    color: #b7ffda !important;
    box-shadow: 0 0 30px #5ee9a838, inset 0 0 18px #5ee9a815;
}
.game-just-scored {
    position: relative;
    outline: 4px solid #ffe082;
    outline-offset: 3px;
    box-shadow: 0 0 38px #ffc94d99;
    z-index: 2;
}
.game-scored-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 20;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid #fff3bc;
    background: linear-gradient(115deg, #ffe082, #ffb938);
    color: #211600;
    box-shadow: 0 8px 26px #0008;
    text-align: center;
    font: 900 clamp(14px, 4cqi, 22px)/1.3 system-ui, sans-serif;
    pointer-events: none;
    animation: game-scored-arrive 450ms cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes game-scored-arrive {
    from { opacity: 0; transform: translateY(-12px) scale(.85); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.score-game-clock {
    color: #c7f0ff;
    background: #081726b3;
    border: 1px solid #8bdcff38;
    border-radius: 9px;
    padding: 7px 12px;
    margin: 8px auto;
    width: fit-content;
    max-width: 100%;
    text-align: center;
    font: 700 17px/1.3 system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
}
.score-celebration-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    color: #cbd5e1;
    font: 500 13px/1.5 system-ui, sans-serif;
}
.score-celebration-controls > span { margin-right: 6px; }
.score-celebration-controls button {
    background: #15253d;
    color: #f8ecd0;
    border: 1px solid #d6b86a55;
    border-radius: 999px;
    padding: 9px 16px;
    font: inherit;
    cursor: pointer;
}
.score-celebration-controls button:hover { background: #263b56; }
.score-celebration-controls button:focus-visible { outline: 3px solid #80efc0; outline-offset: 3px; }
.score-celebration-controls button[aria-pressed="true"] { color: #adffd3; border-color: #66dba4; }
.score-notifications {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 10000;
    display: grid;
    gap: 10px;
    max-width: min(440px, calc(100vw - 32px));
    pointer-events: none;
}
.score-toast {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border: 1px solid #86e9bc88;
    border-radius: 20px;
    background: linear-gradient(135deg, #163d36f5, #101d30fa);
    color: #f4fff8;
    box-shadow: 0 12px 42px #0006, 0 0 28px #70e1ac20;
    font: 650 16px/1.5 system-ui, sans-serif;
    animation: score-toast-arrive 420ms cubic-bezier(.2,.85,.2,1.15) both;
}
.score-toast-lead { border-color: #edcb72; background: linear-gradient(135deg, #45351bf5, #17243afa); }
.score-toast-final { border-color: #a5b4fc; background: linear-gradient(135deg, #30295af5, #17243afa); }
.score-charm {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    height: 44px;
    font-size: 28px;
    border-radius: 14px;
    background: #ffffff0d;
    animation: score-charm-pop 750ms ease-out both;
}
@keyframes score-toast-arrive {
    from { opacity: 0; transform: translateY(24px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes score-charm-pop {
    0% { transform: scale(.5) rotate(-20deg); }
    55% { transform: scale(1.2) rotate(8deg); }
    100% { transform: scale(1) rotate(0); }
}
@media (max-width: 600px) {
    .team-score, .panel-team-score { padding: 10px 15px; }
    .score-notifications { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .score-toast, .score-charm, .game-scored-ribbon { animation: none; }
}

/* Five or six selected games use a scoreboard wall; all original data stays accessible. */
.game-panels.six-game-layout {
    position: relative;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
    height: var(--six-game-height, 65vh);
    padding: 0 12px;
    margin-bottom: 36px;
}
.six-game-layout > .game-panel { min-width: 0; min-height: 0; padding: 12px; }
.six-game-layout .panel-header { padding: 0; margin: 0; }
.six-game-layout .panel-status { font-size: 12px; padding: 3px 8px; margin: 0 0 5px; }
.six-game-layout .panel-matchup { margin: 6px 0; gap: 4px; }
.six-game-layout .panel-team { min-width: 0; gap: 2px; }
.six-game-layout .panel-team-logo { width: 28px; height: 28px; }
.six-game-layout .panel-team-name { font-size: 13px; line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.six-game-layout .panel-team-record,
.six-game-layout .panel-team-division,
.six-game-layout .panel-team-seed { font-size: 10px; line-height: 1.15; }
.six-game-layout .panel-team-score {
    font-size: clamp(1.9rem, 12cqi, 3.4rem) !important;
    margin: 6px auto !important;
    padding: 5px 12px;
    border-radius: 12px;
}
.six-game-layout .panel-vs { font-size: 13px; margin: 0 3px; }
.six-game-layout .score-game-clock { font-size: 14px; padding: 4px 9px; margin: 4px auto; }
.six-game-details { border-top: 1px solid #ffffff20; margin-top: 6px; padding-top: 6px; }
.six-game-details summary { cursor: pointer; color: #e5d5a2; font: 550 12px/1.4 system-ui, sans-serif; }
.six-game-details summary:focus-visible { outline: 2px solid #80efc0; outline-offset: 2px; }
.six-game-layout > .last-updated { position: absolute; bottom: -28px; left: 12px; right: 12px; font-size: 11px; }
@media (max-width: 700px) {
    .game-panels.six-game-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(3, minmax(250px, auto));
        height: auto;
    }
}
@media (max-width: 420px) {
    .game-panels.six-game-layout { grid-template-columns: 1fr; grid-template-rows: none; }
}
