/* I'm Bad at HotS — "Frozen Throne" (spec: hots-design/, tokens: hots-design/tokens.css) */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@400;500;600&family=Cinzel:wght@600;700;800&family=JetBrains+Mono:wght@500&display=swap');

:root {
  /* ground */
  --bg:        #070D14;
  --bg-2:      #0B131D;
  --panel:     #0E1824;
  --panel-2:   #142233;
  --panel-3:   #1B2C40;
  --line:      #22364D;
  --line-2:    #2E4763;

  /* ink — all >= 4.5:1 on --panel */
  --ink:       #EAF4FB;
  --ink-soft:  #B3C8DA;
  --ink-faint: #869DB3;

  /* accents */
  --frost:     #3FB7E8; /* fills — use dark text #04121C on it */
  --frost-ink: #8FD8F5; /* focus rings, selected borders, active tab */
  --gold:      #E6CF8F; /* "locked in" — dark text #1B1505 on it */

  /* signals — always paired with + / − or ▲ ▼ */
  --up:        #7EE0A0;
  --down:      #FF8A73;

  /* roles (never reuse for up/down) */
  --r-tank:    #8FA8FF;
  --r-bruiser: #F2A65A;
  --r-healer:  #F0DA74;
  --r-support: #4FD8C0;
  --r-ranged:  #C9A7FF;
  --r-melee:   #FF7BB5;

  /* type */
  --f-display: 'Cinzel', Georgia, serif;                 /* hero names, headings */
  --f-ui:      'Barlow Condensed', 'Arial Narrow', sans-serif; /* labels, numbers, buttons */
  --f-body:    'Barlow', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace; /* W-L, KDA, stats */

  --t-hero: 46px;  /* 34px on phone */
  --t-num:  44px;  /* est. win */
  --t-h1:   28px;
  --t-h2:   20px;
  --t-body: 15px;
  --t-small: 13.5px;
  --t-label: 12px; /* uppercase, letter-spacing .14em */

  /* space (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-12: 48px;

  /* radii */
  --rad-sm: 6px;   /* chips, × buttons */
  --rad-md: 10px;  /* controls */
  --rad-lg: 14px;  /* panels, cards */
  --rad-pill: 999px;

  --hit: 44px;     /* minimum touch target */
}

/* Role helpers: put .rt/.rb/.rh/.rs/.rr/.rm on an element, then use var(--rc) inside it */
.rt { --rc: var(--r-tank); }    .rb { --rc: var(--r-bruiser); }
.rh { --rc: var(--r-healer); }  .rs { --rc: var(--r-support); }
.rr { --rc: var(--r-ranged); }  .rm { --rc: var(--r-melee); }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: var(--t-body)/1.45 var(--f-body);
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--frost-ink); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
svg.i {
  width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.k {
  font-family: var(--f-ui); font-weight: 600; font-size: var(--t-label);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
}
.mono { font-family: var(--f-mono); }
.up { color: var(--up); }
.dn { color: var(--down); }
[hidden] { display: none !important; }

.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--s-8); padding-right: var(--s-8); }

/* ---------- header ---------- */
.top { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt small { font-family: var(--f-ui); font-weight: 600; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.brand-txt b { font-family: var(--f-display); font-weight: 800; font-size: 23px; letter-spacing: .06em; }
.tabs { display: flex; gap: 4px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--hit); padding: 0 14px;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft); cursor: pointer;
  font-family: var(--f-ui); font-weight: 600; font-size: 16px; letter-spacing: .08em; text-transform: uppercase;
}
.tab[aria-selected="true"] { color: var(--ink); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--frost-ink); }
.sync { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: var(--t-small); color: var(--ink-faint); }

/* ---------- notices ---------- */
.notice {
  display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 14px 16px;
  border-radius: var(--rad-lg); background: color-mix(in oklab, var(--gold) 9%, var(--panel));
  border: 1px solid color-mix(in oklab, var(--gold) 45%, var(--line)); color: var(--ink-soft);
}
.notice svg.i { width: 22px; height: 22px; color: var(--gold); }
.notice b { display: block; color: var(--ink); font-family: var(--f-ui); font-size: 17px; letter-spacing: .02em; }
.notice code { font-family: var(--f-mono); font-size: 13px; color: var(--ink); }

