/* ==========================================================================
   THE FINALS on VERTEX.
   The page scripts still draw the components of the old network core
   (css/ui.css, layered); this sheet is unlayered, so it re-skins them in the
   VERTEX language without touching their markup: square surfaces with the
   chamfered vertex cut, mono index labels, readouts on tick rulers, Archivo
   + JetBrains Mono, the arena pink of the VERTEX palette.
   Dropdowns, popovers, the phone sheet and the counter band keep whole
   corners (the network rule).
   ========================================================================== */

/* ---- tokens: the old names, the VERTEX values ------------------------------- */
:root {
  --f-ui: var(--f);
  --f-display: var(--f);
  --display-stretch: 112%;
  --num-stretch: 100%;
  --maxw: var(--wrap);
  --r-xs: 2px; --r-sm: 3px; --r-lg: 4px; --r-xl: 6px;
  --s4: #262b33; --s5: #323843;
  --acc-hi: #ff6b8e; --acc-lo: #e8305f; --acc-rgb: 255 71 117;
  --hi: #ffd166; --hi-ink: #1a1405;
  --up: var(--ok); --down: var(--bad);
  --edge: 0 0 0 0 transparent;
  --shadow-1: 0 1px 2px rgba(0,0,0,.3);
  --shadow-2: var(--shadow);
  --shadow-pop: var(--shadow), 0 0 0 1px var(--line-2);
  --lean: none;
  --cut-tr: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  --stripes: none;
  --tick: repeating-linear-gradient(90deg, var(--line-3) 0 1px, transparent 1px 7px);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --s4: #e4e2dc; --s5: #d6d3cc; --acc-hi: #d01748; --acc-lo: #b3123b; --hi: #b07800; --hi-ink: #fff; }
}
:root[data-theme="light"] { --s4: #e4e2dc; --s5: #d6d3cc; --acc-hi: #d01748; --acc-lo: #b3123b; --hi: #b07800; --hi-ink: #fff; }

body { font-family: var(--f); font-size: 15px; }
.skip-link:not(.vx-skip) { display: none; }
main { position: relative; flex: 1 0 auto; }
.wrap, .container { max-width: var(--wrap); }

/* ---- the page backdrop: VERTEX dot field + one soft accent light; the arena
   floor canvas and the stage beams go; the contestant art stays, quieter ---- */
.arena-floor, .hero-bg .beam, .hero-bg .floor { display: none !important; }
body > main::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 460px; z-index: -1; pointer-events: none; animation: none;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--acc) 9%, transparent), transparent) 100% -120px / 60% 560px no-repeat,
    radial-gradient(var(--dot) 1px, transparent 1.3px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 75% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 80% 100% at 75% 0%, #000 10%, transparent 75%);
  -webkit-mask-composite: source-over; mask-composite: add;
}
body > main::after { opacity: .2; filter: saturate(.7); }
:root[data-theme="light"] body > main::after { opacity: .1; filter: grayscale(1); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) body > main::after { opacity: .1; filter: grayscale(1); } }

/* ---- page head (.phead) = the VERTEX page head ------------------------------ */
.phead { padding-block: 0; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--bg-2) 70%, transparent), transparent); }
.phead > .wrap { position: relative; padding-top: 34px; padding-bottom: 28px; }
.phead > .wrap.has-tabs, .phead > .wrap:has(> .tabs) { padding-bottom: 0; }
.phead > .wrap::before, .phead > .wrap::after { content: ''; position: absolute; top: 14px; width: 11px; height: 11px; background: var(--ink-4); -webkit-mask: var(--plus); mask: var(--plus); }
.phead > .wrap::before { left: calc(var(--gut) - 22px); }
.phead > .wrap::after { right: calc(var(--gut) - 22px); }
.crumbs { font: 500 11.5px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); gap: 8px; margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); transition: color var(--t); }
.crumbs a:hover { color: var(--acc-t); }
.crumbs > :last-child { color: var(--ink-2); }
.crumbs .i { font-size: 10px; color: var(--ink-4); }
.phead h1, .phead-title, .phead .phead-title {
  font: 780 clamp(30px, 4.3vw, 52px)/1.04 var(--f); font-stretch: 112%; letter-spacing: -.028em; text-transform: none; transform: none; text-wrap: balance;
}
.phead-sub { color: var(--ink-2); font-size: clamp(15px, 1.2vw, 16.5px); max-width: 66ch; margin-top: 14px; }
.phead-sub b { color: var(--ink); font-weight: 650; }
.phead .tabs { margin-top: 22px; border-bottom: 0; }
.phead-meta { font: 500 12px var(--f-mono); color: var(--ink-3); }

