/* ============================================================ trackers (TFT / League) */
/* Shared "tracker" chrome — the Valorant tracker's look in the Sandy palette. */
.trk-page { max-width: 1180px; margin: 0 auto; padding: 28px 32px 64px; }
.trk-loading { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 90px 0; color: var(--text-muted); }
.trk-hero {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 22px 26px; border-radius: 16px; margin-bottom: 18px;
  background: radial-gradient(120% 160% at 0% 0%, rgba(var(--accent-rgb), .22) 0%, transparent 60%), var(--bg-2);
  border: 1px solid rgba(var(--accent-rgb), .24);
}
.trk-hero-id { margin-right: auto; min-width: 0; }
.trk-name { font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: -.5px; }
.trk-sub { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.trk-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; }
.trk-tab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--text-muted); font: inherit; font-weight: 700; font-size: 14px; padding: 10px 14px; cursor: pointer; margin-bottom: -1px; }
.trk-tab:hover { color: var(--text); }
.trk-tab.active { color: #fff; border-bottom-color: var(--accent-light); }
.trk-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; }
.trk-card-h { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.trk-card-h .tft-muted { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: auto; }

/* ---------- TFT ---------- */
.tft-overlay-btn { background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 9px 15px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.tft-overlay-btn:hover { filter: brightness(1.08); }
.tft-muted { color: var(--text-muted); font-size: 12px; }
.tft-tier { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 6px; font-weight: 900; font-size: 12px; color: #0c0b0e; background: var(--tc); flex: 0 0 auto; }
.tft-link { background: none; border: 0; color: var(--accent-light); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; margin-left: auto; }
.tft-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tft-chips { display: flex; gap: 6px; }
.tft-chip, .tft-seg { background: var(--bg-2); border: 1px solid var(--border); color: var(--text-muted); font: inherit; font-weight: 700; font-size: 12.5px; padding: 6px 12px; border-radius: 9px; cursor: pointer; }
.tft-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tft-seg-wrap { display: flex; gap: 3px; background: var(--bg); padding: 3px; border-radius: 10px; }
.tft-seg { padding: 5px 10px; border: 0; background: none; }
.tft-seg.on { background: var(--accent-dim); color: var(--accent-light); }
.tft-search { flex: 1 1 200px; min-width: 160px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); border-radius: 9px; padding: 8px 12px; font: inherit; font-size: 13px; }
.tft-count { color: var(--text-muted); font-size: 12px; margin-bottom: 14px; }
.tft-comps { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.tft-comp { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.tft-comp-hd { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.tft-comp-nm { font-weight: 800; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tft-traits { display: flex; gap: 4px; margin-left: auto; flex: 0 0 auto; }
.tft-trait { display: inline-flex; align-items: center; gap: 2px; font-size: 10px; font-weight: 800; color: var(--text-muted); }
.tft-trait img { width: 15px; height: 15px; filter: brightness(1.6); }
.tft-board { margin: 0 auto 12px; width: max-content; }
.tft-hexrow { display: flex; gap: 3px; }
.tft-hexrow:nth-child(even) { margin-left: 20px; }
.tft-hex { width: 40px; height: 44px; border-radius: 7px; background: var(--bg-3); position: relative; overflow: hidden; }
.tft-hex img { width: 100%; height: 100%; object-fit: cover; }
.tft-hex.c1 { box-shadow: inset 0 0 0 2px #7a8595; } .tft-hex.c2 { box-shadow: inset 0 0 0 2px #2ec27e; }
.tft-hex.c3 { box-shadow: inset 0 0 0 2px #3d8bfd; } .tft-hex.c4 { box-shadow: inset 0 0 0 2px #c084fc; }
.tft-hex.c5 { box-shadow: inset 0 0 0 2px #f0c040; }
.tft-hex.carry { outline: 2px solid var(--accent-light); outline-offset: -2px; }
.tft-hexitems { position: absolute; bottom: 1px; left: 0; right: 0; display: flex; justify-content: center; gap: 1px; }
.tft-hexitems img { width: 12px; height: 12px; border-radius: 2px; }
.tft-hexitem { display: inline-flex; cursor: help; }
.tft-item { display: inline-flex; border-radius: 5px; padding: 1px; cursor: help; vertical-align: middle; box-shadow: inset 0 0 0 1.5px transparent; }
.tft-item img { border-radius: 4px; object-fit: cover; display: block; }
.tft-item.imp-core { box-shadow: inset 0 0 0 1.5px #f0c040; } .tft-item.imp-strong { box-shadow: inset 0 0 0 1.5px var(--accent-light); }
.tft-item.imp-safe { box-shadow: inset 0 0 0 1.5px #60a5fa; } .tft-item.imp-filler { box-shadow: inset 0 0 0 1.5px var(--border); }
.tft-first, .tft-order { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 9px 0; border-top: 1px solid var(--border); }
.tft-first-l { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-right: 2px; }
.tft-firstitem { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; width: 48px; text-align: center; }
.tft-firstitem span { font-size: 10px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 48px; }
.tft-carries { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-top: 1px solid var(--border); }
.tft-carry { display: flex; gap: 9px; align-items: center; }
.tft-unit { width: 34px; height: 34px; border-radius: 8px; overflow: hidden; flex: 0 0 auto; background: var(--bg-3); }
.tft-unit img { width: 100%; height: 100%; object-fit: cover; }
.tft-unit.carry { outline: 2px solid var(--accent-light); outline-offset: -2px; }
.tft-carry-b { min-width: 0; }
.tft-carry-b b { font-size: 12.5px; }
.tft-ct { font-size: 8px; font-weight: 800; color: var(--accent-light); text-transform: uppercase; letter-spacing: .5px; }
.tft-itemrow { display: flex; gap: 4px; margin-top: 3px; flex-wrap: wrap; }
.tft-plan { font-size: 12px; color: var(--text-muted); padding-top: 9px; border-top: 1px solid var(--border); line-height: 1.5; }
.tft-plan b { color: var(--accent-light); }
.tft-comp.following { border-color: var(--accent-light); box-shadow: 0 0 0 1px var(--accent-light) inset; }
.tft-comp-ft { display: flex; gap: 8px; margin: -4px 0 10px; }
.tft-follow { flex: 1 1 auto; background: var(--bg-3); border: 1px solid var(--border); color: var(--text-muted); font: inherit; font-weight: 700; font-size: 11.5px; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.tft-follow:hover { color: var(--text); border-color: var(--accent-light); }
.tft-follow.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tft-copy { background: var(--bg-3); border: 1px solid var(--border); color: var(--text-muted); font: inherit; font-weight: 700; font-size: 11.5px; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.tft-copy:hover { color: var(--text); border-color: var(--accent-light); }
.tft-following { border-color: rgba(var(--accent-rgb), .4); }
.tft-switch { border-color: rgba(var(--accent-rgb), .4); background: var(--accent-dim); }

/* ---------- TFT in-game overlay (compact popout) ---------- */
.tftov { width: 100%; max-width: 340px; margin: 0 auto; background: rgba(15,15,19,.96); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: 12px; }
.tftov-wait { padding: 30px 16px; text-align: center; color: var(--text-muted); }
.tftov-bar { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(var(--accent-rgb),.16), transparent); -webkit-app-region: drag; }
.tftov-bar .tftov-nm { font-size: 12.5px; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tftov-grip { color: var(--text-muted); font-size: 11px; -webkit-app-region: drag; }
.tftov-sp { flex: 1 1 auto; }
.tftov-pick { -webkit-app-region: no-drag; max-width: 120px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); border-radius: 7px; padding: 3px 5px; font-size: 11px; }
.tftov-pin { -webkit-app-region: no-drag; background: none; border: 0; cursor: pointer; font-size: 13px; opacity: .5; }
.tftov-pin.on { opacity: 1; }
.tftov-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; max-height: 78vh; overflow-y: auto; }
.tftov-mini { transform-origin: top center; }
.tftov-mini .tft-hex { width: 34px; height: 38px; }
.tftov-sec { font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.tftov-sec .tft-link { margin-left: auto; }
.tftov-first { display: flex; gap: 6px; flex-wrap: wrap; }
.tftov-econ { border-top: 1px solid var(--border); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.tftov-fields { display: flex; gap: 6px; }
.tftov-fields label { display: flex; flex-direction: column; gap: 2px; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); flex: 1; }
.tftov-fields input { background: var(--bg-2); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 4px 5px; font-size: 12px; width: 100%; }
.tftov-eco { display: flex; flex-direction: column; gap: 2px; padding: 7px 9px; border-radius: 8px; background: var(--bg-2); }
.tftov-eco.spike { background: var(--accent-dim); border: 1px solid rgba(var(--accent-rgb), .35); }
.tftov-int { font-weight: 800; color: var(--accent-light); font-size: 11.5px; }
.tftov-tip { color: var(--text); font-size: 12px; line-height: 1.4; }
.tftov-odds { font-size: 11.5px; color: var(--text-muted); }
.tftov-odds b { color: var(--text); }
.tftov-switch { font-size: 11.5px; color: var(--text-muted); padding: 7px 9px; border-radius: 8px; background: var(--accent-dim); border: 1px solid rgba(var(--accent-rgb), .3); }
.tftov-switch b { color: var(--text); }
/* when hosted in the desktop popout window, fill it */
html.tftpop, html.tftpop body { background: #0f0f13; margin: 0; }
html.tftpop .tftov { max-width: none; border: 0; border-radius: 0; height: 100vh; }
html.tftpop .tftov-body { max-height: calc(100vh - 42px); }

/* deck helper */
.tft-helper { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 820px) { .tft-helper { grid-template-columns: 1fr; } .tft-comps { grid-template-columns: 1fr; } }
.tft-hcol { min-width: 0; }
.tft-picker { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.tft-owned, .tft-held { display: flex; flex-wrap: wrap; gap: 5px; min-height: 24px; margin-top: 8px; }
.tft-ochip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 3px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-3); color: var(--text); font: inherit; font-size: 11px; cursor: pointer; }
.tft-ochip img { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; }
.tft-ochip.c4 { border-color: #c084fc; } .tft-ochip.c5 { border-color: #f0c040; }
.tft-tray { display: flex; flex-wrap: wrap; gap: 5px; }
.tft-tray.big .tft-traybtn { width: auto; padding: 5px 9px 5px 5px; }
.tft-traybtn { display: inline-flex; align-items: center; gap: 6px; width: 34px; height: 34px; justify-content: center; padding: 3px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-3); color: var(--text); font: inherit; font-size: 11px; cursor: pointer; }
.tft-traybtn:hover { border-color: var(--accent-light); }
.tft-traybtn img { width: 26px; height: 26px; object-fit: contain; }
.tft-heldchip { width: 30px; height: 30px; padding: 2px; border-radius: 7px; border: 1px solid var(--accent-light); background: var(--accent-dim); cursor: pointer; }
.tft-heldchip img { width: 100%; height: 100%; object-fit: contain; }
.tft-rec { padding: 9px 0; border-top: 1px solid var(--border); }
.tft-rec:first-child { border-top: 0; }
.tft-rec-hd { display: flex; align-items: center; gap: 8px; }
.tft-rec-hd b { font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tft-best { font-size: 9px; font-weight: 800; text-transform: uppercase; color: var(--accent-light); border: 1px solid rgba(var(--accent-rgb), .5); border-radius: 4px; padding: 1px 5px; }
.tft-rec-pct { margin-left: auto; color: var(--accent-light); font-weight: 800; font-size: 13px; }
.tft-bar { height: 5px; background: var(--bg); border-radius: 3px; margin: 5px 0; overflow: hidden; }
.tft-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
.tft-rec-sub { font-size: 11px; }
.tft-make { display: flex; align-items: center; gap: 9px; padding: 5px 0; border-top: 1px solid var(--border); }
.tft-make:first-of-type { border-top: 0; }
.tft-make-b { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.tft-make-b b { font-size: 12.5px; }
.tft-imp { font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 2px 6px; border-radius: 5px; flex: 0 0 auto; }
.tft-imp.imp-core { color: #f0c040; background: rgba(240,192,64,.15); } .tft-imp.imp-strong { color: var(--accent-light); background: var(--accent-dim); }
.tft-imp.imp-safe { color: #60a5fa; background: rgba(96,165,250,.15); } .tft-imp.imp-filler { color: var(--text-muted); background: rgba(255,255,255,.05); }
.tft-next { margin-top: 8px; padding: 7px 9px; border-radius: 8px; font-size: 12px; line-height: 1.5; color: var(--text-muted); background: var(--accent-dim); border: 1px solid rgba(var(--accent-rgb), .28); }
.tft-next b { color: var(--text); }
.tft-items-tab { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 820px) { .tft-items-tab { grid-template-columns: 1fr; } }
.tft-made { display: flex; flex-direction: column; gap: 6px; }
.tft-made-row { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 9px; background: var(--bg-3); cursor: help; }
.tft-made-row img { width: 30px; height: 30px; border-radius: 6px; }
.tft-made-row b { flex: 1 1 auto; font-size: 13px; }
.tft-allitems { display: flex; flex-wrap: wrap; gap: 5px; }
.tft-allitems .tft-item img { width: 30px; height: 30px; }

/* ---------- League page ---------- */
.lol-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .lol-grid { grid-template-columns: 1fr; } }
.lol-champ { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lol-champ img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--bg-3); }
.lol-champ .nm { font-size: 18px; font-weight: 800; }
.lol-champ .cl { font-size: 12px; color: #4ade80; margin-top: 2px; }
.lol-comp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lol-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); }
.lol-chip .d { width: 7px; height: 7px; border-radius: 50%; }
.lol-build { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lol-key { font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 8px; background: var(--accent-dim); color: var(--accent-light); }
.lol-sp, .lol-fi { width: 34px; height: 34px; border-radius: 8px; background: var(--bg-3); }
.lol-import { margin-left: auto; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 7px 13px; font: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.lol-skill { margin-top: 8px; font-family: ui-monospace, monospace; font-size: 12px; color: var(--text-muted); letter-spacing: .5px; }
.lol-items { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.lol-items img { width: 36px; height: 36px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--border); }
.lol-items img.ad { border-color: rgba(var(--accent-rgb), .55); }
.lol-items .a { color: var(--text-muted); }
.lol-why { display: flex; flex-direction: column; gap: 6px; }
.lol-why .r { display: flex; gap: 9px; align-items: center; font-size: 12.5px; color: var(--text-muted); }
.lol-why .r b { color: var(--text); font-weight: 600; }
.lol-why .r .t { width: 3px; height: 14px; border-radius: 2px; background: var(--accent-light); flex: none; }
.lol-dng { display: flex; flex-direction: column; gap: 2px; }
.lol-dr { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-left: 3px solid #e0a44a; font-size: 13px; }
.lol-dr.high { border-left-color: #f87171; }
.lol-dr img { width: 26px; height: 26px; border-radius: 7px; background: var(--bg-3); }
.lol-dr .nm { font-weight: 700; }
.lol-dr .lv { font-size: 9px; font-weight: 800; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; color: #e0a44a; border: 1px solid rgba(224,164,74,.4); }
.lol-dr.high .lv { color: #f87171; border-color: rgba(248,113,113,.45); }
.lol-dr .wy { margin-left: auto; font-size: 11.5px; color: var(--text-muted); text-align: right; }
.lol-pick { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; background: var(--bg-3); }
.lol-pick + .lol-pick { margin-top: 6px; }
.lol-pick img { width: 30px; height: 30px; border-radius: 7px; }
.lol-pick .nm { font-weight: 700; } .lol-pick .wy { margin-left: auto; font-size: 11.5px; color: var(--text-muted); }
.lol-demo-tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #f0b23c; background: rgba(240,178,60,.14); border: 1px solid rgba(240,178,60,.3); border-radius: 5px; padding: 3px 7px; margin-bottom: 12px; }

/* recipe tooltip (shared) */
.recipe-tip { position: fixed; z-index: 9999; pointer-events: none; max-width: 240px; background: var(--bg); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 9px 11px; box-shadow: 0 12px 34px rgba(0,0,0,.6); font-size: 11px; color: var(--text); }
.recipe-tip .rt-head { display: flex; align-items: center; gap: 6px; font-weight: 800; margin-bottom: 5px; }
.recipe-tip .rt-ico { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; }
.recipe-tip .rt-recipe { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.recipe-tip .rt-comp { display: inline-flex; align-items: center; gap: 3px; color: var(--text-muted); }
.recipe-tip .rt-comp img { width: 18px; height: 18px; border-radius: 4px; }
.recipe-tip .rt-plus { color: var(--text-muted); font-weight: 800; }
.recipe-tip .rt-tag { font-size: 10px; color: var(--text-muted); }
.recipe-tip .rt-desc { color: var(--text-muted); line-height: 1.45; font-size: 10.5px; border-top: 1px solid var(--border); padding-top: 4px; margin-top: 2px; }
