.muted { color: #7f8c8d; font-size: 0.85em; }
.section-title { color: var(--primary); margin: 32px 0 10px; font-size: 1.2rem; }
.section-title.first { margin-top: 24px; }
.section-title .vs { color: #2c3e50; font-family: "Courier New", ui-monospace, monospace; }

.picker-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.picker-row label { font-weight: bold; color: var(--primary); }
#weekSelect { max-width: 260px; }

.week-meta { color: #7f8c8d; font-size: 0.9rem; margin: 14px 0 0; }

/* ==================== SCOREBOARD ==================== */

/* --cols is set by the page so there are always three rows of games (six games = two across) */
.scoreboard {
    display: grid;
    grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
    gap: 14px;
    margin: 12px 0 8px;
}
@media (max-width: 560px) {
    .scoreboard { grid-template-columns: 1fr; }
}

.game {
    display: block;
    width: 100%;
    box-sizing: border-box;
    color: #e8edf2;
    cursor: pointer;
    background: linear-gradient(180deg, #1c2733 0%, #0d141b 100%);
    border: 3px solid #4a5b6e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.28), inset 0 0 0 2px #0a0f14;
    transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.game:hover { transform: translateY(-2px); border-color: #8aa4bf; }
.game:focus-visible { outline: 3px solid #f5b301; outline-offset: 2px; }
.game.selected {
    border-color: #f5b301;
    box-shadow: 0 0 0 3px rgba(245,179,1,0.4), 0 4px 10px rgba(0,0,0,0.28), inset 0 0 0 2px #0a0f14;
}

.sb-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: #0a0f14;
    border-bottom: 2px solid #c0392b;     /* the red line across the ice */
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.sb-status { font-weight: 700; }
.sb-status.final { color: #ffb000; }
.sb-status.live { color: #ff5a4d; }
.sb-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5a4d;
    margin-right: 6px;
    animation: sbPulse 1.4s ease-in-out infinite;
}
@keyframes sbPulse { 50% { opacity: 0.2; } }
.sb-hint { color: #7f93a8; }

.sb-row {
    display: grid;
    grid-template-columns: 16px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
}
.sb-row + .sb-row { border-top: 1px solid #2a3846; }
.sb-mark { color: #ff5a4d; font-size: 0.7rem; }
.sb-name {
    min-width: 0;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
    overflow-wrap: anywhere;               /* long team names wrap onto a second line instead of being cut off */
    color: #9fb0c1;
}
.sb-row.lead .sb-name { color: #ffffff; }

/* the scores glow like a lit-up arena display: bright amber for the leader, dim for the trailing team */
.sb-score {
    font-family: "Courier New", ui-monospace, monospace;
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: 0.06em;
    min-width: 3.9em;
    padding: 0 8px;
    text-align: right;
    color: #8f6511;
    background: #07090c;
    border: 1px solid #2a3846;
    border-radius: 4px;
}
.sb-row.lead .sb-score {
    color: #ffb000;
    text-shadow: 0 0 8px rgba(255,176,0,0.75);
}

.back-link {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 12px;
    margin-top: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
}
.back-link:hover { background: #eef3f7; }

/* ==================== CHARTS ==================== */

.mc-scroll { overflow-x: auto; margin: 6px 0; }
.mc-chart { display: block; width: 100%; min-width: 640px; height: auto; }

.mc-grid { stroke: #e6eaee; stroke-width: 1; }
.mc-axis { font-size: 12px; fill: #7f8c8d; }
.mc-axis.dim { fill: #c3cad2; }
.mc-legend { font-size: 13px; font-weight: 600; fill: #2c3e50; }
.mc-pos { font-size: 14px; font-weight: 700; fill: #2c3e50; }
.mc-total { font-size: 12px; font-weight: 700; fill: #2c3e50; }
.mc-label { font-size: 12px; font-weight: 600; }
.mc-seg { stroke: #fff; stroke-width: 1; }
.mc-seg-label { font-size: 11px; font-weight: 600; fill: #fff; pointer-events: none; }
.mc-line { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
