/* Game page: chart storylines, scrubber totals and the refinements layered
   over the older minified game stylesheets. Loaded last on /game/<id>. */
.gj-game{--gs-away:color-mix(in srgb,var(--away-color) 72%,white);--gs-home:color-mix(in srgb,var(--home-color) 72%,white);--gs-card:#111218;--gs-track:#23242e}
.gj-game .rtg-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ---- Storyline cards ---- */
.gj-game .gs-section,.gj-game #the-read.gs-section{display:block;padding:48px 0;scroll-margin-top:110px}
.gs-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px 28px;flex-wrap:wrap}
.gs-heading h2{margin:10px 0 0}
.gs-legend{display:flex;gap:22px;margin:0;font-size:15px;font-weight:600;color:var(--gj-ink,#f2f0ed)}
.gs-legend span{display:flex;align-items:center;gap:8px}
.gs-legend img{object-fit:contain}
.gs-legend i{width:14px;height:14px;border-radius:4px;background:var(--away-color)}
.gs-legend .gs-home i{background:var(--home-color)}
.gs-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;margin:28px 0 22px}
.gs-card{grid-column:span 2;display:flex;flex-direction:column;min-width:0;background:var(--gs-card);border:1px solid var(--rtg-line);border-radius:20px;padding:24px 24px 20px}
.gs-grid:is([data-count="1"],[data-count="2"],[data-count="4"]) .gs-card,.gs-grid[data-count="5"] .gs-card:nth-child(-n+2){grid-column:span 3}
.gs-grid[data-count="1"] .gs-card{grid-column:1/-1}
.gs-kicker{margin:0 0 10px;font-size:14px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--rtg-muted)!important}
.gj-game .gs-card h3{margin:0 0 22px;font:650 21px/1.3 'DM Sans',sans-serif;text-transform:none;letter-spacing:-.02em;color:var(--gj-ink,#f2f0ed);min-height:2.6em;text-wrap:balance}
.gs-note{margin:auto 0 0;padding-top:18px;font-size:14px;line-height:1.45;color:var(--rtg-muted)}
.gs-card :is(dl,dd,dt,p,h4){margin:0}

.gs-periods{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:8px;text-align:center}
.gs-pair{height:150px;padding-top:26px;display:flex;align-items:flex-end;justify-content:center;gap:6px;border-bottom:1px solid var(--rtg-line)}
.gs-pair span{position:relative;width:min(34px,38%);border-radius:7px 7px 0 0;background:var(--away-color);min-height:2px}
.gs-pair .gs-home{background:var(--home-color)}
.gs-pair b{position:absolute;left:50%;top:-24px;transform:translateX(-50%);font-size:15px;font-weight:600}
.gs-won-home .gs-away,.gs-won-away .gs-home{opacity:.42}
.gs-won-home .gs-away b,.gs-won-away .gs-home b{opacity:1;color:var(--rtg-muted)}
.gs-quarter strong{display:block;margin-top:10px;font-size:15px}
.gs-quarter small{display:block;font-size:14px;color:var(--rtg-muted)}

.gs-share{display:flex;gap:3px;height:26px}
.gs-share span{min-width:4px;border-radius:5px;background:#555764}
.gs-share .gs-away{background:var(--away-color)}.gs-share .gs-home{background:var(--home-color)}
.gs-share-key{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0 18px!important}
.gs-share-key div:nth-child(2){text-align:center}.gs-share-key div:last-child{text-align:right}
.gs-share-key dt{font-size:14px;color:var(--rtg-muted)}
.gs-share-key dd{font:400 30px/1.1 'Bebas Neue',sans-serif;letter-spacing:.02em}
.gs-share-key .gs-away dd{color:var(--gs-away)}.gs-share-key .gs-home dd{color:var(--gs-home)}
.gs-facts>div{display:flex;justify-content:space-between;gap:14px;align-items:baseline;padding:9px 0;border-top:1px solid #ffffff12;font-size:15px}
.gs-facts dt{color:var(--rtg-muted);font-size:14px}.gs-facts dd{font-weight:600;text-align:right}

.gs-groups{display:grid;gap:18px}
.gs-group h4{font-size:14px;font-weight:500;color:var(--rtg-muted);margin-bottom:8px}
.gs-group.gs-focus h4{color:var(--gj-ink,#f2f0ed);font-weight:650}
.gs-bars{display:grid;gap:6px}
.gs-bar{display:grid;grid-template-columns:1fr 34px;gap:10px;align-items:center}
.gs-bar span{display:block;height:14px;border-radius:7px;background:var(--gs-track);overflow:hidden}
.gs-bar i{display:block;height:100%;border-radius:7px;background:var(--away-color)}
.gs-bar.gs-home i{background:var(--home-color)}
.gs-bar b{font-size:16px;font-weight:600;text-align:right}
.gs-group:not(.gs-focus) i{opacity:.55}

.gs-heat{width:100%;border-collapse:separate;border-spacing:4px 5px;margin:-5px -4px;font-size:15px}
.gs-heat thead th{font-size:14px;font-weight:500;color:var(--rtg-muted);padding:0 0 2px;text-align:center}
.gs-heat tbody th{text-align:left;font-weight:600;line-height:1.25;padding:0 6px 0 0}
.gs-heat tbody th a{color:inherit;text-decoration:none}.gs-heat tbody th a:hover{text-decoration:underline}
.gs-heat tbody th small{display:block;font-size:14px;font-weight:400;color:var(--rtg-muted)}
.gs-heat td{position:relative;isolation:isolate;text-align:center;min-width:34px;height:46px;font-weight:600;--cell:var(--away-color)}
.gs-heat .gs-home td{--cell:var(--home-color)}
.gs-heat td::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:9px;background:var(--cell);opacity:calc(.1 + var(--heat,0)*.9)}
.gs-heat td.gs-total{font:400 26px/1 'Bebas Neue',sans-serif;letter-spacing:.02em}
.gs-heat td.gs-total::before{background:transparent;border:1px solid var(--rtg-line);opacity:1}

.gs-dumbbells{display:grid;gap:4px}
.gs-dumbbell,.gs-dumbbell-head{display:grid;grid-template-columns:30px minmax(0,1fr) 58px 58px;gap:12px;align-items:center;padding:8px 8px;border-radius:10px}
.gs-dumbbell-head{padding-block:0;font-size:14px}
.gs-dumbbells b{text-align:right;font-size:15px;font-weight:600}
.gs-dumbbells b.gs-away{color:var(--gs-away)}.gs-dumbbells b.gs-home{color:var(--gs-home)}
.gs-dumbbell strong{font-size:15px}
.gs-dumbbell.gs-focus{background:#ffffff0d}
.gs-track{position:relative;height:16px;margin:0 8px;background:linear-gradient(var(--gs-track),var(--gs-track)) center/100% 2px no-repeat}
.gs-track i{position:absolute;top:6px;height:4px;background:#f1eee84d;border-radius:2px}
.gs-track u{position:absolute;top:0;width:16px;height:16px;margin-left:-8px;border-radius:50%;background:var(--away-color);border:2px solid var(--gs-card)}
.gs-track u.gs-home{background:var(--home-color)}

.gs-benches{display:grid;gap:12px}
.gs-bench-row{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:center}
.gs-bench-row strong{font-size:15px}
.gs-stack{display:flex;gap:3px;height:38px}
.gs-stack i{display:flex;align-items:center;justify-content:flex-end;padding:0 9px;border-radius:7px;font-style:normal;min-width:34px;background:color-mix(in srgb,var(--away-color) 38%,#15161d)}
.gs-home .gs-stack i{background:color-mix(in srgb,var(--home-color) 38%,#15161d)}
.gs-stack i.gs-reserves{background:var(--away-color)}.gs-home .gs-stack i.gs-reserves{background:var(--home-color)}
.gs-stack b{font-size:16px;font-weight:650}
.gs-key{display:flex;gap:18px;font-size:14px;color:var(--rtg-muted);margin-top:4px!important}
.gs-key span{display:flex;gap:7px;align-items:center}
.gs-key i{width:14px;height:14px;border-radius:4px;background:#8d8c98}.gs-key i.gs-starters{opacity:.4}

.gs-spark{display:block;width:100%;height:96px;margin-bottom:14px;overflow:visible}
.gs-spark line,.gs-spark polyline{vector-effect:non-scaling-stroke;fill:none}
.gs-spark .gs-zero{stroke:#555764;stroke-width:1}.gs-spark .gs-tick{stroke:#ffffff14;stroke-width:1}
.gs-spark .gs-line{stroke:#8d8c98;stroke-width:1.5}
.gs-spark .gs-hot{stroke:var(--gs-home);stroke-width:3.5}.gs-spark .gs-band{fill:var(--home-color);opacity:.28}
.gs-run-away .gs-hot{stroke:var(--gs-away)}.gs-run-away .gs-band{fill:var(--away-color)}

@media(max-width:1000px){.gs-grid .gs-card{grid-column:span 3}.gs-grid:is([data-count="1"],[data-count="3"],[data-count="5"]) .gs-card:last-child{grid-column:1/-1}.gj-game .gs-card h3{min-height:0}}
@media(max-width:760px){.gj-game .gs-section,.gj-game #the-read.gs-section{padding:36px 0}.gs-grid{grid-template-columns:minmax(0,1fr);gap:12px;margin-top:22px}.gs-grid .gs-card,.gs-grid .gs-card:last-child{grid-column:auto}.gs-card{padding:20px 18px 18px;border-radius:16px}.gj-game .gs-card h3{font-size:20px;margin-bottom:18px}.gs-pair{height:130px}.gs-dumbbell,.gs-dumbbell-head{grid-template-columns:28px minmax(0,1fr) 52px 52px;gap:8px;padding-inline:4px}}

/* ---- Team totals at the scrubber's moment ---- */
.gf-stats{margin:0 0 24px;padding:18px 0 4px;border-block:1px solid #ffffff10}
.gf-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:6px;font-size:15px;font-weight:600}
.gf-head span{display:flex;align-items:center;gap:8px}
.gf-head img{object-fit:contain}
.gf-head p{margin:0;font-size:14px;font-weight:400;color:var(--rtg-muted);text-align:center}
.gf-head p b{color:var(--gj-ink,#f2f0ed);font-weight:600}
.gf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 44px}
.gf-stat{padding:12px 0}
.gf-values{display:grid;grid-template-columns:1fr auto 1fr;align-items:start;gap:10px}
.gf-values h4{margin:4px 0 0;font-size:14px;font-weight:500;color:#c2bdcc;text-align:center}
.gf-values span{font-size:22px;font-weight:600;line-height:1.15;letter-spacing:-.02em}
.gf-values span:last-child{text-align:right}
.gf-values small{display:block;font-size:14px;font-weight:400;letter-spacing:0;color:var(--rtg-muted)}
.gf-mirror{display:grid;grid-template-columns:1fr 1fr;gap:4px;height:6px;margin-top:8px}
.gf-mirror>span{display:flex;background:var(--gs-track);border-radius:3px;overflow:hidden}
.gf-mirror>span:first-child{justify-content:flex-end}
.gf-mirror i{display:block;height:100%;border-radius:3px;background:var(--home-color);transition:width .12s ease-out}
.gf-mirror>span:first-child i{background:var(--away-color)}
@media(prefers-reduced-motion:reduce){.gf-mirror i{transition:none}}
@media(max-width:1000px){.gf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 32px}}
@media(max-width:760px){.gf-grid{grid-template-columns:minmax(0,1fr)}.gf-stat{padding:9px 0}.gf-values span{font-size:20px}.gf-head p{font-size:14px}}

.gs-card{display:flex;flex-direction:column}.gs-card .gs-note{margin-top:auto;padding-top:18px}

/* Box score tables */
.gj-game .gb-teams{display:grid;gap:20px;margin-top:20px;min-width:0}
.gj-game .gb-teams .gb-team{margin:0;min-width:0}
@media(min-width:1100px){.gj-game #box-score:is([data-view=essentials],[data-view=shooting]) .gb-teams{grid-template-columns:1fr 1fr;align-items:start}}
.gj-game .gb-team-heading{padding:14px 18px;border-bottom:2px solid var(--rtg-line)}
.gj-game .gb-away .gb-team-heading{border-bottom-color:var(--gs-away)}
.gj-game .gb-home .gb-team-heading{border-bottom-color:var(--gs-home)}
.gj-game .gb-team-heading h3{font-size:20px;margin:3px 0 0}
.gj-game .gb-team-heading .rtg-kicker{font-size:12px}
.gj-game .gj-box-team-name img{width:34px;height:34px}
.gj-game .gb-team .gb-score strong{font-size:38px}
.gj-game .gb-table{font-size:15px;min-width:940px;table-layout:auto}
.gj-game [data-view=essentials] .gb-table{min-width:560px}
.gj-game [data-view=shooting] .gb-table{min-width:560px}
.gj-game .gb-table :is(td,th){padding:10px 12px;border-top:1px solid #20212b}
.gj-game .gb-table thead th{padding:0;border-top:0;font-size:12px;letter-spacing:.1em}
.gj-game .gb-table thead button{padding:11px 12px;min-height:44px}

.gj-game .gb-table td:nth-child(3){color:var(--rtg-cream)!important;font-weight:700}
.gj-game .gb-table tbody th{min-width:168px;max-width:230px;overflow-wrap:normal;font-size:15px;font-weight:600;padding-left:28px;position:sticky;box-shadow:none}
.gj-game .gb-table thead th:first-child button{padding-left:28px}
.gj-game .gb-table tbody tr.gb-starter th::before{content:"";position:absolute;left:13px;top:50%;width:6px;height:6px;margin-top:-3px;border-radius:50%;background:var(--rtg-orange)}
.gj-game .gb-table td small{display:inline;margin-left:6px;font-size:14px;color:#8f8d9a;font-weight:400}
.gj-game .gb-table td.gb-high{color:var(--rtg-cream)!important;font-weight:700}
.gb-high b{display:inline-block;min-width:1.9em;margin:-3px -7px -3px 0;padding:3px 7px;border-radius:7px;background:#ffffff17;font-weight:700;text-align:right}
.gj-game .gb-table td.gb-impact{font-weight:650}
.gj-game .gb-table td.gb-plus{color:#90daba!important}
.gj-game .gb-table td.gb-minus{color:#f6b091!important}
.gb-bar{display:inline-block;position:relative;width:56px;height:6px;margin-right:10px;border-radius:3px;background:linear-gradient(90deg,var(--gs-track) 0 calc(50% - .5px),#4a4b58 calc(50% - .5px) calc(50% + .5px),var(--gs-track) calc(50% + .5px));vertical-align:middle}
.gb-bar i{position:absolute;top:0;bottom:0;left:50%;border-radius:0 3px 3px 0;background:currentColor}
.gb-minus .gb-bar i{left:auto;right:50%;border-radius:3px 0 0 3px}
.gj-game .gb-table tfoot :is(td,th){background:#16171f;border-top:1px solid var(--rtg-line);font-weight:700;color:var(--rtg-cream)!important}
.gj-game .gb-table tfoot th{position:sticky;left:0;padding-left:28px;font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--rtg-muted)!important}
.gj-game .gb-table tfoot td small{font-weight:400}
.gj-game .gb-sort-status{padding:10px 18px 12px;margin:0;font-size:14px}
.gj-game .gb-help{max-width:none;font-size:16px}
@media(max-width:760px){.gj-game .gb-table{min-width:900px}.gj-game :is([data-view=essentials],[data-view=shooting]) .gb-table{min-width:520px}.gj-game .gb-table :is(td,th){padding:10px 9px}.gj-game .gb-table tbody th{min-width:140px;max-width:160px;padding-left:24px}.gj-game .gb-table tfoot th,.gj-game .gb-table thead th:first-child button{padding-left:24px}.gj-game .gb-table tbody tr.gb-starter th::before{left:10px}.gb-bar{width:36px;margin-right:7px}}

/* Page polish: denser glance strip and leader cards, balanced story cards, one type floor */
.gs-card>h3+*{margin-top:auto}
.gj-game .gb-table tfoot th{font-size:14px}
.gj-game .gc-kicker{font-size:14px!important}
.gj-game .gc-section-heading>span,.gj-game .gc-caption,.gj-game .gc-tag,.gj-game .gc-star-body>small,.gj-game .gc-cold-player div>span,.gj-game .gc-event small,.gj-game .gc-foul span>small,.gj-game .gc-event time,.gj-game .gc-cold-player strong>small,.gj-game .gc-foul strong>small{font-size:14px}
.gj-game .gc-star-line{font-size:14px}
.gj-game .gc-big-stat>span{font-size:14px}
.gj-game .gc-moments strong{font:400 46px/1 'Bebas Neue',sans-serif;letter-spacing:.01em}
.gj-game .gc-moments li>.gc-caption:first-child{color:#f4f2ed;font-weight:650}
@media(min-width:721px){
.gj-game .gc-moments li{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:20px;row-gap:4px;align-items:center;padding:20px 26px}
.gj-game .gc-moments li>.gc-caption:first-child{grid-column:1;grid-row:1;align-self:end;font-size:16px}
.gj-game .gc-moments li>.gc-caption:last-child{grid-column:1;grid-row:2;align-self:start}
.gj-game .gc-moments li>div{grid-column:2;grid-row:1/3;margin:0;gap:14px}
.gj-game .gc-score-pair{display:flex;align-items:center;gap:22px}
.gj-game .gc-score-pair>span{display:flex;flex-direction:row;align-items:center;gap:10px}
}
@media(min-width:761px){
.gj-standout{display:grid;grid-template-columns:118px minmax(0,1fr) auto;grid-template-rows:1fr auto auto 1fr;column-gap:18px;align-items:center;padding:16px 26px 0 12px}
.gj-standout-main{display:contents}
.gj-standout-main img{grid-column:1;grid-row:1/5;width:118px;height:92px;align-self:end}
.gj-standout-main>strong{grid-column:3;grid-row:1/5;font-size:62px;padding-bottom:16px}
.gj-standout-label{grid-column:2;grid-row:1;align-self:end}
.gj-game .gj-standout h3{grid-column:2;grid-row:2;margin:4px 0 2px}
.gj-standout p{grid-column:2;grid-row:3;align-self:start;padding-bottom:16px}
}
.gj-game .gj-standout-label,.gj-game .gj-standout-main small{font-size:14px}
.gj-game .gb-team-heading .rtg-kicker,.gj-game .gb-score span{font-size:14px}
.gj-game .gb-table thead th,.gj-game .gb-table thead th button{font-size:14px;letter-spacing:.04em}
/* Phones: the wrapper scrolls instead of clipping, and Essentials is trimmed to fit without a swipe */
.gj-game .gb-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:560px){
.gj-game [data-view=essentials] .gb-table{min-width:0;width:100%}
.gj-game [data-view=essentials] .gb-table :is(td,th){padding:10px 6px}
.gj-game [data-view=essentials] .gb-table thead th button{padding-left:0;padding-right:0}
.gj-game [data-view=essentials] .gb-table :is(th,td):nth-child(12){display:none}
.gj-game [data-view=essentials] .gb-table tbody th{min-width:0;max-width:none;padding-left:22px}
.gj-game [data-view=essentials] .gb-table tfoot th,.gj-game [data-view=essentials] .gb-table thead th:first-child button{padding-left:22px}
.gj-game [data-view=essentials] .gb-bar,.gj-game [data-view=essentials] .gb-table th[aria-sort=none] .gb-sort-icon{display:none}
.gj-game [data-view=essentials] .gb-table thead th:last-child button{font-size:0;letter-spacing:0}
.gj-game [data-view=essentials] .gb-table thead th:last-child button::before{content:'Impact';font-size:14px;letter-spacing:.04em}
.gj-game [data-view=essentials] .gb-table thead th:last-child .gb-sort-icon{font-size:14px}
.gj-game [data-view=essentials] .gb-table :is(td,th):last-child{padding-right:14px}
}
@media(max-width:560px){
.gj-game [data-view=essentials] .gb-table :is(thead,tfoot) th:first-child{min-width:0}
.gj-game [data-view=essentials] .gb-table td{font-variant-numeric:tabular-nums}
}
@media(max-width:560px){
.gj-game [data-view=essentials] .gb-table :is(td,th):last-child{padding-right:10px}
.gj-game [data-view=essentials] .gb-table :is(td,th){padding-left:5px;padding-right:5px}
.gj-game [data-view=essentials] .gb-table thead th:last-child button{white-space:nowrap;line-height:0}
.gj-game [data-view=essentials] .gb-table thead th:last-child button::before{line-height:1.2}
}
@media(max-width:370px){
.gj-game [data-view=essentials] .gb-table{font-size:14px}
.gj-game [data-view=essentials] .gb-table :is(td,th){padding-left:3px;padding-right:3px}
.gj-game [data-view=essentials] .gb-table tbody th,.gj-game [data-view=essentials] .gb-table tfoot th,.gj-game [data-view=essentials] .gb-table thead th:first-child button{padding-left:20px}
.gj-game [data-view=essentials] .gb-table thead th,.gj-game [data-view=essentials] .gb-table thead th button,.gj-game [data-view=essentials] .gb-table thead th:last-child button::before{letter-spacing:0}
}
@media(max-width:560px){
.gj-game [data-view=essentials] .gb-table thead th{padding-top:0;padding-bottom:0}
}
@media(max-width:370px){
.gj-game [data-view=essentials] .gb-table tbody th{font-size:14px}
.gj-game [data-view=essentials] .gb-table thead .gb-sort-icon{display:none}
.gj-game [data-view=essentials] .gb-table th[aria-sort]:not([aria-sort=none]) button{color:#f4f2ed;text-decoration:underline;text-decoration-color:var(--rtg-orange);text-underline-offset:5px}
}
@media(max-width:560px){
.gj-game [data-view=essentials] .gb-table td{white-space:nowrap;overflow-wrap:normal}
}
.gj-game .gb-table td{white-space:nowrap;overflow-wrap:normal}
@media(max-width:560px){
.gj-game [data-view=shooting] .gb-table :is(th,td):is(:nth-child(2),:nth-child(3)){display:none}
.gj-game [data-view=shooting] .gb-table{min-width:0}
}
/* One 14px floor for the small labels that were still 11 to 13px */
.gj-game :is(.gj-final,.gj-period span,.gj-period b,.gj-feature-copy span,.gj-lead-caps small,.gc-direction span,.gj-comparison-values small,.ci-key span,.ci-team-heading span,.ci-rank,.ci-identity small,.gp-impact span,.gp-line dt,.gj-hero a small,p.rtg-source,summary){font-size:14px}
.gj-game :is(.gj-topline,.gj-topline :is(a,p,span,time),.gj-feature-stats dt,.gj-receipt summary,.gj-receipt summary span,.gj-flow-readout span,.gj-flow-control :is(label,span),.gp-card-heading p.rtg-source,.rtg-table:not(.gb-table) :is(caption,th,td,strong)){font-size:14px}
.gj-game .ge-panel svg text{font-size:14px}
@media(max-width:560px){
.gf-head{flex-wrap:wrap;row-gap:10px}
.gf-head p{order:-1;flex:0 0 100%;text-align:left}
}
