/**
 * Games Board — [scoreboard_games] styles
 *
 * @version 1.7.2
 * CHANGELOG
 * 1.7.2 (2026-10-30) - Scores use bundled DSEG7 Classic.
 * 1.2.0 (2026-10-28) - New. Tokens are scoped to .bsb-games-board so they
 *                      never leak into your theme (Blog Over or any other).
 */

@font-face {
    font-family: 'DSEG7 Classic';
    src: url('../fonts/DSEG7Classic-Bold.woff2') format('woff2');
    font-weight: 400 900;
    font-display: swap;
}

.bsb-games-board {
    --bsb-bg:      #111827;
    --bsb-surface: #1E293B;
    --bsb-border:  #334155;
    --bsb-green:   #178508;
    --bsb-led:     #3fd42a;
    --bsb-amber:   #FFB000;
    --bsb-muted:   #94a3b8;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bsb-bg);
    border: 1px solid var(--bsb-border);
    border-top: 4px solid var(--bsb-green);
    border-radius: 12px;
    padding: 20px;
    margin: 0 0 24px;
    color: #fff;
}

.bsb-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.bsb-games-board .bsb-board-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}
.bsb-board-live {
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bsb-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.bsb-board-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bsb-amber);
    animation: bsbBoardPulse 2s infinite;
}
@keyframes bsbBoardPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.bsb-board-grid {
    display: grid;
    grid-template-columns: repeat(var(--bsb-cols, 3), minmax(0, 1fr));
    gap: 12px;
}
@media (max-width: 900px) { .bsb-board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bsb-board-grid { grid-template-columns: 1fr; } }

.bsb-games-board a.bsb-board-card {
    display: block;
    background: var(--bsb-surface);
    border: 1px solid var(--bsb-border);
    border-radius: 10px;
    padding: 14px 16px;
    color: #fff;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.bsb-games-board a.bsb-board-card:hover {
    border-color: var(--bsb-green);
    transform: translateY(-2px);
    color: #fff;
}
.bsb-games-board a.bsb-board-card.is-live { border-left: 3px solid var(--bsb-green); }
.bsb-board-card.is-pregame .bsb-board-score { color: var(--bsb-border); text-shadow: none; }

.bsb-board-status {
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bsb-muted);
    margin-bottom: 10px;
}
.bsb-board-card.is-live .bsb-board-status { color: var(--bsb-led); }

.bsb-board-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0;
}
.bsb-board-team {
    font-weight: 600;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bsb-board-score {
    font-family: 'DSEG7 Classic', 'DM Mono', ui-monospace, monospace;
    font-size: 22px;
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
    min-width: 2.2ch;
    text-align: right;
    color: var(--bsb-led);
    text-shadow: 0 0 8px rgba(23, 133, 8, 0.8);
}
.bsb-board-card.is-completed .bsb-board-score { color: #fff; text-shadow: none; }

.bsb-board-meta {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--bsb-border);
    font-size: 12px;
    color: var(--bsb-muted);
}

.bsb-flash { animation: bsbBoardFlash 0.8s ease; }
@keyframes bsbBoardFlash {
    0%   { color: var(--bsb-amber); transform: scale(1.25); }
    100% { transform: scale(1); }
}

.bsb-board-empty { color: var(--bsb-muted); margin: 0; }

.bsb-board-powered {
    margin-top: 14px;
    text-align: right;
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: 11px;
    color: var(--bsb-muted);
}
.bsb-board-powered span { color: #fff; font-family: 'Inter', sans-serif; font-weight: 600; }
.bsb-board-powered b { color: var(--bsb-green); }
