/* Scoped home entrance; preserve the game's header, type, skins, menu and sticky action. */
#scores-menu[hidden],#scores-entry[hidden],.sse-chips[hidden],.sse-paging[hidden]{display:none!important}
#scores-menu{margin:1px 7px 5px;border-bottom:1px solid var(--line);padding-bottom:3px}
#scores-menu .sse-menu-link{display:flex;justify-content:space-between;align-items:center;padding:4px 9px;min-height:30px;box-sizing:border-box;font:800 12px/1.25 'Nunito',sans-serif}
#scores-menu .sse-toggle{padding:4px 9px;border:0;font-size:11.5px;min-height:30px;box-sizing:border-box}
/* Compact menu controls; the strip and settings dialog retain their own sizing. */
#scores-menu .sse-menu-link img{width:14px;height:14px}
#scores-menu .sse-toggle input{box-sizing:border-box;width:30px;height:18px}
#scores-menu .sse-toggle input::after{width:12px;height:12px;top:2px;left:2px}
#scores-menu .sse-toggle input:checked::after{transform:translateX(12px)}
.sse-favorites-open{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:8px 9px;border:0;background:none;color:var(--soft);font:800 12.5px 'Nunito',sans-serif;cursor:pointer;min-height:40px}
.sse-favorites-open span{font-size:11px;color:var(--pale2)}
.sse-menu-link img,.sse-all img,.sse-strip-heading img,.sse-paging img{width:20px;height:20px;flex:none}
.sse-right{transform:rotate(-90deg)}
.sse-left{transform:rotate(90deg)}
#scores-entry{margin:0;padding:4px 0;border-bottom:1px solid var(--line);color:var(--soft);font:700 11px/1.25 'Nunito',sans-serif;min-width:0}
.sse-strip-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;font-weight:900;margin-bottom:2px;letter-spacing:.025em}
.sse-strip-heading>span{color:var(--pale2)}
.sse-strip-heading .sse-strip-x{flex:none;display:inline-flex;align-items:center;justify-content:center;background:none;border:0;padding:4px;margin:-4px -4px -4px 0;color:var(--pale2);cursor:pointer;opacity:.75}
.sse-strip-heading .sse-strip-x:hover{opacity:1}
#scores-entry .sse-strip-heading .sse-strip-x img{width:13px;height:13px}
.sse-strip-heading a{display:flex;align-items:center;gap:3px;text-decoration:none;color:var(--yellow);min-height:28px;white-space:nowrap}
.sse-track{display:flex;position:relative;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;min-width:0}
.sse-track::-webkit-scrollbar{display:none}
.sse-game{display:flex;align-items:center;gap:12px;flex:0 0 100%;box-sizing:border-box;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;text-decoration:none;color:var(--soft);padding:0 6px 0 0}
.sse-matchup{display:grid;gap:2px;flex:1;min-width:0}
.sse-team-line{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:1px 6px;border-radius:3px;min-height:18px;font-weight:800}
.sse-team-line>span{min-width:0}
.sse-team-line>b{font:800 14px/1.1 'Baloo 2',sans-serif;font-variant-numeric:tabular-nums}
.sse-game-state{min-width:48px;text-align:right;font-size:10px;line-height:1.25;white-space:nowrap}
.sse-game-state small{display:block;color:var(--pale2);font-size:10px}
.sse-paging{display:flex;align-items:center;justify-content:space-between;min-height:28px;margin-top:0}
.sse-paging button,.sse-close{display:flex;align-items:center;justify-content:center;width:40px;height:36px;background:none;border:0;border-radius:8px;cursor:pointer;color:var(--soft)}
.sse-paging button:disabled{opacity:.3;cursor:default}
.sse-count{font-size:10px;color:var(--pale2);font-variant-numeric:tabular-nums}
.sse-message{padding:12px 8px;font-size:13px}
.sse-retry{font:800 13px 'Nunito',sans-serif;color:var(--yellow);border:0;background:none;padding:10px;cursor:pointer}
.sse-settings{position:fixed;inset:0;margin:auto;color:var(--soft);background:var(--navy);border:1px solid var(--lineHi);border-radius:16px;padding:18px;box-sizing:border-box;width:390px;max-width:calc(100vw / var(--z) - 24px);max-height:calc(100dvh / var(--z) - 32px);overflow-y:auto;overscroll-behavior:contain;font:700 14px 'Nunito',sans-serif}
.sse-settings::backdrop{background:rgba(3,10,20,.65)}
.sse-settings-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:8px}
.sse-settings h2{font:800 26px/1.1 'Baloo 2',sans-serif;text-transform:uppercase;margin:0}
.sse-close{width:36px;height:36px}
.sse-close img{width:24px;height:24px}
.sse-all{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:9px;color:var(--soft);text-decoration:none;padding:10px 12px;font-weight:900;min-height:24px}
.sse-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0;border-bottom:1px solid var(--line);cursor:pointer;font-weight:900;min-height:32px}
.sse-toggle input{appearance:none;position:relative;flex:none;width:42px;height:24px;border-radius:24px;margin:0;background:var(--mute2);border:1px solid var(--lineHi);cursor:pointer}
.sse-toggle input::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--soft);transition:transform .15s}
.sse-toggle input:checked{background:var(--green);border-color:var(--green)}
.sse-toggle input:checked::after{transform:translateX(18px)}
.sse-favorites-heading{display:flex;align-items:center;justify-content:space-between;margin-top:18px}
.sse-favorites-heading h3{font-size:14px;margin:0;font-weight:900}
.sse-favorites-heading>span{font-size:12px;color:var(--pale2)}
.sse-help{font-size:12px;color:var(--pale2);line-height:1.45;margin:7px 0 12px}
.sse-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.sse-chips button{display:flex;align-items:center;gap:8px;max-width:100%;min-height:36px;padding:5px 10px;border:1px solid var(--line);border-radius:8px;background-color:transparent;color:var(--soft);font:800 12px 'Nunito',sans-serif;cursor:pointer}
.sse-chips img{width:16px;height:16px}
.sse-search-label{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
#scores-team-search{box-sizing:border-box;width:100%;min-height:42px;border:1px solid var(--lineHi);border-radius:8px;background:var(--navy2);color:var(--soft);padding:8px 12px;font:700 16px 'Nunito',sans-serif}
#scores-team-search::placeholder{color:var(--pale2);opacity:1}
.sse-team-list{margin-top:10px;max-height:235px;overflow-y:auto;overscroll-behavior:contain}
.sse-team{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;box-sizing:border-box;padding:9px 10px;border-bottom:1px solid var(--line);cursor:pointer;font-size:13px}
.sse-team input{width:18px;height:18px;flex:none;accent-color:var(--yellow);cursor:pointer}
.sse-team:has(input:disabled){opacity:.5;cursor:default}
.sse-save{padding-top:14px;border-top:1px solid var(--line);font-size:11px;color:var(--pale2);margin:14px 0 0}
#scores-menu :focus-visible,#scores-entry :focus-visible,.sse-settings :focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
.sse-track:focus-visible,.sse-game:focus-visible{outline-offset:-2px!important}
@media(hover:hover){.sse-game:hover,.sse-paging button:not(:disabled):hover,.sse-favorites-open:hover,.sse-team:hover{background-color:rgba(var(--paleRGB),.07)}}
/* Keep the strip small without shrinking the settings dialog's controls. */
#scores-entry .sse-paging button{height:28px;width:32px}
#scores-entry .sse-paging img,#scores-entry .sse-strip-heading img{width:16px;height:16px}
.sse-strip-heading .sse-hide-toggle{padding:0;border:0;min-height:28px;white-space:nowrap;font-size:10px;letter-spacing:0;gap:5px}
/* A small visual switch; the whole Hide scores label remains clickable. */
.sse-hide-toggle input,#scores-hide{box-sizing:border-box;width:22px;height:12px}
.sse-hide-toggle input::after,#scores-hide::after{width:8px;height:8px;top:1px;left:1px}
.sse-hide-toggle input:checked::after,#scores-hide:checked::after{transform:translateX(10px)}
@media(min-width:790px){
  #scores-entry{display:grid;grid-template-columns:100px minmax(0,1fr) 96px 18px;grid-template-rows:24px 24px;align-items:center;column-gap:10px;padding:2px 0}
  .sse-strip-heading{display:contents}
  .sse-strip-heading>span{grid-column:1;grid-row:1}
  .sse-strip-heading .sse-hide-toggle{grid-column:1;grid-row:2;justify-content:flex-start;min-height:24px}
  .sse-strip-heading>a{grid-column:3;grid-row:1;justify-content:center;min-height:24px}
  .sse-strip-heading .sse-strip-x{grid-column:4;grid-row:1;margin:0}
  .sse-track{grid-column:2;grid-row:1 / 3}
  .sse-game{flex-basis:calc((100% - 12px)/2);padding-right:10px;border-right:1px solid var(--line)}
  .sse-paging{grid-column:3;grid-row:2;margin-top:0;min-height:24px;gap:2px}
  #scores-entry .sse-paging button{height:24px;width:24px}
  .sse-team-line{font-size:11px;padding-left:6px;padding-right:4px}
  .sse-game-state{min-width:42px}
}
@media(min-width:790px) and (max-width:1100px){.sse-game{flex-basis:100%}}
@media(max-width:789px){
  .sse-strip-heading>span{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
}
@media(prefers-reduced-motion:reduce){.sse-toggle input::after{transition:none}}

.sse-menu-section>summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:4px 9px;min-height:30px;box-sizing:border-box;font:800 12.5px/1.25 'Baloo 2',sans-serif;list-style:none;color:#fff}
.sse-menu-section>summary::-webkit-details-marker{display:none}
.sse-menu-section>summary img{width:14px;height:14px;transform:rotate(-90deg)}
.sse-menu-section[open]>summary img{transform:none}
.sse-menu-options{padding:0 0 6px 9px}

.sse-strip-heading .sse-strip-x{opacity:1}   /* the strip's own off switch, at full strength (owner 2026-10-19) */
/* Tonight in History: one button beside each regular-season game; the link keeps the game's row */
.sse-tihgame{display:flex;align-items:center;gap:8px}
.sse-tihlink{display:flex;align-items:center;gap:12px;flex:1 1 auto;min-width:0;color:inherit;text-decoration:none}
.sse-tihlink .sse-matchup{flex:1 1 auto;min-width:0}
.sse-tih{flex:none;font:800 11.5px 'Baloo 2',sans-serif;letter-spacing:.02em;line-height:1.1;color:var(--yellow);background:transparent;border:1.5px solid rgba(247,207,69,.55);border-radius:8px;padding:5px 9px;white-space:nowrap;cursor:pointer;touch-action:manipulation}
.sse-tih:hover{background:rgba(247,207,69,.08)}

.sse-game-state small.sse-tz{display:inline}   /* "9:30 PM ET" on one line (owner 2026-10-19) */
@media(min-width:790px){#scores-entry .sse-strip-heading>a{justify-content:flex-start}}   /* All sits against the divider, not adrift mid-column (owner 2026-10-19) */
/* Phone: the pager rides the top row beside Hide scores, All and the ✕, so the strip is the heading plus one game
   (owner 2026-10-19: "lets make less rows pls") */
@media(max-width:789px){
  #scores-entry{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;column-gap:10px;row-gap:2px}
  .sse-strip-heading{display:contents}
  .sse-strip-heading .sse-hide-toggle{grid-column:1;grid-row:1}
  .sse-paging{grid-column:2;grid-row:1;justify-content:center;gap:2px}
  .sse-strip-heading>a{grid-column:3;grid-row:1}
  .sse-strip-heading .sse-strip-x{grid-column:4;grid-row:1}
  .sse-track{grid-column:1 / -1;grid-row:2}
}
@media(min-width:790px){#scores-entry .sse-tihgame{padding-right:14px}}   /* DUEL keeps clear of the divider (owner 2026-10-19) */
/* THE STRIP'S TOP ROW IS THE DATE, THE PAGER AND THE ✕ (owner 2026-10-20: "kill the eye", "remove the scores yellow",
   "lets have the hide scores on the menu"): Hide scores lives in the Menu, and a game opens Scores. The date replaces
   TODAY ("maybe it should be a date"). On a phone the stacked teams sit on tighter lines ("much more compact"). */
@media(max-width:789px){
  #scores-entry{grid-template-columns:auto minmax(0,1fr) auto;padding:1px 0 3px;row-gap:0}
  #scores-entry .sse-strip-heading>span.sse-day{position:static;width:auto;height:auto;clip-path:none;overflow:visible;grid-column:1;grid-row:1;font-size:10px;letter-spacing:.04em;white-space:nowrap}
  #scores-entry .sse-paging{grid-column:2}
  #scores-entry .sse-strip-heading .sse-strip-x{grid-column:3}
  #scores-entry .sse-paging,#scores-entry .sse-strip-heading .sse-strip-x{min-height:24px}
  #scores-entry .sse-paging button{height:24px}
  #scores-entry .sse-matchup{gap:1px}
  #scores-entry .sse-team-line{min-height:17px;padding-top:0;padding-bottom:0}
  #scores-entry .sse-tih{padding:4px 9px}
}
@media(min-width:790px){#scores-entry .sse-paging{grid-row:1 / 3}}   /* with no link above it, the pager centres in its column */
