@layer obsidian;

:root {
  --kls-card-surface: linear-gradient(180deg, rgba(13,21,36,.90), rgba(6,11,20,.94));
  --kls-card-sheen: inset 0 1px 0 rgba(255,255,255,.08);
  --kls-card-rim: rgba(230,197,110,.18);
  --kls-bg: #060B14;
  --kls-card-fill: linear-gradient(180deg, rgba(13, 21, 36, .90), rgba(6, 11, 20, .94));
  --kls-card-sheen: inset 0 1px 0 rgba(255, 255, 255, .08);
  --kls-card-edge: rgba(230, 197, 110, .18);
  --kls-glass: rgba(15, 23, 38, 0.74);
  --kls-pod-bg: rgba(6, 11, 20, 0.74);
  --kls-glass-border: rgba(212, 175, 55, 0.24);
  --kls-subtle-border: rgba(255, 255, 255, 0.12);
  --kls-gold: #E6C56E;
  --kls-gold-grad: linear-gradient(135deg, #F3D98B 0%, #D4A843 55%, #B88728 100%);
  --kls-text: #F5F7FA;
  --kls-muted: #94A3B8;
  --kls-header-glow: radial-gradient(ellipse at 48% -80%, #a78043 0%, #493c29 35%, #121922 70%, #08101a);
  --kls-canvas: radial-gradient(ellipse 85% 240px at 50% 0%, rgba(230, 197, 110, 0.22), transparent 70%), var(--kls-bg);
}

.kls-page {
  min-height: 100dvh;
  background: var(--kls-canvas);
  color: var(--kls-text);
  font-variant-numeric: tabular-nums;
}

.kls-glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--kls-card-edge);
  border-radius: 16px;
  background: var(--kls-card-fill);
  box-shadow: var(--kls-card-sheen);
}

.kls-gold-accent { border-color: var(--kls-glass-border); }
.kls-gold-accent::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--kls-gold-grad);
  pointer-events: none;
}

.kls-btn-gold {
  border: 0;
  border-radius: 10px;
  background: var(--kls-gold-grad);
  color: #0b1220;
  font-weight: 700;
}

