/* Scenario bar, games table and standings. Scoped under .games and #standings; classes prefixed t-. */
.games { margin: 8px 0 34px; }
.games h2 { margin-bottom: 6px; }
.games h3, #standings h3 { font: 600 12px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 6px; }
.games .t-note, #standings .t-note { color: var(--muted); font-size: 12px; line-height: 1.4; margin: 0; }
.games .t-lead { max-width: 90ch; margin-bottom: 10px; font-size: 13px; }
.games .t-mono { font: 12px var(--mono); margin: 0 0 6px; }
.games button, #standings button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.games .t-btn, #standings .t-btn { border: 1px solid var(--line); border-radius: 3px; padding: 4px 10px; background: var(--card); font-size: 12.5px; }
.games .t-btn:disabled { opacity: .45; cursor: default; }
.games .t-btn:hover:not(:disabled) { border-color: var(--ink-2); }
.games .t-btns { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 6px; }
.games .t-sbar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 10px 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.games .t-sb-pins ul { list-style: none; margin: 0 0 4px; padding: 0; font-size: 13px; }
.games .t-sb-pins li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--line-soft); }
.games .t-x { color: var(--muted); font-size: 16px; line-height: 1; padding: 0 4px; }
.games .t-x:hover { color: var(--rust); }
.games .t-tool { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding-bottom: 8px; }
.games .t-tool input, .games .t-tool select { border: 1px solid var(--line); border-radius: 3px; background: var(--card); padding: 3px 7px; font-size: 13px; height: 28px; }
.games .t-tool input { width: 160px; }
.games .t-chip { border: 1px solid var(--line); border-radius: 3px; padding: 3px 9px; font-size: 12.5px; background: var(--card); height: 28px; }
.games .t-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.games .t-count { margin-left: auto; color: var(--muted); font-size: 12px; }
.games .t-cols, .games .t-row { display: grid; grid-template-columns: 72px minmax(230px, 1.2fr) 70px 92px 48px 160px 124px 50px 50px; column-gap: 8px; align-items: center; padding: 0 8px; }
.games .t-cols { font: 600 11px/1.15 var(--sans); color: var(--ink-2); background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 5px; padding-bottom: 5px; align-items: end; }
.games .t-cols .r, .games .t-em, .games .t-v { text-align: right; }
.games .t-axis { display: flex; justify-content: space-between; font: 400 9.5px var(--mono); color: var(--muted); }
.games .t-axis i { font-style: normal; }
.games .t-row { min-height: 40px; border-bottom: 1px solid var(--line-soft); cursor: pointer; font-size: 13px; }
.games .t-row:hover, .games .t-row:focus-visible, .games .t-row.open { background: var(--card); }
.games .t-row.hol { box-shadow: inset 3px 0 0 var(--green); }
.games .t-kick b { display: block; font-weight: 500; font-size: 12.5px; } .games .t-kick span { display: block; color: var(--muted); font-size: 11.5px; }
.games .t-match { min-width: 0; line-height: 1.3; }
.games .t-match div { display: flex; gap: 5px; align-items: baseline; min-width: 0; }
.games .t-tn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.games .t-tag { font: 10px var(--mono); color: var(--muted); flex: none; }
.games .t-o { color: var(--muted); }
.games .t-st { font-size: 11.5px; line-height: 1.25; color: var(--ink-2); } .games .t-st a { font-size: 11px; } .games .late { color: var(--rust); }
.games .t-bar { display: flex; height: 8px; border-radius: 1px; overflow: hidden; }
.games .t-bar i { display: block; height: 100%; } .games .t-bar .a { background: var(--slate); } .games .t-bar .d { background: var(--draw); } .games .t-bar .b { background: var(--rust-soft); box-shadow: inset 0 0 0 1px #d6b49e; }
.games .t-bart { font: 10px/1.2 var(--mono); color: var(--muted); display: flex; justify-content: space-between; margin-top: 2px; }
.games .t-em, .games .t-v { font: 12px var(--mono); } .games .dim { color: var(--muted); }
.games .t-rcl { display: flex; justify-content: space-between; gap: 4px; font: 10px/1.2 var(--sans); color: var(--muted); margin-bottom: 1px; }
.games .t-rcl span { min-width: 0; overflow: hidden; white-space: nowrap; } .games .t-rcl span:first-child { color: var(--slate); } .games .t-rcl span:last-child { color: var(--rust); text-align: right; } .games .t-rcl i { font-style: normal; display: none; }
.games .t-rc { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: 2px; background: var(--card); overflow: hidden; }
.games .t-rc button { height: 24px; font: 11px var(--mono); border-right: 1px solid var(--line-soft); color: var(--ink-2); position: relative; }
.games .t-rc button:last-child { border-right: 0; }
.games .t-rc .sa { background: #e6ecf1; } .games .t-rc .sb { background: #f6e9e1; }
.games .t-rc button:hover { background: var(--gold-soft); }
.games .t-rc .season { box-shadow: inset 0 0 0 2px var(--ink); z-index: 1; }
.games .t-rc .pin { background: var(--gold); color: #fff; font-weight: 600; }
.games .t-fx { display: block; width: 100%; height: 22px; }
.games .t-hnote { grid-column: span 3; font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.games .t-detail { padding: 8px 12px 14px; background: var(--card); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 18px; font-size: 13px; }
.games .t-detail svg { width: 100%; display: block; } .games .t-detail svg text { font: 9px var(--mono); fill: var(--muted); }
.games .t-detail h3 { text-transform: none; letter-spacing: 0; font-size: 13px; } .games .t-detail p { margin: 0 0 6px; } .games .t-sm { color: var(--muted); font-size: 12px; }
.games .t-empty { padding: 24px 8px; color: var(--muted); }

#standings { margin-top: 22px; max-width: 520px; }
#standings .t-tog { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 3px; background: var(--card); margin-bottom: 6px; }
#standings .t-tog button { padding: 5px 4px; font-size: 12.5px; line-height: 1.2; border-right: 1px solid var(--line); }
#standings .t-tog button:last-child { border-right: 0; }
#standings .t-tog button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
#standings .t-opts { display: flex; justify-content: space-between; align-items: center; margin: 6px 0; }
#standings .t-stand { width: 100%; border-collapse: collapse; font-size: 13px; }
#standings .t-stand th { text-align: left; font: 600 11px var(--sans); color: var(--ink-2); padding: 3px 5px; border-bottom: 1px solid var(--line); }
#standings .t-stand .r { text-align: right; }
#standings .t-stand td { padding: 2px 5px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
#standings .t-stand td.r { font: 12px var(--mono); }
#standings .t-stand tr.cut td { border-bottom: 2px dashed var(--ink-2); }
#standings .t-stand tr.ww td { background: var(--green-soft); font-weight: 600; }
#standings .up { color: var(--green); } #standings .down { color: var(--rust); }

@media (max-width: 1100px) { .games .t-cols, .games .t-row { grid-template-columns: 66px minmax(190px, 1fr) 64px 84px 42px 150px 100px 44px 44px; column-gap: 5px; } .games .t-rcl i { display: none; } }
@media (max-width: 860px) {
  .games .t-sbar { grid-template-columns: 1fr; gap: 12px; }
  .games .t-cols { display: none; }
  .games .t-row { grid-template-columns: 1fr 96px; grid-template-areas: "match match" "kick wdl" "rc rc" "typ typ"; row-gap: 5px; padding: 8px 4px; }
  .games .t-kick { grid-area: kick; } .games .t-match { grid-area: match; } .games .t-wdl { grid-area: wdl; } .games .t-rcc { grid-area: rc; } .games .t-typ, .games .t-hnote { grid-area: typ; }
  .games .t-st, .games .t-em, .games .t-fxc, .games .t-sw { display: none; }
  .games .t-kick b, .games .t-kick span { display: inline; margin-right: 6px; }
  .games .t-match div { display: block; } .games .t-tag { display: block; } .games .t-tn { display: block; white-space: normal; }
  .games .t-rcl i { display: inline; } .games .t-rc button { height: 30px; }
  .games .t-typ { text-align: left; color: var(--muted); font-size: 11.5px; }
  .games .t-detail { grid-template-columns: 1fr; gap: 8px; }
  .games .t-tool input { width: 100%; } .games .t-count { margin-left: 0; width: 100%; }
  #standings { max-width: none; }
}
@media (min-width: 861px) { .games .t-lbl { display: none; } }
