/* ==========================================================================
   Event themes (v2, Nov 2026: all 14 themes)
   Loaded after game.css. Restyles only the frame around the board:
   the score area, a full-width icon strip (Fun), stickers on the score
   area's corners (Fun), small icons after winner names (Fun), the board's
   corner icon (Fun) and faint icons in the side margins of very wide
   screens (Fun). The squares, team bars and period colors are not changed;
   the quarter chips use deeper shades of the same period colors.
   Screen only, so the print sheet is unaffected.
   ========================================================================== */
@media screen {

/* ---------- Score area: shared ---------- */
body.evt-theme .scoreboard-hero {
    padding: 20px 24px;
    border-radius: 20px;
}
body.evt-theme .scoreboard-hero::before { display: none; }

/* Badge row (Clean and Fun) */
.evt-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.evt-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 999px;
    padding: 8px 15px;
    white-space: nowrap;
}
.evt-badge .evt-badge-icon { width: 17px; height: 17px; }

/* Quarter chips: glass when not played yet, solid deeper period color when won */
body.evt-theme .scoreboard-hero .quarter-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 12px;
}
body.evt-theme .scoreboard-hero .quarter-box .quarter-label { color: rgba(255, 255, 255, 0.85); opacity: 1; }
body.evt-theme .scoreboard-hero .quarter-box .quarter-result { color: #ffffff; }
body.evt-theme .scoreboard-hero .quarter-box.winner { border-color: transparent; color: #ffffff; }
body.evt-theme .scoreboard-hero .quarter-box.winner .quarter-result { opacity: 0.9; }
body.evt-theme .scoreboard-hero .quarter-box.winner.q1    { background: #15803d; }
body.evt-theme .scoreboard-hero .quarter-box.winner.q2    { background: #1d4ed8; }
body.evt-theme .scoreboard-hero .quarter-box.winner.q3    { background: #c2410c; }
body.evt-theme .scoreboard-hero .quarter-box.winner.q4    { background: #7e22ce; }
body.evt-theme .scoreboard-hero .quarter-box.winner.final { background: #a16207; }
body.evt-theme .scoreboard-hero .quarter-box.live-holding {
    background: rgba(245, 158, 11, 0.22);
    border: 2px solid #f59e0b;
}
body.evt-theme .scoreboard-hero .game-state.scheduled {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}
body.evt-theme .scoreboard-hero .game-time,
body.evt-theme .scoreboard-hero .game-info { color: rgba(255, 255, 255, 0.8); }

/* Small icon after a winner's name (Fun) */
.evt-mini { display: inline-flex; vertical-align: -2px; margin-left: 4px; }
.evt-mini .evt-svg { width: 13px; height: 13px; }

/* Desktop and tablets: badge on top, then teams + score and the quarter
   chips side by side in one row, TV/venue as a small line underneath */
@media (min-width: 900px) {
    body.evt-theme .scoreboard-content {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        column-gap: 36px;
        row-gap: 10px;
    }
    body.evt-theme .evt-badge-row { flex: 0 0 100%; margin-bottom: 2px; }
    body.evt-theme .matchup {
        flex: 1 1 400px;
        margin-bottom: 0;
        gap: 20px;
        justify-content: space-between;
    }
    body.evt-theme .team { max-width: none; }
    body.evt-theme .score-num { font-size: 3.4rem; }
    body.evt-theme .quarter-scores {
        flex: 1 1 480px;
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
        gap: 8px;
    }
    body.evt-theme .scoreboard-hero .quarter-box { padding: 10px 12px; }
    body.evt-theme .game-info {
        order: 5;
        flex: 0 0 100%;
        font-size: 0.78rem;
        gap: 16px;
    }
}

/* ---------- Classic ---------- */
body.evt-classic.evt-clean .scoreboard-hero { background: linear-gradient(90deg, var(--team1) 0 50%, var(--team2) 50% 100%) top / 100% 5px no-repeat, repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 2px, transparent 2px 26px) bottom / 100% 10px no-repeat, #0f172a; }
body.evt-classic.evt-fun .scoreboard-hero { background: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.6px) 0 0 / 6px 6px, radial-gradient(ellipse 60% 70% at 50% 0%, rgba(251,191,36,.16), transparent 70%), #05080f; box-shadow: inset 0 0 0 2px #1e293b; }
body.evt-classic .evt-strip { background: #020617; }
body.evt-classic.evt-clean .evt-badge { background: #1e293b; color: #cbd5e1; }
body.evt-classic.evt-fun .evt-badge { background: #fbbf24; color: #05080f; }
body.evt-classic.evt-fun { background: #eef2f7; }
body.evt-classic.evt-fun .scoreboard-hero .score-num { color: #fbbf24; text-shadow: 0 0 14px rgba(251,191,36,.6); }
body.evt-classic.evt-fun .scoreboard-hero::after { content: ''; position: absolute; left: 12px; right: 12px; top: 5px; bottom: 5px; pointer-events: none; z-index: 0; background: radial-gradient(circle, #fde68a 0 2.2px, rgba(253,230,138,.35) 3.2px, transparent 4.5px) left top / 16px 10px repeat-x, radial-gradient(circle, #fde68a 0 2.2px, rgba(253,230,138,.35) 3.2px, transparent 4.5px) left bottom / 16px 10px repeat-x; }
body.evt-classic.evt-fun .scoreboard-hero { padding-top: 26px; padding-bottom: 26px; }
/* ---------- Football Sunday ---------- */
body.evt-sunday.evt-clean .scoreboard-hero { background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 2px, transparent 2px 38px), #14532d; }
body.evt-sunday.evt-fun .scoreboard-hero { background: repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 2px, transparent 2px 34px), linear-gradient(180deg, #15803d, #14532d); }
body.evt-sunday .evt-strip { background: #052e16; }
body.evt-sunday.evt-clean .evt-badge { background: #f0fdf4; color: #14532d; }
body.evt-sunday.evt-fun .evt-badge { background: #facc15; color: #14532d; }
body.evt-sunday.evt-fun { background: #ecfdf3; }
/* ---------- Monday Night ---------- */
body.evt-monday.evt-clean .scoreboard-hero { background: radial-gradient(circle at 90% 24%, #fef3c7 0 10px, rgba(254,243,199,.22) 11px, transparent 28px), #111c44; }
body.evt-monday.evt-fun .scoreboard-hero { background: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1.6px) 0 0 / 26px 22px, radial-gradient(rgba(255,255,255,.3) 1px, transparent 1.6px) 13px 11px / 26px 22px, radial-gradient(ellipse 80% 50% at 50% 125%, rgba(56,189,248,.4), transparent 70%), linear-gradient(180deg, #0b1030, #1e1b4b); }
body.evt-monday .evt-strip { background: #0b1030; }
body.evt-monday.evt-clean .evt-badge { background: #fef3c7; color: #111c44; }
body.evt-monday.evt-fun .evt-badge { background: #fde68a; color: #0b1030; }
body.evt-monday.evt-fun { background: #eef2ff; }
body.evt-monday.evt-fun .scoreboard-hero .score-num { color: #fef3c7; text-shadow: 0 0 12px rgba(254,243,199,.5); }
/* ---------- Thursday Night ---------- */
body.evt-thursday.evt-clean .scoreboard-hero { background: linear-gradient(115deg, transparent 62%, rgba(168,85,247,.28) 62% 66%, transparent 66%), #1e0b3a; }
body.evt-thursday.evt-fun .scoreboard-hero { background: linear-gradient(115deg, transparent 54%, rgba(250,204,21,.2) 54% 57%, transparent 57% 61%, rgba(236,72,153,.24) 61% 64%, transparent 64%), radial-gradient(ellipse 60% 90% at 0% 0%, rgba(168,85,247,.5), transparent 62%), #14062b; box-shadow: inset 0 0 0 2px #a855f7; }
body.evt-thursday .evt-strip { background: #14062b; }
body.evt-thursday.evt-clean .evt-badge { background: #a855f7; color: #ffffff; }
body.evt-thursday.evt-fun .evt-badge { background: #facc15; color: #14062b; }
body.evt-thursday.evt-fun { background: #faf5ff; }
body.evt-thursday.evt-fun .scoreboard-hero .score-num { color: #f5d0fe; text-shadow: 0 0 14px rgba(232,121,249,.85); }
/* ---------- College Saturday ---------- */
body.evt-college.evt-clean .scoreboard-hero { background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 2px, transparent 2px 38px), #14532d; }
body.evt-college.evt-fun .scoreboard-hero { background: repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 2px, transparent 2px 34px), linear-gradient(180deg, #15803d, #14532d); }
body.evt-college .evt-strip { background: #facc15; }
body.evt-college.evt-clean .evt-badge { background: #facc15; color: #1e1b4b; }
body.evt-college.evt-fun .evt-badge { background: #facc15; color: #1e1b4b; }
body.evt-college.evt-fun { background: #eef2ff; }
/* ---------- Thanksgiving ---------- */
body.evt-thanksgiving.evt-clean .scoreboard-hero { background: radial-gradient(circle at 100% 0%, rgba(251,191,36,.25), transparent 55%), #431407; }
body.evt-thanksgiving.evt-fun .scoreboard-hero { background: radial-gradient(circle at 0% 100%, rgba(234,88,12,.45), transparent 50%), linear-gradient(135deg, #7c2d12, #431407); }
body.evt-thanksgiving .evt-strip { background: #fef3c7; }
body.evt-thanksgiving.evt-clean .evt-badge { background: #fbbf24; color: #431407; }
body.evt-thanksgiving.evt-fun .evt-badge { background: #fbbf24; color: #431407; }
body.evt-thanksgiving.evt-fun { background: #fff7ed; }
/* ---------- Christmas Day ---------- */
body.evt-christmas.evt-clean .scoreboard-hero { background: #7f1d1d; }
body.evt-christmas.evt-fun .scoreboard-hero { background: radial-gradient(rgba(255,255,255,.35) 1.5px, transparent 2px) 0 0 / 18px 18px, radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.5px) 9px 9px / 18px 18px, #991b1b; }
body.evt-christmas .evt-strip { background: #14532d; }
body.evt-christmas.evt-clean .evt-badge { background: #fef2f2; color: #7f1d1d; }
body.evt-christmas.evt-fun .evt-badge { background: #ffffff; color: #991b1b; }
body.evt-christmas.evt-fun { background: #fef2f2; }
/* ---------- Christmas Lights (Nov 25) ----------
   A string of colored bulbs hangs across the top of the score area. Fun adds a
   night sky, a soft glow that slowly breathes and twinkling bulbs in the strip;
   Clean is a plain green score area with a small straight string and no motion. */
body.evt-lights .scoreboard-hero { position: relative; }
body.evt-lights.evt-clean .scoreboard-hero { background: #14532d; padding-top: 34px; }
body.evt-lights.evt-clean .scoreboard-hero::after { content: ''; position: absolute; left: 14px; right: 14px; top: 0; height: 32px; pointer-events: none; z-index: 0; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2296%22 height=%2232%22%3E%3Cpath d=%22M0 4Q24.0 12 48.0 4Q72.0 12 96 4%22 stroke=%22%230a3a20%22 stroke-width=%222%22 fill=%22none%22/%3E%3Crect x=%229.4%22 y=%226.0%22 width=%225.2%22 height=%224.5%22 rx=%221%22 fill=%22%230a3a20%22/%3E%3Cpath d=%22M12.0 10.5C17.8 13.4 17.8 18.5 12.0 23.0C6.2 18.5 6.2 13.4 12.0 10.5Z%22 fill=%22%23ef4444%22/%3E%3Cellipse cx=%2210.0%22 cy=%2215.0%22 rx=%221.3%22 ry=%221.6%22 fill=%22%23fff%22 fill-opacity=%22.55%22/%3E%3Crect x=%2233.4%22 y=%226.0%22 width=%225.2%22 height=%224.5%22 rx=%221%22 fill=%22%230a3a20%22/%3E%3Cpath d=%22M36.0 10.5C41.8 13.4 41.8 18.5 36.0 23.0C30.2 18.5 30.2 13.4 36.0 10.5Z%22 fill=%22%2322c55e%22/%3E%3Cellipse cx=%2234.0%22 cy=%2215.0%22 rx=%221.3%22 ry=%221.6%22 fill=%22%23fff%22 fill-opacity=%22.55%22/%3E%3Crect x=%2257.4%22 y=%226.0%22 width=%225.2%22 height=%224.5%22 rx=%221%22 fill=%22%230a3a20%22/%3E%3Cpath d=%22M60.0 10.5C65.8 13.4 65.8 18.5 60.0 23.0C54.2 18.5 54.2 13.4 60.0 10.5Z%22 fill=%22%23facc15%22/%3E%3Cellipse cx=%2258.0%22 cy=%2215.0%22 rx=%221.3%22 ry=%221.6%22 fill=%22%23fff%22 fill-opacity=%22.55%22/%3E%3Crect x=%2281.4%22 y=%226.0%22 width=%225.2%22 height=%224.5%22 rx=%221%22 fill=%22%230a3a20%22/%3E%3Cpath d=%22M84.0 10.5C89.8 13.4 89.8 18.5 84.0 23.0C78.2 18.5 78.2 13.4 84.0 10.5Z%22 fill=%22%233b82f6%22/%3E%3Cellipse cx=%2282.0%22 cy=%2215.0%22 rx=%221.3%22 ry=%221.6%22 fill=%22%23fff%22 fill-opacity=%22.55%22/%3E%3C/svg%3E") left top / 96px 32px repeat-x; }
body.evt-lights.evt-fun .scoreboard-hero { background: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1.6px) 0 0 / 34px 30px, radial-gradient(rgba(255,255,255,.25) 1px, transparent 1.5px) 17px 15px / 34px 30px, linear-gradient(180deg, #0b1d33 0%, #0c2a20 100%); padding-top: 50px; }
body.evt-lights.evt-fun .scoreboard-hero::after { content: ''; position: absolute; left: 14px; right: 14px; top: 0; height: 44px; pointer-events: none; z-index: 0; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22128%22 height=%2244%22%3E%3Cpath d=%22M0 4Q32.0 16 64.0 4Q96.0 16 128 4%22 stroke=%22%234b7a5c%22 stroke-width=%222%22 fill=%22none%22/%3E%3Crect x=%2213.4%22 y=%227.5%22 width=%225.2%22 height=%227.3%22 rx=%221%22 fill=%22%231f4d33%22/%3E%3Cpath d=%22M16.0 14.2C25.4 18.9 25.4 27.2 16.0 34.5C6.6 27.2 6.6 18.9 16.0 14.2Z%22 fill=%22%23ef4444%22/%3E%3Cellipse cx=%2212.7%22 cy=%2221.5%22 rx=%222.1%22 ry=%222.6%22 fill=%22%23fff%22 fill-opacity=%22.55%22/%3E%3Crect x=%2245.4%22 y=%227.5%22 width=%225.2%22 height=%227.3%22 rx=%221%22 fill=%22%231f4d33%22/%3E%3Cpath d=%22M48.0 14.2C57.4 18.9 57.4 27.2 48.0 34.5C38.6 27.2 38.6 18.9 48.0 14.2Z%22 fill=%22%2322c55e%22/%3E%3Cellipse cx=%2244.7%22 cy=%2221.5%22 rx=%222.1%22 ry=%222.6%22 fill=%22%23fff%22 fill-opacity=%22.55%22/%3E%3Crect x=%2277.4%22 y=%227.5%22 width=%225.2%22 height=%227.3%22 rx=%221%22 fill=%22%231f4d33%22/%3E%3Cpath d=%22M80.0 14.2C89.4 18.9 89.4 27.2 80.0 34.5C70.6 27.2 70.6 18.9 80.0 14.2Z%22 fill=%22%23facc15%22/%3E%3Cellipse cx=%2276.7%22 cy=%2221.5%22 rx=%222.1%22 ry=%222.6%22 fill=%22%23fff%22 fill-opacity=%22.55%22/%3E%3Crect x=%22109.4%22 y=%227.5%22 width=%225.2%22 height=%227.3%22 rx=%221%22 fill=%22%231f4d33%22/%3E%3Cpath d=%22M112.0 14.2C121.4 18.9 121.4 27.2 112.0 34.5C102.6 27.2 102.6 18.9 112.0 14.2Z%22 fill=%22%233b82f6%22/%3E%3Cellipse cx=%22108.7%22 cy=%2221.5%22 rx=%222.1%22 ry=%222.6%22 fill=%22%23fff%22 fill-opacity=%22.55%22/%3E%3C/svg%3E") left top / 128px 44px repeat-x; }
body.evt-lights.evt-fun .scoreboard-hero::before { display: block; content: ''; position: absolute; left: 14px; right: 14px; top: 0; height: 60px; pointer-events: none; z-index: 0; background: radial-gradient(circle at 12.5% 42%, rgba(239,68,68,.55), transparent 22px), radial-gradient(circle at 37.5% 42%, rgba(34,197,94,.55), transparent 22px), radial-gradient(circle at 62.5% 42%, rgba(250,204,21,.55), transparent 22px), radial-gradient(circle at 87.5% 42%, rgba(59,130,246,.55), transparent 22px); background-size: 128px 60px; background-repeat: repeat-x; animation: evt-lights-glow 3.2s ease-in-out infinite alternate; }
body.v2.evt-lights.evt-fun .scoreboard-hero, body.v2.evt-lights.evt-fun .v2-badge-anchor + .scoreboard-hero { padding-top: 46px; }
body.v2.evt-lights.evt-clean .scoreboard-hero, body.v2.evt-lights.evt-clean .v2-badge-anchor + .scoreboard-hero { padding-top: 34px; }
@keyframes evt-lights-glow { from { opacity: .45; } to { opacity: 1; } }
body.evt-lights .evt-strip { background: linear-gradient(#3f6b4f, #3f6b4f) 0 9px / 100% 2px no-repeat, #0b1d33; align-items: flex-start; padding-top: 8px; }
body.evt-lights .evt-strip .evt-svg { filter: drop-shadow(0 0 5px rgba(255,255,255,.35)); }
body.evt-lights.evt-fun .evt-strip .evt-svg:nth-child(3n+1) { animation: evt-lights-tw 2.6s ease-in-out infinite alternate; }
body.evt-lights.evt-fun .evt-strip .evt-svg:nth-child(3n+2) { animation: evt-lights-tw 2.6s ease-in-out .9s infinite alternate; }
@keyframes evt-lights-tw { from { opacity: .5; } to { opacity: 1; } }
body.evt-lights.evt-clean .evt-badge { background: #f0fdf4; color: #14532d; }
body.evt-lights.evt-fun .evt-badge { background: #fef9c3; color: #14532d; }
body.evt-lights.evt-fun { background: #eff6f1; }
body.evt-lights.evt-fun .scoreboard-hero .score-num { color: #fef9c3; text-shadow: 0 0 14px rgba(250,204,21,.55); }
@media (max-width: 768px) {
    body.v2.evt-lights.evt-fun .scoreboard-hero, body.v2.evt-lights.evt-fun .v2-badge-anchor + .scoreboard-hero { padding-top: 40px; }
    body.v2.evt-lights.evt-clean .scoreboard-hero, body.v2.evt-lights.evt-clean .v2-badge-anchor + .scoreboard-hero { padding-top: 30px; }
    body.evt-lights .evt-strip { background-position: 0 7px, 0 0; padding-top: 6px; }
    body.evt-lights.evt-fun .scoreboard-hero::after { left: 10px; right: 10px; height: 33px; background-size: 96px 33px; }
    body.evt-lights.evt-fun .scoreboard-hero::before { left: 10px; right: 10px; height: 45px; background-size: 96px 45px; }
}
/* ---------- Football Playoffs ---------- */
body.evt-playoffs.evt-clean .scoreboard-hero { background: repeating-linear-gradient(135deg, rgba(239,68,68,.16) 0 2px, transparent 2px 14px) right / 38% 100% no-repeat, #18181b; box-shadow: inset 0 0 0 1px #3f3f46; }
body.evt-playoffs.evt-fun .scoreboard-hero { background: radial-gradient(ellipse 75% 85% at 50% 125%, rgba(249,115,22,.5), transparent 62%), repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px), #18181b; box-shadow: inset 0 0 0 2px #dc2626; }
body.evt-playoffs .evt-strip { background: #7f1d1d; }
body.evt-playoffs.evt-clean .evt-badge { background: #dc2626; color: #ffffff; }
body.evt-playoffs.evt-fun .evt-badge { background: linear-gradient(90deg, #f97316, #dc2626); color: #ffffff; }
body.evt-playoffs.evt-fun { background: #fafaf9; }
body.evt-playoffs.evt-fun .scoreboard-hero .score-num { color: #fff7ed; text-shadow: 0 0 14px rgba(249,115,22,.75); }
/* ---------- Big Game ---------- */
body.evt-biggame.evt-clean .scoreboard-hero { background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(234,179,8,.2), transparent 70%), linear-gradient(180deg, #0c0a09, #1c1917); box-shadow: inset 0 0 0 1px rgba(234,179,8,.6); }
body.evt-biggame.evt-fun .scoreboard-hero { background: radial-gradient(circle at 12% 18%, rgba(244,114,182,.38), transparent 28%), radial-gradient(circle at 88% 14%, rgba(96,165,250,.38), transparent 28%), radial-gradient(circle at 50% -10%, rgba(250,204,21,.4), transparent 42%), #0a0a0a; box-shadow: inset 0 0 0 2px #ca8a04, inset 0 0 0 5px #0a0a0a, inset 0 0 0 6px rgba(202,138,4,.6); }
body.evt-biggame .evt-strip { background: #0a0a0a; }
body.evt-biggame.evt-clean .evt-badge { background: linear-gradient(90deg, #fde68a, #ca8a04); color: #1c1917; }
body.evt-biggame.evt-fun .evt-badge { background: linear-gradient(90deg, #fde68a, #ca8a04); color: #0a0a0a; }
body.evt-biggame.evt-fun { background: #f5f5f4; }
body.evt-biggame.evt-fun .scoreboard-hero .score-num { color: #fde047; text-shadow: 0 0 16px rgba(250,204,21,.55); }
body.evt-biggame.evt-fun .scoreboard-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .85; background: linear-gradient(#facc15,#facc15) 3% 10% / 6px 12px no-repeat, linear-gradient(#f472b6,#f472b6) 9% 64% / 6px 12px no-repeat, linear-gradient(#60a5fa,#60a5fa) 17% 8% / 6px 12px no-repeat, linear-gradient(#4ade80,#4ade80) 26% 22% / 6px 12px no-repeat, linear-gradient(#facc15,#facc15) 72% 6% / 6px 12px no-repeat, linear-gradient(#f472b6,#f472b6) 80% 26% / 6px 12px no-repeat, linear-gradient(#60a5fa,#60a5fa) 88% 8% / 6px 12px no-repeat, linear-gradient(#fde047,#fde047) 95% 40% / 6px 12px no-repeat, linear-gradient(#fb923c,#fb923c) 60% 4% / 6px 12px no-repeat, linear-gradient(#facc15,#facc15) 40% 6% / 6px 12px no-repeat, linear-gradient(#60a5fa,#60a5fa) 2% 40% / 6px 12px no-repeat, linear-gradient(#4ade80,#4ade80) 98% 70% / 6px 12px no-repeat; }
/* ---------- Hockey ---------- */
body.evt-hockey.evt-clean .scoreboard-hero { background: linear-gradient(90deg, transparent 49.6%, rgba(220,38,38,.4) 49.6% 50.4%, transparent 50.4%), linear-gradient(90deg, transparent 30%, rgba(37,99,235,.3) 30% 31%, transparent 31% 69%, rgba(37,99,235,.3) 69% 70%, transparent 70%), #f0f9ff; box-shadow: inset 0 0 0 1px #bae6fd; }
body.evt-hockey.evt-fun .scoreboard-hero { background: radial-gradient(circle at 50% 50%, transparent 27%, rgba(220,38,38,.4) 27% 28%, transparent 28%), repeating-linear-gradient(160deg, rgba(255,255,255,.7) 0 1px, transparent 1px 17px), repeating-linear-gradient(20deg, rgba(255,255,255,.45) 0 1px, transparent 1px 23px), linear-gradient(180deg, #e0f2fe, #bae6fd); box-shadow: inset 0 0 0 2px #38bdf8; }
body.evt-hockey .evt-strip { background: #0c4a6e; }
body.evt-hockey.evt-clean .evt-badge { background: #0c4a6e; color: #ffffff; }
body.evt-hockey.evt-fun .evt-badge { background: #dc2626; color: #ffffff; }
body.evt-hockey.evt-fun { background: #f0f9ff; }
body.evt-hockey.evt-fun .scoreboard-hero .score-num { color: #0c4a6e; text-shadow: 0 2px 0 rgba(255,255,255,.9); }
body.evt-hockey.evt-clean .scoreboard-hero { --evt-ink: #0c4a6e; }
body.evt-hockey.evt-fun .scoreboard-hero { --evt-ink: #0c4a6e; }
body.evt-hockey .scoreboard-hero { color: var(--evt-ink); }
body.evt-hockey .scoreboard-hero .team-name, body.evt-hockey .scoreboard-hero .score-num, body.evt-hockey .scoreboard-hero .game-time, body.evt-hockey .scoreboard-hero .game-info, body.evt-hockey .scoreboard-hero .game-clock { color: var(--evt-ink); }
body.evt-hockey .scoreboard-hero .score-sep { color: var(--evt-ink); opacity: .4; }
body.evt-hockey .scoreboard-hero .quarter-box:not(.winner):not(.live-holding) { background: rgba(15,23,42,.06); border-color: rgba(15,23,42,.16); color: var(--evt-ink); }
body.evt-hockey .scoreboard-hero .quarter-box:not(.winner) .quarter-label, body.evt-hockey .scoreboard-hero .quarter-box:not(.winner) .quarter-result { color: var(--evt-ink); }
body.evt-hockey .scoreboard-hero .game-state.scheduled { background: rgba(15,23,42,.1); color: var(--evt-ink); }
body.evt-hockey .scoreboard-hero .quarter-scores { border-top-color: rgba(15,23,42,.12); }
/* ---------- Basketball (all NBA games; key nbaplayoffs) ---------- */
body.evt-nbaplayoffs.evt-clean .scoreboard-hero { background: linear-gradient(90deg, transparent 38%, rgba(255,255,255,.09) 38% 38.6%, transparent 38.6% 61.4%, rgba(255,255,255,.09) 61.4% 62%, transparent 62%), #0c1a3a; }
body.evt-nbaplayoffs.evt-fun .scoreboard-hero { background: radial-gradient(ellipse 40% 95% at 50% -25%, rgba(255,255,255,.3), transparent 70%), radial-gradient(circle at 50% 120%, transparent 30%, rgba(255,255,255,.2) 30% 31%, transparent 31%), linear-gradient(180deg, #1e3a8a, #0c1a3a); box-shadow: inset 0 0 0 2px #3b82f6; }
body.evt-nbaplayoffs .evt-strip { background: #0c1a3a; }
body.evt-nbaplayoffs.evt-clean .evt-badge { background: #3b82f6; color: #ffffff; }
body.evt-nbaplayoffs.evt-fun .evt-badge { background: #f97316; color: #ffffff; }
body.evt-nbaplayoffs.evt-fun { background: #eff6ff; }
body.evt-nbaplayoffs.evt-fun .scoreboard-hero .score-num { color: #ffffff; text-shadow: 0 0 16px rgba(96,165,250,.9); }
/* ---------- Bracket Season ---------- */
body.evt-bracket.evt-clean .scoreboard-hero { background: radial-gradient(circle at 50% 120%, transparent 38%, rgba(255,255,255,.08) 38% 39%, transparent 39%), #7c2d12; }
body.evt-bracket.evt-fun .scoreboard-hero { background: radial-gradient(circle at 50% 115%, transparent 34%, rgba(255,255,255,.35) 34% 35%, transparent 35%), repeating-linear-gradient(90deg, #b45309 0 30px, #92400e 30px 31px, #c2410c 31px 61px, #92400e 61px 62px); }
body.evt-bracket .evt-strip { background: #1c1917; }
body.evt-bracket.evt-clean .evt-badge { background: #fed7aa; color: #7c2d12; }
body.evt-bracket.evt-fun .evt-badge { background: #1c1917; color: #fed7aa; }
body.evt-bracket.evt-fun { background: #fff7ed; }
/* ---------- Baby, pink or blue ---------- */
body.evt-baby.evt-clean .scoreboard-hero { background: #ecfdf5; box-shadow: inset 0 0 0 1px #a7f3d0; }
body.evt-baby.evt-fun .scoreboard-hero { background: linear-gradient(90deg, #fce7f3 0 50%, #e0f2fe 50% 100%); box-shadow: inset 0 0 0 1px #e9d5ff; }
body.evt-baby .evt-strip { background: #fdf2f8; }
body.evt-baby.evt-clean .evt-badge { background: #d1fae5; color: #065f46; }
body.evt-baby.evt-fun .evt-badge { background: #ffffff; color: #be185d; }
body.evt-baby.evt-fun { background: #fdf2f8; }
body.evt-baby.evt-clean .scoreboard-hero { --evt-ink: #064e3b; }
body.evt-baby.evt-fun .scoreboard-hero { --evt-ink: #1e293b; }
body.evt-baby .scoreboard-hero { color: var(--evt-ink); }
body.evt-baby .scoreboard-hero .team-name, body.evt-baby .scoreboard-hero .score-num, body.evt-baby .scoreboard-hero .game-time, body.evt-baby .scoreboard-hero .game-info, body.evt-baby .scoreboard-hero .game-clock { color: var(--evt-ink); }
body.evt-baby .scoreboard-hero .score-sep { color: var(--evt-ink); opacity: .4; }
body.evt-baby .scoreboard-hero .quarter-box:not(.winner):not(.live-holding) { background: rgba(15,23,42,.06); border-color: rgba(15,23,42,.16); color: var(--evt-ink); }
body.evt-baby .scoreboard-hero .quarter-box:not(.winner) .quarter-label, body.evt-baby .scoreboard-hero .quarter-box:not(.winner) .quarter-result { color: var(--evt-ink); }
body.evt-baby .scoreboard-hero .game-state.scheduled { background: rgba(15,23,42,.1); color: var(--evt-ink); }
body.evt-baby .scoreboard-hero .quarter-scores { border-top-color: rgba(15,23,42,.12); }
/* ---------- Baby, neutral ---------- */
body.evt-babyneutral.evt-clean .scoreboard-hero { background: #f7f5ee; box-shadow: inset 0 0 0 1px #d9f99d; }
body.evt-babyneutral.evt-fun .scoreboard-hero { background: radial-gradient(circle at 88% 0%, rgba(253,224,71,.5), transparent 45%), radial-gradient(circle at 0% 100%, rgba(190,242,100,.35), transparent 50%), linear-gradient(180deg, #f7fee7, #fefce8); box-shadow: inset 0 0 0 1px #d9f99d; }
body.evt-babyneutral .evt-strip { background: #f7fee7; }
body.evt-babyneutral.evt-clean .evt-badge { background: #ecfccb; color: #365314; }
body.evt-babyneutral.evt-fun .evt-badge { background: #ffffff; color: #3f6212; }
body.evt-babyneutral.evt-fun { background: #fefce8; }
body.evt-babyneutral.evt-clean .scoreboard-hero { --evt-ink: #365314; }
body.evt-babyneutral.evt-fun .scoreboard-hero { --evt-ink: #1a2e05; }
body.evt-babyneutral .scoreboard-hero { color: var(--evt-ink); }
body.evt-babyneutral .scoreboard-hero .team-name, body.evt-babyneutral .scoreboard-hero .score-num, body.evt-babyneutral .scoreboard-hero .game-time, body.evt-babyneutral .scoreboard-hero .game-info, body.evt-babyneutral .scoreboard-hero .game-clock { color: var(--evt-ink); }
body.evt-babyneutral .scoreboard-hero .score-sep { color: var(--evt-ink); opacity: .4; }
body.evt-babyneutral .scoreboard-hero .quarter-box:not(.winner):not(.live-holding) { background: rgba(15,23,42,.06); border-color: rgba(15,23,42,.16); color: var(--evt-ink); }
body.evt-babyneutral .scoreboard-hero .quarter-box:not(.winner) .quarter-label, body.evt-babyneutral .scoreboard-hero .quarter-box:not(.winner) .quarter-result { color: var(--evt-ink); }
body.evt-babyneutral .scoreboard-hero .game-state.scheduled { background: rgba(15,23,42,.1); color: var(--evt-ink); }
body.evt-babyneutral .scoreboard-hero .quarter-scores { border-top-color: rgba(15,23,42,.12); }

/* ---------- Football Sunday and College Saturday end zones (v2.3) ----------
   Real-looking end zones at each end of the score area, desktop and tablet
   only: the team's name painted sideways, a solid team color, and a white goal line. Left = the team
   down the side (--team1), right = the team across the top (--team2). */
.evt-ez { display: none; }
@media (min-width: 769px) {
    body.evt-sunday .scoreboard-hero, body.evt-college .scoreboard-hero {
        --evt-ez: 52px;
        padding-left: calc(var(--evt-ez) + 24px);
        padding-right: calc(var(--evt-ez) + 24px);
    }
    body.evt-sunday .evt-ez, body.evt-college .evt-ez {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        bottom: 0;
        width: var(--evt-ez);
        overflow: hidden;
        z-index: 0;
    }
    body.evt-sunday .evt-ez-l, body.evt-college .evt-ez-l {
        left: 0;
        background-color: var(--team1);
        box-shadow: inset -4px 0 0 #ffffff, inset -8px 0 10px -6px rgba(0, 0, 0, 0.35);
    }
    body.evt-sunday .evt-ez-r, body.evt-college .evt-ez-r {
        right: 0;
        background-color: var(--team2);
        box-shadow: inset 4px 0 0 #ffffff, inset 8px 0 10px -6px rgba(0, 0, 0, 0.35);
    }
    /* The painted name */
    body.evt-sunday .evt-ez span, body.evt-college .evt-ez span {
        writing-mode: vertical-rl;
        white-space: nowrap;
        font: 900 22px/1 Inter, system-ui, sans-serif;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: #ffffff;
        text-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.35);
        max-height: calc(100% - 28px);
        overflow: hidden;
    }
    body.evt-sunday .evt-ez-l span, body.evt-college .evt-ez-l span { transform: rotate(180deg); }
    /* Sized by name length so every name fits the end zone */
    body.evt-sunday .evt-ez span.evt-ez-l1, body.evt-college .evt-ez span.evt-ez-l1 { font-size: 20px; letter-spacing: 2.5px; }
    body.evt-sunday .evt-ez span.evt-ez-m , body.evt-college .evt-ez span.evt-ez-m  { font-size: 18px; letter-spacing: 2px; }
    body.evt-sunday .evt-ez span.evt-ez-s , body.evt-college .evt-ez span.evt-ez-s  { font-size: 16px; letter-spacing: 1.5px; }
}

/* ---------- Full-width icon strip under the top bar (Fun) ---------- */
.evt-strip {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 16px;
    overflow: hidden;
}
.evt-svg { display: block; }
.evt-strip .evt-svg { width: 24px; height: 24px; flex: none; }

/* ---------- Stickers on the score area's corners (Fun) ---------- */
.evt-sticker-anchor {
    position: relative;
    height: 0;
    z-index: 3;
    pointer-events: none;
}
.evt-sticker {
    position: absolute;
    right: 28px;
    top: -46px;
    width: 90px;
    height: 90px;
    transform: rotate(-12deg);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3));
}
.evt-sticker-2 {
    display: none;
    position: absolute;
    left: -46px;
    top: 74px;
    width: 72px;
    height: 72px;
    transform: rotate(14deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}
.evt-sticker .evt-svg, .evt-sticker-2 .evt-svg { width: 100%; height: 100%; }
@media (min-width: 1460px) {
    .evt-sticker-2 { display: block; }
    /* Football Sunday's end zones already sit on that edge */
    body.evt-sunday .evt-sticker-2, body.evt-college .evt-sticker-2 { display: none; }
}

/* ---------- Faint icons in the side margins of very wide screens (Fun) ---------- */
.evt-gutters { display: none; }
@media (min-width: 1600px) {
    .evt-gutters {
        display: block;
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 0;
    }
    body.evt-fun .game-layout { position: relative; z-index: 1; }
    .evt-g { position: absolute; opacity: 0.3; }
    .evt-g .evt-svg { width: 100%; height: 100%; }
    .evt-g-l { left: calc(50% - 700px - 84px); }
    .evt-g-r { right: calc(50% - 700px - 84px); }
}

/* ---------- Board corner icon (Fun) ---------- */
/* The icon sits on top of the corner cell and never sizes it, so the
   board's columns stay the same width with or without a theme. */
.header-cell.corner { position: relative; }
.header-cell.corner .evt-corner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.header-cell.corner .evt-corner .evt-svg {
    width: 90%;
    height: 90%;
    max-width: 44px;
    max-height: 44px;
}

/* ---------- Phones ---------- */
@media (max-width: 768px) {
    body.evt-theme .scoreboard-hero { padding: 12px 10px 14px; border-radius: 14px; }
    body.evt-classic.evt-fun .scoreboard-hero { padding-top: 22px; padding-bottom: 22px; }
    .evt-badge-row { margin-bottom: 10px; }
    .evt-badge { font-size: 11px; padding: 7px 12px; }
    .evt-badge .evt-badge-icon { width: 15px; height: 15px; }
    body.evt-theme .scoreboard-hero .quarter-box { border-radius: 8px; }
    .evt-strip { height: 36px; gap: 10px; padding: 0 10px; }
    .evt-strip .evt-svg { width: 20px; height: 20px; }
    .evt-sticker { width: 60px; height: 60px; right: 10px; top: -26px; }
    .evt-mini .evt-svg { width: 10px; height: 10px; }
    body.evt-theme .matchup { margin-bottom: 10px; }
    body.evt-theme .game-info { font-size: 0.7rem; gap: 12px; }
    body.evt-theme .quarter-scores { margin-top: 8px; padding-top: 8px; border-top-color: rgba(255, 255, 255, 0.15); }
}

/* People who ask their phone for less motion get no animation */
@media (prefers-reduced-motion: reduce) {
    .evt-theme *, .evt-theme *::before, .evt-theme *::after { animation: none !important; transition: none !important; }
}

} /* end @media screen */

/* ==========================================================================
   QA site tag (only rendered when OFS_QA is defined)
   ========================================================================== */
.ofs-qa-banner {
    position: fixed;
    left: 10px;
    bottom: 10px;
    z-index: 2147483600;
    background: #fde047;
    color: #422006;
    font: 700 11px/1.2 Inter, system-ui, sans-serif;
    padding: 5px 10px;
    opacity: 0.85;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}
@media print { .ofs-qa-banner { display: none; } }
