/* VERTEX copy of public/css/esports.css — generated by scripts/build-vx-legacy.js, do not edit */
/* Player page — Esports tab (start.gg tournaments). Uses the ui.css tokens. */

/* "Powered by start.gg" — source credit on the tab header. */
.es-credit { display: inline-flex; align-items: center; gap: 6px; flex: none; margin-left: 12px; padding: 4px 11px; border-radius: 0;
  border: 1px solid var(--line-2); background: var(--s1); color: var(--ink-3); font-size: 12px; text-decoration: none; white-space: nowrap;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast); }
.es-credit b { color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.es-credit .i { width: 13px; height: 13px; }
.es-credit:hover { color: var(--ink-2); border-color: var(--line-3); background: var(--s2); }
.es-credit:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ---- header row: title on the left, start.gg identity + credit on the right ---- */
.es-flow > .sec-head.es-head { align-items: center; }
.es-head h2 small { font: 500 11px/1 var(--f-mono); color: var(--ink-4); letter-spacing: .06em; margin-left: 8px; text-transform: none; }
.es-head-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.es-head-r .es-credit { margin-left: 0; }
.es-credit { height: 34px; padding: 0 13px; box-shadow: var(--edge); }

/* ---- tournament list ---------------------------------------------------- */
.es-list { display: flex; flex-direction: column; gap: 14px; }
.es-year { display: flex; align-items: center; gap: 12px; margin: 8px 0 -2px; }
.es-year:first-child { margin-top: 0; }
.es-year span { font: 800 15px/1 var(--f-display); font-stretch: 114%; letter-spacing: .03em; color: var(--ink-2); }
.es-year i { flex: 1; height: 1px; background: var(--line-2); }
.es-year small { font: 500 11px/1 var(--f-mono); letter-spacing: .06em; color: var(--ink-4); text-transform: uppercase; }

.es-t { --m: var(--ink-2); overflow: hidden; }
.es-t.is-gold { --m: var(--gold); }
.es-t.is-silver { --m: var(--silver); }
.es-t.is-bronze { --m: var(--bronze); }
.es-t-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.es-t-img { width: 40px; height: 40px; border-radius: 0; object-fit: cover; flex: none; background: var(--s3); }
.es-t-noimg { display: grid; place-items: center; color: var(--ink-3); }
.es-t-noimg .i { width: 20px; height: 20px; }
.es-t-id { min-width: 0; flex: 1; }
.es-t-id h3 { font: 800 14px/1.2 var(--f-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-t-id h3 a { color: inherit; text-decoration: none; }
.es-t-id h3 a:hover { color: var(--acc-hi); }
.es-t-meta { display: flex; flex-wrap: wrap; margin-top: 5px; font-size: 12px; color: var(--ink-3); }
.es-t-meta span:not(:last-child)::after { content: '·'; margin: 0 7px; color: var(--ink-4); }
.es-t-best { flex: none; color: var(--m); }

/* Column labels, same type as the .tbl headers on the other tabs. */
.es-cols, .es-ev > summary { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px 120px 18px; align-items: center; gap: 12px; padding-inline: 16px; }
.es-cols { height: 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-2);
  font: 650 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.es-cols span:nth-child(3), .es-cols span:nth-child(4) { text-align: right; }

/* One event = one aligned row: place | event + team | seed | record | caret. */
.es-ev { --m: transparent; }
.es-ev + .es-ev { border-top: 1px solid var(--line); }
.es-ev.is-gold { --m: var(--gold); }
.es-ev.is-silver { --m: var(--silver); }
.es-ev.is-bronze { --m: var(--bronze); }
.es-ev > summary { list-style: none; min-height: 52px; padding-block: 8px; cursor: pointer; position: relative; transition: background var(--t-fast); }
.es-ev > summary::-webkit-details-marker { display: none; }
.es-ev > summary::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--m); }
.es-ev > summary:hover, .es-ev[open] > summary { background: var(--s2); }
.es-ev > summary:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }

.es-pos { display: flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums; }
.es-pos b { font-family: var(--f-display); font-stretch: var(--num-stretch); font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.es-ev:is(.is-gold, .is-silver, .is-bronze) .es-pos b { color: var(--m); }
.es-pos small { font-size: 11.5px; color: var(--ink-4); }

.es-ev-main { display: flex; flex-direction: column; min-width: 0; }
.es-ev-name { display: block; font-weight: 600; font-size: .9rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-ev-name > :is(.live, .es-dq, .es-flag) { margin-left: 6px; vertical-align: -1px; }
.es-ev-team { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-flag { display: inline-flex; color: var(--hi); }
.es-flag .i { width: 14px; height: 14px; }
.es-dq { font-size: 11px; font-weight: 700; color: var(--down); }

.es-seed { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }
.es-seed { font-family: var(--f-mono); font-size: 12.5px; }
.es-seed small { color: var(--ink-4); margin-right: 1px; }

.es-wl { display: flex; flex-direction: column; gap: 5px; align-items: stretch; }
.es-wl-n { display: flex; justify-content: flex-end; align-items: baseline; gap: 3px; font-family: var(--f-display); font-stretch: var(--num-stretch);
  font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.es-wl-n i { font-style: normal; color: var(--ink-4); font-weight: 500; }
.es-wl-n .up { color: var(--up); }
.es-wl-n .down { color: var(--down); }
.es-wl-bar { display: block; height: 3px; border-radius: 0; background: color-mix(in srgb, var(--down) 55%, var(--s3)); overflow: hidden; }
.es-wl-bar i { display: block; height: 100%; background: var(--up); }
.es-wl.is-none { text-align: right; color: var(--ink-4); }

.es-caret { width: 18px; height: 18px; color: var(--ink-4); transition: transform var(--t) var(--ease); }
.es-ev[open] .es-caret { transform: rotate(180deg); color: var(--ink-2); }

/* ---- expanded event ------------------------------------------------------ */
.es-ev-body { padding: 0 16px 16px; background: var(--s2); border-top: 1px solid var(--line); }
.es-ev-body:empty { display: none; }
.es-body-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; }
.es-body-l { font: 650 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.es-body-l small { color: var(--ink-3); margin-left: 4px; font-size: inherit; }
.es-open { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--acc-hi); text-decoration: none; }
.es-open .i { width: 14px; height: 14px; }
.es-open:hover { text-decoration: underline; }

/* Player chips (roster, both sides of a match). */
.es-mate { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 0; background: var(--s3);
  font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.es-mate small { color: var(--ink-4); font-size: 10.5px; }
a.es-mate { text-decoration: none; transition: color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast); }
.es-mate.is-link { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); }
.es-mate.is-link > .i { width: 12px; height: 12px; color: var(--acc-hi); flex: none; }
a.es-mate:hover { color: var(--acc-hi); background: color-mix(in srgb, var(--acc) 12%, var(--s3)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 50%, transparent); }
a.es-mate:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.es-mate.is-me { color: var(--ink); font-weight: 650; background: color-mix(in srgb, var(--acc) 16%, var(--s3)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 45%, transparent); }
.es-roster { display: flex; flex-wrap: wrap; gap: 5px; }
.es-norow { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 0; background: var(--s1); box-shadow: 0 0 0 1px var(--line); }
.es-norow p { margin: 0; }

/* The match list: one card, rows split by hairlines. */
.es-matches { list-style: none; margin: 0; padding: 0; border-radius: 0; background: var(--s1); box-shadow: var(--edge), 0 0 0 1px var(--line); overflow: hidden; }
.es-match { --rc: var(--ink-4); display: grid; grid-template-columns: 170px minmax(0, 1fr) 96px minmax(0, 1fr) 20px; align-items: center; gap: 16px;
  padding: 14px 16px; position: relative; }
.es-match + .es-match { border-top: 1px solid var(--line); }
.es-match::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--rc); opacity: .9; }
.es-match.is-w { --rc: var(--up); }
.es-match.is-l { --rc: var(--down); }