/* ---------- draft layout ---------- */
.main { display: flex; flex-wrap: wrap; gap: var(--s-6); align-items: flex-start; padding-top: 28px; padding-bottom: 56px; }
.ctrl {
  flex: 1 1 360px; max-width: 430px; min-width: 0; display: flex; flex-direction: column; gap: 26px; padding: 22px;
  border-radius: var(--rad-lg); background: var(--panel); border: 1px solid var(--line);
}
.res { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.sec { display: flex; flex-direction: column; gap: 10px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* player rows */
.prow { display: flex; flex-direction: column; gap: 8px; padding: 8px 10px 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.prow.off { background: transparent; }
.prow.lk { border-color: color-mix(in oklab, var(--gold) 55%, var(--line)); }
.prow-top { display: flex; align-items: center; gap: 10px; }
.ptog { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; min-height: var(--hit); cursor: pointer; min-width: 0; }
.ptog input { width: 20px; height: 20px; margin: 0; accent-color: var(--frost); flex: none; cursor: pointer; }
.pn { font-family: var(--f-ui); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.pg { font-size: 13px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sel { position: relative; flex: none; }
.sel select {
  appearance: none; -webkit-appearance: none; height: 36px; padding: 0 30px 0 10px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--panel-3); cursor: pointer; max-width: 128px; text-overflow: ellipsis;
  font-family: var(--f-ui); font-weight: 600; font-size: 14px; letter-spacing: .02em;
}
.sel select:disabled { opacity: .45; cursor: not-allowed; }
.sel svg.i { position: absolute; right: 8px; top: 10px; pointer-events: none; color: var(--ink-faint); }
.lockrow { display: flex; align-items: center; gap: 10px; padding-left: 30px; }
.lockrow > .k { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.lockrow > .k svg.i { width: 14px; height: 14px; }
.lockrow > .k.gold { color: var(--gold); }

/* hero fields + tokens */
.pick-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.field {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: var(--hit); padding: 5px;
  border-radius: var(--rad-md); background: var(--bg-2); border: 1px solid var(--line);
}
.field:focus-within { border-color: var(--frost-ink); }
.field.sm { min-height: 40px; padding: 3px; }
.field input { flex: 1 1 90px; min-width: 90px; height: 32px; padding: 0 8px; border: 0; background: transparent; outline: none; font-size: 15px; }
.field input::placeholder { color: var(--ink-faint); }
.tok {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 2px 0 8px; border-radius: 8px;
  background: var(--panel-3); border: 1px solid color-mix(in oklab, var(--rc) 45%, var(--line-2));
  font-family: var(--f-ui); font-weight: 600; font-size: 15px; white-space: nowrap;
}
.tok svg.i { color: var(--rc); width: 15px; height: 15px; }
.tok.ban { text-decoration: line-through; text-decoration-color: var(--ink-faint); color: var(--ink-soft); }
.x {
  width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: var(--rad-sm);
  background: transparent; color: var(--ink-faint); cursor: pointer; padding: 0;
}
.x:hover { background: var(--panel-2); color: var(--ink); }

/* type-ahead menu */
.menu {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); display: flex; flex-direction: column;
  padding: 6px; border-radius: 12px; background: #0F1B29; border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
.opt {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: var(--hit);
  padding: 0 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer;
}
.opt svg.i { color: var(--rc); }
.opt .nm { font-family: var(--f-ui); font-weight: 600; font-size: 16px; color: var(--rc); }
.opt .nm u { text-decoration: none; color: var(--ink); }
.opt small { font-size: 12.5px; color: var(--ink-faint); }
.opt[aria-selected="true"] { background: #1C3048; box-shadow: inset 0 0 0 1px var(--frost-ink); }
.kbd { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 5px; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 11px; color: var(--ink-soft); }

/* segmented + maps + buttons */
.seg { display: flex; gap: 3px; padding: 3px; border-radius: var(--rad-md); background: var(--bg-2); border: 1px solid var(--line); }
.seg button {
  flex: 1 1 0; min-height: 38px; padding: 0 6px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-soft);
  font-family: var(--f-ui); font-weight: 600; font-size: 14px; letter-spacing: .02em; white-space: nowrap; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--panel-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--frost-ink); }
.maps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.map {
  display: flex; align-items: center; gap: 8px; min-height: var(--hit); padding: 6px 9px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--ink-soft); cursor: pointer;
  font-family: var(--f-ui); font-weight: 600; font-size: 14px; line-height: 1.1; text-align: left;
}
.map > i, .mrow > i { width: 9px; height: 9px; flex: none; border-radius: 2px; transform: rotate(45deg); }
.map[aria-pressed="true"] { background: color-mix(in oklab, var(--frost) 26%, #142233); border-color: var(--frost-ink); color: var(--ink); }
.map-select { display: none; }
.map-select select { max-width: none; width: 100%; height: var(--hit); font-size: 16px; }
.map-select svg.i { top: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--hit); padding: 0 16px;
  border-radius: var(--rad-md); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); cursor: pointer;
  font-family: var(--f-ui); font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
}
.btn:hover { border-color: var(--frost-ink); }
.btn.pri { background: var(--frost); border-color: var(--frost); color: #04121C; }

/* ---------- results ---------- */
.res-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 4px 2px; }
.mapt { margin: 4px 0 0; font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 1.1; }
.mapt span { color: var(--ink-faint); font-weight: 600; }
.comp { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 9px; border-radius: var(--rad-pill);
  border: 1px solid color-mix(in oklab, var(--rc) 45%, transparent); background: color-mix(in oklab, var(--rc) 12%, transparent);
  color: var(--rc); font-family: var(--f-ui); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.pill.open { color: var(--ink-faint); border: 1px dashed var(--line-2); background: transparent; }
.pill em { font-style: normal; color: var(--ink-soft); font-weight: 500; }

/* mobile "your picks" summary */
.sum { display: none; flex-direction: column; border-radius: var(--rad-lg); background: #0C1622; border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.sum-h { display: flex; justify-content: space-between; padding: 10px 14px 4px; }
.srow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 58px;
  padding: 8px 14px; border-top: 1px solid var(--line); text-decoration: none; color: inherit;
}
.srow .who { font-family: var(--f-ui); font-weight: 600; font-size: 13px; letter-spacing: .06em; color: var(--ink-faint); display: flex; align-items: center; gap: 6px; }
.srow .h { display: block; font-family: var(--f-display); font-weight: 700; font-size: 23px; line-height: 1.1; color: var(--rc); }
.srow .h.none { color: var(--ink-faint); font-size: 18px; }
.srow .p { font-family: var(--f-ui); font-weight: 700; font-size: 26px; }

/* recommendation card */
.card {
  display: flex; flex-direction: column; gap: var(--s-4); padding: 20px 22px; border-radius: var(--rad-lg);
  background: var(--panel); border: 1px solid var(--line); scroll-margin-top: 16px;
}
.card.locked { border-color: color-mix(in oklab, var(--gold) 70%, var(--line)); background: linear-gradient(180deg, #15191A 0, #0E1824 120px); }
.card.none { border: 1.5px dashed var(--line-2); background: #0A121B; }
.card-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.meta { font-size: 14px; color: var(--ink-faint); }
.lockb {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--rad-sm);
  background: var(--gold); color: #1B1505; font-family: var(--f-ui); font-weight: 700; font-size: 12.5px; letter-spacing: .14em;
}
.lockb svg.i { width: 13px; height: 13px; }
.card-h .lockb { margin-left: auto; }
.srow .lockb { height: 20px; padding: 0 6px; font-size: 10.5px; }
.srow .lockb svg.i { width: 11px; height: 11px; }
.rec { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; }
.rec-main { flex: 1 1 240px; min-width: 0; }
.rec-main .k.gold { color: var(--gold); }
.avatar {
  display: grid; place-items: center; flex: none; width: 76px; height: 76px; border-radius: 12px; font-size: 28px;
  background: color-mix(in oklab, var(--rc) 16%, #142233); border: 1px solid color-mix(in oklab, var(--rc) 50%, transparent);
  color: var(--rc); font-family: var(--f-display); font-weight: 700;
}
.hero {
  margin: 2px 0 6px; font-family: var(--f-display); font-weight: 700; font-size: var(--t-hero); line-height: 1.02; color: var(--rc);
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.roleline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 15px; color: var(--ink-soft); }
.roleline .rl { display: inline-flex; align-items: center; gap: 6px; color: var(--rc); font-family: var(--f-ui); font-weight: 600; font-size: 15.5px; letter-spacing: .02em; }
.est {
  flex: 0 0 230px; display: flex; flex-direction: column; gap: 9px; margin-left: auto; padding: 12px 14px 10px;
  border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line);
}
.est-top { display: flex; align-items: flex-end; justify-content: space-between; }
.est-top > span:last-child { display: flex; align-items: center; gap: 4px; }
.estn { font-family: var(--f-ui); font-weight: 700; font-size: var(--t-num); line-height: .95; }
.estn small { font-size: 24px; }
.scale { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #3A2A35, #22364D 50%, #1F3A34); }
.scale b { position: absolute; left: 50%; top: -4px; width: 2px; height: 14px; background: var(--ink-faint); }
.scale i { position: absolute; top: -5px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--ink); border: 3px solid var(--bg-2); }
.scale-l { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--ink-faint); }
.est-help { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: var(--rad-pill);
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink-soft);
  font-family: var(--f-ui); font-weight: 600; font-size: 14px; letter-spacing: .02em; white-space: nowrap;
}
.chip.up { color: var(--up); border-color: color-mix(in oklab, var(--up) 35%, transparent); background: color-mix(in oklab, var(--up) 8%, transparent); }
.chip.dn { color: var(--down); border-color: color-mix(in oklab, var(--down) 35%, transparent); background: color-mix(in oklab, var(--down) 8%, transparent); }
.statl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-soft); }
.statl .up, .statl .dn { font-family: var(--f-ui); font-weight: 600; font-size: 15px; }
.statl .replan { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-faint); font-size: 13.5px; }
.statl .replan svg.i { color: var(--gold); }
.alts-wrap { display: flex; flex-direction: column; gap: 6px; }
.alts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 2px 32px; }
.alt { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 64px 38px; align-items: center; gap: 10px; min-height: 34px; }
.alt svg.i { color: var(--rc); }
.alt .nm { font-family: var(--f-ui); font-weight: 600; font-size: 16px; color: var(--rc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-faint); }
.bar { height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--rc); }
.pct { font-family: var(--f-ui); font-weight: 700; font-size: 16px; text-align: right; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 6px 20px; margin: 4px 2px 0; font-size: 13px; color: var(--ink-faint); }
/* Boromir meme: captions are live text over the photo, classic white Impact with black outline */
.meme { position: relative; display: block; flex: 0 0 auto; width: 340px; max-width: 100%; overflow: hidden; border-radius: var(--rad-md); border: 1px solid var(--line); }
.meme img { display: block; width: 100%; height: auto; }
.meme b {
  position: absolute; left: 4%; right: 4%; text-align: center; text-transform: uppercase; line-height: 1.05;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; font-weight: 400; font-size: 27px; letter-spacing: .01em;
  color: #fff; -webkit-text-stroke: 2px #000; paint-order: stroke fill;
  text-shadow: 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000; /* outline where stroke is unsupported */
}
.meme-top { top: 3%; }
.meme-bot { bottom: 4%; }

