/* views/scores.css: the Scores screen (week chips, terrain hero, gap tile, stat tiles, game tiles by day). Colors only through tokens. */
/* the page title is spoken but not drawn on phones: the wordmark and the "Week N" hero carry the screen */
.scores .screen-head { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (min-width: 1024px) { .scores .screen-head { position: static; width: auto; height: auto; margin: 0 2px 28px; overflow: visible; clip: auto; } }

.week-strip { margin-inline: calc(var(--gutter) * -1); }
.week-chips { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 6px var(--gutter) 10px; }
.week-chips::-webkit-scrollbar { display: none; }
.week-chip {
  position: relative; flex: none; scroll-snap-align: center; min-width: 56px; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: 2px solid var(--edge); border-radius: 999px; background: var(--ctl-f); color: var(--ink); text-decoration: none;
  font: 800 .9375rem/1.2 var(--font-body); -webkit-tap-highlight-color: transparent; transition: transform var(--dur-fast) var(--ease);
}
.week-chip svg { width: 14px; height: 14px; flex: none; }
.week-chip.is-selected { background: var(--primary); color: var(--on-primary); border-color: var(--on-primary); box-shadow: 3px 3px 0 var(--edge); transform: translate(-1px, -1px); }
.week-chip.is-selected { border-color: var(--edge); }
.now-dot { position: absolute; top: -3px; right: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--ink); }

/* hero */
.scores-hero { min-height: 310px; }
.scores-hero .plate-title { font-size: clamp(2.4rem, 12cqw, 3.1rem); }
.plate-line { font: 800 1rem/1.25 var(--font-body); }
.scores-hero .sum-text { font-weight: 600; font-size: .875rem; color: var(--tx-mu); }
@container screen (min-width: 760px) { .scores-hero .plate { margin-right: 25%; } }

/* biggest gap with Vegas */
.gap-tile { padding: 16px 16px 8px; gap: 0; }
.gap-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gap-top .why { margin-block: -4px; }
.gap-head { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.gap-head .gr-pair { flex: none; gap: 4px; }
.gap-head .gr-pair .avatar + .avatar { margin-left: 0; }
.gap-head .avatar { font-size: .625rem; letter-spacing: -.02em; }
.gap-title { font: 800 1.5rem/1.05 var(--font-display); font-stretch: var(--stretch); letter-spacing: -.025em; text-wrap: balance; }
.gap-big { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.gap-big .stk { font-size: clamp(4rem, 26cqw, 5.4rem); flex: none; }
.gap-big b { display: block; font: 800 1.25rem/1.1 var(--font-display); font-stretch: var(--stretch); }
.gap-big div span { display: block; margin-top: 4px; font: 700 .875rem/1.25 var(--font-body); color: var(--tx-mu); }
.gap-tile .winbar { margin: 4px 6px 0; }
.gap-tile .wb-readout, .pred-card .wb-readout { min-height: 0; padding: 6px 0 8px; border: 0; background: none; font: 700 .8125rem/1.35 var(--font-body); color: var(--tx-mu); }

/* games by day */
.scores-list { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.day-group { display: grid; gap: 14px; align-content: start; }
.game-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-right: 4px; padding-bottom: 4px; }
@container screen (min-width: 560px) { .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container screen (min-width: 1180px) { .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gtile .gr-pair { display: none; }
.gtile .avatar { width: 28px; height: 28px; }
@container screen (min-width: 760px) {
  .week-strip { margin-inline: 0; }
  .week-chips { flex-wrap: wrap; overflow: visible; padding-inline: 0 8px; }
}


/* Week stat tiles: one full-width row that splits evenly however many tiles there are. */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--gap-tile); }
.stat-row > .tile { grid-column: auto; }
@media (max-width: 559px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat-row > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; } }