.es-round { display: flex; align-items: center; gap: 10px; min-width: 0; }
.es-res { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 0; font: 800 11.5px/1 var(--f-mono);
  color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, transparent); }
.es-round-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.es-round-t b { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-round-t small { font: 500 10.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.es-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.es-side.is-us { align-items: flex-end; text-align: right; }
.es-side-h { display: flex; align-items: baseline; gap: 10px; max-width: 100%; min-width: 0; }
.es-side-sc { display: none; }
.es-side-name { font: 800 13px/1.2 var(--f-display); font-stretch: 108%; text-transform: uppercase; letter-spacing: .03em;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-side.is-them .es-side-name { color: var(--ink-2); }
.es-side-pl { display: flex; flex-wrap: wrap; gap: 4px; }
.es-side.is-us .es-side-pl { justify-content: flex-end; }

.es-score { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.es-score small { font: 500 10px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); }
.es-score-box { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 80px; height: 36px; padding: 0 12px;
  border-radius: 0; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2);
  font: 800 20px/1 var(--f-display); font-stretch: var(--num-stretch); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.es-score-box b.is-hi { color: var(--rc); }
.es-score-box i { font-style: normal; color: var(--ink-4); font-weight: 500; }
.es-match.is-w .es-score-box { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--up) 30%, transparent); }
.es-match.is-l .es-score-box { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--down) 30%, transparent); }
.es-lobby .es-score-box b, .es-match.is-lobby .es-score-box b { color: var(--ink); font-size: 18px; }
.es-games { display: inline-flex; gap: 3px; }
.es-games i { width: 8px; height: 4px; border-radius: 0; background: var(--s4); }
.es-games i.is-w { background: var(--up); }
.es-games i.is-l { background: var(--down); }
.es-vod { display: grid; place-items: center; }
.es-vod .i { width: 16px; height: 16px; color: var(--ink-3); }
.es-vod:hover .i { color: var(--acc-hi); }

.es-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 14px; }
.es-note .i { width: 14px; height: 14px; flex: none; margin-top: 2px; }

@media (max-width: 640px) {
  .es-credit span { display: none; }
  .es-head-r { justify-content: flex-start; width: 100%; }
  .es-t-head { padding: 12px; gap: 10px; }
  .es-cols { display: none; }
  .es-t-img { width: 34px; height: 34px; }
  .es-ev > summary { grid-template-columns: 50px minmax(0, 1fr) 72px 16px; gap: 10px; padding-inline: 12px; }
  .es-seed { display: none; }
  .es-ev-name, .es-t-id h3 { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.25; }
  .es-ev-body { padding: 0 10px 12px; }
  /* Phone: a scoreboard — round on top, then one line per team with its score on the right. */
  .es-match { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .es-round { grid-column: 1; }
  .es-vod { grid-column: 2; grid-row: 1; justify-self: end; }
  .es-side, .es-side.is-us { grid-column: 1 / -1; align-items: stretch; text-align: left; }
  .es-side.is-us .es-side-pl { justify-content: flex-start; }
  .es-side-h { justify-content: space-between; }
  .es-match.is-duel .es-side-sc { display: block; font: 800 18px/1 var(--f-display); font-stretch: var(--num-stretch); color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .es-match.is-duel .es-side-sc.is-hi { color: var(--rc); }
  .es-match.is-duel .es-score { grid-column: 1 / -1; grid-row: 4; align-items: flex-start; }
  .es-match.is-duel .es-score-box { display: none; }
  .es-match.is-duel .es-score:not(:has(.es-games)) { display: none; }
  .es-match.is-lobby .es-score { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; }
  .es-side-name { font-size: 12px; }
  .es-mate { height: 20px; padding: 0 6px; font-size: 11px; }
}