.eyebrow { font: 600 11px/1 var(--f-mono); letter-spacing: .12em; color: var(--ink-3); gap: 10px; }
.eyebrow::before { content: ''; width: 6px !important; height: 6px !important; clip-path: none !important; background: var(--acc); transform: rotate(45deg); border-radius: 0; }

/* section titles (.lt) = .vx-sec */
.lt { gap: 16px; margin: 44px 0 16px; }
.lt-title { font: 760 clamp(19px, 1.8vw, 23px)/1.15 var(--f); font-stretch: 110%; letter-spacing: -.02em; text-transform: none; }
.lt-title::before { display: none !important; }
.lt-line { position: relative; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.lt-line::before { content: ''; position: absolute; left: 0; top: -2px; width: 5px; height: 5px; background: var(--acc); transform: rotate(45deg); }
.lt-link { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lt-link:hover { color: var(--acc-t); }
.sec-head, .sec-title { font-family: var(--f); }

/* ---- modules: .panel = .vx-mod ------------------------------------------------ */
main { counter-reset: mod; }
.panel {
  background: var(--s1); border-radius: 0; box-shadow: none; border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.panel::after { content: ''; position: absolute; top: 0; right: 0; width: var(--cut); height: var(--cut); background: linear-gradient(to bottom left, transparent calc(50% - .7px), var(--line-2) calc(50% - .7px), var(--line-2) calc(50% + .7px), transparent calc(50% + .7px)); pointer-events: none; z-index: 3; }
.panel.is-round, .modal-panel .panel, .panel.is-flat { clip-path: none; }
.panel.is-round::after, .modal-panel .panel::after, .panel.is-flat::after { display: none; }
.panel.is-flat { background: transparent; }
.panel-h { position: relative; min-height: 52px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.panel-h::after { content: ''; position: absolute; left: -1px; bottom: -1px; width: 40px; height: 1px; background: var(--acc); }
.panel-h h2, .panel-h h3, .panel-t {
  display: flex; align-items: center; gap: 10px; font: 680 14.5px/1.2 var(--f); font-stretch: 100%; letter-spacing: -.005em; text-transform: none;
}
main .panel > .panel-h > h2::before, main .panel > .panel-h > .panel-t::before {
  counter-increment: mod; content: counter(mod, decimal-leading-zero);
  font: 600 10.5px/1 var(--f-mono); color: var(--acc-t); letter-spacing: .04em; padding-right: 10px; border-right: 1px solid var(--line-2);
}
.panel-h h2 .i, .panel-h h3 .i, .panel-t .i { font-size: 16px; color: var(--ink-3); }
.panel-h .meta, .panel-t .meta { font: 500 11px/1 var(--f-mono); letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }
.panel-b { padding: 18px 20px; }
.panel-f { padding: 12px 20px; }
[data-spot]::before { border-radius: 0; background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--acc) 7%, transparent), transparent 70%); }

/* ---- readouts: .kpi on a tick ruler; the counter band (.statband) whole-cornered ---- */
.kpi {
  border-radius: 0; box-shadow: none; border: 1px solid var(--line); padding: 16px 18px 24px;
  clip-path: polygon(0 0, calc(100% - var(--cut-s)) 0, 100% var(--cut-s), 100% 100%, 0 100%);
  background:
    linear-gradient(90deg, transparent, var(--s1) 70%) left 18px bottom 10px / calc(100% - 36px) 6px no-repeat,
    var(--tick) left 18px bottom 10px / calc(100% - 36px) 6px no-repeat,
    var(--s1);
}
.kpi::after { content: ''; position: absolute; top: 0; right: 0; left: auto; width: var(--cut-s); height: var(--cut-s); opacity: 1; transform: none; background: linear-gradient(to bottom left, transparent calc(50% - .7px), var(--line-2) calc(50% - .7px), var(--line-2) calc(50% + .7px), transparent calc(50% + .7px)); }
.kpi-l { font: 600 10.5px/1.15 var(--f-mono); letter-spacing: .1em; color: var(--ink-3); }
.kpi-l .i { color: var(--ink-3); font-size: 13px; }
.kpi-v { font: 720 30px/1 var(--f); font-stretch: 108%; letter-spacing: -.02em; margin-top: 10px; }
.kpi-v small { font: 560 .48em/1 var(--f); color: var(--ink-3); }
.kpi-s { font-size: 12.5px; }
.kpi.is-acc { background:
    linear-gradient(90deg, transparent, var(--s1) 70%) left 18px bottom 10px / calc(100% - 36px) 6px no-repeat,
    var(--tick) left 18px bottom 10px / calc(100% - 36px) 6px no-repeat,
    linear-gradient(160deg, color-mix(in srgb, var(--acc) 16%, var(--s1)), var(--s1) 65%);
  border-color: color-mix(in srgb, var(--acc) 30%, var(--line)); box-shadow: none; }
.kpi.is-acc .kpi-v { color: var(--ink); }
.kpi.is-acc .kpi-l { color: var(--acc-t); }

/* ---- buttons, chips, tags ---------------------------------------------------- */
.btn {
  --c: var(--cut-s);
  border-radius: 0; height: 40px; padding: 0 18px; font-weight: 640; font-size: 13.5px;
  background: var(--b-bg); box-shadow: inset 0 0 0 1px var(--b-bd);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%);
  --b-bg: var(--s2); --b-bd: var(--line-2);
}
.btn::after { content: ''; position: absolute; right: 0; bottom: 0; width: var(--c); height: var(--c); background: linear-gradient(to top left, transparent calc(50% - .7px), var(--b-bd) calc(50% - .7px), var(--b-bd) calc(50% + .7px), transparent calc(50% + .7px)); pointer-events: none; }
.btn:hover { --b-bg: var(--s3); --b-bd: var(--line-3); }
.btn .i { font-size: 16px; }
.btn-primary, .btn-hi { --b-bg: var(--acc); --b-fg: var(--acc-ink); --b-bd: transparent; box-shadow: none; border-radius: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%); }
.btn-primary:hover { --b-bg: color-mix(in srgb, var(--acc) 88%, #fff); --b-bd: transparent; }
.btn-hi { --b-bg: var(--hi); --b-fg: var(--hi-ink); }
.btn-primary::after, .btn-hi::after { display: none; }
.btn-primary.btn-sm, .btn-hi.btn-sm { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%); }
.btn-ghost { --b-bg: transparent; }
.btn-ghost:hover { --b-bg: var(--s2); }
.btn-quiet { clip-path: none; }
.btn-quiet::after { display: none; }
.btn-sm { --c: 6px; height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 0; }
.btn-lg { --c: 10px; height: 48px; padding: 0 22px; font-size: 14.5px; }
.btn-icon { width: 40px; padding: 0; }
.btn-sm.btn-icon { width: 32px; }
.icon-btn { border-radius: 0; }

.chip { border-radius: 0; height: 26px; padding: 0 9px; font-size: 12px; font-weight: 560; background: var(--s2); box-shadow: none; border: 1px solid var(--line-2); }
a.chip:hover, button.chip:hover { background: var(--s3); border-color: var(--line-3); }
.chip.is-acc { background: color-mix(in srgb, var(--acc) 8%, transparent); color: var(--acc-t); border-color: color-mix(in srgb, var(--acc) 40%, transparent); box-shadow: none; }
.chip.is-up { border-color: color-mix(in srgb, var(--ok) 40%, transparent); box-shadow: none; }
.chip.is-down { border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.chip.is-hi { border-color: color-mix(in srgb, var(--hi) 40%, transparent); box-shadow: none; }
.club { border-radius: 0; box-shadow: none; border: 1px solid var(--line-2); background: var(--s2); font: 600 10.5px/1 var(--f-mono); letter-spacing: .06em; height: 21px; padding: 0 6px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%); }
a.club:hover { background: color-mix(in srgb, var(--acc) 10%, transparent); color: var(--acc-t); border-color: color-mix(in srgb, var(--acc) 40%, transparent); }
.live { clip-path: none; border-radius: 0; height: 20px; padding: 0 7px; color: var(--acc-t); background: color-mix(in srgb, var(--acc) 8%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 35%, transparent); font: 600 9.5px/1 var(--f-mono); }
.live::before { border-radius: 0; width: 5px; height: 5px; background: var(--acc); }
.tag-new, .tag-pro { clip-path: none; border-radius: 0; font: 700 9px/1 var(--f-mono); letter-spacing: .06em; padding: 3px 5px; }
.tag-new { background: var(--acc); color: var(--acc-ink); }
.kbd, kbd { border-radius: 3px; font-family: var(--f-mono); }

/* ---- tables -------------------------------------------------------------------- */
.tbl { font-size: 13.5px; }
.tbl th { height: 40px; padding: 0 16px; font: 600 10.5px/1 var(--f-mono); letter-spacing: .1em; color: var(--ink-3); background: var(--s1); border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px 16px; height: 54px; }
.tbl tbody tr:hover { background: var(--s2); }
.tbl tbody tr[data-href]:hover td:first-child, .tbl tr.is-me td:first-child { box-shadow: inset 2px 0 0 var(--acc); }
.tbl tbody tr[data-href]:hover .pc-name, .tbl tbody tr[data-href]:hover a.pc-name { color: var(--acc-t); }
.tbl .score, .rw-v { font: 700 14.5px/1 var(--f-mono); letter-spacing: -.01em; }
.tbl td.num { font-family: var(--f-mono); font-size: 13px; }
.tbl tr.is-me { background: color-mix(in srgb, var(--acc) 6%, transparent); }
@media (max-width: 720px) { .tbl td, .tbl th { padding-inline: 10px; } }

/* rank cell: mono squares, the podium in metal */
.pos { min-width: 26px; height: 22px; padding: 0 5px; border-radius: 0; font: 600 11px/1 var(--f-mono); color: var(--ink-3); background: var(--s2); border: 1px solid var(--line); }
.pos.p1, .pos.p2, .pos.p3, .pos.is-1, .pos.is-2, .pos.is-3 { color: #111; border-color: transparent; box-shadow: none; font-weight: 700; }
.pos.p1, .pos.is-1 { background: #ffd166; }
.pos.p2, .pos.is-2 { background: #d6dbe2; }
.pos.p3, .pos.is-3 { background: #e0915a; }
.pc-av, .s-av { border-radius: 0; background: var(--s3); border: 1px solid var(--line); font: 700 13px/1 var(--f); clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%); }
.pc-av.is-icon { background: none; border: 0; clip-path: none; }
.pc-name, .rw-t { font-weight: 620; }
.pn-tag { color: var(--ink-3); font-family: var(--f-mono); font-size: .8em; font-weight: 500; margin-left: 2px; }
.rw { padding: 10px 20px; }
.rw-n { font: 600 11px/1 var(--f-mono); color: var(--ink-3); }
.rw[data-href]:hover, a.rw:hover { background: var(--s2); box-shadow: inset 2px 0 0 var(--acc); }
.rw-head { font: 600 10.5px/1 var(--f-mono) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.bar, .meter { border-radius: 0; background: var(--s3); height: 3px; }
.bar > i, .meter > i { border-radius: 0; }
.delta { font-family: var(--f-mono); font-size: .92em; }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); }

/* ---- tabs, segmented, pager ---------------------------------------------------- */
.tabs { gap: 4px; }
.tab { height: 46px; padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.tab:hover, .tab.is-on, .tab.active, .tab[aria-selected="true"] { color: var(--ink); }
.tab .i { font-size: 17px; }
.tab.is-on .i, .tab.active .i, .tab[aria-selected="true"] .i { color: var(--acc-t); }
.tab .count { border-radius: 0; font: 600 10.5px/1 var(--f-mono); background: var(--s2); border: 1px solid var(--line); }
.tabs-ink { height: 2px; border-radius: 0; box-shadow: none; }
.seg { border-radius: 0; background: var(--s1); box-shadow: none; border: 1px solid var(--line-2); padding: 3px; }
.seg > button, .seg > a { border-radius: 0; height: 32px; padding: 0 12px; font-size: 13px; font-weight: 600; }
.seg > .is-on, .seg > [aria-pressed="true"], .seg > [aria-selected="true"] { background: var(--s3); color: var(--ink); box-shadow: inset 0 -2px 0 var(--acc); }
.seg small { font-family: var(--f-mono); }
.pager-btns .btn, .pager .btn { min-width: 32px; }
.pager-info { font: 500 11.5px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; }

/* ---- forms ----------------------------------------------------------------------- */
.input, .field input, .field textarea, textarea.input, select.input {
  border-radius: 0; background: var(--s1); box-shadow: none; border: 1px solid var(--line-2); font-family: var(--f);
  transition: border-color var(--t), box-shadow var(--t);
}
.input:focus, .field input:focus, .field textarea:focus { border-color: color-mix(in srgb, var(--acc) 60%, var(--line-2)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 14%, transparent); outline: 0; }
.label, .field-label { font: 600 10.5px/1.1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.switch, .switch * { border-radius: 0 !important; }

/* custom select (TF.enhanceSelects): the button like .vx-sel-btn; the menu with whole corners */
.sel-btn {
  --c: var(--cut-s);
  border-radius: 0; height: 40px; background: var(--s1); box-shadow: none; border: 1px solid var(--line-2); font: 600 13px/1 var(--f);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%);
}
.sel-btn:hover { background: var(--s2); border-color: var(--line-3); }
.sel.is-open .sel-btn, .sel-btn[aria-expanded="true"] { background: var(--s2); border-color: color-mix(in srgb, var(--acc) 60%, var(--line-2)); box-shadow: inset 0 -2px 0 var(--acc); }
.sel-menu, .pop {
  border-radius: 0; background: var(--s1); border: 1px solid var(--line-2); box-shadow: var(--shadow); padding: 4px 0; clip-path: none; animation: none;
}
.sel-menu *, .pop * { animation: none; }
.sel-opt { border-radius: 0; border-left: 2px solid transparent; padding: 9px 14px 9px 12px; font-size: 13.5px; font-weight: 560; transition: background .12s, color .12s; }
.sel-opt:hover, .sel-opt.is-active, .sel-opt[aria-selected="true"]:hover { background: var(--s2); color: var(--ink); border-left-color: var(--acc); }
.sel-opt[aria-selected="true"] { color: var(--ink); font-weight: 650; }
.sel-tick { color: var(--acc-t); }

/* ---- floating layers: tooltips, modals, the global search, toasts -------------- */
.tf-info-tooltip, .tip, [role="tooltip"] { border-radius: 0 !important; }
.modal-back { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.modal-panel { border-radius: 0; background: var(--s1); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px rgba(0,0,0,.7); }
.modal-h { padding: 14px 20px; position: relative; }
.modal-h::after { content: ''; position: absolute; left: -1px; bottom: -1px; width: 40px; height: 1px; background: var(--acc); }
.modal-h h2, .modal-h h3 { font: 700 16px/1.2 var(--f); text-transform: none; letter-spacing: -.01em; }

.cmdk-back { background: color-mix(in srgb, var(--bg) 60%, transparent) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cmdk-box {
  border-radius: 0 !important; background: var(--s1) !important; border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px rgba(0,0,0,.7) !important;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.cmdk-title { font-family: var(--f-mono); }
.cmdk-title span { font: 600 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.cmdk-in { border-radius: 0 !important; }
.cmdk-in .i { color: var(--acc-t); }
.cmdk-group span { font: 600 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.cmdk-group button { color: var(--acc-t); }
.cmdk-item { border-radius: 0 !important; border-left: 2px solid transparent; }
.cmdk-item.is-active { background: var(--s2) !important; border-left-color: var(--acc); }
.cmdk-ic { border-radius: 0 !important; background: var(--s3); border: 1px solid var(--line); }
.cmdk-end { font-family: var(--f-mono); }
.cmdk-adv { color: var(--acc-t); }
.toasts > * { border-radius: 0 !important; border-left: 2px solid var(--acc); }

/* ---- empty states, skeletons ------------------------------------------------------ */
.sk { border-radius: 0 !important; background: linear-gradient(90deg, var(--s2), var(--s3), var(--s2)); background-size: 200% 100%; }
.sk-av { clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%); }
.empty .i:first-child, .empty > .icon, .empty-ic {
  width: 54px; height: 54px; padding: 15px; color: var(--acc-t); background: color-mix(in srgb, var(--acc) 8%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent); border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.empty b, .empty h3, .empty strong { color: var(--ink); font-size: 16px; }
.boot-card, .boot-heading, .boot-line { border-radius: 0 !important; }
.emblem-none { border-radius: 0; }

/* ---- icons: Phosphor through the alias sprite; the old ligature spans stay hidden
   until app.js upgrades them ------------------------------------------------------- */
.i { fill: currentColor; }
.material-icons, .msr { font-size: 0 !important; width: 1.1em; height: 1.1em; display: inline-block; overflow: hidden; }

/* ---- links in running text ---------------------------------------------------------- */
main p a:not(.btn):not(.chip):not(.club):not(.lt-link) { color: var(--acc-t); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--acc-t) 40%, transparent); text-underline-offset: 3px; }
main p a:not(.btn):not(.chip):not(.club):not(.lt-link):hover { text-decoration-color: currentColor; }

/* header: seven links + More, so the search button is compact */
.vx-find { min-width: 168px; }

/* ==== home (server/vertex/pages/index.html) ========================================= */
.vx-home > main::before, .vx-home > main::after { display: none; }
.tf-hero .vx-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; padding-block: 52px 36px; }
.tf-hero .vx-hero-t { font-size: clamp(42px, 5.6vw, 84px); }
.tf-hero .vx-hero-lead { margin-bottom: 26px; }
/* the hero search: one console line, the name-type picker as its prompt */
.tf-hero .hs { max-width: 640px; margin-top: 0; }
.tf-hero .hero-search {
  height: 60px; padding: 0 8px 0 8px; gap: 6px; background: var(--s1); box-shadow: none; border: 1px solid var(--line-2); -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: border-color var(--t), box-shadow var(--t);
}
/* no clip-path here: the name-type menu opens inside the form and would be cut away */
.tf-hero .hero-search:focus-within, .tf-hero .hs.is-open .hero-search { border-color: color-mix(in srgb, var(--acc) 60%, var(--line-2)); box-shadow: inset 0 -2px 0 var(--acc); }
.tf-hero .hero-search input { font: 500 16px/1 var(--f-mono); letter-spacing: -.01em; }
.tf-hero .hero-search input::placeholder { color: var(--ink-3); }
.tf-hero .hero-search .btn { height: 44px; }
.hs-plat-btn { border-radius: 0 !important; background: var(--s2) !important; box-shadow: none !important; border: 1px solid var(--line) !important; font-weight: 600; }
.hs-plat-menu, .hs-panel { border-radius: 0 !important; background: var(--s1) !important; border: 1px solid var(--line-2); box-shadow: var(--shadow) !important; clip-path: none !important; }
.hs-plat-menu *, .hs-panel * { animation: none !important; }
.hs-row, .hs-list > li { border-radius: 0 !important; }
.hs-row.is-active, .hs-row:hover { box-shadow: inset 2px 0 0 var(--acc); }
.hs-sep { background: var(--line-2); }
.tf-hero .vx-hero-hint span { min-width: 0; }
.qchip { box-shadow: none; border: 1px solid var(--line-2); background: var(--s1); }
.qchip .i { color: var(--acc-t); }
.hero-quick .qlabel { font: 600 10.5px/30px var(--f-mono); color: var(--ink-3); }

.tf-trend { margin-top: 6px; }
.tf-trend .vx-mod-h { padding-inline: 18px; }
.tf-trend .rw { padding-inline: 18px; min-height: 58px; }
.tf-trend .rw-n { color: var(--acc-t); }

/* the counter band: whole corners, five readouts on their rulers */
.tf-tele { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tf-tele .vx-ro-v { font-size: 30px; }
.tf-tele .vx-ro-v .roll { height: 1em; }
.tf-tele .is-season .vx-ro-v i { font: 600 .42em/1 var(--f-mono); font-style: normal; color: var(--ink-3); margin: 0 6px 0 2px; letter-spacing: 0; }
.tf-live-dot { width: 6px; height: 6px; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: vx-pulse 2s infinite; display: inline-block; margin-right: 2px; }
.tf-tele .is-season { background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 10%, transparent), transparent 70%); }

.tf-home > .vx-sec:first-child { margin-top: 12px; }
.tf-home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.tf-home-grid > .vx-mod { display: flex; flex-direction: column; }
.tf-home-grid .vx-mod-m .vx-sec-a { font-size: 12.5px; }
.tf-home-grid #top10 .tbl th:first-child, .tf-home-grid #top10 .tbl td:first-child { padding-left: 20px; }
.home-climbers .rw { padding-inline: 20px; }
.home-climbers .rw-head { padding: 0 20px; height: 40px; border-bottom-color: var(--line); }
.home-top tr.is-p1 td:first-child, .home-top tr.is-p2 td:first-child, .home-top tr.is-p3 td:first-child { box-shadow: none; }
.home-top tr.is-p1, .home-top tr.is-p2, .home-top tr.is-p3 { background: none; }

.tf-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tf-index > .vx-idx:last-child { grid-column: auto; }
.tf-index .vx-idx { min-height: 128px; }

.tf-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 40px; padding: 36px 40px 36px 40px; }
.tf-cta .vx-cta-act { margin-top: 20px; }
/* the overlay screenshot: a VERTEX card turned toward the copy in 3D, flattening on hover */
.tf-cta-shot { position: relative; perspective: 1200px; }
.tf-cta-shot::before { content: ''; position: absolute; inset: 10% 6% -6% 10%; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 34%, transparent), transparent); filter: blur(24px); pointer-events: none; }
.tf-shot {
  position: relative; margin: 0; background: var(--s1); border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.75);
  transform: rotateY(-11deg) rotateX(4deg); transform-origin: 60% 50%; transition: transform .7s var(--ease-out);
}
.tf-cta:hover .tf-shot { transform: rotateY(-3deg) rotateX(1deg); }
.tf-shot img { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) { .tf-shot { transition: none; } }
.tf-bot { margin-top: 16px; }
.tf-bot-cmds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tf-bot-cmds code { font-size: 12px; padding: 4px 8px; }
.tf-seo { margin-top: 24px; }
.tf-seo-lead { margin: -4px 0 18px; }
.tf-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.tf-feat-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tf-faq-more { padding: 14px 20px; margin: 0; color: var(--ink-3); font-size: 13.5px; border-top: 1px solid var(--line); }
.vx-qa-a p { margin: 0; }

@media (max-width: 1100px) {
  .tf-hero .vx-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tf-home-grid { grid-template-columns: minmax(0, 1fr); }
  .tf-feats { grid-template-columns: minmax(0, 1fr); }
  .tf-tele { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tf-tele > .vx-ro:nth-child(3) { border-right: 0; }
  .tf-tele > .vx-ro:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .tf-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-cta { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 28px 22px; }
  .tf-shot, .tf-cta:hover .tf-shot { transform: none; }
}
@media (max-width: 720px) {
  .tf-tele { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-tele > .vx-ro.is-season { grid-column: 1 / -1; }
  .tf-tele .vx-ro-v { font-size: 24px; }
  .tf-hero .hero-search { height: 54px; }
  .tf-hero .hero-search input { font-size: 15px; }
  .tf-index { grid-template-columns: minmax(0, 1fr); }
  .tf-index .vx-idx { min-height: 0; }
}
.tf-hero .hero-search .btn .i { font-size: 17px; width: 1em; height: 1em; }

/* 404: the code is a mono kicker, never a giant outlined word */
.nf-code {
  display: inline-flex !important; align-items: center; gap: 8px; margin-bottom: 18px; padding: 4px 8px 4px 7px;
  font: 600 11px/1 var(--f-mono) !important; letter-spacing: .12em !important; color: var(--acc-t) !important; -webkit-text-stroke: 0 !important; text-stroke: 0 !important;
  background: color-mix(in srgb, var(--acc) 8%, transparent) !important; border: 1px solid color-mix(in srgb, var(--acc) 35%, transparent); opacity: 1 !important; transform: none !important;
}
.nf-code::before { content: 'Error'; }
.nf h1 { font: 780 clamp(36px, 5vw, 64px)/1.02 var(--f) !important; font-stretch: 112% !important; letter-spacing: -.03em !important; text-transform: none !important; font-style: normal !important; }
.nf-art { opacity: .5; }
/* no giant outlined words, no hazard stripes (network rule) */
.champ::after { content: none !important; }
:root { --stripes: none; }

/* ==== player page ======================================================================= */
.ph-badges { background: color-mix(in srgb, var(--s1) 80%, transparent); }
.ph-badge-more { border-radius: 0; }
:root[data-theme="light"] .ph-cover::before { opacity: .22; filter: grayscale(.6); }
:root[data-theme="light"] .ph.has-cover .ph-cover::before { opacity: .4; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .ph-cover::before { opacity: .22; filter: grayscale(.6); }
  :root:not([data-theme="dark"]) .ph.has-cover .ph-cover::before { opacity: .4; }
}

/* player tabs: every tab always visible — one row sharing the width, icons dropped when
   space runs short; on phones the tabs wrap into full rows instead of scrolling away */
.pf-bar .pl-tabs { margin-inline: 0; gap: 0; justify-content: space-between; overflow: visible; }
.pf-bar .pl-tabs .pl-tab { flex: 1 1 auto; justify-content: center; padding-inline: 9px; gap: 7px; }
@media (max-width: 1260px) { .pf-bar .pl-tabs .pl-tab > .i { display: none; } .pf-bar .pl-tabs .pl-tab { padding-inline: 8px; } }
@media (max-width: 1000px) { .pf-bar .pl-tabs .pl-tab { font-size: 13px; padding-inline: 5px; } .pf-bar .pl-tabs .count { display: none; } }
@media (max-width: 860px) { .pf-bar .pl-tabs .pl-tab { font-size: 12.5px; padding-inline: 3px; } }
@media (max-width: 760px) {
  .page-player .pf-bar { position: static; }
  .pf-bar .pl-tabs { flex-wrap: wrap; gap: 4px; padding-block: 10px; overflow: visible; }
  .pf-bar .pl-tabs .tabs-ink { display: none; }
  .pf-bar .pl-tabs .pl-tab { flex: 1 1 auto; min-width: 22%; height: 36px; padding-inline: 10px; font-size: 12.5px; background: var(--s1); border: 1px solid var(--line); }
  .pf-bar .pl-tabs .pl-tab.is-on { background: var(--s3); border-color: var(--line-2); box-shadow: inset 0 -2px 0 var(--acc); }
}

/* floating notes over the overlay card (like the example profile on arenyze.com) */
.tf-cta-shot { padding: 26px 0 22px; }
.tf-toast {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px; padding: 10px 14px 10px 10px;
  background: var(--s2); box-shadow: 0 0 0 1px var(--line-2), 0 20px 40px -18px rgba(0, 0, 0, .8);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); animation: tf-float 6s ease-in-out infinite;
}
.tf-toast b { display: block; font-size: 12.5px; font-weight: 680; white-space: nowrap; }
.tf-toast small { display: block; font: 500 11px var(--f-mono); color: var(--ink-2); margin-top: 2px; white-space: nowrap; }
.tf-toast-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; color: var(--acc-ink); background: var(--acc); clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%); }
.tf-toast-ic.is-ok { background: var(--ok); color: #06140d; }
.tf-toast-ic .ic { font-size: 17px; }
.tf-toast.is-a { left: -28px; top: 0; }
.tf-toast.is-b { right: 10px; bottom: 0; animation-delay: -3s; }
@keyframes tf-float { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .tf-toast { animation: none; } }
@media (max-width: 860px) { .tf-toast.is-a { left: 8px; } }
@media (max-width: 720px) { .tf-toast { display: none; } .tf-cta-shot { padding: 0; } }

/* the name-type menu: whole corners, over everything in the hero */
.tf-hero .hs-plat-menu { z-index: 40; top: calc(100% + 8px); }
.hs-plat-menu button[aria-selected="true"] { color: var(--ink); }
/* the hero search panel drops below the hero: the hero must not clip it, and it sits over the content after it */
.tf-hero { overflow: visible; }
.tf-hero .vx-hero-main { z-index: 6; }
.tf-hero .hs-panel { z-index: 30; }

/* ==== match page ========================================================================= */
/* result badge and Share: the same height, side by side */
.page-match .phead-tools { align-items: center; gap: 8px; }
.page-match .phead-tools > .chip, .page-match .phead-tools > .btn { height: 36px; }
.page-match .phead-tools > .chip { padding: 0 14px; font: 600 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.page-match .phead-tools > .btn { padding: 0 14px; font-size: 13px; }
/* top fragger: a name, not a figure — sized to fit, never cut */
.ovm-kpi-name { font-size: clamp(17px, 1.5vw, 21px) !important; line-height: 1.2; letter-spacing: -.01em; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; display: block !important; }
.ovm-kpi-name .pc-name { white-space: normal; overflow: visible; text-overflow: clip; }
.ovm-kpi-name .pn-tag { font-size: .7em; }
.ovm-kpi-name .pn-tag { display: inline-block; white-space: nowrap; }
.ovm-kpi-name .pn-name { overflow-wrap: anywhere; }
