/* Play Your Teams Stats. Same palette as LeagueLander; Barlow Condensed for
   headings and numbers, the system font for reading. */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }

:root {
  --bg: #0A0E14; --panel: #121821; --raised: #1A212C; --line: #252D3A; --line2: #313B4B;
  --chalk: #F3F5F8; --dim: #97A0B0; --faint: #6B7484;
  --accent: #37E17E; --accent-ink: #06210F; --gold: #FFB74D; --danger: #FF6B6B; --orange: #FF9A4D; --blue: #7CC4FF;
  --qb: #7CC4FF; --rb: #37E17E; --wr: #FFB74D; --te: #C792EA;
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--chalk); font: 15px/1.5 var(--body); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, th:focus-visible { outline: 2px solid var(--chalk); outline-offset: 2px; border-radius: 3px; }
small { color: var(--dim); font-size: 12px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.site { border-bottom: 1px solid var(--line); background: rgba(10, 14, 20, 0.92); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); }
.site-in { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand { font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: .3px; color: var(--chalk); text-transform: uppercase; }
.brand b { color: var(--accent); }
.brand:hover { text-decoration: none; }
.brand-sub { font-family: var(--head); font-weight: 600; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 6px; }
.mainnav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.mainnav a { color: var(--dim); font-family: var(--head); font-weight: 600; font-size: 16px; letter-spacing: .4px; padding: 6px 10px; border-radius: 8px; }
.mainnav a:hover { color: var(--chalk); background: var(--raised); text-decoration: none; }
.mainnav a[aria-current="page"] { color: var(--chalk); background: var(--raised); box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------- page ---------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 16px 16px 40px; }
.crumbs { font-size: 13px; color: var(--faint); margin: 2px 0 10px; }
.crumbs a { color: var(--dim); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: .2px; line-height: 1.1; }
h1 { font-size: clamp(28px, 4.6vw, 42px); margin: 6px 0 8px; text-wrap: balance; }
h2 { font-size: 26px; margin: 0 0 10px; }
h3 { font-size: 19px; margin: 0 0 8px; }
.kicker { margin: 0 0 6px; color: var(--dim); font-family: var(--head); font-weight: 600; font-size: 16px; letter-spacing: .6px; text-transform: uppercase; }
.lead { color: #C9CFD9; font-size: 16px; max-width: 78ch; margin: 0 0 8px; }
.updated { color: var(--faint); font-size: 12px; margin: 0 0 18px; }
.sub { color: var(--dim); margin: -4px 0 12px; font-size: 14px; }
.note { color: var(--dim); font-size: 13px; }
section { margin: 30px 0; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.sechead h2 { margin: 0; }
.sechead a { font-size: 14px; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 0 1px rgba(255,255,255,0.25); flex: none; }
.dot.big { width: 18px; height: 18px; margin-right: 10px; vertical-align: 2px; }
.tm { color: var(--chalk); white-space: nowrap; }
.tm:hover { color: var(--accent); text-decoration: none; }
.pl { font-weight: 600; }
.nm-short { display: none; }

/* ---------- chips, tabs ---------- */
.chips, .tabs, .jump { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.chips a, .jump a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 13px; color: var(--dim); }
.chips a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.chips a:hover, .jump a:hover { color: var(--chalk); border-color: var(--line2); text-decoration: none; }
.tabs { border-bottom: 1px solid var(--line); gap: 0; margin-bottom: 4px; }
.tabs a { font-family: var(--head); font-weight: 700; font-size: 17px; letter-spacing: .5px; padding: 8px 14px; color: var(--dim); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--chalk); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--chalk); border-bottom-color: var(--accent); }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.data caption { text-align: left; caption-side: top; padding: 10px 12px 6px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; font-weight: 600; }
table.data th, table.data td { padding: 8px 10px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.data thead th { font-family: var(--head); font-weight: 700; font-size: 14px; letter-spacing: .6px; text-transform: uppercase; color: var(--dim); background: var(--raised); border-top: 0; white-space: nowrap; position: relative; }
table.data th.n, table.data td.n { text-align: right; }
table.data th.c, table.data td.c { text-align: center; }
table.data tbody tr:hover { background: rgba(255,255,255,0.025); }
table.data td.tot { font-family: var(--head); font-weight: 700; font-size: 18px; white-space: nowrap; }
table.data td small { margin-left: 3px; }
table.data td.line { color: var(--dim); font-size: 13px; }
table.data tr.dim td { color: var(--faint); }
table.data tr.dim .pl { text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.3); }
table.data tr.grp th { background: rgba(255,255,255,0.03); font-family: var(--head); font-size: 16px; font-weight: 700; color: var(--chalk); letter-spacing: .5px; }
table.data tr.grp th small { font-family: var(--body); font-weight: 400; letter-spacing: 0; margin-left: 8px; }
.sortable thead th[data-sort] { cursor: pointer; user-select: none; }
.sortable thead th[data-sort]:hover { color: var(--chalk); }
.sortable thead th[aria-sort="descending"]::after { content: " ▼"; font-size: 10px; color: var(--accent); }
.sortable thead th[aria-sort="ascending"]::after { content: " ▲"; font-size: 10px; color: var(--accent); }
td.tot { position: relative; min-width: 120px; }
td.tot .totv { position: relative; z-index: 1; }
.mix { display: flex; height: 5px; border-radius: 3px; overflow: hidden; margin: 3px 0 0 auto; background: var(--raised); }
.seg { display: inline-block; height: 100%; }
.seg.qb { background: var(--qb); } .seg.rb { background: var(--rb); } .seg.wr { background: var(--wr); } .seg.te { background: var(--te); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--dim); margin: 8px 2px 0; }
.legend .seg { width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* ---------- badges ---------- */
.badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .4px; padding: 1px 6px; border-radius: 5px; vertical-align: 1px; }
.badge.out { background: rgba(255, 107, 107, 0.16); color: var(--danger); }
.badge.dbt { background: rgba(255, 154, 77, 0.16); color: var(--orange); }
.badge.q { background: rgba(255, 183, 77, 0.16); color: var(--gold); }
.badge.oth { background: var(--raised); color: var(--dim); }
.prac { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line2); color: var(--dim); }
.prac.dnp { color: var(--danger); border-color: rgba(255,107,107,0.4); }
.prac.lim { color: var(--gold); border-color: rgba(255,183,77,0.4); }
.prac.full { color: var(--accent); border-color: rgba(55,225,126,0.35); }
.hurt { color: var(--dim); }
.rk { display: inline-block; min-width: 26px; text-align: center; padding: 1px 4px; border-radius: 5px; font-weight: 700; }
.rk.easy { background: rgba(55, 225, 126, 0.16); color: var(--accent); }
.rk.hard { background: rgba(255, 107, 107, 0.14); color: var(--danger); }