.kls-btn-glass {
  border: 1px solid var(--kls-subtle-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: var(--kls-text);
  font-weight: 600;
}

.kls-page-dock {
  position: fixed;
  z-index: 35;
  inset: auto 0 var(--game-day-bottom-offset, 0px);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1.2fr)) repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: min(100%, 1012px);
  margin-inline: auto;
  padding: 0 6px env(safe-area-inset-bottom);
  border: 1px solid #29475f;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #041524;
}
.kls-page-dock::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  height: 100vh;
  background: #041524;
  pointer-events: none;
}
.kls-page-dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 67px;
  padding: 4px 0;
  color: #aec3d6;
  font: 750 clamp(9px, 2.8vw, 12px)/1.2 system-ui, sans-serif;
  white-space: nowrap;
  text-decoration: none;
}
.kls-page-dock svg { width: 22px; height: 22px; flex: none; }
.kls-page-dock a:focus-visible { outline: 2px solid #edc268; outline-offset: -3px; }
body:has(.kls-page-dock) {
  padding-bottom: calc(90px + env(safe-area-inset-bottom) + var(--game-day-bottom-offset, 0px));
}

html:has(>body>#klsGlobalNav) {
  --kls-home-bar-height:calc(64px + env(safe-area-inset-top, 0px));
  scroll-padding-top:var(--kls-home-bar-height);
}
#klsGlobalNav {
  position:sticky;
  top:0;
  z-index:1000;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  height:var(--kls-home-bar-height);
  padding:env(safe-area-inset-top, 0px) calc(12px + env(safe-area-inset-right, 0px)) 0 calc(12px + env(safe-area-inset-left, 0px));
  flex:none;
  grid-column:1 / -1;
  background:#0f1926;
  border-bottom:1px solid #30465e;
}
#klsGlobalNav>:is(.kls-global-home,.kls-global-account) {
  box-sizing:border-box;
  display:inline-flex;
  flex:none;
  align-items:center;
  justify-content:center;
  min-height:44px;
  margin:0;
  white-space:nowrap;
  text-decoration:none;
}
#klsGlobalNav>.kls-global-home { width:48px; }
.kls-global-home>img { width:42px; height:42px; object-fit:contain; }
#klsGlobalNav>.kls-global-account {
  padding:0 14px;
  color:#f4d785;
  background:#10243a;
  border:1px solid #65768b;
  border-radius:9px;
  cursor:pointer;
  font:700 15px/1.2 system-ui, sans-serif;
}
#klsGlobalNav>:is(a,button):focus-visible { outline:2px solid #f4d785; outline-offset:1px; }
body:has(>#klsGlobalNav)>header:has(>.brand){top:var(--kls-home-bar-height)}
body:has(>#klsGlobalNav) :is(#gkChooseSport,#nbaPropsHome,#wkMemberLogin,#gkAccountToggle,.kls-home-link,header>a.home[href="/"],header>a[href="/"]:last-child:not([class]):not([aria-label])){display:none!important}
body.kls-props-workspace:has(>#klsGlobalNav) :is(#gkSportReturn .wk-dashboard-wordmark,.mlb-topbar>a:first-child),
body.nhl-props-page:has(>#klsGlobalNav) .nhp-masthead,
body.kls-player-props-header:has(>#klsGlobalNav) #nhl>header:first-child{display:none!important}
body.kls-props-workspace:has(>#klsGlobalNav) :is(#gkSportReturn,.mlb-topbar){min-height:0!important;padding:0!important;margin-bottom:0!important}
@media print{#klsGlobalNav{display:none}}

.kls-roster-tabs,.kls-roster-tabs>nav{display:flex;gap:6px;overflow-x:auto;max-width:100%;padding:4px 0 8px}
.kls-roster-tabs button,.kls-roster-tabs a{flex:none;border:1px solid #52687b;background:#102b40;color:#e2ecf4;border-radius:8px;padding:9px 12px;font:inherit;font-weight:650;text-decoration:none;cursor:pointer}
.kls-roster-tabs [aria-pressed=true],.kls-roster-tabs [aria-current=true]{background:#edc975;color:#101b28}
.kls-roster-board{min-width:0;margin:8px 0 12px}
.kls-roster-board>input{box-sizing:border-box;width:100%;padding:11px;background:#0b2135;color:#edf2f6;border:1px solid #466078;border-radius:8px}
.kls-roster-board .kls-roster-grid{box-sizing:border-box;display:grid;width:100%;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) minmax(0,1fr);align-items:center;gap:5px;padding:10px 7px;text-align:left;color:#edf3f7}
.kls-roster-board button.kls-roster-grid,.kls-roster-board a.kls-roster-grid{border:0;border-bottom:1px solid #394f65;border-radius:0;background:#0b2033;text-decoration:none;cursor:pointer}
.kls-roster-grid small{display:block;color:#bdcfde}
.kls-roster-grid>:last-child{color:#f1cc78}
.kls-roster-board>div:has(>button.kls-roster-grid){max-height:24rem;overflow:auto}
.kls-roster-board [hidden],.kls-roster-board+[hidden],.nhp-market-form[hidden]{display:none!important}
#nhp-full-card{width:min(94vw,640px);max-height:86dvh;overflow:auto;color:#edf4fa;background:#10283c;border:1px solid #52728a;border-radius:14px}
#nhp-full-card::backdrop{background:#030b13c9}
#nhp-full-card>button{margin-bottom:10px}

.nhp-roster-values{display:grid;grid-template-columns:repeat(2,minmax(48px,1fr));gap:5px;text-align:center}
.nhp-roster-values small,.nhp-roster-values strong{display:block}
.nhp-roster-values small{font-size:10px;color:#c0d0dd}
.nhp-roster-values strong{font-size:16px}
.nhp-roster-values>span:last-child{color:#f1cc78}

.kls-primary-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:6px 0 10px;padding:4px;border:1px solid #344b61;border-radius:12px;background:#0a192a}
.kls-primary-tabs a{display:grid;place-items:center;min-width:0;min-height:44px;padding:0 2px;border-radius:8px;color:#dce8f3;text-align:center;text-decoration:none;font:700 clamp(11px,3vw,14px)/1.2 system-ui}
.kls-primary-tabs a[aria-current=page]{background:#eac56f;color:#17202d}
body.gk-sport-selecting .kh-actions :is([data-home-route=games],[data-home-route=props],[data-home-route=tracker]){display:none}
body.gk-sport-selecting .kh-actions .kh-action-live-bet{grid-column:1/-1;order:-1}
body.gk-sport-selecting .kh-actions [data-home-route=imports]{grid-column:1/-1;min-height:44px}

/* The shared tickets page uses the desktop rail even for NHL and WNBA. */
html:is([data-kls-league="nhl"], [data-kls-league="wnba"]) .kls-primary-tabs:not(.kls-shared-ticket-tabs) { display: none !important; }

@media (max-width: 767px) {
  body.gk-nfl-mode:not(.gk-sport-selecting):has(.gk-game-center-nav) .kls-primary-tabs,
  body.gk-nba-mode:not(.gk-sport-selecting):has(#nba .nba-subnav) .kls-primary-tabs,
  body.cfb-app:has(#cfbBottomNav) .kls-primary-tabs,
  body.mlb-app:has(.mlb-bottom-nav) .kls-primary-tabs,
  body:has(.kls-page-dock) .kls-primary-tabs,
  .kls-shared-ticket-tabs {
    display: none;
  }
}

/* League artwork follows the active workspace on mobile and desktop. */
body.gk-nfl-mode, html[data-kls-league="nfl"] body { --kls-venue: url("/kls-bg-nfl.webp"); --kls-play: url("/kls-bg-nfl-play.webp"); }
body.gk-nba-mode, html[data-kls-league="nba"] body { --kls-venue: url("/kls-bg-nba.webp"); --kls-play: url("/kls-bg-nba-play.webp"); }
body.cfb-app, html[data-kls-league="cfb"] body { --kls-venue: url("/kls-bg-cfb.webp"); --kls-play: url("/kls-bg-cfb-play.webp"); }
body.mlb-app, html[data-kls-league="mlb"] body { --kls-venue: var(--kls-kls-bg-mlb, url("/kls-bg-mlb.webp?v=major-league")); --kls-play: url("/kls-bg-mlb-play.webp"); }
body.gk-nhl-mode, html[data-kls-league="nhl"] body { --kls-venue: url("/kls-bg-nhl.webp"); --kls-play: url("/kls-bg-nhl-play.webp"); }
body.kls-wnba-art, html[data-kls-league="wnba"] body { --kls-venue: url("/kls-bg-wnba.webp"); --kls-play: url("/kls-bg-wnba-play.webp"); }
html[data-kls-league] body, body:is(.gk-nfl-mode,.gk-nba-mode,.cfb-app,.mlb-app,.gk-nhl-mode):not(.gk-sport-selecting) {
  isolation: isolate;
  background: #081523 !important;
}
:is(html[data-kls-league] body, body:is(.gk-nfl-mode,.gk-nba-mode,.cfb-app,.mlb-app,.gk-nhl-mode)):not(.gk-sport-selecting,.kls-picks-workspace):not(:has(> #liveBetCenter))::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  transform: translateZ(0);
  background: linear-gradient(#05121e55,#05121e66), var(--kls-venue, none) center / cover no-repeat;
}
html[data-kls-league] body > main, body:is(.gk-nfl-mode,.gk-nba-mode,.cfb-app,.mlb-app,.gk-nhl-mode) > main {
  background: transparent !important;
}
/* Let league artwork show between the player props panels. */
body :is(#props.pd3-scope, #nba #nbaPropsPanel.pd3-scope, #cfbPropsContent.pd3-scope),
body[data-mlb-section="props"] #mlb-featured.pd3-scope {
  background: transparent;
}
#nba:not([data-nba-view="props"]) > [data-spades-sport="nba"] { display: none; }
.prop-spades.featured-card > .featured-card-heading {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.gk-sport-selecting #gkSportHome.gk-sport-home.kls-home-v3 {
  background: transparent !important;
  --kh-panel-top: #18354fbe;
  --kh-panel-bottom: #0a192bc9;
}
/* A viewport layer keeps the crest on screen through the entire home feed. */
body.gk-sport-selecting {
  isolation: isolate;
  background: #081523 !important;
}
body.gk-sport-selecting :is(main, #kls-main-content):has(#gkSportHome) {
  background: transparent !important;
}
body.gk-sport-selecting::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 100vh;
  height: 100svh;
  z-index: -1;
  pointer-events: none;
  background: var(--kls-king-legacy-crest, url('/king-legacy-crest.webp')) center 58% / min(98vw, 82svh) auto no-repeat;
  opacity: .08;
}
body.gk-sport-selecting #gkSportHome :is(.kh-action-live-bet,.kh-parlay) {
  background: linear-gradient(135deg,var(--kh-panel-top),var(--kh-panel-bottom));
}
#gkSportHome.kls-home-v3 .kh-hero::before { background: transparent !important; }

/* The shared header owns the Home crest and Account control. */
body:has(>#klsGlobalNav) :is(#gkSportReturn, .mlb-topbar, #gkSportHome .kh-brand, .nhp-masthead),
body:has(>#klsGlobalNav) #nhl > header:has(+ #dailySportSwitch) {
  display: none !important;
}

/* Shared Game Predictions and Player Props date card. Center it within each sport's content column. */
.kls-game-date,
#analyze.gk-matchup-lab .kls-game-date,
.mlb-app:is([data-mlb-section=props],[data-mlb-section=predictions]) #mlb-date-panel.kls-game-date{
 --game-date-width:min(736px,calc(100vw - 24px));
 --game-date-columns:44px minmax(0,1fr) 44px 50px 44px;
 box-sizing:border-box;inline-size:var(--game-date-width);max-inline-size:none;min-width:0;block-size:88px;
 margin:10px calc((100% - var(--game-date-width))/2) 8px;padding:12px;
 background:#10263a;border:1px solid #334e68;border-radius:12px;color:#ecf3fa;
}
.kls-game-date .kls-game-date-label,body.gk-nba-mode #nba .kls-game-date #nbaDateLabel{
 display:block;grid-column:1/-1;height:14px;margin:0 0 4px;padding:0;text-align:left;
 color:#cbd8e5;font:600 .72rem/14px system-ui,sans-serif;letter-spacing:.04em;text-transform:uppercase;
}
.kls-game-date .kls-game-date-row,.kls-game-date.kls-nba-date,
#nhl .kls-game-date .kls-game-date-row,
#analyze.gk-matchup-lab .kls-game-date>.kls-game-date-row,
.mlb-app:is([data-mlb-section=props],[data-mlb-section=predictions]) #mlb-date-panel .kls-game-date-row{
 display:grid;grid-template-columns:var(--game-date-columns);grid-template-rows:44px;align-items:center;
 gap:5px;margin:0;padding:0;min-width:0;
}
.kls-game-date.kls-nba-date{grid-template-rows:14px 44px;gap:4px 5px;margin:10px calc((100% - var(--game-date-width))/2) 8px;padding:12px}
/* The NBA workspace forces its legacy control wrapper to display:block. */
body.gk-nba-mode #nba .kls-nba-date #nbaDateControls{display:contents!important}
body.gk-nba-mode #nba .kls-nba-date #nbaDateControls :is(.nba-date-field,.nba-date-nav){display:contents}
body.gk-nba-mode #nba .kls-nba-date #nbaDateLabel{grid-row:1;margin:0}
body.gk-nba-mode #nba .kls-nba-date #nbaDateControls :is(.nba-date-nav>*,#nbaRefresh){grid-row:2}
body.gk-nba-mode #nba .kls-nba-date #nbaDateControls #nbaDatePrev{grid-column:1}
body.gk-nba-mode #nba .kls-nba-date #nbaDateText{grid-column:2;margin:0;padding:0}
body.gk-nba-mode #nba .kls-nba-date #nbaDateControls #nbaDateNext{grid-column:3}
body.gk-nba-mode #nba .kls-nba-date #nbaDateControls #nbaDateToday{grid-column:4}
body.gk-nba-mode #nba .kls-nba-date #nbaDateControls #nbaRefresh{grid-column:5!important;grid-row:2!important}
.kls-game-date :is(time,output),#analyze.gk-matchup-lab .kls-game-date time,
body.gk-nba-mode #nba .kls-nba-date #nbaDateText{
 color:#edf3fc;min-width:0;text-align:center;font:750 clamp(.76rem,3vw,1rem)/1.2 system-ui,sans-serif;
}
.kls-game-date :is(button,a),
#nhl .kls-game-date .kls-game-date-row>a,
#analyze.gk-matchup-lab .kls-game-date button,
.mlb-app:is([data-mlb-section=props],[data-mlb-section=predictions]) #mlb-date-panel .kls-game-date-row>button,
body.gk-nba-mode #nba .kls-nba-date #nbaDateControls :is(.nba-date-nav button,#nbaRefresh){
 box-sizing:border-box;display:grid;place-items:center;width:100%;min-width:0;height:44px;min-height:44px;margin:0;padding:0 4px;
 border:1px solid #41607b;border-radius:8px;background:#0e283f;color:#dce8f4;
 font:750 .86rem/1 system-ui,sans-serif;text-align:center;text-decoration:none;
}
.kls-game-date button:disabled{opacity:.45}
.kls-game-date :is(button,a):focus-visible,.kls-game-date label:focus-within{
 outline:2px solid #f0c97b;outline-offset:2px;
}
body.gk-nba-mode #nba .kls-nba-date #nbaDateControls #nbaRefresh{display:block;font-size:0!important;line-height:42px}
.kls-game-date.kls-nba-date #nbaRefresh::after{content:'↻';font-size:1.25rem}
#mlb-date-text{display:none}
.mlb-app:is([data-mlb-section=props],[data-mlb-section=predictions]) .kls-game-date #mlb-date-form>label{
 position:relative;display:grid;place-items:center;min-width:0;min-height:44px;
}
.mlb-app:is([data-mlb-section=props],[data-mlb-section=predictions]) .kls-game-date #mlb-date-text{display:block}
.mlb-app:is([data-mlb-section=props],[data-mlb-section=predictions]) .kls-game-date #mlb-date-form>label>span{display:none}
.mlb-app:is([data-mlb-section=props],[data-mlb-section=predictions]) .kls-game-date #mlb-date{
 position:absolute;inset:0;width:100%;min-width:0;height:100%;margin:0;opacity:0;cursor:pointer;
}
.mlb-app:is([data-mlb-section=props],[data-mlb-section=predictions]) .kls-game-date #mlb-date::-webkit-calendar-picker-indicator{
 position:absolute;inset:0;width:auto;height:auto;margin:0;cursor:pointer;
}
.ice-page #nhl .kls-game-date+.ice-slate{border:1px solid #33485d;border-radius:12px}

.mlb-app[data-mlb-section=predictions] #mlb-date-panel .kls-game-date-row>button.mlb-prop-only{display:none}

/* Player Props uses the same outer card and five control columns as Predictions. */
body.kls-props-workspace :is(.kls-prop-calendar,#mlb-date-panel).kls-game-date {
 margin:10px calc((100% - var(--game-date-width))/2) 8px!important;
}
body.kls-props-workspace .kls-game-date .kls-game-date-row {
 grid-template-columns:var(--game-date-columns)!important;gap:5px!important;
}
body.kls-props-workspace #nba .kls-game-date #nbaDateLabel,
body.kls-props-workspace #mlb-date-panel.kls-game-date #mlbPropDateLabel {
 display:block!important;position:static;width:auto;height:14px;clip-path:none;overflow:visible;
}
body.mlb-app[data-mlb-section=props] #mlb-date-panel .kls-game-date-row>.mlb-slate-load {display:none}
.kls-game-date .nhp-date>time {min-height:0;border:0;background:transparent}

/* Game Day uses the NFL dashboard's calendar, date selector and separate refresh action. */
.gameday-bar,
body #nba[data-nba-view=games] #nbaDateControls.gameday-bar,
body.mlb-app[data-mlb-section=dashboard] #mlb-date-form.gameday-bar,
body.cfb-app #weekly .cfb-week-controls.gameday-bar {
 --calendar-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bfd2ed' stroke-width='1.7'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M7 2v6M17 2v6M3 11h18'/%3E%3C/svg%3E");
 --calendar-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23bfd2ed'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E");
 position:relative;box-sizing:border-box;display:grid!important;grid-template-columns:minmax(0,1fr) 48px!important;
 grid-template-rows:48px;align-items:stretch;gap:0!important;width:100%;min-width:0;
 margin:0 0 14px!important;padding:0;border:1px solid #45647c;border-radius:12px;overflow:hidden;
 background:var(--calendar-icon) 12px center/20px 20px no-repeat,var(--calendar-chevron) right 61px center/14px 14px no-repeat,linear-gradient(115deg,#0b2239,#102f4e);
}
body #nba #nbaDateControls.gameday-bar :is(.nba-date-field,.nba-date-nav){display:contents!important}
body #nba #nbaDateControls.gameday-bar :is(#nbaDateLabel,#nbaDatePrev,#nbaDateNext,#nbaDateToday),
body.mlb-app[data-mlb-section=dashboard] #mlb-date-form.gameday-bar :is(.step,#mlb-today,.mlb-prop-only,label>span){display:none!important}
.gameday-bar .gameday-choice,
body #nba #nbaDateControls.gameday-bar #nbaDateText,
body.mlb-app #mlb-date-form.gameday-bar label,
body.cfb-app #weekly .gameday-bar label.cfb-week {
 grid-area:1/1;position:relative;display:flex;align-items:center;min-width:0;min-height:0;margin:0;
 border:0;border-radius:0;box-shadow:none;background:transparent;padding:0 34px 0 45px;text-align:left;
 color:#f1f5fc;font:800 16px/1.15 system-ui,sans-serif;text-transform:uppercase;letter-spacing:0;
}
body.mlb-app #mlb-date-form.gameday-bar #mlb-date-text{display:block;font:inherit;color:inherit}
body.cfb-app #weekly .gameday-bar .cfb-week select {
 position:absolute;inset:0;width:100%;height:100%;appearance:none;padding:0 34px 0 45px;
 border:0;background:transparent;color:inherit;font:inherit;text-transform:inherit;
}
.gameday-bar select option{background:#10273c;color:#f1f5fc}
.gameday-bar .gameday-choice input[type=date],
body.mlb-app #mlb-date-form.gameday-bar #mlb-date,
body #nba #nbaDateControls.gameday-bar #nbaDate {
 grid-area:1/1;position:absolute;inset:0;z-index:1;box-sizing:border-box;display:block;width:100%;height:100%;min-width:0;margin:0;opacity:0;cursor:pointer;
}
.gameday-bar input[type=date]::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:auto;height:auto;margin:0;cursor:pointer}
.gameday-bar:has(input:focus-visible),.gameday-bar:has(select:focus-visible){outline:2px solid #f0c97b;outline-offset:2px}
.gameday-bar>button,
body #nba[data-nba-view=games] #nbaDateControls.gameday-bar #nbaRefresh,
body.mlb-app[data-mlb-section=dashboard] #mlb-date-form.gameday-bar .mlb-slate-load,
body.cfb-app #weekly .gameday-bar #cfbRefresh {
 grid-column:2!important;grid-row:1!important;box-sizing:border-box;display:grid;place-items:center;
 width:48px;min-width:0;height:48px;min-height:48px;margin:0;padding:0!important;border:0;border-left:1px solid #45647c;
 border-radius:0;box-shadow:none;color:#bfd2ed;font-size:0!important;cursor:pointer;
 background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bfd2ed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7v5h-5M4 17v-5h5M6 6a8 8 0 0 1 13 3M18 18a8 8 0 0 1-13-3'/%3E%3C/svg%3E") center/23px 23px no-repeat;
}
body #nba #nbaDateControls.gameday-bar #nbaRefresh::before,
body.mlb-app #mlb-date-form.gameday-bar .mlb-slate-load::before{content:none!important}
.gameday-bar #cfbRefresh svg{display:none}
.gameday-bar button:focus-visible{outline:2px solid #f0c97b;outline-offset:-4px}
body.cfb-app .cfb-week-controls.cfb-day-filter{grid-template-columns:minmax(0,1fr)}

/* Match the home panels while letting venue artwork show through nested prop cards. */
@layer player-props-surfaces {
  :is(body.kls-props-workspace, body[data-mlb-section="props"], body.kls-player-props-header,
      #props, #nbaPropsPanel, #cfbPropsPanel, #nhl-props-page, #pf-board-page) {
    --props-glass: linear-gradient(135deg, #18354fbe, #0a192bc9);
    --props-inset: rgb(8 23 39 / 30%);

    & :is(article, details, .card, .kls-game-date, .kls-prop-calendar,
        .kls-roster-board, .kls-roster-grid, .kls-roster-entry, .kls-top-props,
        .kls-top-prop, .kls-game-projections, .kls-projection-card, .kls-player-best,
        .kls-matchup-rail > :is(a, button), .kls-prop-links > a, .pp-card, .pp-controls, .pp-player-hero, .pp-model,
        .pp-odds, .pp-analysis, .pp-model-details, .prop-live-line-card, .prop-odds-card,
        .pr-browser, .pr-matchup, .pr-player, .pr-teams > button, .cp-schedule, .cp-matchup,
        .cp-matchup-card, .cp-defense-card, .npl-panel, .npl-picker, .npl-matchup,
        .npl-game-summary, .npl-team-cards > button, .npl-player-option, .npl-player-hero,
        .npl-projection, .npl-odds, .npl-analysis, .npl-role-card, .npt-ticket,
        .research, .finder-highlight, .finder-player, .finder-matchup,
        .nhp-leader-card, .nhp-matchup, .nhp-selection, .nhp-game-panel, .nhp-team, .nhp-empty,
        .pf-featured-prop, .pf-team-roster, .pf-player-row, .pf-player-hero, .pf-player-panel,
        .pl-slab, .pi-center, .featured-card):not([data-spades-sport]) {
      background: var(--props-glass) !important;
      /* Descendant cards need only a light tint over their parent. */
      & > * { --props-glass: var(--props-inset); }
    }
    & :is(.kls-roster-metrics > div, .kls-projection-metric, .kls-top-prop-metric,
        .kls-leader-metric, .featured-card-metric:not([data-spades-sport] *), .nhp-player-metrics > div,
        .pp-model-grid > div, .npl-model-values > div, .cp-defense-stats > div,
        .pf-featured-metrics .pf-cell) { background: var(--props-inset) !important; }

  }
  /* Clear the old solid canvas underneath the individual cards. */
  body :is(#props.pd3-scope, #nbaPropsPanel, #cfbPropsPanel, #cfbPropsContent.pd3-scope,
      #nhl-props-players, #propLabPanel),
  body[data-mlb-section="props"] :is(#mlb-featured, .mlb-finder) {
    background: transparent !important;
  }
}

/* Keep the football week centered between its arrows. */
:is(#cfbPropCalendar, #nflPropCalendar) .kls-game-date-label {
  text-align: center;
}
:is(#cfbPropCalendar, #nflPropCalendar) .kls-game-date-row {
  --week-side: clamp(44px, 18%, 76px);
  grid-template-columns: var(--week-side) 44px minmax(0, 1fr) 44px var(--week-side) !important;
  gap: 4px !important;
}
:is(#cfbPropCalendar, #nflPropCalendar) :is(#cfbPropWeek, #nflPropWeek) {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 15px;
  text-align: center;
  text-align-last: center;
  appearance: none;
  font: 750 .75rem/1.2 system-ui, sans-serif !important;
  background: #102b43 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23dce8f4'/%3E%3C/svg%3E") right 5px center / 9px 6px no-repeat !important;
}
:is(#cfbPropDateToday, #nflPropDateToday) {
  white-space: normal;
  font-size: 13px !important;
  line-height: 1.1;
}
:is(#cfbPropCalendar, #nflPropCalendar) button[aria-label$=" week"],
:is(#cfbPropDateRefresh, #nflPropDateRefresh) {
  font-size: 23px !important;
}
:is(#cfbPropDateRefresh, #nflPropDateRefresh) {
  width: 44px;
  justify-self: end;
}
@media (max-width: 360px) {
  :is(#cfbPropCalendar, #nflPropCalendar) { padding-inline: 7px; }
  :is(#cfbPropCalendar, #nflPropCalendar) :is(#cfbPropWeek, #nflPropWeek) { padding-inline: 13px; font-size: 11px !important; }
}

/* Game Prediction shares the home card tint across all six leagues. */
@layer game-prediction-surfaces {
  :is(#analyze, #nbaMatchupStats, body[data-mlb-section="predictions"] main, .ice-page #nhl) {
    --prediction-card-fill: linear-gradient(135deg, #18354fbe, #0a192bc9);
    background: transparent !important;

    & :is(.lab-shell, .lab-grid, .pd3-workspace, .pd3-panels, .pd3-pane,
        #mlb-featured, .ice-rail) {
      background: transparent !important;
    }

    & :is(article, details, .card, .panel, .kls-game-date, .lab-matchups, .lab-context,
        .lab-matchup, .stat-faceoff, #cfbComparison, .cfbr-card, .nba-section-heading,
        .nba-prediction-matchups, .nba-royal-panel, .cr-paper, .cr-recent-form,
        .cr-model-context, .elite-confidence, .elite-matchup, .elite-pending,
        .pd3-header, .pd3-scoreboard, .pd3-directory, .pd3-navigation, .pd3-tabs,
        .pd3-strip, .pd3-market, .pd3-matchup-picker, .pd3-period-switch,
        .pd3-period-note, .pd3-period-book, .pd3-nav-status, .pd3-stat-group,
        .mlb-prediction-title, #mlb-schedule, .game-button,
        .ice-box, .ice-date, .ice-controls, .ice-card, .ice-trio > div, #ice-panels,
        [class$="-card"], [class*="-card "], [class$="-panel"], [class*="-panel "]):not(
          [data-crown-breaker], [data-crown-breaker] *, .cb-card, .cb-card *,
          .pd3-pane, #mlb-featured) {
      background: var(--prediction-card-fill) !important;
      & > * { --prediction-card-fill: rgb(8 23 39 / 30%); }
    }
  }
}

/* A single fixed crown sits behind the shared My Tickets screens. */
html body.kls-picks-workspace:not(.gk-sport-selecting) {
  isolation: isolate;
  background: #0b1523 !important;
}
body.kls-picks-workspace:not(.gk-sport-selecting)::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  transform: translateZ(0);
  z-index: -2;
  background: linear-gradient(165deg, #0b1523, #14263a);
}
body.kls-picks-workspace:not(.gk-sport-selecting)::before {
  content: "";
  position: fixed;
  inset: auto 0 calc(68px + env(safe-area-inset-bottom)) 0;
  margin-inline: auto;
  width: min(91vw, 64svh, 510px);
  aspect-ratio: 400 / 230;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20400%20230%22%3E%3Cg%20stroke%3D%22%23e6c571%22%20stroke-width%3D%224%22%20fill%3D%22none%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M31%2086%20Q64%20113%2083%2087%20Q92%2072%2083%2055%20Q106%2082%20130%2087%20Q175%2098%20200%2036%20Q225%2098%20270%2087%20Q294%2082%20317%2055%20Q308%2072%20317%2087%20Q336%20113%20369%2086%20L340%20167%20Q200%20137%2060%20167%20Z%22%2F%3E%3Cpath%20d%3D%22M44%20103%20Q69%20122%2088%20100%20M312%20100%20Q331%20122%20356%20103%20M98%2070%20Q146%20135%20200%2057%20Q254%20135%20302%2070%22%2F%3E%3Cpath%20d%3D%22M200%208%20L213%2026%20L200%2044%20L187%2026%20Z%20M82%2038%20L91%2049%20L82%2061%20L73%2049%20Z%20M318%2038%20L327%2049%20L318%2061%20L309%2049%20Z%22%2F%3E%3Cellipse%20cx%3D%22200%22%20cy%3D%22177%22%20rx%3D%22141%22%20ry%3D%2219%22%2F%3E%3Cpath%20d%3D%22M71%20185%20Q200%20223%20329%20185%22%2F%3E%3C%2Fg%3E%3Ctext%20x%3D%22200%22%20y%3D%22143%22%20fill%3D%22%23e6c571%22%20text-anchor%3D%22middle%22%20font-family%3D%22Georgia%2Cserif%22%20font-size%3D%2254%22%20font-weight%3D%22bold%22%20letter-spacing%3D%225%22%3EKLS%3C%2Ftext%3E%3C%2Fsvg%3E") center / contain no-repeat;
  opacity: .17;
  z-index: -1;
  pointer-events: none;
}
body.kls-picks-workspace :is(#nba, #nbaTrackerPanel, #tracker, #cfbPicks, .mp-app.pc-streamlined, .wi-panel, .pf-panel, .pc-panel) {
  background: transparent !important;
}
body.kls-picks-workspace .mp-app.pc-streamlined :is(.pc-ticket-tile, .wi-work > .wi-upload, .pf-score-card, .pf-automatic, .pc-account) {
  background: linear-gradient(145deg, #1a2e40db, #112031cb) !important;
}
body.kls-picks-workspace .mp-app.pc-streamlined .wi-work .wi-scan-primary {
  background: linear-gradient(115deg, #f6d77f, #dcad48) !important;
  color: #142031 !important;
}
body.kls-picks-workspace .mp-workspace-main button[aria-pressed="true"] {
  color: #f4d17a !important;
  box-shadow: inset 0 -3px #e6c571;
}

#gkSportHome .kh-matchups {margin:8px 0 16px;min-width:0}
#gkSportHome .kh-matchups h2 {margin:0 0 8px;color:#f5e3b4;font:700 1.1rem/1.3 system-ui,sans-serif}
#khMatchupsRail {display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;color:#c2d0dc;font:500 .9rem/1.4 system-ui,sans-serif}
#khMatchupsRail p {margin:0}
#khMatchupsRail .kh-matchup-link {box-sizing:border-box;flex:0 0 min(76%,240px);padding:10px 12px;scroll-snap-align:start;border-radius:10px;background:#12283a;color:#f2f5fa}
#khMatchupsRail small {display:block;margin-bottom:4px;color:#f2cb77;font-weight:700}
#khMatchupsRail .kh-matchup-link div {display:flex;justify-content:space-between;gap:8px}
#gkSportHome.kls-home-v3 .kh-parlay {border-inline-start:4px solid #ebc46e;background:#172c40;gap:12px;padding:14px}
#gkSportHome.kls-home-v3 .kh-parlay-choose {background:#edca7a;color:#121c24}
#gkSportHome.kls-home-v3 .kh-feature {display:grid;grid-template-rows:88px auto;justify-content:stretch;align-items:stretch;min-height:0;padding:0;gap:0}
#gkSportHome.kls-home-v3 .kh-feature>img {position:static;inset:auto;z-index:auto;width:100%;height:100%;object-fit:contain;mask-image:none;transform:none}
#gkSportHome.kls-home-v3 .kh-feature-copy {position:static;box-sizing:border-box;align-self:stretch;width:100%;padding:8px;text-align:center;background:#122437;transform:none}
#gkSportHome.kls-home-v3 .kh-feature-copy>strong {font:700 clamp(.9rem,3.4vw,1.15rem)/1.25 system-ui,sans-serif;color:#f4d897}

/* Compact Home layout shared by the Android shell and web. */
body.gk-sport-selecting #klsGlobalNav .kls-global-account {border-radius:24px;background:#edc978;color:#17202b;border-color:#e1bb69}
body.gk-sport-selecting .kls-primary-tabs a {border-radius:24px}
#gkSportHome .kh-sport-art-list>li {border-radius:10px}
#gkSportHome .kh-sport-art-list>li:has(button[aria-pressed=true]) {background:#283020;box-shadow:0 0 8px #e5be553b}
#gkSportHome .kh-matchups {margin-block:6px 8px}
#khMatchupsRail {scrollbar-width:none}
#khMatchupsRail::-webkit-scrollbar {display:none}
#khMatchupsRail .kh-matchup-link {flex-basis:min(82%,310px);background:#15293b;border:1px solid #23394b}
#khMatchupsRail .kh-matchup-link div {align-items:center;justify-content:start;min-height:25px}
#khMatchupsRail .kh-matchup-link b {margin-inline-start:auto}
#khMatchupsRail .kh-team-mark {display:grid;place-items:center;position:relative;flex:0 0 clamp(40px,5vw,52px);height:clamp(40px,5vw,52px);border-radius:50%;background:transparent;color:#f1d28f;font:700 9px/1 system-ui}
.kh-team-mark img {position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.kh-matchup-dots {display:flex;justify-content:center;gap:5px;margin-top:5px}
.kh-matchup-dots i {width:5px;height:5px;border-radius:50%;background:#47576b}
.kh-matchup-dots i.active {background:#eccc82}
#gkSportHome.kls-home-v3 .kh-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:6px 0 14px}
#gkSportHome .kh-actions :is(.kh-action-live-bet,[data-home-route=imports]) {grid-column:auto;display:flex;align-items:center;justify-content:center;flex-direction:row;gap:5px;min-width:0;min-height:44px;padding:6px;border:1px solid #b79b65;border-radius:10px;background:#101f2e;color:#f4ecda;text-align:center}
#gkSportHome .kh-actions .kh-action-live-bet {order:-1}
#gkSportHome .kh-actions .kh-action strong {font:750 clamp(11px,3vw,15px)/1.2 system-ui,sans-serif}
#gkSportHome .kh-actions .kh-action .kh-icon {display:block;flex:none;width:16px;height:16px;color:#edce86}
#gkSportHome .kh-actions .kh-action :is(small,.kh-live-bet-arrow),#gkSportHome .kh-actions .kh-action::before {display:none}
#gkSportHome #homeTicketStatus {padding:10px 12px;border-radius:12px;background:linear-gradient(135deg,#182f44,#101e2c)}
#gkSportHome .kh-ticket-heading h2 {font-size:clamp(20px,5vw,26px)}
#gkSportHome .kh-ticket-counts {gap:6px}
#gkSportHome .kh-ticket-counts button {position:relative;color:var(--status-ink);border-color:var(--status-edge);background:var(--status-bg)}
#gkSportHome .kh-ticket-counts button::after {content:"";position:absolute;top:5px;right:5px;width:5px;height:5px;border-radius:50%;background:var(--status-ink)}
#gkSportHome .kh-ticket-counts .kh-live {--status-ink:#83e9ef;--status-edge:#458799;--status-bg:#103546}
#gkSportHome .kh-ticket-counts .kh-pending {--status-ink:#f5d580;--status-edge:#988349;--status-bg:#332e22}
#gkSportHome .kh-ticket-counts .kh-won {--status-ink:#95e9b7;--status-edge:#507f65;--status-bg:#19332b}
#gkSportHome .kh-ticket-counts .kh-lost {--status-ink:#f4a8b3;--status-edge:#805466;--status-bg:#342432}
#gkSportHome .kh-ticket-counts button[aria-pressed=true] {outline:2px solid var(--status-ink);outline-offset:-2px}
#gkSportHome .kh-first-ticket {display:flex;justify-content:center;align-items:center}
#gkSportHome.kls-home-v3 .kh-parlay {gap:8px;padding:10px 12px}
#gkSportHome.kls-home-v3 .kh-parlay-choose>span {position:static;display:inline;transform:none}
#gkSportHome.kls-home-v3 .kh-feature-grid {gap:8px}
#gkSportHome.kls-home-v3 .kh-feature {grid-template-rows:82px auto}

/* Section headings above matchup and player prop cards. */
.kls-phase {
  margin: 12px 0 0;
  color: #f2ce87;
  font: 750 1.12rem/1.2 system-ui;
}

/* Game Day matchups share the same mobile scorecard in every league. */
@layer gameday-reference {
  :is(body.kls-dashboard-workspace, body:has(.daily-game-page)) .kls-sport-switch:not(.kls-rankings-sports) {
    display: flex !important;
    gap: 6px;
    overflow-x: auto;
    max-width: 100%;
    padding: 6px;
    box-sizing: border-box;
    background: #09192bea !important;
    border-radius: 14px;
  }
  :is(body.kls-dashboard-workspace, body:has(.daily-game-page)) .kls-sport-switch a {
    flex: 1 0 64px;
    min-height: 44px;
    border: 1px solid #42566b !important;
    border-radius: 11px !important;
    background: #0b1b2e !important;
    color: #dce5ef !important;
  }
  :is(.wk-command-filters, .cfb-slate-filters, .nba-slate-filters, .kls-slate-status) {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px !important;
    margin-block: 10px 18px;
  }
  :is(.wk-command-filters, .cfb-slate-filters, .nba-slate-filters, .kls-slate-status) > :is(a, button) {
    flex: 1 1 58px;
    min-width: 0;
    min-height: 44px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    padding: 5px 3px !important;
    border: 1px solid #405971 !important;
    border-radius: 10px !important;
    background: #0b2339f0 !important;
    color: #dbe5f1 !important;
    font-weight: 750;
  }
  :is(.wk-command-filters, .cfb-slate-filters, .nba-slate-filters, .kls-slate-status, body.kls-dashboard-workspace .kls-sport-switch, .daily-game-page .kls-sport-switch)
    > :is([aria-pressed="true"], [aria-current="true"], [aria-current="page"]) {
    color: #111c28 !important;
    background: linear-gradient(135deg,#ffe49b,#e7b64e) !important;
    border-color: #d9b76a !important;
  }
  .kls-phase {
    color: #f3d690 !important;
    font-size: clamp(1.05rem,4.4vw,1.4rem);
    line-height: 1.25;
  }
  article.kls-game-card.nbd-card {
    background: repeating-linear-gradient(132deg,transparent 0 23px,#ffffff05 23px 24px),
      linear-gradient(106deg,var(--away-tint,#153731c7),#091624db 49%,var(--home-tint,#142e51cc)) !important;
    border: 1px solid #ab985f !important;
    border-radius: 16px !important;
    padding: clamp(12px,3.4vw,20px) !important;
  }
  .kls-game-card .nbd-top { grid-template-columns: minmax(0,1fr) max-content !important; }
  .kls-game-card .nbd-status { width: max-content !important; max-width: 100% !important; box-sizing: border-box; justify-self: end; }
  .kls-game-card .nbd-top :is(time,.kls-start-time,.cfb-kickoff-tbd) {
    font-size: .83rem !important;
    color: #f0f4fa !important;
  }
  .kls-game-card .nbd-team .nbd-logo {
    width: clamp(56px,15vw,78px) !important;
    height: clamp(56px,15vw,78px) !important;
    max-width: 100%;
    object-fit: contain;
    box-sizing: border-box;
  }
  .kls-game-card .nbd-logo img { width: 100%; height: 100%; object-fit: contain; }
  .kls-game-card .nbd-logo > svg { width: 100%; height: 100%; }
  .kls-game-card .nbd-score .ps-vs { color: #efd49a !important; }
  /* Use one row when the native date control has room for its full label. */
  @media (min-width: 380px) {
    :is(body.kls-dashboard-workspace, body:has(.daily-game-page))
      :is(.wk-pro-heading, #nbaDashboardHeading, .daily-title, .mlb-title-row) {
      float: left;
      width: 40%;
      min-height: 50px;
      align-content: center;
      margin: 0 !important;
    }
    :is(body.kls-dashboard-workspace, body:has(.daily-game-page))
      :is(.wk-pro-heading h2, #nbaDashboardHeading h2, .daily-title h1, .mlb-title-row h1) {
      font-size: clamp(1.2rem,4.7vw,2.2rem) !important;
      line-height: 1.08 !important;
    }
    :is(body.kls-dashboard-workspace, body:has(.daily-game-page))
      :is(.wk-pro-controls, .gameday-bar, #nbaControlsHome:has(.gameday-bar), #mlb-date-panel) {
      box-sizing: border-box;
      width: 58% !important;
      margin-inline: auto 0 !important;
    }
    body.kls-dashboard-workspace :is(#nbaControlsHome,#mlb-date-panel) .gameday-bar { width: 100% !important; }
    .gameday-bar :is(.gameday-choice,#nbaDateText,#mlb-date-text,select) { font-size: .8rem !important; }
  }
}

/* The Predictions slate uses the same face-off composition as Game Day. */
@layer prediction-slate {
  :is(#nflPredictionMatchups,#cfbPredictionMatchups,#nbaPredictionMatchups,body[data-mlb-section=predictions] #mlb-games,.ice-slate .ice-rail,#cbbPredictionMatchups) {
    display:grid!important; grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr))!important;
    align-content:start; gap:10px!important; padding:4px!important; min-width:0;
    max-height:72svh; overflow:auto!important; scroll-snap-type:none!important; scrollbar-width:thin;
  }
  :is(#nflPredictionMatchups,#cfbPredictionMatchups,#nbaPredictionMatchups,body[data-mlb-section=predictions] #mlb-games,.ice-slate .ice-rail) :is(.lab-matchup-card,.nba-prediction-matchup,.game-button,.ice-card) {
    position:relative;box-sizing:border-box;display:grid!important;grid-template-columns:minmax(0,1fr) var(--slate-center-width,28px) minmax(0,1fr)!important;
    align-content:start;align-items:start;gap:8px 2px!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;
    padding:12px!important;border-radius:15px!important;border:1px solid #726543!important;
    background:linear-gradient(110deg,#16332fef,#101e30f7 50%,#18345bf2)!important;color:#eff3f6!important;text-align:center!important;
  }
  :is(.lab-matchup-card,.nba-prediction-matchup,.ice-card,.game-button):is([aria-pressed=true],[aria-current=true]) {border-color:#edc77a!important}
  :is(.lab-matchup-card,.nba-prediction-matchup,.ice-card,.game-button)[data-slate-phase] > *,
  body[data-mlb-section=predictions] .game-button > * {grid-column:1/-1}
  .lab-matchup-card .lab-matchup-pair {display:contents!important}
  :is(.lab-matchup-card .lab-matchup-team,.nba-prediction-matchup .npm-team,.ice-card .ice-team,body[data-mlb-section=predictions] .game-button .game-team) {
    grid-row:2!important;grid-column:1!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:start!important;min-width:0;text-align:center!important;gap:4px!important;
  }
  :is(.lab-matchup-card .lab-matchup-team:last-child,.nba-prediction-matchup .npm-home,.ice-card .ice-team:nth-of-type(2),body[data-mlb-section=predictions] .game-button .game-team:nth-child(3)) {grid-column:3!important}
  :is(.lab-matchup-card,.nba-prediction-matchup,.ice-card,body[data-mlb-section=predictions] .game-button)::after {content:"VS";grid-column:2;grid-row:2;align-self:start;margin-top:28px;color:#f4da97;font:800 16px/1 system-ui}
  body :is(.lab-matchup-card,.nba-prediction-matchup,.ice-card)[data-slate-phase=final],
  body[data-mlb-section=predictions] #mlb-games [data-slate-phase=final] > .game-button {
    --slate-center-width:3.5rem;
  }
  body :is(.lab-matchup-card,.nba-prediction-matchup,.ice-card)[data-slate-phase=final]::after,
  body[data-mlb-section=predictions] #mlb-games [data-slate-phase=final] > .game-button::after {
    content:"Final";
  }
  body :is(.lab-matchup-card,.nba-prediction-matchup,.ice-card)[data-slate-phase=final]::after,
  body[data-mlb-section=predictions] #mlb-games [data-slate-phase=final] > .game-button::after,
  #cbbPredictionMatchups [data-slate-phase=final] .ps-vs {
    justify-self:center; width:max-content; padding:4px 6px; border:1px solid #e3bf72;
    border-radius:6px; background:#182b3b; color:#ffdfa0; font:800 .75rem/1.15 system-ui;
    text-transform:uppercase;
  }
  .lab-matchup-card .lab-matchup-at {display:none!important}
  :is(.lab-matchup-team,.npm-team,.ice-team) img,body[data-mlb-section=predictions] .game-team .club-badge {display:block!important;width:clamp(64px,20vw,90px)!important;height:clamp(64px,20vw,90px)!important;object-fit:contain!important;max-width:100%!important;background:transparent!important}
  body[data-mlb-section=predictions] .game-team .club-badge img {width:100%;height:100%;object-fit:contain}
  body[data-mlb-section=predictions] .game-team .game-club>span:not(.club-badge) {display:none}
  :is(.lab-matchup-forecast,.cfb-matchup-forecast,.npm-forecast,.ice-card footer,.mlb-rail-forecast){text-align:center!important;color:#f1d490!important}
  :is(.lab-matchups-controls,.ice-step,#nbaPredictionMatchupsPrev,#nbaPredictionMatchupsNext,#cfbPredictionMatchupsPrev,#cfbPredictionMatchupsNext) {display:none!important}
  .prediction-slate-filters {display:flex;gap:5px;overflow-x:auto;margin:6px 0 8px}
  .prediction-slate-filters button {flex:1 0 auto;min-width:max-content;padding-inline:4px;white-space:nowrap;min-height:44px;color:#e9eff8;background:#10253b;border:1px solid #50677b;border-radius:9px;font:700 13px/1.15 system-ui}
  .prediction-slate-filters button[aria-pressed=true] {color:#132030;background:#edc978;border-color:#e9c783}
  :is(#nflPredictionMatchups,#cfbPredictionMatchups,#nbaPredictionMatchups,#mlb-games,.ice-slate .ice-rail,#cbbPredictionMatchups):is([data-slate-filter=upcoming])>[data-slate-phase]:not([data-slate-phase=upcoming]),
  :is(#nflPredictionMatchups,#cfbPredictionMatchups,#nbaPredictionMatchups,#mlb-games,.ice-slate .ice-rail,#cbbPredictionMatchups):is([data-slate-filter=live])>[data-slate-phase]:not([data-slate-phase=live]),
  :is(#nflPredictionMatchups,#cfbPredictionMatchups,#nbaPredictionMatchups,#mlb-games,.ice-slate .ice-rail,#cbbPredictionMatchups):is([data-slate-filter=final])>[data-slate-phase]:not([data-slate-phase=final]) {display:none!important}
  .prediction-slate-empty {grid-column:1/-1;color:#c1d0de}
  body:not([data-mlb-section=predictions]) .prediction-slate-filters[data-league=mlb] {display:none}
}

@layer prediction-slate {
  :is([data-slate-filter=live]:not(:has(>[data-slate-phase=live])),[data-slate-filter=final]:not(:has(>[data-slate-phase=final])),[data-slate-filter=upcoming]:not(:has(>[data-slate-phase=upcoming])))::before {content:"No matchups with this status.";grid-column:1/-1;padding:14px;color:#c8d6e5}
}

@layer gameday-reference {
  @media (max-width:700px) {
    :is(body.kls-dashboard-workspace,body:has(.daily-game-page)) :is(.wk-pro-heading,#nbaDashboardHeading,.daily-title,.mlb-title-row) {float:none;width:100%;min-height:0;margin:10px 0 6px!important}
    :is(body.kls-dashboard-workspace,body:has(.daily-game-page)) :is(.wk-pro-controls,.gameday-bar,#nbaControlsHome:has(.gameday-bar),#mlb-date-panel){width:100%!important;margin:0 0 8px!important}
  }
}
.slate-total {display:block;margin-top:4px;font-size:.82rem;color:#d3deeb}

#khMatchupsRail .kh-matchup-link {text-decoration:none;cursor:pointer}
#khMatchupsRail .kh-matchup-link:is(:hover,:focus-visible) {border-color:#eac56f}
#khMatchupsRail .kh-matchup-link:focus-visible {outline:2px solid #eac56f;outline-offset:-3px}

/* The actual application state owns the persistent highlight. */
body :is(a,button,[role=button],[role=tab],[role=option]):is(
  [aria-pressed=true],[aria-selected=true],[aria-current]:not([aria-current=false],[aria-current=""])
):not(.kls-game-card,.lab-matchup-card,.nba-prediction-matchup,.nhp-matchup,.ice-card,.game-button,.cbb-prop-matchups a,[data-mlb-rail-forecast],[data-game],[data-follow-game],[data-game-id]),
body :is(.tabs,.kls-prop-tabs,.kls-roster-tabs,.team-tabs,[role=tablist]) :is(a,button):is(.active,.selected,.is-active,[data-state=active]):not(
  [aria-pressed=false],[aria-selected=false],[aria-current=false]
) {
  border-color:#f2cd82!important;
  box-shadow:inset 0 0 0 1px #f2cd82!important;
  background:#1b3045!important;
  color:#fff2d6!important;
}

/* Leave team identity, scores, and venue artwork readable on selected cards. */
body :is(.kls-game-card,.lab-matchup-card,.nba-prediction-matchup,.nhp-matchup,.ice-card,.game-button,.cbb-prop-matchups a,[data-mlb-rail-forecast],[data-game],[data-follow-game],[data-game-id]):is(
  [aria-pressed=true],[aria-selected=true],[aria-current]:not([aria-current=false],[aria-current=""])
) {
  outline:2px solid #f2cd82;
  outline-offset:-2px;
}

body :is(button,a,[role=tab],[role=button],[role=option])[data-kls-selecting] {
  outline:2px solid #f2cd82;
  outline-offset:2px;
}


:is(body[data-kls-predictions-hub],body.kls-predictions-hub):not([data-kls-game-center]) .kls-sport-switch {
 display:flex!important;flex-wrap:nowrap;gap:6px;max-width:100%;min-width:0;overflow-x:auto;
 box-sizing:border-box;padding:6px;background:#09192bea;border-radius:14px;
}
:is(body[data-kls-predictions-hub],body.kls-predictions-hub):not([data-kls-game-center]) .kls-sport-switch a {
 flex:1 0 64px;min-height:44px;white-space:nowrap;justify-content:center;
}
body[data-kls-predictions-hub]:not([data-kls-game-center]) :is(
 #analyze .pd3-workspace,#analyze .gk-section-banner,#analyze .lab-heading-note,#analyze .lab-select,
 #nbaMatchupStats .pd3-workspace,#mlb-featured,.kls-game-center-heading
) {display:none!important}
body[data-kls-predictions-hub]:not([data-kls-game-center]) .kls-predictions-title {
 margin:8px 0;font-size:clamp(1.25rem,4.8vw,1.8rem);
}
body:not([data-kls-game-center]) .kls-game-center-heading {display:none!important}
body[data-kls-game-center] :is(
 #klsExperience,#gkSportReturn,#analyze .gk-pred-top-anchor,#analyze .gk-section-banner,#analyze .lab-heading,
 #analyze .lab-game-dates,#analyze .lab-matchups,#analyze #cfbPredictionDate,#analyze #cfbPredictionMatchupRail,
 #nbaMatchupStats .kls-predictions-title,#nbaPredictionControls,#nbaMatchupStats .pd3-matchup-picker,
 .gk-pred-crown-section,[data-crown-breaker],#mlb-date-panel,.mlb-title-row,.mlb-prediction-intro,
 #mlb-schedule,#mlb-status,#mlb-nearby-dates,.pd3-change-game
) {display:none!important}
body[data-kls-predictions-hub] :is(.mlb-prediction-intro,#analyze .gk-pred-quicknav,#analyze .lab-game-title) {display:none!important}
body[data-kls-predictions-hub]:not([data-kls-game-center]) #analyze .lab-heading {
 margin-block:8px;min-height:0;padding-block:0;
}
body[data-kls-predictions-hub]:not([data-kls-game-center]) :is(.gk-pred-crown-section,[data-crown-breaker]) {margin-top:10px}
.kls-game-center-heading {margin:0 0 12px;min-width:0}
.kls-game-center-heading > span,.kls-game-center-kicker {
 display:block;color:#edcb86;font-size:.75rem;font-weight:750;letter-spacing:.08em;text-transform:uppercase;
}
.kls-game-center-heading h2,.kls-game-center-title {
 margin:4px 0 8px;color:#f6f2e5;font-size:clamp(1.3rem,5.2vw,2rem);line-height:1.15;
}
.kls-game-center-bar {
 display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 12px;
}
.kls-game-center-bar label {
 display:grid;gap:3px;min-width:0;width:min(58%,19rem);font-size:.75rem;font-weight:750;color:#e9d5a8;
}
.kls-game-center-bar :is(.kls-game-center-back,select) {
 box-sizing:border-box;min-height:44px;border:1px solid #8f784a;border-radius:9px;
 background:#13263a;color:#fff2d6;padding:7px 10px;font:inherit;font-weight:750;
}
.kls-game-center-bar select {width:100%;min-width:0;text-overflow:ellipsis}
.kls-game-center-bar .kls-game-center-back {display:inline-flex;align-items:center;text-decoration:none;white-space:nowrap}
.kls-game-center-bar :is(.kls-game-center-back,select):focus-visible {outline:2px solid #f2cd82;outline-offset:2px}

/* Selected-game views share the arena treatment and compact ticket split. */
kls-ticket-split[compact] .kls-ml-split-bar{grid-column:1/-1;width:100%;height:4px;border-radius:3px;background:linear-gradient(to right,#bb5659 0 var(--away-share),#648bc8 var(--away-share) 100%)}
.pd3-stadium kls-ticket-split[compact]{grid-template-columns:auto minmax(0,1fr) auto;padding-top:5px}
.pd3-stadium kls-ticket-split[compact] p{text-align:right}
.ice-page #nhl [data-kls-static-center]+.ice-box,#cbb-game-center .elite-confidence{background:linear-gradient(180deg,#071524ac,#0b1726d9),var(--kls-venue,var(--kls-gk-arena-hero, url('/gk-arena-hero.webp'))) center/cover;border:1px solid #77684f;border-radius:12px;text-align:center}
.ice-page #nhl .ice-score .kls-hero-badge,#cbb-game-center .elite-side img{width:clamp(48px,10vw,76px);height:clamp(48px,10vw,76px);object-fit:contain;display:block;margin:0 auto 4px}
.ice-page #nhl [data-kls-static-center]~* .ice-controls a[aria-current=page],#cbb-game-center .cbb-controls .active{color:#182031;background:#f7bc49}
.ice-page #nhl #ice-panels .ice-controls,#cbb-game-center .cbb-controls{flex-wrap:wrap}
.ice-page #nhl .ice-controls .kls-live-center-tab,#cbb-game-center .kls-live-center-tab{color:#f6cf84}
:is(.ice-page,#cbb-game-center) kls-ticket-split[compact]{font-size:.78rem;text-align:center}
:is(.ice-page,#cbb-game-center) kls-ticket-split[compact] :is(strong,p,details){display:inline-block;margin:2px 4px}
[data-matchup-panel]{scroll-margin-top:65px}
body[data-kls-game-center=nfl] details.notice:has(+ #nflmetaPanel){display:none!important}
body[data-kls-game-center] .kls-game-center-heading>span,[data-kls-static-center]>.kls-game-center-kicker{display:none}
.kls-game-center-bar label{width:min(76%,27rem)}
.kls-game-center-heading h2:focus:not(:focus-visible){outline:0}

/* Match the client Game Center on server-rendered hockey and basketball pages. */
.kls-static-stadium{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;min-width:0;max-width:100%;color:#f2f6fa}
.kls-static-stadium .pd3-scoreboard{display:grid;gap:7px}
.kls-static-stadium .pd3-score-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.kls-static-stadium.pd3-stadium .pd3-board-team{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:'badge' 'name' 'score' 'chance' 'fair';justify-items:center;align-content:start;text-align:center;gap:4px}
.kls-static-stadium .pd3-board-team+.pd3-board-team{border-left:1px solid #415469}
.kls-static-stadium .pd3-forecast-title{text-align:center}
.kls-static-stadium .pd3-lines-table small{display:block;color:#bac9da;font-weight:500;font-size:.73rem}
.kls-static-stadium .pd3-scoreboard:before{background-size:cover;background-position:center}
.kls-static-detail{display:grid;gap:9px}
:is(#nhl,#cbb-game-center) .pd3-stadium-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:8px}
:is(#nhl,#cbb-game-center) .pd3-stadium-actions>a{display:grid;place-items:center;min-height:44px;margin:0;padding:6px;text-decoration:none;font-weight:750;border:1px solid #766947;border-radius:8px;background:#152537;color:#eff5fb}
:is(#nhl,#cbb-game-center) .pd3-stadium-actions>.pd3-build-pick{color:#17202d;background:#f7bc49}
:is(#nhl .kls-static-stadium,#cbb-game-center) :is(.ice-controls,.cbb-controls){display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:2px;padding:4px;margin:0;border:1px solid #3d5065;border-radius:9px;background:#172638}
:is(#nhl .kls-static-stadium,#cbb-game-center) :is(.ice-controls,.cbb-controls):has(> .kls-live-center-tab){grid-template-columns:repeat(4,minmax(max-content,1fr)) max-content}
:is(#nhl .kls-static-stadium,#cbb-game-center) :is(.ice-controls,.cbb-controls)>a{display:grid;place-items:center;margin:0;padding:3px;min-height:44px;border:0;border-radius:6px;background:transparent;color:#d8e4f1;font:700 clamp(.69rem,2.6vw,.85rem)/1.15 system-ui;text-align:center;text-decoration:none;box-shadow:none}
:is(#nhl .kls-static-stadium,#cbb-game-center) :is(.ice-controls,.cbb-controls)>a:is([aria-current=page],[aria-current=true]){background:#f7bc49;color:#17202d}
.ice-page #nhl .kls-static-stadium #ice-panels{border:0;padding:0;margin:0}
.kls-static-stadium .pd3-lines-table{margin:0}
/* Selected periods and sections use the reference's gold fill on each platform. */
:is(#nhl,#nba,#cbb-game-center,#analyze,#mlb-featured) :is(.ice-controls,.pd3-tabs,.pd3-period-switch,.fh-periods,.cbb-controls)>:is(a,button):is([aria-pressed=true],[aria-selected=true],[aria-current=page],[aria-current=true]){
 background:#f7bc49!important;color:#17202d!important;box-shadow:inset 0 0 0 1px #f8cd74!important
}
.pd3-stadium .pd3-lines-table tr>:first-child{width:24%;white-space:nowrap}
body[data-kls-game-center=nba] :is(#nbaDashboardHeading,#nbaWorkspaceIntro){display:none!important}
body[data-kls-game-center] .pd3-workspace.pd3-stadium .pd3-board-team{display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px}
body[data-kls-game-center] .pd3-workspace.pd3-stadium .pd3-team-badge{order:-1}

/* Keep Back at the edge and center the selected game within the full header. */
/* Give Back and the matchup selector separate rows on every screen. */
.kls-game-center-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.kls-game-center-bar > .kls-game-center-back {
  grid-area: 1 / 1;
  justify-self: start;
}
.kls-game-center-bar > .kls-game-switcher {
  position: relative;
  grid-area: 2 / 1;
  justify-self: center;
  width: min(100%, 32rem);
  min-width: 0;
}
.kls-game-center-bar .kls-game-trigger{display:grid;width:100%;gap:3px;padding:0;border:0;background:transparent;color:#f5ce81;text-align:center;font:750 .75rem/1.25 system-ui;cursor:pointer}
.kls-game-choice{position:relative;display:grid;align-content:center;box-sizing:border-box;min-height:44px;padding:5px 22px;overflow-wrap:anywhere;background:#13263a;color:#f5f7fa;border:1px solid #68798b;border-radius:8px;font:750 clamp(.78rem,2.6vw,.96rem)/1.2 system-ui}
.kls-game-choice::after{content:'';position:absolute;top:calc(50% - 5px);right:10px;width:6px;height:6px;border-right:2px solid #cbd6df;border-bottom:2px solid #cbd6df;transform:rotate(45deg)}
.kls-game-trigger[aria-expanded=true] .kls-game-choice::after{top:calc(50% - 1px);transform:rotate(225deg)}
.kls-game-trigger:disabled .kls-game-choice::after{display:none}
.kls-game-trigger:focus-visible .kls-game-choice{outline:2px solid #f2cd82;outline-offset:2px}
.kls-game-switcher:has([aria-expanded=true]){z-index:20}
.kls-game-options:not([hidden]){display:grid;position:absolute;top:100%;left:0;right:0;z-index:2;max-height:min(45vh,24rem);overflow:auto;overscroll-behavior:contain;background:#11253b;border:1px solid #68798b;border-radius:8px;box-shadow:0 8px 18px #0007}
.kls-game-options[hidden]{display:none!important}
.kls-game-center-bar .kls-game-options>:is(button,a){box-sizing:border-box;display:grid;align-content:center;gap:2px;width:100%;min-height:44px;padding:7px 10px;border:0;border-bottom:1px solid #374c61;border-radius:0;background:transparent;color:#edf3f9;text-decoration:none;text-align:left;font:600 .86rem/1.3 system-ui;cursor:pointer}
.kls-game-options .kls-game-score{grid-column:2;grid-row:1 / span 2;align-self:center;justify-self:end;margin-left:.45rem;color:#ffda87;font:700 .77rem/1.25 system-ui;font-variant-numeric:tabular-nums;white-space:nowrap}
.kls-game-options .kls-game-start{display:block;color:#bdcddd;font:550 .76rem/1.25 system-ui}
.kls-game-center-bar .kls-game-options>[aria-current=true]{background:#263c51;color:#ffda87}
.kls-game-center-heading>h2,[data-kls-static-center]>.kls-game-center-title{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
body[data-kls-game-center] :is(.kls-primary-tabs,.mlb-prediction-title,.pd3-workspace .kls-matchup-live),body:has([data-kls-static-center]) .kls-primary-tabs{display:none!important}
.pd3-stadium .pd3-navigation{grid-template-columns:minmax(0,4fr) minmax(68px,1.15fr)}


/* Client and server Game Centers place the same controls below the global masthead. */
#klsGlobalNav:has(+ .kls-game-center-top-row) {
  gap:6px;
  height:calc(50px + env(safe-area-inset-top, 0px));
  padding-inline:calc(8px + env(safe-area-inset-left, 0px)) calc(8px + env(safe-area-inset-right, 0px));
}
#klsGlobalNav:has(+ .kls-game-center-top-row) > .kls-global-account {padding-inline:8px}
.kls-game-center-top-row {
  box-sizing:border-box;
  grid-column:1 / -1;
  width:min(100%,1200px);
  margin:0 auto 6px;
  padding-inline:clamp(12px,3.125vw,24px);
}
.kls-game-center-top-row .kls-game-center-back {
  min-width:72px;
  justify-content:center;
  font:750 15px/1.2 system-ui,sans-serif;
}
.kls-game-center-top-row .kls-game-switch-label {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
[data-prediction-tabs] :is(.pd3-tabs,nav.cbb-controls[aria-label="Matchup details"],nav.ice-controls:not([aria-label="Prediction period"])) > :is(a,button,[role=tab]) {
  box-sizing:border-box;
  min-height:44px;
  min-width:0;
}
/* Game Center · More */
[data-prediction-tabs] details.kls-more-card{
 box-sizing:border-box; min-width:0; width:100%; margin:0 0 8px; padding:0;
 color:#e8eff9; background:linear-gradient(110deg,rgba(25,48,75,.93),rgba(13,31,53,.92));
 border:1px solid #476382; border-radius:12px; overflow:clip; text-align:start;
}
[data-prediction-tabs] details.kls-more-card[hidden]{display:none}
[data-prediction-tabs] details.kls-more-card[open]{border-color:#b89a59}
[data-prediction-tabs] details.kls-more-card>summary{
 position:relative; display:grid; grid-template-columns:28px minmax(0,1fr) 12px;
 align-items:center; column-gap:12px; row-gap:3px; min-height:60px; box-sizing:border-box;
 margin:0; padding:9px 15px; border:0; border-radius:0; background:transparent;
 color:#f3f6fc; font:700 1rem/1.24 system-ui; cursor:pointer; text-align:start; list-style:none;
}
[data-prediction-tabs] .kls-more-card>summary::-webkit-details-marker{display:none}
[data-prediction-tabs] .kls-more-card>summary>span{grid-column:2;grid-row:1;align-self:end}
[data-prediction-tabs] .kls-more-card>summary>small{grid-column:2;grid-row:2;align-self:start;overflow-wrap:anywhere;color:#b5cce3;font:500 .82rem/1.25 system-ui}
[data-prediction-tabs] .kls-more-card>summary::before{content:"";display:block;position:static;grid-area:1/1/3/2;width:24px;height:24px;background:#f3ca72;mask:var(--more-icon) center/contain no-repeat}
[data-prediction-tabs] .kls-more-card>summary::after{content:"";position:static;grid-area:1/3/3/4;width:8px;height:8px;border:solid #d9e6f3;border-width:0 2px 2px 0;background:none;transform:rotate(45deg);justify-self:center}
[data-prediction-tabs] .kls-more-card[open]>summary::after{transform:rotate(225deg)}
[data-prediction-tabs] .kls-more-card>summary:focus-visible{outline:2px solid #f3ca72;outline-offset:-4px}
[data-prediction-tabs] .kls-more-card[open]>:not(summary){margin:0 12px 12px;min-width:0;max-width:calc(100% - 24px);overflow-x:auto}
[data-prediction-tabs] .kls-more-card .cfbr-row img{width:30px;height:30px;object-fit:contain}
[data-prediction-tabs] .kls-more-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden;border:1px solid #415b76;border-radius:8px}
[data-prediction-tabs] .kls-more-pair>section{min-width:0;padding:9px 12px;overflow-wrap:anywhere;background:#10263c;color:#e8eff9}
[data-prediction-tabs] .kls-more-pair>section+section{border-left:1px solid #415b76}
[data-prediction-tabs] .kls-more-pair>section>strong{display:block;color:#ffda8b;font-size:.88rem}
[data-prediction-tabs] .kls-more-body p,[data-prediction-tabs] .kls-more-pair p{margin:.35em 0}
[data-prediction-tabs] .kls-more-pair ul{margin:.45em 0 0;padding:0;list-style:none}
@media(max-width:480px){
 [data-prediction-tabs] details.kls-more-card>summary{column-gap:8px;padding-inline:11px}
 [data-prediction-tabs] .kls-more-card>summary>small{font-size:.78rem}
}
.kls-more-card[data-more-kind="model"]{--more-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.7%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M3%2019h18%20M5%2015l5-6%204%203%205-7%20M16%205h3v3%22%2F%3E%3C%2Fsvg%3E")}
.kls-more-card[data-more-kind="qb"]{--more-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.7%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M3%2018C2%208%208%202%2021%204c1%2012-7%2018-18%2014z%20M8%2014l8-7%20M10%209l3%203%20M13%207l3%203%22%2F%3E%3C%2Fsvg%3E")}
.kls-more-card[data-more-kind="weather"]{--more-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.7%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M3%209h12a3%203%200%201%200-3-3%20M2%2013h17a3%203%200%201%201-3%203%20M4%2017h5%22%2F%3E%3C%2Fsvg%3E")}
.kls-more-card[data-more-kind="lineup"]{--more-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.7%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M8%2012a3%203%200%201%200%200-6%203%203%200%200%200%200%206z%20M2%2020v-2c0-5%2012-5%2012%200v2%20M15%206a3%203%200%201%201%200%206%20M16%2015c4%200%206%201%206%204%22%2F%3E%3C%2Fsvg%3E")}
.kls-more-card[data-more-kind="rest"]{--more-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.7%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M3%206h18v15H3z%20M7%203v6%20M17%203v6%20M3%2011h18%20M7%2015h3%22%2F%3E%3C%2Fsvg%3E")}
.kls-more-card[data-more-kind="injury"]{--more-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.7%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M3%207h18v14H3z%20M8%207V4h8v3%20M12%2010v8%20M8%2014h8%22%2F%3E%3C%2Fsvg%3E")}

/* Keep comparison panels in their parent grid so nested layouts cannot shift them offscreen. */
:is(body[data-kls-game-center], body:has([data-kls-static-center]))
:is(main:has(.pd3-workspace, .kls-static-stadium), main.kls-static-stadium,
    #analyze:has(.pd3-workspace), #nbaMatchupStats:has(.pd3-workspace),
    #mlb-featured:has(.pd3-workspace), #nhl:has(.kls-static-stadium), #cbb-game-center) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin-inline: 0;
}

:is(body[data-kls-game-center], body:has([data-kls-static-center]))
main:has(.pd3-workspace, .kls-static-stadium), main.kls-static-stadium {
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
}

:is(body[data-kls-game-center], body:has([data-kls-static-center]))
:is(.pd3-panels, .pd3-pane, .kls-static-stadium) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-inline: 0;
}

/* Let the dock background reach the edges and keep the system gesture area clear. */
:is(body[data-kls-game-center], body:has([data-kls-static-center])) .kls-page-dock {
  width: 100%;
  border-inline: 0;
  border-radius: 0;
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
}

/* Full-width stats are flush with their disclosure so its margins cannot add to 100%. */
:is(body[data-kls-game-center], body:has([data-kls-static-center]))
.pd3-disclosure > :is(.stat-faceoff, .pd3-football-table, .pd3-comparison, .kls-stat-pair) {
  box-sizing: border-box;
  margin-inline: 0;
  max-width: 100%;
}

#analyze #pd3-nfl-panel-teams .stat-faceoff-values {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-areas: "away label home";
  align-items: center;
  gap: 4px clamp(4px, 1vw, 8px);
}
#analyze #pd3-nfl-panel-teams .stat-faceoff-value {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  font-variant-numeric: tabular-nums;
}
#analyze #pd3-nfl-panel-teams .stat-faceoff-value.away { grid-area: away; justify-self: start; text-align: left; }
#analyze #pd3-nfl-panel-teams .stat-faceoff-value.home { grid-area: home; justify-self: end; text-align: right; }
#analyze #pd3-nfl-panel-teams .stat-faceoff-name { grid-area: label; text-align: center; overflow-wrap: anywhere; }

:is(body[data-kls-game-center], body:has([data-kls-static-center]))
:is(.pd3-comparison, .ice-compare, .cr-comparison-table, .nbd-stats-table:has(caption), .kls-stat-pair) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
}

:is(body[data-kls-game-center], body:has([data-kls-static-center]))
:is(.pd3-comparison, .ice-compare, .cr-comparison-table, .nbd-stats-table:has(caption), .kls-stat-pair) :is(th, td) {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

body .pd3-stadium .kls-stat-pair :is(thead, tbody) :is(th, td):first-child:not([colspan]) {
  text-align: left;
}
body .pd3-stadium .kls-stat-pair :is(thead, tbody) :is(th, td):last-child:not([colspan]) {
  text-align: right;
}
body .pd3-stadium .kls-stat-pair :is(th, td) {
  padding-inline: clamp(6px, 1.5vw, 24px);
}

.pd3-venue-metrics > .pd3-venue-line {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-areas: "away label home" "awaybar label homebar";
  gap: 3px 10px;
  padding-block: 5px;
}
.pd3-venue-line > b { white-space: nowrap; }
.pd3-venue-line > b:first-child { grid-area: away; text-align: left; }
.pd3-venue-line > b:last-child { grid-area: home; text-align: right; }
.pd3-venue-line > span:not(.pd3-venue-track) { grid-area: label; }
.pd3-venue-line > .pd3-venue-track.away { grid-area: awaybar; justify-content: start; }
.pd3-venue-line > .pd3-venue-track.home { grid-area: homebar; justify-content: end; }
[data-prediction-tabs="wnba"] .ice-trio:has(> :nth-child(2):last-child) {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Scope table reflow to the three-column team comparisons. */
[data-prediction-tabs] :is(.pd3-comparison, .ice-compare, .cr-comparison-table, .nbd-stats-table:has(caption))
  :is(thead, tbody) > tr:has(> :nth-child(3):last-child):has(> th) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-areas: "away label home";
  align-items: center;
}
[data-prediction-tabs] :is(.pd3-comparison, .ice-compare, .nbd-stats-table:has(caption), .cr-comparison-table) {
  width: 100%; box-sizing: border-box;
}
[data-prediction-tabs] :is(.pd3-comparison, .ice-compare, .nbd-stats-table:has(caption), .cr-comparison-table) :is(thead,tbody):has(>tr>:nth-child(3):last-child) { display: block; }
[data-prediction-tabs] :is(.pd3-comparison, .ice-compare, .nbd-stats-table:has(caption), .cr-comparison-table) tr > :nth-child(3):last-child { grid-area: home; text-align: right; }
[data-prediction-tabs] :is(.pd3-comparison, .ice-compare, .nbd-stats-table:has(caption)) tr:has(>:nth-child(3):last-child) > :first-child,
[data-prediction-tabs] .cr-comparison-table tr > :nth-child(2) { grid-area: label; text-align: center; }
[data-prediction-tabs] :is(.pd3-comparison, .ice-compare, .nbd-stats-table:has(caption)) tr:has(>:nth-child(3):last-child) > :nth-child(2),
[data-prediction-tabs] .cr-comparison-table tr > :first-child { grid-area: away; text-align: left; }
[data-prediction-tabs] .cr-comparison-table thead tr > th { width: auto; }

@media (max-width: 600px) {
  .pd3-venue-metrics > .pd3-venue-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "label label" "away home" "awaybar homebar";
  }
}

.kls-stat-pair .stat-inline-rank{display:inline!important;white-space:nowrap;font-size:.78em;color:#f5ce81}

/* Pair labels and rates wrap within the card, including when both disclosures are open. */
#analyze .pd3-football-table {
  width: 100%;
  table-layout: fixed;
}
#analyze .pd3-football-table :is(th, td) {
  min-width: 0;
  padding: clamp(7px, 1.6vw, 12px) clamp(6px, 1.6vw, 16px);
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: middle;
}
#analyze .pd3-football-table thead th:first-child {
  width: 46%;
}
#analyze .pd3-football-table :is(th, td):not(:first-child) {
  text-align: center;
}

kls-most-bets {
  display: block;
  min-width: 0;
  max-width: 100%;
  grid-column: 1 / -1;
  padding: 3px 6px;
  text-align: center;
  color: #e1ebf4;
  font: 650 .85rem/1.35 system-ui, sans-serif;
  overflow-wrap: anywhere;
}
body:not([data-mlb-section="predictions"]) #mlb-games kls-most-bets { display: none; }
#analyze.gk-matchup-lab .lab-game-dates .kls-game-date-row,
#analyze #cfbPredictionDate .kls-game-date-row {
  grid-template-columns: minmax(44px,1fr) 44px minmax(64px,2fr) 44px minmax(44px,1fr);
}
:is(.lab-game-dates,#cfbPredictionDate) .kls-game-date-row > * { grid-row: 1; }
:is(.lab-game-dates,#cfbPredictionDate) [data-date="previous"],
#cfbPredictionDate [data-cfb-prediction-date="-1"] { grid-column: 2; }
:is(.lab-game-dates,#cfbPredictionDate) output { grid-column: 3; }
.lab-game-dates [data-date="next"], #cfbPredictionDate [data-cfb-prediction-date="1"] { grid-column: 4; }
.lab-game-dates [data-date="today"], #cfbPredictionDate [data-cfb-prediction-date="today"] { grid-column: 1; }
.lab-game-dates [data-date="refresh"], #cfbPredictionDate [data-cfb-prediction-date="refresh"] { grid-column: 5; }

/* Model values stay inside the team column at narrow fold-cover widths. */
.kls-model-score:not(:empty) { display:block; grid-column:1/-1; color:#f5ce76; font-size:clamp(1.25rem,4vw,2rem); line-height:1.15; text-align:center; }
.kls-model-score:empty,.kls-model-lines[hidden] { display:none; }
.kls-card-model { text-align:center; }
.kls-model-lines { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; box-sizing:border-box; margin:.4rem auto; border:1px solid #ab915d; border-radius:.65rem; padding:.4rem 0; }
.kls-model-lines > span { min-width:0; padding:0 .3rem; color:#d6e0ea; font-size:.8rem; line-height:1.25; text-align:center; overflow-wrap:anywhere; }
.kls-model-lines > span + span { border-inline-start:1px solid #82714f; }
.kls-model-lines b { display:block; color:#f5ce76; font-size:1rem; }

#nbaSchedulePanel .nba-dashboard-tracker,
body[data-mlb-section=dashboard] #mlb-nearby-dates [data-slate-direction=previous],
body[data-mlb-section=dashboard] #mlb-nearby-dates:not(:has([data-slate-direction=next])) { display:none!important; }
.kls-ticket-actions { display:grid; gap:.5rem; grid-template-columns:repeat(2,minmax(0,1fr)); margin:.75rem 0; }
.kls-ticket-actions a,.kls-ranking-board button { min-width:0; border:1px solid #637284; border-radius:.65rem; background:#10243a; color:#f2f4f6; padding:.7rem; text-align:center; font-weight:700; }
.kls-ticket-actions a:first-child { grid-column:1/-1; background:#ebc674; color:#14202b; }
.kls-actual-line { display:grid; justify-content:center; padding:.3rem; margin-bottom:.5rem; color:#eff4f9; }
.kls-team-profiles { display:grid; gap:.7rem; }
.kls-team-profiles :is(section,details) { border:1px solid #566775; border-radius:.7rem; padding:.7rem; min-width:0; }
.kls-team-profiles select { width:100%; min-height:44px; }
.kls-team-profiles dl { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.3rem; }
.kls-team-profiles dd { margin:0; }
.kls-team-profiles table { width:100%; table-layout:fixed; overflow-wrap:anywhere; }
.kls-ranking-board .spr-podium { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,7rem),1fr)); gap:.35rem; }

/* Final matchup scores share their row even when either team's name wraps. */
@layer prediction-slate {
  @supports (grid-template-rows:subgrid) {
    :is(#nflPredictionMatchups,#cfbPredictionMatchups,#nbaPredictionMatchups,#mlb-games,.ice-slate)
    [data-slate-phase=final] :is(.lab-matchup-team,.npm-team,.game-team,.ice-team) {
      display:grid!important;
      grid-template-columns:minmax(0,1fr)!important;
      grid-template-rows:subgrid;
      grid-row:2 / span 4!important;
      align-self:stretch; align-items:start!important; justify-items:center;
    }
    [data-slate-phase=final] :is(.lab-matchup-team,.npm-team,.game-team,.ice-team) > * {grid-column:1!important}
    [data-slate-phase=final] :is(.lab-matchup-team strong,.npm-team strong,.game-team-info,.ice-team > span) {grid-row:2}
    [data-slate-phase=final] :is(.lab-matchup-score,.npm-score,.game-score,.ice-final-score) {grid-row:3}
    [data-slate-phase=final] :is(.lab-matchup-team,.npm-team,.game-team,.ice-team) > .kls-model-score {grid-row:4}
    #cbbPredictionMatchups [data-slate-phase=final] .ps-team > .kls-model-score {grid-row:5}
    [data-slate-phase=final] .kls-model-lines > span {
      display:grid; grid-template-rows:subgrid; grid-row:1 / span 2; align-items:start;
    }
  }
}


/* Keep equivalent actions and team scores aligned at each viewport width. */
article.kls-game-card.nbd-card .nbd-broadcast > .nbd-footer {
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:.4rem;
}
article.kls-game-card.nbd-card .nbd-footer > :is(button,a) {
  display:grid;place-items:center;box-sizing:border-box;min-width:0;min-height:44px;
  padding:.45rem .25rem;border:1px solid #b79a5c;border-radius:.55rem;
  white-space:normal;text-align:center;overflow-wrap:anywhere;
}
@supports (grid-template-rows:subgrid) {
  [data-prediction-tabs] .pd3-score-row:has(.pd3-team-badge) {grid-template-rows:repeat(5,auto)}
  body [data-prediction-tabs].pd3-stadium .pd3-score-row > .pd3-board-team,
  body[data-kls-game-center] .pd3-workspace.pd3-stadium .pd3-score-row > .pd3-board-team {
    display:grid!important;grid-row:span 5;grid-template-rows:subgrid;grid-template-columns:minmax(0,1fr);
    grid-template-areas:'badge' 'name' 'score' 'chance' 'fair';justify-items:center;align-items:center;
  }
  [data-prediction-tabs] .pd3-board-team .pd3-fair-odds {grid-area:fair}
}
.kls-player-market {min-width:0;margin-block:1rem;padding:clamp(.65rem,2vw,1.1rem);border:1px solid #40556f;border-radius:.75rem;background:#0c1c32;color:#f0f5fb}
.kls-player-market :is(h4,h5) {margin:.5rem 0;font-size:1rem}
.kls-market-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
.kls-market-pair > div {display:grid;align-content:start;padding:.65rem;border:1px solid #b79a5c;border-radius:.5rem}
.kls-market-pair strong {font-size:clamp(1rem,3vw,1.6rem);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.kls-last-five {display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:.45rem;list-style:none;margin:.65rem 0;padding:0}
.kls-last-five li {display:grid;text-align:center}
.kls-bar-track {display:flex;position:relative;align-items:end;justify-content:center;height:3.5rem;border-bottom:1px solid #58708b}
.kls-bar-track i {width:70%;background:#739ed8}
.kls-last-five[data-book-line] .kls-bar-track::after {content:'';position:absolute;inset-inline:0;bottom:var(--book-height);border-top:2px dashed #efd084}
.kls-player-market summary {cursor:pointer;padding:.6rem 0;color:#f1d089}

/* The dashboard's date field already covers its labeled date control. */
body #nba #nbaDateControls.gameday-bar .kls-calendar{display:none!important}
body #nba #nbaDateText,.cbb .cbb-date-value time{white-space:nowrap}
body[data-mlb-section=rankings] main{padding-bottom:calc(120px + env(safe-area-inset-bottom) + var(--game-day-bottom-offset,0px))}
html:has(body[data-mlb-section=rankings]){scroll-padding-bottom:calc(96px + env(safe-area-inset-bottom))}
.kls-ranking-board .spr-podium,.cbb .cbb-rankings-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.kls-ranking-board .spr-podium button,.cbb .cbb-rankings-tabs a{min-width:0;min-height:44px;overflow-wrap:anywhere}
#nhl .daily-more a{padding:6px 12px;border:1px solid #635d49;border-radius:10px;color:#f3d68e}
@media(max-width:600px){
 body .kls-experience nav.kls-rankings-sports,#nhl.daily-game-page nav#dailySportSwitch.kls-rankings-sports{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}
}

/* Use the displayed prediction date as the calendar target. */
body.kls-ux #nba[data-nba-view=matchup] #nbaDateControls .nba-date-nav.kls-date-controls {
 grid-template-columns:44px minmax(0,1fr) 44px 48px 44px!important;
}
#nba[data-nba-view=matchup] .nba-date-nav>:is(#nbaDateText,.kls-calendar){grid-column:2;grid-row:1}
#nba[data-nba-view=matchup] .nba-date-nav>.kls-calendar{background:transparent;border:0;align-self:stretch}
#nba[data-nba-view=matchup] .nba-date-nav>.kls-calendar svg{display:none}
#nba[data-nba-view=matchup] .nba-date-nav>#nbaDatePrev{grid-column:1;grid-row:1}
#nba[data-nba-view=matchup] .nba-date-nav>#nbaDateNext{grid-column:3;grid-row:1}
#nba[data-nba-view=matchup] .nba-date-nav>#nbaDateToday{grid-column:4;grid-row:1}
#nba[data-nba-view=matchup] .nba-date-nav>#nbaRefresh{grid-column:5;grid-row:1}
body[data-kls-predictions-hub]:has(#nba[data-nba-view=matchup]) #nbaWorkspaceTitle{display:none}

.kls-dashboard-top-row {
  box-sizing: border-box;
  display: none;
  grid-column: 1 / -1;
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 6px 14px 0;
  padding-inline: calc(14px + env(safe-area-inset-left, 0px)) calc(14px + env(safe-area-inset-right, 0px));
  align-items: center;
  gap: 10px;
}
body.kls-dashboard-workspace .kls-dashboard-top-row,
body:has(#dailySportSwitch, #propsBoard) .kls-dashboard-top-row {
  display: flex;
}
.kls-dashboard-top-row > a.kls-dashboard-back {
  margin: 0;
  font: 700 15px/1.2 system-ui, sans-serif;
  white-space: nowrap;
}
.kls-dashboard-top-row > .kls-test-environment {
  color: #e7ca84;
  font: 750 .74rem/1.3 system-ui, sans-serif;
  text-transform: uppercase;
}
@media (min-width: 1024px) {
  body:has(#propsBoard) > .kls-dashboard-top-row {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 1100px);
  }
  body:has(#propsBoard):has(> .kls-dashboard-top-row) > .kls-page-dock { grid-row: 3; }
  body:has(> .kls-dashboard-top-row) > #propsBoard { grid-row: 4; }
}
body:has(.kls-test-environment).kls-dashboard-workspace :is(#mlb-environment,#cfbEnvironment,[data-gk-environment]),
.daily-game-page:has(.kls-test-environment) .daily-title>small{display:none!important}

.pd3-stadium .pd3-board-team .pd3-team-name, .cbb .cbb-rankings-tabs a {word-break:normal;overflow-wrap:normal}
.cbb .cbb-rankings-tabs a {padding-inline:3px}

/* Give the four sport navigation actions the same phone height as NFL. */
@media (max-width: 767px) {
  html body :is(.tabs.gk-game-center-nav,.nba-subnav,body.cfb-app nav#cfbBottomNav.tabs.cfb-bottom-nav,.mlb-bottom-nav,.daily-bottom,.nhl-tabs) {
    box-sizing: border-box;
    height: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 0 !important;
  }
  html body :is(.tabs.gk-game-center-nav,.nba-subnav,body.cfb-app nav#cfbBottomNav.tabs.cfb-bottom-nav,.mlb-bottom-nav,.daily-bottom,.nhl-tabs) > :is(button,a) {
    box-sizing: border-box;
    min-height: 44px !important;
    height: 100% !important;
    min-width: 0;
    white-space: nowrap;
  }
}

/* Align the first period control below the shared matchup selector on phones. */
@media (max-width: 767px) {
  body:has(.kls-game-center-top-row) .pd3-period-switch { padding-top: 2px !important; }
  body.mlb-app:has(.kls-game-center-top-row) main { padding-top: 6px; }
  body.mlb-app:has(.kls-game-center-top-row) #mlb-featured { margin-top: -12px; }
  body.ice-page:has(.kls-game-center-top-row) main#nhl { padding-top: 0; }
  body.ice-page:has(.kls-game-center-top-row) [aria-label="Prediction period"] { margin-top: -4px !important; }
  body.cbb:has(.kls-game-center-top-row) #cbb-game-center > .cbb-controls:first-of-type { margin-top: 4px; }
}

/* Match the NFL mobile dock on sport pages. */
@media (max-width: 767px) {
  html body [data-four-tab-dock]:is(#cfbBottomNav, .gk-game-center-nav, .nba-subnav, .mlb-bottom-nav, .daily-bottom) {
    box-sizing: border-box;
    height: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 0 !important;
    grid-template-rows: minmax(0, 1fr);
    border: 1px solid #33485c !important;
    border-bottom: 0 !important;
    column-gap: 4px !important;
    padding: 0 6px env(safe-area-inset-bottom, 0px) !important;
    border-radius: 12px 12px 0 0 !important;
    background: #041524 !important;
    box-shadow: 0 -5px 18px rgb(0 0 0 / 20%) !important;
  }
  html body [data-four-tab-dock]:is(#cfbBottomNav, .gk-game-center-nav, .nba-subnav, .mlb-bottom-nav, .daily-bottom) > :is(button, a):not([hidden], [data-game-entry]) {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px !important;
    padding: 9px 3px !important;
    border-radius: 16px !important;
    font: 850 10px/12px Arial, sans-serif !important;
    color: #9eb8d2 !important;
    background: transparent !important;
  }
  html body.cfb-app:has(#weekly) nav#cfbBottomNav.cfb-bottom-nav[data-four-tab-dock] > button.tab {
    min-height: 44px !important;
  }
  html body [data-four-tab-dock]:is(.mlb-bottom-nav, .daily-bottom):not([hidden]) {
    display: grid !important;
  }
  html body [data-four-tab-dock]:is(.mlb-bottom-nav, .daily-bottom) > a:not([hidden], [data-game-entry]) {
    display: flex !important;
  }
  html body [data-four-tab-dock]:is(#cfbBottomNav, .gk-game-center-nav, .nba-subnav, .mlb-bottom-nav, .daily-bottom) > :is(button, a)[aria-current="page"] {
    color: #edc268 !important;
  }
}

/* Use the football card spacing for the mobile league workspaces. */
@media (max-width: 767px) {
  body.cfb-app #wkCards:has(> .nbd-card),
  body.mlb-app .mlb-dashboard-cards.kls-game-slate,
  main.daily-game-page #nhlScheduleGames:has(> .nbd-card) {
    max-width: calc(100vw - 28px);
    margin-inline: auto;
  }
  body.cfb-app #wkCards:has(> .nbd-card),
  body.mlb-app .mlb-dashboard-cards.kls-game-slate,
  #nhlScheduleGames.kls-game-slate,
  #nbaScheduleGames.nba-games-grid {
    row-gap: 16px !important;
  }
  body.gk-nba-mode #nbaMatchupStats .pd3-workspace.pd3-stadium,
  body.mlb-app #mlb-featured .pd3-workspace.pd3-stadium,
  body.cbb #cbb-game-center.pd3-stadium {
    box-sizing: border-box;
    width: auto !important;
    margin-inline: 12px !important;
  }
  html body .pd3-stadium .pd3-scoreboard {
    padding: 7px 10px 5px !important;
    gap: 3px !important;
  }
}

@media (max-width: 767px) {
  .kls-static-stadium.pd3-stadium details.kls-game-split {
    padding: 9px 12px !important;
    border-radius: 11px;
    margin-block: 0;
  }
  .kls-static-stadium .kls-static-detail:has(> .kls-game-split) {
    row-gap: 8px;
  }
}

/* Matchups and Player Props share the Home palette. Keep the current sport
   workspaces and their native controls as the source of layout and state. */
@layer obsidian {
  body:is(.gk-sport-selecting, .kls-dashboard-workspace, .kls-props-workspace, .kls-player-props-header,
      [data-mlb-section="dashboard"], [data-mlb-section="props"],
      :has(#propsBoard, .daily-game-page .gameday-bar),
      .gk-nfl-mode:has(#weekly:not([hidden], .hidden)),
      .cfb-app:has(:is(#weekly, #cfbPropsPanel):not([hidden], .hidden))) {
    --kls-filter-bg: rgba(12, 19, 32, .85);
    --kls-filter-current: rgba(230, 197, 110, .12);
    background: var(--kls-canvas) !important;
    color: var(--kls-text);
    font-variant-numeric: tabular-nums;

    &::before { content: none !important; }

    & > #klsGlobalNav {
      background: var(--kls-header-glow) !important;
      border-bottom-color: var(--kls-glass-border);
    }

    & > #klsGlobalNav .kls-global-home img {
      height: 38px !important;
      width: auto !important;
      object-fit: contain;
    }
    & > #klsGlobalNav .kls-global-account {
      box-sizing: border-box;
      height: 36px;
      min-height: 36px !important;
      padding: 0 18px !important;
      border-radius: 999px !important;
    }
    & > #klsGlobalNav .kls-global-account,
    & :is(.open-lab, .feature-price) {
      background: var(--kls-gold-grad) !important;
      border-color: var(--kls-gold) !important;
      color: var(--kls-bg) !important;
    }

    & :is(.kls-dashboard-top-row, .wk-pro-heading, #nbaDashboardHeading, .daily-title, .mlb-title-row,
        .kls-phase, #propsBoard h1 span, .matchup-group, .prop-comparison > div:first-child strong,
        .prop-prices strong, .sort-reason) {
      color: var(--kls-gold) !important;
    }

    & :is(.kls-filter-bar, #markets, .kls-sport-switch, .wk-command-filters, .cfb-slate-filters,
        .nba-slate-filters, .kls-slate-status, .cfb-finder > [role="group"]):not([hidden], .hidden) {
      display: flex !important;
      flex-wrap: nowrap !important;
      align-items: center;
      gap: 6px !important;
      max-width: 100%;
      min-width: 0;
      overflow-x: auto !important;
      scrollbar-width: none;
      padding: 4px 0 6px !important;
      border: 0 !important;
      background: transparent !important;
    }

    & .kls-sport-switch:not([hidden], .hidden) {
      padding-inline: 5px !important;
      border: 1px solid var(--kls-subtle-border) !important;
      border-radius: 14px !important;
      background: var(--kls-pod-bg) !important;
    }

    & :is(.kls-filter-pill,
        :is(.kls-filter-bar, #markets, .kls-sport-switch, .wk-command-filters, .cfb-slate-filters,
          .nba-slate-filters, .kls-slate-status, .cfb-finder > [role="group"]) > :is(a, button)) {
      box-sizing: border-box;
      flex: 0 0 auto !important;
      min-width: 0 !important;
      min-height: 32px !important;
      white-space: nowrap !important;
      padding: 6px 12px !important;
      border: 1px solid var(--kls-subtle-border) !important;
      border-radius: 999px !important;
      box-shadow: none !important;
      background: var(--kls-filter-bg) !important;
      color: var(--kls-muted) !important;
      font: 600 12px/1.4 system-ui, sans-serif !important;
      text-align: center;

      &:is(.active, [aria-current="page"], [aria-current="true"], [aria-pressed="true"], [aria-selected="true"]) {
        color: #fff !important;
        background: var(--kls-filter-current) !important;
        border-color: var(--kls-gold) !important;
      }
    }

    & :is(.kls-search-input, input[type="search"]) {
      box-sizing: border-box;
      width: 100% !important;
      height: 38px !important;
      min-height: 38px !important;
      padding: 0 12px !important;
      border: 1px solid var(--kls-subtle-border) !important;
      border-radius: 10px !important;
      background: rgba(12, 19, 32, .88) !important;
      color: var(--kls-text) !important;
      font-size: 13px !important;
    }

    & :is(.kls-search-input, input[type="search"]):focus {
      outline: none !important;
      border-color: var(--kls-gold) !important;
    }

    & :is(.kls-filter-bar, #markets, .kls-sport-switch, .wk-command-filters, .cfb-slate-filters,
        .nba-slate-filters, .kls-slate-status) > :is(a, button):focus-visible {
      outline: 2px solid var(--kls-gold);
      outline-offset: -3px;
    }

    & :is(article.kls-game-card.nbd-card, #propsBoard .prop-card, #propsSpades,
        #picker, #sortDialog, .nhp-matchup, .nhp-selection, .nhp-player-card, .kls-top-prop,
        .kls-roster-entry, .kls-projection-card, .gameday-bar, .gameday-choice,
        .cb-compact > .featured-card, .npl-game-summary, .npl-player-option,
        .pp-player-hero, .npl-player-hero, .pf-player-row, .cp-matchup-card, .kls-prop-calendar) {
      background: var(--kls-card-fill) !important;
      box-shadow: var(--kls-card-sheen);
      border: 1px solid var(--kls-card-edge) !important;
      border-radius: 16px !important;
    }

    & :is(#picker, #sortDialog, #propsSpades) {
      background: var(--kls-glass) !important;
      backdrop-filter: blur(12px);
    }

    & :is(article.kls-game-card.nbd-card, #propsBoard .prop-card):not(.kls-gold-accent)::before,
    & :is(article.kls-game-card.nbd-card, #propsBoard .prop-card)::after {
      content: none !important;
    }

    & :is(.kls-game-slate, #nbaScheduleGames, #nhlScheduleGames),
    & #propsBoard #cards, & .kls-prop-results {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) !important;
      align-items: start;
      gap: 12px !important;
      max-inline-size: 100%;
    }

    & :is(.kls-game-slate, #nbaScheduleGames, #nhlScheduleGames) > :not(.kls-game-card) {
      grid-column: 1 / -1;
    }

    & article.kls-game-card.nbd-card {
      box-sizing: border-box;
      min-width: 0;
      width: 100%;
      margin: 0 !important;
      padding: 12px 14px !important;
    }

    & article.kls-game-card.nbd-card > .nbd-broadcast {
      display: grid;
      gap: 8px;
      background: none !important;
      box-shadow: none !important;
    }

    & .kls-game-card .nbd-top {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) minmax(0, auto) !important;
      gap: 2px 6px;
      align-items: center;
      padding: 0 !important;
      border: 0;
    }

    & .kls-game-card .nbd-top :is(.nbd-feature-label, time, .kls-start-time, .cfb-kickoff-tbd) {
      grid-column: 1;
      justify-self: start;
      color: var(--kls-gold) !important;
      font: 700 11px/1.2 system-ui !important;
    }

    & .kls-game-card .nbd-top .nbd-status {
      --kls-status-dot: #e6c56e;
      grid-column: 2;
      grid-row: 1 / span 2;
      display: inline-flex !important;
      align-items: center;
      gap: 5px;
      padding: 3px 7px !important;
      border: 1px solid var(--kls-subtle-border) !important;
      border-radius: 999px !important;
      background: var(--kls-filter-bg) !important;
      color: var(--kls-text) !important;
      font-size: 10px !important;
      overflow-wrap: anywhere;
    }
    & .nbd-broadcast[data-state="live"] .nbd-status { --kls-status-dot: #83e9ef; }
    & .nbd-broadcast[data-state="final"] .nbd-status { --kls-status-dot: #94a3b8; }
    & .kls-game-card .nbd-top .nbd-status::before {
      content: "";
      width: 6px;
      height: 6px;
      flex: none;
      border-radius: 50%;
      background: var(--kls-status-dot);
    }

    & article.kls-game-card.nbd-card .nbd-matchup {
      position: relative;
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) !important;
      gap: 4px !important;
      min-height: 0 !important;
      padding: 0 !important;
      text-align: left;
    }

    & .kls-game-card .nbd-matchup > .ps-team {
      grid-column: 1 !important;
      grid-row: auto !important;
      display: grid !important;
      grid-template-columns: 32px minmax(0, 1fr) max-content !important;
      grid-template-rows: auto auto !important;
      align-items: center !important;
      justify-items: start !important;
      gap: 0 8px !important;
      padding: 0 !important;
      text-align: left !important;
    }

    & .kls-game-card .ps-team > .nbd-logo {
      grid-area: 1 / 1 / span 2 / 2 !important;
      margin: 0;
    }

    & .kls-game-card .ps-team :is(.ps-team-name, .ps-record) {
      grid-column: 2 !important;
      margin: 0 !important;
      min-height: 0 !important;
    }
    & .kls-game-card .ps-team .ps-team-name { grid-row: 1 !important; font: 750 14px/1.15 system-ui !important; }
    & .kls-game-card .ps-team .ps-record { grid-row: 2 !important; color: var(--kls-muted); font-size: 10px; }

    & .kls-game-card .ps-team :is(.ps-team-score, .kls-model-score):not([hidden]) {
      grid-area: 1 / 3 / span 2 / 4 !important;
      justify-self: end;
      margin: 0 !important;
      font: 800 15px/1 system-ui !important;
    }
    & .kls-game-card .ps-team:has(.ps-team-score:not([hidden])) .kls-model-score { grid-area: 2 / 3 !important; }
    & .kls-game-card .ps-team:has(.kls-model-score) .ps-team-score { grid-area: 1 / 3 !important; }

    & .kls-game-card .nbd-matchup > .ps-team.away { grid-row: 1 !important; }
    & .kls-game-card .nbd-matchup > .ps-team.home { grid-row: 2 !important; }

    & .kls-game-card .nbd-matchup > .nbd-score,
    & .kls-game-card .ps-team > small:first-child {
      position: absolute !important;
      inline-size: 1px !important;
      block-size: 1px !important;
      overflow: hidden !important;
      clip-path: inset(50%);
    }

    & .kls-game-card :is(.kls-quick, .kls-card-model):not(.kls-live-team-stats) {
      display: flex !important;
      align-items: center;
      flex-wrap: wrap;
      gap: 4px 8px !important;
      padding: 0 !important;
      margin: 0 !important;
      text-align: left;
    }

    & .kls-game-card :is(.kls-quick, .kls-card-model) > :is(small, span, strong) { font-size: 11px !important; }
    & .kls-game-card .kls-quick:not(.kls-live-team-stats) > strong,
    & .kls-matchup-prediction {
      display: inline-block;
      padding: 5px 12px;
      border-radius: 999px;
      background: var(--kls-gold-grad);
      color: #0b1220 !important;
      font: 700 12px/1.15 system-ui !important;
      white-space: nowrap;
      box-shadow: 0 0 10px rgba(212, 168, 67, .24);
    }
    & .kls-game-card .kls-quick:not(.kls-live-team-stats) > small:first-child:has(+ strong) {
      font-weight: 700;
      color: var(--kls-gold);
    }

    & .kls-game-card .kls-model-lines,
    & .kls-prop-odds-pills {
      display: flex;
      justify-content: flex-end;
      flex-wrap: wrap;
      gap: 4px;
    }
    & :is(.kls-game-card .kls-model-lines, .kls-prop-odds-pills) > span {
      padding: 3px 6px;
      border: 1px solid var(--kls-subtle-border);
      border-radius: 999px;
      font-size: 11px;
      white-space: normal;
    }

    & article.kls-game-card.nbd-card .nbd-footer {
      display: grid !important;
      grid-auto-flow: column;
      grid-auto-columns: minmax(0, 1fr);
      align-items: stretch;
      gap: 5px !important;
      margin: 0 !important;
      padding: 0 !important;
    }
    & article.kls-game-card.nbd-card .nbd-footer > .nbd-action:not([hidden]) {
      display: inline-flex !important;
      flex: 1 1 0 !important;
      width: auto !important;
      min-width: 0 !important;
      align-items: center;
      justify-content: center;
      min-height: 32px !important;
      padding: 4px 8px !important;
      border: 1px solid var(--kls-glass-border) !important;
      border-radius: 8px !important;
      background: var(--kls-filter-bg) !important;
      color: var(--kls-text) !important;
      font: 650 12px/1.2 system-ui !important;
      text-align: center;
      white-space: normal;
    }

    & #propsBoard :is(.kls-prop-controls, .prop-card) {
      display: grid;
      gap: 10px;
      min-width: 0;
    }
    & #propsBoard .kls-prop-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    & #propsBoard .kls-prop-controls :is(#chooseGame, #sortProps) {
      min-width: 0;
      min-height: 36px !important;
      height: 36px;
      padding: 4px 8px;
      border-radius: 10px;
      border-color: var(--kls-subtle-border) !important;
      background: rgba(255, 255, 255, .06) !important;
      color: var(--kls-text) !important;
      font-size: 12px !important;
      line-height: 1.15;
      text-align: left;
    }

    & #propsBoard #markets > button { flex: 0 0 max-content !important; }
    & #propsBoard #propsSpades { padding-inline-start: 16px; }
    & #propsBoard #spadesArt {
      width: 52px;
      height: 58px;
      object-fit: contain;
      background: #050810;
    }

    & #propsBoard .prop-card {
      grid-template-columns: minmax(0, 1.25fr) minmax(126px, .9fr);
      align-items: start;
      padding: 12px;
    }
    & #propsBoard .prop-card.kls-gold-accent { padding-inline-start: 16px; }
    & .kls-prop-card-main { display: grid; min-width: 0; gap: 4px; }
    & .kls-prop-card-head { display: flex; min-width: 0; align-items: center; gap: 6px; }
    & .kls-prop-card-head > .kls-team-monogram { width: 28px !important; height: 28px !important; margin: 0; }
    & .kls-prop-player-name {
      margin: 0;
      min-width: 0;
      white-space: normal;
      overflow-wrap: anywhere;
      font: 750 15px/1.25 system-ui;
      color: var(--kls-gold);
    }
    & .kls-prop-player-name a { color: inherit; }
    & .kls-prop-player-name .rank { font-size: 12px; margin-inline-end: 4px; }
    & #propsBoard .kls-prop-card-matchup { color: #cbd5e1; font-size: 12px; }
    & #propsBoard .kls-prop-last-five { color: var(--kls-muted); font-size: 11px; }

    & .kls-prop-metric-pod {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 38px;
      align-items: center;
      gap: 4px;
      padding: 10px 8px;
      border-radius: 12px;
      background: var(--kls-pod-bg);
      font-variant-numeric: tabular-nums;
    }
    & .kls-prop-metric-value { display: grid; min-width: 0; }
    & .kls-prop-metric-value small { font-size: 10px; }
    & .kls-prop-metric-value strong {
      color: #f3d98b;
      font: 800 22px/1.1 system-ui;
      text-shadow: 0 0 12px rgba(230, 197, 110, .35);
      overflow-wrap: anywhere;
    }
    & .kls-prop-grade {
      display: grid;
      place-items: center;
      width: 38px;
      height: 38px;
      border: 1px solid var(--kls-subtle-border);
      border-radius: 50%;
      color: var(--kls-muted);
      font-size: 16px;
      font-weight: 800;
    }
    & .kls-prop-grade[data-grade="A"] { border: 2px solid #f3d98b; color: #f3d98b; }
    & .kls-prop-grade[data-grade="B"] { border-color: #d4a843; color: var(--kls-gold); }
    & .kls-prop-grade[data-grade="C"] { border-color: #82734d; }
    & :is(.kls-prop-metric-line, .kls-prop-market-row) { grid-column: 1 / -1; }
    & .kls-prop-metric-line { justify-self: end; font-size: 11px; }

    & #propsBoard .kls-prop-card-details { grid-column: 1 / -1; margin: 0; }
    & #propsBoard .kls-prop-card-details > summary { padding: 2px 0; font-size: 12px; }
    & #propsBoard .prop-card footer { padding: 0; margin: 2px 0 0; }
    & #propsBoard .card-actions {
      display: grid !important;
      grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
      width: 100%;
      gap: 4px;
    }
    & #propsBoard .card-actions button {
      width: 100% !important;
      min-width: 0 !important;
      min-height: 32px !important;
      padding: 4px 6px;
      font-size: 12px !important;
      line-height: 1.15;
    }

    @media (min-width: 680px) {
      & #propsBoard #cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    }
    @media (min-width: 1080px) {
      & #propsBoard #cards { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    }
    @media (min-width: 720px) {
      & :is(.kls-game-slate, #nbaScheduleGames, #nhlScheduleGames) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      }
    }
    @media (min-width: 1120px) {
      & :is(.kls-game-slate, #nbaScheduleGames, #nhlScheduleGames) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      }
    }

    & :is(.kls-page-dock, [data-four-tab-dock]):not([hidden]) {
      background: var(--kls-pod-bg) !important;
      border-color: var(--kls-subtle-border) !important;
      backdrop-filter: blur(12px);
    }
    & :is(.kls-page-dock, [data-four-tab-dock]) > :is(a, button)[aria-current="page"] {
      position: relative;
      color: var(--kls-gold) !important;
    }
    & :is(.kls-page-dock, [data-four-tab-dock]) > :is(a, button)[aria-current="page"]::after {
      content: "";
      position: absolute;
      inset: auto 22% 1px;
      height: 2px;
      background: var(--kls-gold-grad);
      border-radius: 2px;
    }

    & :is(.nbd-score, .ps-team-score, .kls-model-score, .kls-model-lines, .prop-comparison,
        .prop-prices, .kls-roster-metrics, .kls-projection-metric, .nhp-player-metrics) {
      font-variant-numeric: tabular-nums !important;
    }

    & .kls-team-monogram:not([hidden]) {
      box-sizing: border-box;
      display: inline-grid !important;
      place-items: center;
      flex: none;
      width: 32px !important;
      height: 32px !important;
      min-height: 0 !important;
      padding: 0 !important;
      margin: 0 auto;
      border: 1.5px solid rgba(230, 197, 110, .65) !important;
      border-radius: 50% !important;
      background: #0c1320 !important;
      color: #fff !important;
      font: 800 10px/1 system-ui, sans-serif !important;
    }

    & .kls-prop-matchup-monograms {
      display: inline-flex;
      gap: 4px;
      grid-area: marks;
    }

    & #picker .pick:has(.kls-prop-matchup-monograms) {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      grid-template-areas: "marks name" "marks info";
      gap: 2px 8px;
      text-align: left;
    }
    & #picker .pick:has(.kls-prop-matchup-monograms) > small { grid-area: info; }
    & #picker .kls-prop-matchup-name { grid-area: name; }

    & :is(.prop-prices, .kls-projection-grade, .gameday-bar :is(button, select), #moreMarkets, #refreshNbaProjections,
        .kls-game-date, .kls-prop-calendar, #sortChoices button) {
      border-color: var(--kls-subtle-border) !important;
      background: var(--kls-filter-bg) !important;
      color: var(--kls-text) !important;
    }

    & :is(.prop-card small, #rankingScope, #status) { color: var(--kls-muted); }
  }
}

.pd3-board-team > .pd3-team-badge > svg { width: 100%; height: 100%; object-fit: contain; }

@layer obsidian {
  body:is(.kls-dashboard-workspace, [data-mlb-section="dashboard"],
      :has(.daily-game-page .gameday-bar), :is(.gk-nfl-mode, .cfb-app):has(#weekly:not([hidden], .hidden))) {
    & :is(.kls-game-slate, #nbaScheduleGames, #nhlScheduleGames) { gap: 10px !important; }

    & .kls-scoreboard-caption:not([hidden]) {
      display: flex;
      align-items: baseline;
      flex-wrap: wrap;
      gap: 5px;
      margin: 8px 0 3px;
    }
    & .kls-scoreboard-caption h2 {
      margin: 0;
      color: var(--kls-gold);
      text-transform: uppercase;
      font: 800 14px/1.2 system-ui;
    }
    & .kls-scoreboard-caption span { color: var(--kls-muted); font-size: 12px; }
    & .kls-scoreboard-caption span:not(:empty)::before { content: "· "; }

    & .gameday-bar {
      grid-template-columns: minmax(0, 1fr) 36px !important;
      grid-template-rows: 36px !important;
      column-gap: 6px !important;
      height: auto !important;
      min-height: 0 !important;
      background: var(--calendar-icon) 10px center/16px 16px no-repeat, var(--kls-pod-bg) !important;
      border-color: var(--kls-subtle-border) !important;
    }
    & .gameday-bar :is(.gameday-choice, #nbaDateText, #mlb-date-text, label.cfb-week) {
      color: var(--kls-text);
      font-size: 12px !important;
    }
    & .gameday-bar .gameday-choice { background: transparent !important; border: 0 !important; }
    & .gameday-bar :is(button[aria-label*="Refresh" i], #nbaRefresh, #cfbRefresh, .mlb-slate-load) {
      width: 36px !important;
      height: 36px !important;
      min-height: 36px !important;
      color: var(--kls-gold) !important;
      background: var(--kls-pod-bg) !important;
      border-inline-start: 1px solid var(--kls-subtle-border) !important;
      font-size: 20px !important;
    }

    &.cbb #nbaDateControls.gameday-bar {
      grid-template-columns: minmax(0, 1fr) 48px !important;
      grid-template-rows: 48px !important;
      column-gap: 0 !important;
    }
    &.cbb #nbaDateControls.gameday-bar > #nbaRefresh {
      width: 48px !important;
      height: 48px !important;
      min-height: 48px !important;
      background: var(--kls-pod-bg) !important;
    }
    &.cbb #nbaDateControls.gameday-bar > #nbaRefresh svg { width: 23px; height: 23px; }

    & .kls-game-card .nbd-broadcast:has(> .kls-kls-pod, > .kls-scoreboard-pod-slot:not([hidden])) {
      grid-template-columns: minmax(0, .48fr) minmax(0, .67fr) minmax(136px, .95fr);
      align-items: start;
      gap: 8px !important;

      & > * { grid-column: 1 / -1; }
      & > .nbd-matchup { grid-column: 1 / 3; grid-row: 2; align-self: stretch; align-content: center; }
      & > :is(.kls-kls-pod, .kls-scoreboard-pod-slot:not([hidden])) { grid-column: 3; grid-row: 2; align-self: stretch; }
      & > details:not([open]):has(+ .nbd-footer) { grid-column: 1; }
      & > details:not([open]) + .nbd-footer { grid-column: 2 / -1; }
    }

    & .kls-game-card .nbd-broadcast:is([data-state=upcoming],[data-state=pregame]):has(.kls-line-comparison) {
      & > .nbd-matchup {grid-column:1/-1;grid-row:2;}
      & > :is(.kls-kls-pod,.kls-scoreboard-pod-slot,.kls-quick), & .nbd-matchup :is(.ps-team-score,.kls-model-score) {display:none!important;}
      & .nbd-matchup::before {content:'KLS projection';grid-column:1/-1;text-align:right;color:var(--kls-muted);font-size:11px;}
      & .kls-matchup-estimate {display:block;grid-column:3;grid-row:1/3;align-self:center;color:var(--kls-gold);font:750 19px/1 system-ui;}
      & .kls-game-readiness {display:grid;grid-template-columns:minmax(0,1fr);grid-column:1/-1;gap:3px;}
      & .kls-line-comparison {border-collapse:collapse;table-layout:fixed;width:100%;font-variant-numeric:tabular-nums;}
      & .kls-line-comparison :is(th,td) {padding:3px 4px;text-align:right;overflow-wrap:anywhere;font-size:12px;}
      & .kls-line-comparison th:first-child {text-align:left;}
      & .kls-line-comparison :is(th,td):nth-child(2) {color:var(--kls-gold);font-weight:750;}
      & .kls-game-readiness > small {color:var(--kls-muted);font-size:11px;}
    }
    & .kls-game-card:has(.kls-line-comparison) .gk-confidence-preview[aria-label="Model confidence not yet verified"] {display:none!important;}
    & .nbd-broadcast:not(:is([data-state=upcoming],[data-state=pregame])) .kls-matchup-estimate {display:none!important;}
    & .kls-game-card .nbd-top {
      grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto !important;
      gap: 4px;
    }
    & .kls-game-card .nbd-top .nbd-feature-label { grid-column: 1 !important; grid-row: 1 !important; }
    & .kls-game-card .nbd-top :is(time, .kls-start-time, .cfb-kickoff-tbd) {
      grid-column: 2 !important; grid-row: 1 !important; text-align: left !important; color: var(--kls-muted) !important;
    }
    & .kls-game-card .nbd-top .nbd-status { grid-column: 3 !important; grid-row: 1 !important; }
    & .kls-game-card .nbd-broadcast[data-state=live] .nbd-status {
      --kls-status-dot: #72e3a3;
      color: #b7f3d1 !important;
      background: rgba(19, 80, 54, .42) !important;
      border-color: #427c60 !important;
    }
    & .kls-game-card .nbd-broadcast[data-state=final] .nbd-status { color: var(--kls-muted) !important; }

    & .kls-game-card .nbd-matchup > .ps-team {
      grid-template-columns: 34px minmax(0, 1fr) max-content !important;
      gap: 0 5px !important;
      min-width: 0;
    }
    & .kls-game-card .nbd-matchup > .ps-team.home {
      border-block-start: 1px solid rgba(255, 255, 255, .06);
      padding-block-start: 5px !important;
    }
    & .kls-game-card .ps-team > .nbd-logo.kls-team-monogram { width: 34px !important; height: 34px !important; }
    & .kls-game-card .ps-team .ps-team-name {
      white-space: nowrap !important;
      overflow: hidden;
      text-overflow: ellipsis;
      width: 100%;
      font: 650 14px/1.2 system-ui !important;
    }
    & .kls-game-card .ps-team .ps-record { font-size: 10px !important; }
    & .kls-game-card .ps-team .ps-team-score:not([hidden]) {
      color: var(--kls-text) !important;
      font: 800 20px/1 system-ui !important;
    }
    & .kls-game-card :is([data-leading=away] > .away, [data-leading=home] > .home) .ps-team-score {
      color: #f3d98b !important;
    }

    & .kls-kls-pod {
      box-sizing: border-box;
      display: grid;
      align-content: center;
      gap: 5px;
      min-width: 0;
      min-height: 80px;
      height: 100%;
      padding: 8px 10px;
      border: 1px solid rgba(255, 255, 255, .08);
      border-radius: 12px;
      background: var(--kls-pod-bg);
      font-variant-numeric: tabular-nums;
    }
    & .kls-pod-title {
      color: var(--kls-gold);
      font: 800 10px/1.15 system-ui;
      letter-spacing: .05em;
      text-align: center;
      text-transform: uppercase;
    }
    & .kls-pod-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
    & .kls-pod-metrics > span { font: 750 9px/1.2 system-ui; color: var(--kls-muted); text-transform: uppercase; }
    & .kls-pod-metrics b {
      display: block;
      overflow-wrap: anywhere;
      color: var(--kls-text);
      font: 800 12px/1.2 system-ui;
    }
    & .kls-pod-metrics > span:first-child b { color: #f3d98b; }
    & :is(.kls-pod-empty, .kls-pod-review) { color: var(--kls-muted); text-align: center; font-size: 11px; }
    & .kls-win-label { font: 700 10px/1.2 system-ui; color: var(--kls-text); }
    & .kls-win-track { height: 4px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .14); }
    & .kls-win-track i { display: block; height: 100%; border-radius: inherit; background: var(--kls-gold-grad); }

    & .kls-game-card .nbd-broadcast > details > summary {
      box-sizing: border-box; min-height: 32px; padding: 6px 5px;
      border: 1px solid var(--kls-subtle-border); border-radius: 8px;
      color: var(--kls-text); background: rgba(255, 255, 255, .06);
      cursor: pointer; font: 650 11px/1.2 system-ui;
      display: flex; align-items: center; justify-content: center; gap: 4px;
    }
    & .kls-game-card .nbd-broadcast > details > summary::before { content: "▸"; }
    & .kls-game-card .nbd-broadcast > details[open] > summary::before { content: "▾"; }
    & article.kls-game-card.nbd-card .nbd-footer > .nbd-action:not([hidden]) { font-size: 11px !important; min-height: 32px !important; padding-inline: 4px !important; }
    & .gd-crown.kls-cb-card { background: var(--kls-glass) !important; border-color: var(--kls-glass-border) !important; }
    & article.kls-game-card.nbd-card .nbd-footer > .nbd-action.kls-view-prediction:not([hidden]) {
      background: var(--kls-gold-grad) !important;
      color: #0b1220 !important;
    }
  }
}

/* Only leaf cards and closed accordions. Keep scroll containers and toolbars uncontained. */
#propsBoard #cards > .prop-card:not(:has(details[open])),
.kls-top-props-list > .kls-top-prop,
.kls-game-slate > article.nbd-card:not(:has(header, details, table, dialog)),
.kh-matchup-link {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 180px;
}
.kls-roster-entry:not(:has(table, details, dialog)),
.lt-panel .lt-recent-ticket:not([open]),
.lt-panel .tl-leg:not([open]) {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 84px;
}
:where(img:not([width][height])) { aspect-ratio: auto 1 / 1; }

@media (max-width: 767px) {
  :root {
    --kls-crown-breaker-hero: url('/crown-breaker-hero-640.webp');
    --kls-crown-xray-hero-v2: url('/crown-xray-hero-v2-640.webp');
    --kls-gk-arena-hero: url('/gk-arena-hero-640.webp');
    --kls-gk-arena-nfl: url('/gk-arena-nfl-640.webp');
    --kls-gk-arena-nba: url('/gk-arena-nba-640.webp');
    --kls-kls-bg-mlb: url('/kls-bg-mlb-640.webp');
    --kls-nba-kings-court: url('/nba-kings-court-640.webp');
    --kls-nba-stats-arena: url('/nba-stats-arena-640.webp');
    --kls-king-legacy-stadium: url('/king-legacy-stadium-720.webp');
    --kls-king-legacy-crest: url('/king-legacy-crest-640.webp');
  }
}