/* "no eligible hero" card */
.none-body { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.none-art {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 112px; height: 112px;
  border-radius: var(--rad-lg); border: 1.5px dashed color-mix(in oklab, var(--rc, var(--ink-faint)) 55%, transparent);
  background: color-mix(in oklab, var(--rc, var(--ink-faint)) 8%, transparent); color: var(--rc, var(--ink-faint));
}
.none-art svg.i { width: 44px; height: 44px; stroke-width: 1.6; }
.none-art b { font-family: var(--f-ui); font-weight: 700; font-size: 17px; }
.none-txt { flex: 1 1 300px; display: flex; flex-direction: column; gap: 6px; }
.none-txt h2 { font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.2; }
.none-txt p { color: var(--ink-soft); max-width: 560px; }
.none-txt p b { color: var(--rc); font-weight: 600; }
.near-list { display: flex; flex-direction: column; gap: 4px; }
.near { display: grid; grid-template-columns: 20px 130px minmax(0, 1fr) 92px; align-items: center; gap: 12px; min-height: 32px; }
.near svg.i { color: var(--rc); }
.near .nm { font-family: var(--f-ui); font-weight: 600; font-size: 16px; color: var(--rc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog { height: 8px; border-radius: 4px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--rc); opacity: .8; }
.need { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-faint); text-align: right; }
.none-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.none-actions span { font-size: 14px; color: var(--ink-faint); }

/* empty + loading */
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 72px 32px 64px;
  border-radius: var(--rad-lg); background: var(--panel); border: 1px solid var(--line);
}
.empty h1 { font-family: var(--f-display); font-weight: 700; font-size: 34px; }
.empty p { max-width: 460px; font-size: 17px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.empty .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.loading-msg { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.sk { border-radius: 8px; background: linear-gradient(90deg, #142233 0, #1B2C40 40%, #142233 80%); background-size: 200% 100%; animation: sh 1.4s linear infinite; }
@keyframes sh { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* ---------- players tab ---------- */
.pl-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 28px 2px 18px; }
.pl-head h1 { font-family: var(--f-display); font-weight: 700; font-size: 34px; margin-top: 4px; }
.pl-head > span { color: var(--ink-soft); }
.panel { border-radius: var(--rad-lg); background: var(--panel); border: 1px solid var(--line); }
.duos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 10px 0 26px; }
.duo { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.duo .who { font-family: var(--f-ui); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.duo .who span { color: var(--ink-faint); font-weight: 500; }
.duo-n { display: flex; align-items: baseline; justify-content: space-between; }
.big { font-family: var(--f-ui); font-weight: 700; font-size: 34px; line-height: 1; }
.duo .mono { font-size: 13px; color: var(--ink-faint); }
.duo .k.best { color: var(--up); }
.wbar { position: relative; height: 8px; border-radius: 4px; background: var(--bg-2); border: 1px solid var(--line); }
.wbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--frost-ink); opacity: .85; }
.wbar b { position: absolute; left: 50%; top: -4px; width: 2px; height: 14px; background: var(--ink-faint); }
.pl-pick { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.pl-pick .seg { display: inline-flex; }
.pl-pick .seg button { flex: none; min-height: 42px; padding: 0 18px; font-weight: 700; font-size: 16px; letter-spacing: .03em; }
.pl-panel { padding: 22px; margin-bottom: 56px; }
.pl-top { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 36px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.pl-top h2 { font-family: var(--f-display); font-weight: 700; font-size: 28px; }
.pl-top .mono { font-size: 13px; color: var(--ink-faint); }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: var(--f-ui); font-weight: 700; font-size: 30px; line-height: 1; }
.pl-body { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); gap: 28px; }
.tw { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 720px; }
.t th { text-align: left; font-family: var(--f-ui); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 0 12px; height: 44px; border-bottom: 1px solid #1A2A3C; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t .n, .t th.n { text-align: right; }
.t td.mono { font-size: 13.5px; }
.hn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-ui); font-weight: 600; font-size: 16px; color: var(--rc); }
.wp { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.wp .wbar { width: 80px; }
.grp td { height: auto; padding: 14px 12px 8px; border-bottom: 1px solid var(--line); }
.more td { height: 52px; }
.more-in { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font-size: 14px; white-space: normal; }
.lnk {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-soft); cursor: pointer;
  font-family: var(--f-ui); font-weight: 600; font-size: 14px; letter-spacing: .04em;
}
.lnk:hover { color: var(--ink); border-color: var(--frost-ink); }
.maps-h, .mrow { display: grid; grid-template-columns: 10px minmax(0, 1fr) 40px 110px 40px; align-items: center; gap: 10px; }
.maps-h { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mrow { min-height: 40px; border-bottom: 1px solid #1A2A3C; font-size: 14.5px; }
.mrow .nm { font-family: var(--f-ui); font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .mono { font-size: 13px; color: var(--ink-soft); text-align: right; }
.mrow > span:last-child { text-align: right; font-family: var(--f-ui); font-weight: 600; }
.maps-note { margin-top: 10px; font-size: 13px; color: var(--ink-faint); }

/* ---------- meta switch, tier badges, combos ---------- */
.meta-tog {
  flex: none; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border-radius: var(--rad-pill);
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-faint); cursor: pointer;
  font-family: var(--f-ui); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.meta-tog svg.i { width: 13px; height: 13px; }
.meta-tog[aria-pressed="true"] { border-color: var(--frost-ink); color: var(--frost-ink); background: color-mix(in oklab, var(--frost) 12%, transparent); }
.tier {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 5px; vertical-align: 2px;
  font-family: var(--f-ui); font-weight: 700; font-size: 12.5px; line-height: 1; letter-spacing: 0; color: #0B131D; background: var(--ink-faint);
}
.tier.tS { background: var(--gold); color: #1B1505; }
.tier.tA { background: var(--frost-ink); }
.tier.tB { background: #7E9BB8; }
.tier.tC { background: #4A607A; color: var(--ink); }
.tier.tD { background: var(--down); }
.roleline .tier { margin-left: 2px; }
.alt .nm .tier, .hn .tier { margin-left: 4px; font-size: 11px; height: 17px; min-width: 17px; }
.combos { display: flex; flex-direction: column; gap: 10px; }
.combo { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px; border-radius: var(--rad-lg); background: var(--panel); border: 1px solid var(--line); }
.combo.is-full { border-color: color-mix(in oklab, var(--gold) 70%, var(--line)); background: linear-gradient(180deg, #15191A 0, #0E1824 90px); }
.combo-h { display: flex; align-items: center; gap: 10px; }
.combo-h .cnum { font-family: var(--f-display); font-weight: 700; color: var(--gold); min-width: 22px; }
.combo-h b { font-family: var(--f-display); font-weight: 700; font-size: 19px; }
.cstat { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-ui); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.combo.is-full .cstat { color: var(--gold); }
.cslots { display: flex; flex-wrap: wrap; gap: 8px; }
.cslot {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 10px; border-radius: var(--rad-md);
  background: var(--bg-2); border: 1px solid color-mix(in oklab, var(--rc) 45%, var(--line-2));
  font-family: var(--f-ui); font-weight: 600; font-size: 15px; color: var(--rc);
}
.cslot small { flex-basis: 100%; font-weight: 600; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.cslot.miss { border-style: dashed; opacity: .85; }
.cneed { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-soft); }
.cneed svg.i { color: var(--frost-ink); }
.cneed b { color: var(--ink); font-weight: 600; }
.ctip { font-size: 14px; color: var(--ink-faint); }

/* ---------- welcome pop-up ---------- */
.welcome {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto;
  border-radius: var(--rad-lg); border: 1px solid color-mix(in oklab, var(--gold) 70%, var(--line));
  background: var(--panel); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.welcome::backdrop { background: rgba(4, 9, 15, .78); backdrop-filter: blur(3px); }
.welcome[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .welcome[open] { animation: none; } }
.welcome img { display: block; width: 100%; height: auto; max-height: 56vh; object-fit: cover; object-position: 50% 30%; }
.welcome-x { position: absolute; top: 10px; right: 10px; width: var(--hit); height: var(--hit); background: rgba(7, 13, 20, .7); color: var(--ink); }
.welcome-x:hover { background: rgba(7, 13, 20, .9); }
.welcome-x svg.i { width: 20px; height: 20px; }
.welcome-txt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 22px 22px; text-align: center; }
.welcome-txt h2 { font-family: var(--f-display); font-weight: 800; font-size: 30px; line-height: 1.1; color: var(--gold); }
.welcome-txt p { font-size: 17px; color: var(--ink-soft); }
.welcome-txt .btn { margin-top: 8px; min-width: 180px; }

/* ---------- responsive ---------- */
@media (max-width: 1099px) {
  .ctrl { max-width: none; }
  .pl-body { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .wrap { padding-left: var(--s-4); padding-right: var(--s-4); }
  .sync { display: none; }
  .sum { display: flex; }
  .prow .pg { display: none; }
  .meme { width: 100%; }
  .meme b { font-size: 23px; }
  .maps { display: none; }
  .map-select { display: block; }
  .card { padding: 16px; }
  .hero { font-size: 34px; }
  .avatar { width: 56px; height: 56px; font-size: 21px; }
  .rec { flex-wrap: wrap; column-gap: 14px; }
  .rec-main { flex: 1 1 0; }
  .est { flex: 1 1 100%; margin-left: 0; }
  .mapt { font-size: 24px; }
  .alt { grid-template-columns: 20px minmax(0, 1fr) auto 48px 38px; }
  .near { grid-template-columns: 20px 96px minmax(0, 1fr) 84px; }
  .ctrl { padding: 16px; }
  .seg button { font-size: 13px; white-space: normal; line-height: 1.1; padding: 0 4px; }
  .empty { padding: 48px 20px 40px; }
  .empty h1 { font-size: 28px; }
}