/* ---------- team page ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 6px 0 4px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile span { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .8px; font-weight: 600; }
.tile b { font-family: var(--head); font-size: 32px; line-height: 1.05; }
.tile small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nextup { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; }
.nextup h3 { font-size: 16px; margin: 0 0 4px; color: var(--gold); text-transform: uppercase; letter-spacing: .8px; }
.nextup ul { list-style: none; margin: 0; padding: 0; }
.nextup li { padding: 3px 0; }
.chart { margin: 0 0 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 6px; overflow-x: auto; }
.chart svg { display: block; min-width: 100%; height: auto; max-height: 190px; }
.chart figcaption { color: var(--faint); font-size: 12px; margin-top: 4px; }
.c-bar { fill: #2E6B4C; }
.c-bar.top { fill: var(--accent); }
.c-val { fill: var(--chalk); font: 700 12px var(--head); }
.c-wk { fill: var(--dim); font: 600 12px var(--head); }
.c-bye { fill: var(--faint); font: 600 11px var(--head); letter-spacing: 1px; }
.news { list-style: none; padding: 0; margin: 0; }
.news li { padding: 9px 0; border-top: 1px solid var(--line); }
.news li:first-child { border-top: 0; }
.news a { color: var(--chalk); font-weight: 600; }
.news a:hover { color: var(--accent); }
.news small { display: block; margin-top: 2px; }
.sibs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ---------- home / lists ---------- */
.grid5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.mini { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.mini h3 a { color: var(--chalk); }
.mini ol { margin: 0; padding: 0 0 0 18px; }
.mini li { padding: 3px 0; }
.mini li::marker { color: var(--faint); font-size: 12px; }
.mini li { display: list-item; }
.mini li span { display: inline-block; max-width: calc(100% - 48px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.mini li b { float: right; font-family: var(--head); font-size: 17px; }
.games { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.game { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.game .side { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; }
.game .side b { font-family: var(--head); font-size: 22px; }
.game .when { margin: 4px 0 0; color: var(--faint); font-size: 12px; }
.inj { list-style: none; padding: 0; margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.inj li { padding: 9px 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.inj li:first-child { border-top: 0; }
.inj .next { color: var(--dim); font-size: 14px; }
.divs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.div h3 { color: var(--dim); font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }
.div ul { list-style: none; margin: 0; padding: 0; }
.div li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); }
.div li:first-child { border-top: 0; }
.div li small { white-space: nowrap; }

/* ---------- call to action, footer ---------- */
.cta { margin: 36px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(55,225,126,0.12), rgba(124,196,255,0.06)); border: 1px solid rgba(55,225,126,0.35); border-radius: 14px; padding: 16px 18px; }
.cta div { max-width: 70ch; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 800; padding: 10px 18px; border-radius: 10px; white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.site-foot { border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.site-foot .wrap { padding-top: 12px; }
.site-foot p { margin: 6px 0; max-width: 90ch; }
.site-foot a { color: var(--dim); }

/* ---------- small screens ---------- */
@media (max-width: 800px) { .hide-m { display: none; } }
@media (max-width: 560px) {
  .hide-s { display: none; }
  .mainnav { margin-left: 0; width: 100%; }
  .mainnav a { padding: 5px 8px; font-size: 15px; }
  table.data th, table.data td { padding: 7px 8px; }
  h2 { font-size: 23px; }
  .tile b { font-size: 27px; }
  .jn { display: none; }
  .nm-full { display: none; }
  .nm-short { display: inline; }
  td.tot { min-width: 70px; }
  table.data td.tot { font-size: 17px; }
  table.depth td:first-child, table.depth th:first-child { padding-right: 2px; }
  table.depth tr.grp th small { display: block; margin: 2px 0 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
