/* CS2 competition data only. Shared chrome and controls live in styles.css. */
.capture-export .cs2-season-footer { grid-template-columns: minmax(0, 1fr); }
.setup-cs2 :is(.region-options, .role-options) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs2-muted { color: var(--muted-strong); font-size: 12px; line-height: 1.5; }
#cs2-save-status:not(.visually-hidden) { color: var(--red); margin: 6px 0; }
#cs2-career-history { min-width: 0; }
.career-cs2 .timeline-head, .career-cs2 .season { gap: 4px; grid-template-columns: 40px minmax(130px, 1.55fr) 44px minmax(0, 3fr) minmax(90px, .8fr); min-width: 0; width: 100%; }
.career-cs2 .season { padding-inline: 6px; }
.career-cs2 .club-cell { gap: 5px; min-width: 0; }
.cs2-team-logo { display: block; object-fit: contain; }
.career-cs2 .club-cell .cs2-team-logo, .career-cs2 .club-cell .cs2-team-placeholder { flex: 0 0 24px; height: 24px; width: 24px; }
.career-cs2 .club-cell .history-role-icon { flex: 0 0 22px; height: 22px; object-fit: contain; width: 22px; }
.cs2-season-ranking { color: var(--muted); display: block; font-size: 7.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs2-highlights { --cs2-highlight-gap: 3px; align-items: center; align-self: center; display: flex; gap: var(--cs2-highlight-gap); justify-content: center; list-style: none; margin: 0; min-height: 0; min-width: 0; padding: 2px 0; width: 100%; }
.cs2-highlight { align-items: center; display: grid; flex: 0 0 calc((100% - (var(--cs2-highlight-count, 8) - 1) * var(--cs2-highlight-gap)) / var(--cs2-highlight-count, 8)); gap: 2px; grid-template-rows: 9px 20px; justify-items: center; min-height: 0; min-width: 0; }
.cs2-highlight .competition-label { display: block; font-size: 8px; line-height: 9px; max-width: 100%; overflow: hidden; padding: 0; position: static; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.cs2-highlight.is-prestigious .competition-label { color: var(--accent); }
.cs2-highlight .cs2-result-badge:not(.is-numeric) { max-width: 100%; min-width: 0; }
.cs2-highlight .tournament-stage-badge { font-size: 8px; height: 20px; line-height: 1; overflow: hidden; padding: 1px; white-space: normal; width: 100%; }
.cs2-result-badge.is-unavailable { border-color: var(--accent); color: var(--accent); }
.cs2-season-footer { align-items: center; display: grid; gap: 4px; grid-template-columns: minmax(0, 1fr) 45px; min-width: 0; }
.cs2-season-footer .earnings-cell { font-size: 10px; }
.cs2-season-details { background: transparent; border: 1px solid var(--line); border-radius: 4px; color: var(--muted-strong); cursor: pointer; font: inherit; font-size: 8px; font-weight: 750; min-height: 23px; padding: 3px; }
.cs2-season-details:hover, .cs2-season-details:focus-visible { border-color: var(--accent); color: var(--accent); }
.cs2-no-results { color: var(--muted); font-size: 10px; margin: 0; }
.career-cs2 .season.choosing .club-cell { font-size: 12px; grid-column: 2 / -1; }
.cs2-dialog { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); height: min(900px, calc(100dvh - 32px)); max-height: calc(100dvh - 32px); max-width: calc(100% - 32px); overflow: hidden; padding: 0; width: 1400px; }
.cs2-dialog[open] { display: flex; flex-direction: column; }
.cs2-dialog::backdrop { background: rgb(0 0 0 / 72%); }
.cs2-dialog-heading { align-items: center; border-bottom: 1px solid var(--line); display: flex; flex: 0 0 auto; gap: 16px; justify-content: space-between; padding: 12px 16px; }
.cs2-dialog-heading h2 { font-size: 24px; line-height: 1.1; margin: 0; overflow-wrap: anywhere; }
.cs2-close { background: transparent; border: 1px solid var(--line); border-radius: 6px; color: var(--muted-strong); cursor: pointer; flex-shrink: 0; font: inherit; font-size: 12px; font-weight: 800; min-height: 36px; padding: 8px 12px; }
.cs2-close:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); }
.cs2-dialog-content { flex: 1 1 0; min-height: 0; overflow: hidden; padding: 8px 16px; }
.cs2-season-results { display: grid; gap: 0 16px; grid-auto-flow: column; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--cs2-result-rows, 12), 44px); list-style: none; margin: 0; min-height: 0; padding: 0; }
.cs2-season-results[data-count="0"], .cs2-season-results[data-count="1"] { grid-template-rows: auto; }
.cs2-empty-results { grid-column: 1 / -1; padding-block: 12px; }
.cs2-full-result { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr) auto auto; min-height: 0; padding: 4px 0; }
.cs2-full-result > div { display: grid; gap: 2px; min-width: 0; }
.cs2-full-result strong { font-size: 12px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs2-full-result .cs2-muted { font-size: 10px; line-height: 1.2; }
.cs2-full-result .cs2-result-badge { font-size: 10px; }
.cs2-full-result .tournament-stage-badge { font-size: 9px; height: auto; min-height: 24px; min-width: 0; max-width: 80px; padding: 3px; white-space: normal; }
.cs2-result-outcome { align-items: center; display: inline-flex; gap: 4px; justify-content: end; min-width: 0; }
.cs2-qualifier-badge { align-items: center; border: 1px solid rgb(79 209 155 / 35%); border-radius: 4px; color: var(--green); display: inline-flex; font-size: 8px; font-weight: 800; line-height: 1; min-height: 23px; padding: 3px; white-space: nowrap; }
.cs2-qualifier-badge.is-dnq { border-color: rgb(255 102 117 / 35%); color: var(--red); }
.cs2-result-prize { color: var(--accent); font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 750; text-align: right; white-space: nowrap; }
.cs2-season-totals { border-top: 1px solid var(--line); display: grid; flex: 0 0 auto; gap: 4px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 16px; }
.cs2-season-totals > span { align-items: center; display: flex; font-size: 10px; gap: 6px; justify-content: space-between; }
.cs2-season-totals strong { color: var(--accent); font-size: 14px; }
.cs2-season-totals p { font-size: 9px; grid-column: 1 / -1; line-height: 1.2; margin: 0; }
.cs2-season-pagination { align-items: center; display: flex; flex: 0 0 40px; gap: 8px; justify-content: center; padding: 2px 12px; }
.cs2-season-pagination.is-single-page { visibility: hidden; }
.cs2-season-pagination span { color: var(--muted-strong); font-size: 11px; text-align: center; }
.cs2-season-pagination button { font-size: 11px; min-height: 30px; padding: 5px 8px; }
.cs2-season-pagination button:disabled { cursor: default; opacity: .35; }
@media (min-width: 1150px) { .cs2-season-results { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 701px) {
  #cs2-career-history { container-type: size; }
  .cs2-highlights {
    --cs2-history-badge-size: clamp(12px, calc((100cqh - 18px) / 19 - 13px), 20px);
    --cs2-history-label-size: clamp(6px, calc(var(--cs2-history-badge-size) * .45), 9px);
    padding: 0;
  }
  .cs2-highlight { gap: 1px; grid-template-rows: var(--cs2-history-label-size) var(--cs2-history-badge-size); }
  .career-cs2 .cs2-highlight .competition-label { font-size: clamp(5.5px, calc(var(--cs2-history-badge-size) * .4), 8px); line-height: var(--cs2-history-label-size); }
  .cs2-highlights .placement-badge.is-numeric { --placement-size: var(--cs2-history-badge-size); font-size: clamp(7px, calc(var(--cs2-history-badge-size) * .5), 11px); }
  .career-cs2 .cs2-highlights .tournament-stage-badge { font-size: clamp(5px, calc((var(--cs2-history-badge-size) - 2px) / 2), 8px); height: var(--cs2-history-badge-size); padding: 0; }
  .cs2-highlights .placement-trophy { height: var(--cs2-history-badge-size); min-width: var(--cs2-history-badge-size); }
  .cs2-highlights .placement-trophy .trophy-img { height: var(--cs2-history-badge-size); width: var(--cs2-history-badge-size); }
  .career-cs2 .cs2-season-details { height: clamp(16px, calc((100cqh - 18px) / 19 - 4px), 23px); min-height: 0; }
  #cs2-career-history .season:not(.cs2-inactive-season) .club-info b { font-size: clamp(10px, calc(((100cqh - 18px) / 19 - 14px) / 1.15), 15px); line-height: 1.15; padding-bottom: 1px; }
  #cs2-career-history .club-cell :is(.history-role-icon, .cs2-team-logo, .cs2-team-placeholder) { --cs2-history-icon-size: clamp(12px, calc((100cqh - 18px) / 19 - 4px), 24px); flex-basis: var(--cs2-history-icon-size); height: var(--cs2-history-icon-size); width: var(--cs2-history-icon-size); }
  @container (max-height: 520px) {
    .career-cs2 .cs2-season-ranking { display: none; }
  }
}
@media (min-width: 701px) and (max-width: 1250px) {
  .career-cs2 .timeline-head, .career-cs2 .season { gap: 3px; grid-template-columns: 26px minmax(80px, 1fr) 30px minmax(0, 3fr) 72px; }
  .cs2-season-footer { gap: 2px; grid-template-columns: minmax(0, 1fr) 30px; }
  .cs2-season-details { font-size: 7px; }
  .cs2-highlight .competition-label, .cs2-highlight .tournament-stage-badge { font-size: 7px; }
}
@media (max-width: 700px) {
  .career-cs2 .timeline-head, .career-cs2 .season { gap: 2px; grid-template-columns: 26px minmax(78px, 1fr) 30px minmax(0, 1.7fr) 46px; }
  .career-cs2 .season { padding-inline: 2px; }
  .career-cs2 .club-cell { gap: 3px; }
  .career-cs2 .club-cell .cs2-team-logo, .career-cs2 .club-cell .cs2-team-placeholder { flex-basis: 16px; height: 16px; width: 16px; }
  .career-cs2 .club-cell .history-role-icon { flex-basis: 14px; height: 14px; width: 14px; }
  .cs2-season-ranking { display: none; }
  .cs2-highlights { --cs2-highlight-gap: 2px; }
  .cs2-highlight { gap: 2px; grid-template-rows: 8px 18px; }
  .cs2-highlight .competition-label { font-size: 6px; line-height: 8px; }
  .cs2-highlight .placement-badge { font-size: 9px; }
  .cs2-highlight .tournament-stage-badge { height: 18px; }
  .cs2-highlight .placement-trophy { height: 18px; min-width: 17px; }
  .cs2-highlight .placement-trophy .trophy-img { height: 17px; width: 17px; }
  .cs2-season-footer { gap: 1px; grid-template-columns: minmax(0, 1fr); grid-template-rows: 10px 14px; }
  .cs2-season-footer .earnings-cell { font-size: 8px; line-height: 1; }
  .cs2-season-details { font-size: 7px; line-height: 1; min-height: 14px; padding: 0; }
  .cs2-no-results { font-size: 8px; }
  .cs2-dialog { border: 0; border-radius: 0; height: calc(100dvh - 16px); margin: auto 0; max-height: calc(100dvh - 16px); max-width: 100%; width: 100%; }
  .cs2-dialog-heading { padding: 12px; }
  .cs2-dialog-heading h2 { font-size: 21px; }
  .cs2-dialog-content { padding: 8px 12px; }
  .cs2-season-results { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(var(--cs2-result-rows, 8), 52px); }
  .cs2-full-result { gap: 5px; }
  .cs2-full-result strong { font-size: 11px; }
  .cs2-result-prize { font-size: 10px; }
}
