/* tracker.katsch.dk
   Katsch-identitet: sort (#0f0f0f), creme (#f5f0e8), rød (#DC052D), Bebas Neue til overskrifter.
   Brødtekst og tal i Barlow / Barlow Semi Condensed (tabulære tal i tabeller). */

@font-face { font-family: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/bebas-neue-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Bebas Neue'; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/bebas-neue-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/barlow-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/barlow-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/barlow-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/barlow-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/barlow-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/barlow-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/barlow-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/barlow-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/barlow-semi-condensed-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/barlow-semi-condensed-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/barlow-semi-condensed-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/barlow-semi-condensed-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/barlow-semi-condensed-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/barlow-semi-condensed-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  color-scheme: dark;
  --bg: #0f0f0f;
  --panel: #171615;
  --panel-2: #1f1d1b;
  --panel-3: #292624;
  --line: #2b2825;
  --line-2: #3b3733;
  --ink: #f5f0e8;
  --ink-2: #c9c1b4;
  --ink-3: #958d81;
  --red: #dc052d;
  --red-hover: #b80425;
  --win: #3d8be0;
  --loss: #e05d5d;
  --win-text: #7fb2f0;
  --loss-text: #f08a8a;
  --remake: #6f6a63;
  --you: #f5f0e8;
  --them: #8a8378;
  --blue-side: #3d8be0;
  --red-side: #e05d5d;
  --font-display: 'Bebas Neue', 'Barlow Semi Condensed', Impact, 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-num: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
  --radius: 6px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
.champ img, .item img, .spell img, .perk img, .hero-icon img, .profile-icon img, .player-chips img, .suggest img, .champ-cell img, .dl-rank img, .abilities img { max-width: none; }
a { color: var(--ink); text-decoration-color: rgba(245, 240, 232, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--font-display); letter-spacing: 0.015em; line-height: 1; }
h2 { font-size: 30px; }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 17px; line-height: 1.3; }
h4 { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
p { margin: 0 0 0.75em; }
dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
button, input, select { font: inherit; color: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.sub { display: block; color: var(--ink-3); font-size: 13px; font-weight: 400; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 24px; } }

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(15, 15, 15, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-row { display: flex; align-items: center; gap: 12px 24px; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word { font-family: var(--font-display); font-size: 25px; letter-spacing: 0.04em; line-height: 1; padding-top: 2px; }
.game-nav { display: flex; gap: 20px; }
.game-nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.game-nav a:hover { color: var(--ink); }
.game-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--red); }
.site-header .search { margin-left: auto; }
@media (max-width: 860px) {
  .site-header .search { margin-left: 0; width: 100%; }
  .site-header { position: static; }
}

/* ---------- Søgning ---------- */
.search { display: flex; align-items: stretch; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: visible; position: relative; }
.search:focus-within { border-color: var(--ink-3); }
.search select, .search input { background: transparent; border: 0; padding: 8px 12px; min-width: 0; }
.search select { border-right: 1px solid var(--line-2); color: var(--ink-2); font-weight: 600; cursor: pointer; }
.search select option { background: var(--panel-2); color: var(--ink); }
.search input { flex: 1; width: 240px; }
.search input::placeholder { color: var(--ink-3); opacity: 1; }
.search input:focus, .search select:focus { outline: none; }
.search button { background: var(--red); border: 0; color: var(--ink); font-weight: 600; padding: 8px 16px; cursor: pointer; border-radius: 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0; }
.search button:hover { background: var(--red-hover); }
.search-large { max-width: 620px; }
.search-large input { padding: 13px 16px; font-size: 17px; width: auto; }
.search-large select { padding: 13px 12px; }
.search-large button { padding: 13px 24px; font-size: 16px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius); z-index: 30; overflow: hidden; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-decoration: none; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--panel-3); }
.suggest img { border-radius: 4px; }
.suggest .sub { display: inline; margin-left: auto; }

/* ---------- Brødkrummer ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 14px 0; font-size: 14px; color: var(--ink-3); }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-2); }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current] { color: var(--ink-2); }

main { padding-block: 20px 72px; outline: none; }

/* ---------- Sektioner ---------- */
.panel { margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--line); }
.panel > h2, .section-head h2 { margin-bottom: 16px; }
.panel h2 .h-sub { font-family: var(--font-body); font-size: 16px; color: var(--ink-3); letter-spacing: 0; margin-left: 8px; font-weight: 500; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.section-head h2 { margin-bottom: 0; }
.page-head { padding-block: 12px 8px; max-width: 820px; }
.page-head h1 { font-size: clamp(44px, 7vw, 76px); margin-bottom: 12px; }
.lede { color: var(--ink-2); font-size: 18px; max-width: 64ch; }
.empty { color: var(--ink-3); padding: 18px; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.notice { background: var(--panel-2); border-left: 3px solid var(--ink-3); padding: 10px 14px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2); }
.prose p { max-width: 72ch; color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); padding: 9px 18px; border-radius: var(--radius); font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--panel-3); }
.btn-primary { background: var(--red); border-color: var(--red); }
.btn-primary:hover { background: var(--red-hover); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Forside ---------- */
.hero { padding-block: 48px 16px; }
.hero-title { font-size: clamp(46px, 7.2vw, 96px); line-height: 0.92; max-width: 17ch; margin-bottom: 18px; }
.hero-search { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 32px; }
.search-title { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; margin-bottom: 8px; }
.region-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 20px; color: var(--ink-2); }
.region-list strong { display: inline-block; min-width: 46px; color: var(--ink); font-family: var(--font-num); }
.champ-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.player-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.player-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.player-chips a:hover { border-color: var(--line-2); background: var(--panel-2); }
.player-chips img { border-radius: 50%; }
.player-chips .sub { display: inline; font-size: 12px; }
.player-chips.big a { border-radius: var(--radius); padding: 8px 14px 8px 8px; }

.rank-bars { display: grid; gap: 6px; max-width: 760px; margin: 12px 0 16px; }
.rank-bars li { display: grid; grid-template-columns: 150px 1fr 70px; align-items: center; gap: 12px; }
.rb-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.rb-track { height: 10px; background: var(--panel-2); border-radius: 0 4px 4px 0; }
.rb-track span { display: block; height: 100%; background: var(--tier); border-radius: 0 4px 4px 0; }
.rb-val { font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.rb-val .sub { display: inline; margin-left: 6px; font-size: 12px; }

/* ---------- Profil ---------- */
.profile-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; padding-block: 18px 6px; }
.identity { display: flex; align-items: flex-end; gap: 20px; min-width: 0; }
.profile-icon { position: relative; flex: none; width: 88px; height: 88px; border-radius: 10px; background: var(--panel-2); }
.profile-icon img { display: block; border-radius: 10px; }
.profile-icon .level { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 8px; font-family: var(--font-num); font-weight: 600; font-size: 13px; line-height: 20px; }
.identity-text { min-width: 0; }
.player-title { font-size: clamp(44px, 7vw, 80px); line-height: 0.9; overflow-wrap: anywhere; }
.player-title .tagline { font-family: var(--font-num); font-weight: 600; font-size: 0.34em; color: var(--ink-3); letter-spacing: 0; margin-left: 6px; vertical-align: 0.6em; }
.tagline { color: var(--ink-3); }
.meta-row { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 12px; font-size: 14px; }
.meta-row div { display: flex; gap: 6px; }
.meta-row dt { color: var(--ink-3); }
.meta-row dd { color: var(--ink-2); font-weight: 500; }
.update-form { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.update-status { min-height: 1.2em; font-size: 13px; color: var(--ink-3); margin: 0; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 36px; }
@media (min-width: 1040px) { .profile-grid { grid-template-columns: 330px minmax(0, 1fr); } }
.profile-side .panel:first-child, .profile-main { margin-top: 28px; }
.profile-main { padding-top: 16px; border-top: 1px solid var(--line); }
@media (min-width: 1040px) { .profile-side .panel:first-child { margin-top: 28px; } }

.rank-card { background: var(--panel); border-radius: var(--radius); padding: 14px 16px 16px; margin-bottom: 12px; }
.rank-card h3 { font-size: 14px; color: var(--ink-3); font-weight: 600; margin-bottom: 10px; }
.rank-line { display: flex; align-items: center; gap: 12px; }
.rank-name { font-family: var(--font-display); font-size: 30px; line-height: 1; letter-spacing: 0.02em; }
.rank-line .lp { margin-left: auto; font-family: var(--font-num); font-weight: 600; font-size: 18px; color: var(--ink-2); }
.rank-line.unranked .rank-name { color: var(--ink-3); }
.rank-stats { display: flex; gap: 18px; margin: 12px 0 10px; font-size: 14px; }
.rank-stats dt { color: var(--ink-3); font-size: 12px; }
.rank-stats dd { font-family: var(--font-num); font-weight: 600; font-size: 16px; }
.wr-bar { height: 6px; border-radius: 3px; background: rgba(224, 93, 93, 0.55); overflow: hidden; }
.wr-w { display: block; height: 100%; background: var(--win); border-right: 2px solid var(--panel); }
.streak { margin: 10px 0 0; font-size: 13px; color: var(--win-text); }
.lp-history { margin: 12px 0 0; }
.lp-history figcaption { font-size: 12px; color: var(--ink-3); }
.sparkline { display: block; width: 100%; height: 40px; }
.sparkline path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sparkline circle { fill: var(--ink); stroke: var(--panel); stroke-width: 2; }
.crest { flex: none; display: block; }

.scope { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.champ-table th, .champ-table td { padding: 7px 6px; text-align: right; font-size: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.champ-table thead th { color: var(--ink-3); font-weight: 500; font-size: 12px; }
.champ-table th:first-child, .champ-table td:first-child { text-align: left; padding-left: 0; }
.champ-table td .sub { font-size: 12px; }
.champ-cell { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; min-width: 0; }
.champ-cell:hover span { text-decoration: underline; text-decoration-color: rgba(245, 240, 232, 0.4); }
.wr { font-family: var(--font-num); font-weight: 600; }
.wr.good { color: var(--win-text); }
.wr.bad { color: var(--loss-text); }

.queue-filter ul { display: flex; flex-wrap: wrap; gap: 4px; }
.queue-filter a, .seg a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 500; border: 1px solid transparent; }
.queue-filter a:hover, .seg a:hover { color: var(--ink); border-color: var(--line-2); }
.queue-filter a[aria-current], .seg a[aria-current] { background: var(--ink); color: var(--bg); }
.seg ul { display: flex; flex-wrap: wrap; gap: 4px; }
.seg .sub { display: inline; font-size: 12px; margin-left: 2px; }

.recent { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px 28px; background: var(--panel); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 14px; }
.recent-record p { margin: 0; }
.recent-wl { font-family: var(--font-display); font-size: 34px; line-height: 1; }
.recent-wl .w { color: var(--win-text); }
.recent-wl .l { color: var(--loss-text); }
.recent-record .muted { font-size: 13px; }
.recent-stats { display: flex; gap: 22px; }
.recent-stats dt { font-size: 12px; color: var(--ink-3); }
.recent-stats dd { font-family: var(--font-num); font-weight: 600; font-size: 18px; }
.recent-stats dd.sub { font-size: 12px; font-weight: 500; font-family: var(--font-body); }
.recent-roles { display: flex; gap: 6px; align-items: flex-end; height: 52px; color: var(--ink-3); }
.role-bar { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; height: 100%; }
.role-track { width: 10px; flex: 1; background: var(--panel-3); border-radius: 3px 3px 0 0; display: flex; align-items: flex-end; }
.role-track span { display: block; width: 100%; background: var(--ink-2); border-radius: 3px 3px 0 0; min-height: 0; }
.recent-champs { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.recent-champs li { display: flex; align-items: center; gap: 8px; }
@media (max-width: 760px) {
  .recent { grid-template-columns: 1fr 1fr; }
  .recent-roles { display: none; }
}

/* ---------- Kampkort ---------- */
.match-list { display: grid; gap: 8px; }
.match-card {
  --state: var(--remake);
  position: relative;
  display: grid;
  grid-template-columns: 96px 104px 96px 128px minmax(0, 1fr);
  grid-template-areas: 'result champ kda stats teams' 'result items items lane teams';
  align-items: center;
  gap: 8px 14px;
  padding: 12px 50px 12px 20px;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
}
.match-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--state); }
.match-card.is-win { --state: var(--win); background: linear-gradient(90deg, rgba(61, 139, 224, 0.08), transparent 40%), var(--panel); }
.match-card.is-loss { --state: var(--loss); background: linear-gradient(90deg, rgba(224, 93, 93, 0.07), transparent 40%), var(--panel); }
.mc-result { grid-area: result; font-size: 13px; color: var(--ink-3); align-self: start; }
.mc-title { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.mc-title .result { font-family: var(--font-display); font-size: 24px; font-weight: 400; line-height: 1; letter-spacing: 0.02em; color: var(--ink); }
.is-win .mc-title .result { color: var(--win-text); }
.is-loss .mc-title .result { color: var(--loss-text); }
.is-remake .mc-title .result { color: var(--ink-3); }
.mc-title .queue { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.mc-when { display: flex; flex-direction: column; margin: 0; }
.mc-pos { display: flex; align-items: center; gap: 5px; margin: 4px 0 0; }
.mc-champ { grid-area: champ; display: flex; align-items: center; gap: 6px; }
.mc-kda { grid-area: kda; }
.mc-kda p { margin: 0; }
.kda-line { font-family: var(--font-num); font-weight: 600; font-size: 19px; letter-spacing: 0.01em; white-space: nowrap; }
.kda-line .slash { color: var(--ink-3); margin: 0 3px; font-weight: 500; }
.kda-line .deaths { color: var(--loss-text); }
.kda-ratio { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.multikill { display: inline-block; white-space: nowrap; margin-top: 4px !important; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: rgba(220, 5, 45, 0.18); color: #ff8fa3; }
.mc-stats { grid-area: stats; display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; font-size: 13px; }
.mc-stats div { display: contents; }
.mc-stats dt { color: var(--ink-3); }
.mc-stats dt abbr { text-decoration: none; }
.mc-stats dd { font-family: var(--font-num); font-weight: 600; color: var(--ink-2); white-space: nowrap; text-align: right; }
.mc-stats dd .sub { display: inline; font-size: 12px; font-weight: 500; }
.mc-items { grid-area: items; }
.mc-lane { grid-area: lane; display: flex; align-items: center; gap: 4px 8px; font-size: 13px; flex-wrap: wrap; }
.mc-lane-vs { color: var(--ink-3); }
.mc-teams { grid-area: teams; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; font-size: 12px; align-self: center; }
.mc-team li { display: flex; align-items: center; gap: 5px; min-width: 0; line-height: 19px; }
.mc-team a, .mc-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); text-decoration: none; }
.mc-team .champ { flex: none; }
.mc-team a:hover { color: var(--ink); text-decoration: underline; }
.mc-team li.self a, .mc-team li.self span { color: var(--ink); font-weight: 600; }
.mc-analyze { position: absolute; right: 0; top: 0; bottom: 0; width: 34px; display: flex; align-items: center; justify-content: center; background: var(--panel-2); color: var(--ink-2); text-decoration: none; font-size: 0; border-left: 1px solid var(--line); }
.mc-analyze::after { content: ''; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin-left: -3px; }
.mc-analyze:hover { background: var(--panel-3); color: var(--ink); }
@media (max-width: 1239px) {
  .match-card { grid-template-columns: 96px 104px 96px minmax(128px, 1fr); grid-template-areas: 'result champ kda stats' 'result items items lane'; }
  .mc-teams { display: none; }
}
@media (max-width: 760px) {
  .match-card { grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: 'result result result' 'champ kda stats' 'items items items' 'lane lane lane'; gap: 10px 14px; padding: 12px 46px 12px 16px; }
  .mc-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .mc-title { flex-direction: row; align-items: baseline; gap: 10px; margin: 0; }
  .mc-when { flex-direction: row; gap: 10px; }
  .mc-pos { margin: 0; }
}

.champ { position: relative; display: inline-block; flex: none; line-height: 0; }
.champ img { border-radius: 6px; display: block; background: var(--panel-3); }
.champ-level { position: absolute; right: -4px; bottom: -4px; min-width: 20px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line-2); font-family: var(--font-num); font-weight: 600; font-size: 11px; line-height: 16px; text-align: center; color: var(--ink-2); }
.champ.banned img { filter: grayscale(1) brightness(0.6); }
.img-fallback { display: inline-flex; align-items: center; justify-content: center; background: var(--panel-3); color: var(--ink-3); font-size: 11px; font-weight: 600; border-radius: 4px; text-transform: uppercase; }
.loadout { display: inline-grid; grid-template-columns: auto auto; gap: 2px; }
.loadout .spells, .loadout .runes { display: flex; flex-direction: column; gap: 2px; }
.spell img, .perk img { display: block; border-radius: 4px; background: var(--panel-3); }
.perk.keystone img { background: #0a0a0a; border-radius: 50%; }
.perk.secondary img { padding: 3px; background: #0a0a0a; border-radius: 50%; }
.items { display: inline-flex; gap: 3px; flex-wrap: wrap; align-items: center; }
.item { display: inline-block; line-height: 0; }
.item img { display: block; border-radius: 4px; background: var(--panel-3); }
.item.slot-empty { background: var(--panel-2); border-radius: 4px; }
.trinket { margin-left: 4px; }
.trinket .item img, .trinket .item.slot-empty { border-radius: 50%; }

.diff { font-family: var(--font-num); font-weight: 600; white-space: nowrap; }
.diff.up { color: var(--win-text); }
.diff.down { color: var(--loss-text); }
.diff.up::before { content: '▲' / ''; font-size: 0.7em; margin-right: 3px; vertical-align: 0.1em; }
.diff.down::before { content: '▼' / ''; font-size: 0.7em; margin-right: 3px; vertical-align: 0.1em; }
.load-more { margin: 16px auto 0; display: flex; }
.pos-icon { color: var(--ink-3); flex: none; }

/* ---------- Kampside ---------- */
.match-header { padding-block: 14px 0; }
.match-title { font-size: clamp(32px, 4.6vw, 52px); }
.match-id { font-family: var(--font-num); font-weight: 600; font-size: 0.5em; letter-spacing: 0; color: var(--ink-3); vertical-align: 0.25em; margin-left: 6px; }

.scoreline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px 24px; margin-top: 22px; padding: 22px 24px; background: var(--panel); border-radius: var(--radius); position: relative; overflow: hidden; }
.scoreline::before, .scoreline::after { content: ''; position: absolute; top: 0; bottom: 0; width: 5px; }
.scoreline::before { left: 0; background: var(--blue-side); }
.scoreline::after { right: 0; background: var(--red-side); }
.sl-side { display: flex; flex-direction: column; gap: 2px; }
.sl-side.red { text-align: right; align-items: flex-end; }
.sl-team { font-weight: 600; color: var(--ink-2); }
.sl-result { font-family: var(--font-display); font-size: 34px; line-height: 1; color: var(--ink-3); letter-spacing: 0.02em; }
.sl-side.won .sl-result { color: var(--ink); }
.sl-score { margin: 0; display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: clamp(64px, 10vw, 112px); line-height: 0.85; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.sl-dash { color: var(--ink-3); font-size: 0.6em; }
.sl-bans { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; }
.bans { display: flex; gap: 4px; margin: 0; }
.sl-arena { font-family: var(--font-display); font-size: 36px; margin: 0; }
.scoreline.arena { grid-template-columns: 1fr; }
@media (max-width: 600px) {
  .scoreline { grid-template-columns: 1fr 1fr; padding: 18px 16px; }
  .sl-score { grid-column: 1 / -1; grid-row: 1; justify-content: center; }
  .sl-bans { flex-direction: column; }
  .sl-bans .red { justify-content: flex-end; }
}

.analysis { margin-top: 36px; }
.analysis > .section-head { padding-top: 16px; border-top: 1px solid var(--line); }
.analysis .panel { margin-top: 28px; }
.analysis .panel > h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: 0.02em; margin-bottom: 14px; }
.focus-picker { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.focus-team { display: flex; gap: 4px; padding-left: 8px; border-left: 3px solid var(--line-2); }
.focus-team.blue { border-left-color: var(--blue-side); }
.focus-team.red { border-left-color: var(--red-side); }
.focus-team a { display: block; border-radius: 7px; padding: 2px; border: 2px solid transparent; line-height: 0; }
.focus-team a:hover { border-color: var(--line-2); }
.focus-team a[aria-current] { border-color: var(--ink); }
.analysis.loading { opacity: 0.55; transition: opacity 0.15s; }

/* Head-to-head: spejlvendte søjler som i en TV-grafik */
.h2h { max-width: 820px; margin: 0 auto; }
.h2h-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-bottom: 18px; }
.h2h-side { display: flex; align-items: center; gap: 12px; min-width: 0; }
.h2h-side.b { flex-direction: row-reverse; text-align: right; }
.h2h-side p { margin: 0; }
.h2h-name { font-family: var(--font-display); font-size: 28px; line-height: 1; overflow-wrap: break-word; letter-spacing: 0.02em; }
@media (max-width: 600px) { .h2h-name { font-size: 20px; } .h2h-head { gap: 8px; } .h2h-side { gap: 8px; } .h2h-val { font-size: 17px; } }
.h2h-sub { font-size: 13px; color: var(--ink-3); }
.h2h-vs { margin: 0; font-family: var(--font-display); font-size: 22px; color: var(--ink-3); }
.lobby-badge { width: 56px; height: 56px; border-radius: 6px; background: var(--panel-3); display: inline-flex; align-items: center; justify-content: center; font-size: 26px; color: var(--ink-3); }
.h2h-rows { display: grid; gap: 14px; }
.h2h-row { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: 'va label vb' 'bars bars bars'; align-items: baseline; gap: 4px 12px; }
.h2h-val { font-family: var(--font-num); font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.h2h-val.a { grid-area: va; }
.h2h-val.b { grid-area: vb; text-align: right; }
.h2h-row.lead-a .h2h-val.a, .h2h-row.lead-b .h2h-val.b { color: var(--ink); font-weight: 700; }
.h2h-label { grid-area: label; font-size: 13px; color: var(--ink-3); text-align: center; font-weight: 500; }
.h2h-bars { grid-area: bars; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; height: 8px; }
.h2h-bars .bar { display: flex; background: var(--panel-2); }
.h2h-bars .bar.a { justify-content: flex-end; border-radius: 4px 0 0 4px; }
.h2h-bars .bar.b { justify-content: flex-start; border-radius: 0 4px 4px 0; }
.h2h-bars .bar span { display: block; height: 100%; }
.h2h-bars .bar.a span { background: var(--you); border-radius: 4px 0 0 4px; }
.h2h-bars .bar.b span { background: var(--them); border-radius: 0 4px 4px 0; }
.h2h-row.neutral .bar.a span { background: rgba(245, 240, 232, 0.45); }
.h2h-row.neutral .bar.b span { background: #5a554f; }
.more-stats, .data-table, .all-challenges { margin-top: 22px; }
details > summary { cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: 14px; padding: 8px 0; list-style-position: inside; }
details > summary:hover { color: var(--ink); }
.stat-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px 28px; margin-top: 12px; }
.cmp-table caption { text-align: left; font-weight: 600; padding-bottom: 6px; color: var(--ink-2); }
.cmp-table th, .cmp-table td { padding: 6px 6px; border-bottom: 1px solid var(--line); font-size: 14px; text-align: right; }
.cmp-table thead th { color: var(--ink-3); font-weight: 500; font-size: 12px; }
.cmp-table tbody th { text-align: left; font-weight: 500; color: var(--ink-2); padding-left: 0; }
.cmp-table tr.lead-a td:nth-of-type(1), .cmp-table tr.lead-b td:nth-of-type(2) { color: var(--ink); font-weight: 600; }

/* Rank-benchmarks */
.tier-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.chips-label { font-size: 13px; color: var(--ink-3); }
.tier-chips ul { display: flex; flex-wrap: wrap; gap: 4px; }
.tier-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: 13px; color: var(--ink-2); }
.tier-chip:hover { border-color: var(--tier); color: var(--ink); }
.tier-chip.on { background: var(--tier); border-color: var(--tier); color: #0f0f0f; font-weight: 600; }
.bench-note { font-size: 14px; color: var(--ink-3); max-width: 80ch; }
.bench-empty p:last-child { margin: 0; }
.bench-rows { display: grid; gap: 4px; }
.bench-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 270px; align-items: center; gap: 8px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bench-head { display: flex; flex-direction: column; }
.bench-label { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.bench-value { font-family: var(--font-num); font-size: 26px; font-weight: 600; line-height: 1.1; }
.ladder { width: 100%; height: auto; display: block; overflow: visible; }
.ladder-axis { stroke: var(--line-2); stroke-width: 2; }
.ladder-band { opacity: 0.28; }
.tier-tick circle { stroke: var(--bg); stroke-width: 2; }
.tier-label { fill: var(--ink-2); font-size: 11.5px; font-family: var(--font-body); font-weight: 500; }
.you-marker line { stroke: var(--ink); stroke-width: 2; }
.you-marker path { fill: var(--ink); stroke: var(--bg); stroke-width: 2; }
.bench-standing ul { display: grid; gap: 2px; font-size: 13.5px; color: var(--ink-2); }
.bench-standing strong { color: var(--ink); font-family: var(--font-num); font-size: 15px; }
.tier-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 0.05em; }
.equiv { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 13px; font-weight: 600; }
.bench-standing .median { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
@media (max-width: 600px) { .ladder .tier-label { display: none; } }
@media (max-width: 900px) {
  .bench-row { grid-template-columns: 1fr; }
  .bench-head { flex-direction: row; align-items: baseline; justify-content: space-between; }
}

/* Grafer */
.lane-diffs { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-bottom: 18px; }
.lane-diffs div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.lane-diffs dt { width: 100%; font-size: 13px; color: var(--ink-3); }
.lane-diffs dd { font-size: 14px; color: var(--ink-3); }
.lane-diffs .diff { font-size: 22px; }
.chart-figure { margin: 0 0 18px; }
.chart-figure figcaption { font-size: 14px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
.chart-figure.wide figcaption:last-child { font-weight: 400; color: var(--ink-3); font-size: 13px; margin-top: 6px; }
.small-multiples { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px 24px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.legend .key { display: inline-block; width: 16px; height: 2px; border-radius: 1px; margin-left: 6px; }
.legend .key:first-child { margin-left: 0; }
.legend .key.you { background: var(--you); }
.legend .key.them { background: var(--them); }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; touch-action: pan-y; }
.chart-compact { display: none; }
@media (max-width: 640px) { .chart-wide { display: none; } .chart-compact { display: block; } }
.chart-figure.wide { max-width: 980px; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .tick { fill: var(--ink-3); font-size: 11px; font-family: var(--font-body); }
.chart .tick.y { text-anchor: end; }
.chart .tick.x { text-anchor: middle; }
.chart .tick.unit { text-anchor: end; }
.chart .series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .series.you { stroke: var(--you); }
.chart .series.them { stroke: var(--them); }
.chart .end { stroke: var(--bg); stroke-width: 2; }
.chart .end.you { fill: var(--you); }
.chart .end.them { fill: var(--them); }
.chart .zero { stroke: var(--line-2); stroke-width: 1; }
.chart .area.pos, .chart .area.blue { fill: rgba(61, 139, 224, 0.28); }
.chart .area.neg, .chart .area.red { fill: rgba(224, 93, 93, 0.28); }
.chart .diff-line { stroke: var(--ink-2); stroke-width: 1.5; }
.chart .zone-label { fill: var(--ink-3); font-size: 11px; }
.chart .marker line { stroke: var(--line-2); }
.chart .marker circle { stroke: var(--bg); stroke-width: 1.5; }
.chart .marker.blue circle { fill: var(--blue-side); }
.chart .marker.red circle { fill: var(--red-side); }
.chart .hover line { stroke: var(--ink-3); stroke-width: 1; }
.chart .hover circle { stroke: var(--bg); stroke-width: 2; }
.chart-tip { position: absolute; pointer-events: none; z-index: 5; background: #22201e; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 7px 10px; font-size: 13px; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); }
.chart-tip .tip-x { color: var(--ink-3); font-size: 12px; margin-bottom: 2px; }
.chart-tip .tip-row { display: flex; align-items: center; gap: 8px; }
.chart-tip .tip-row strong { font-family: var(--font-num); font-size: 15px; }
.chart-tip .tip-key { width: 12px; height: 2px; border-radius: 1px; }
.data-table table { min-width: 520px; }
.data-table th, .data-table td { padding: 4px 8px; text-align: right; border-bottom: 1px solid var(--line); font-size: 13px; }
.data-table thead th { color: var(--ink-3); font-weight: 500; }

/* Build og evner */
.build-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 32px; }
.build-block.wide { grid-column: 1 / -1; }
.panel .build-block > h3 { font-size: 15px; color: var(--ink-2); margin-bottom: 10px; }
.rune-row, .spell-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rune-names { font-size: 13px; color: var(--ink-3); margin: 8px 0 10px; }
.max-order { font-size: 14px; color: var(--ink-3); }
.max-order strong, strong.max-order { color: var(--ink); font-family: var(--font-num); font-size: 17px; letter-spacing: 0.04em; }
.skill-grid { display: grid; gap: 3px; overflow-x: auto; padding-bottom: 4px; }
.skill-row { display: grid; grid-template-columns: 26px repeat(18, minmax(22px, 1fr)); gap: 3px; }
.skill-key { font-family: var(--font-num); font-weight: 700; color: var(--ink-2); display: flex; align-items: center; }
.skill-cell { height: 24px; border-radius: 3px; background: var(--panel-2); font-family: var(--font-num); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; color: var(--bg); }
.skill-cell.on { background: var(--ink-2); }
.skill-row:last-child .skill-cell.on { background: var(--red); color: var(--ink); }
.trips { display: flex; flex-wrap: wrap; gap: 10px 6px; align-items: flex-end; }
.trips li { display: flex; flex-direction: column; gap: 4px; padding-right: 10px; border-right: 1px solid var(--line); }
.trips li:last-child { border-right: 0; }
.trip-time { font-family: var(--font-num); font-size: 12px; color: var(--ink-3); }
.trip-items { display: flex; gap: 2px; }
.build-list { display: grid; gap: 10px; }
.build-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.build-stat { font-size: 13px; color: var(--ink-3); }

/* Kill-kort */
.kill-map { margin: 0; max-width: 460px; }
.kill-map svg { width: 100%; height: auto; display: block; border-radius: var(--radius); background: #12161a; }
.kill-map .map-bg { fill: #12161a; }
.kill-map .kill circle { fill: var(--you); stroke: var(--bg); stroke-width: 2; }
.kill-map .assist circle { fill: none; stroke: var(--you); stroke-width: 1.5; }
.kill-map .death path { stroke: var(--loss); stroke-width: 3; stroke-linecap: round; }
.kill-map figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.key-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 10px; }
.key-dot:first-child { margin-left: 0; }
.key-dot.kill { background: var(--you); }
.key-dot.assist { border: 1.5px solid var(--you); }
.key-x { display: inline-block; width: 10px; height: 10px; margin-left: 10px; background: linear-gradient(45deg, transparent 42%, var(--loss) 42%, var(--loss) 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, var(--loss) 42%, var(--loss) 58%, transparent 58%); }

/* Avancerede tal */
.panel-row { display: grid; gap: 0 36px; }
@media (min-width: 1000px) { .panel-row { grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); } .panel-row > .panel:first-child + .panel { margin-top: 28px; } }
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 28px; }
.highlight dl div, .challenge-grid div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.highlight dt, .challenge-grid dt { color: var(--ink-3); }
.highlight dd, .challenge-grid dd { font-family: var(--font-num); font-weight: 600; text-align: right; }
.challenge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 28px; margin-top: 10px; }

/* Scoreboard */
.scoreboards { display: grid; gap: 22px; }
.scoreboard caption { text-align: left; font-family: var(--font-display); font-size: 22px; letter-spacing: 0.02em; padding: 0 0 8px 10px; border-left: 4px solid var(--line-2); margin-bottom: 6px; }
.scoreboard.blue caption { border-left-color: var(--blue-side); }
.scoreboard.red caption { border-left-color: var(--red-side); }
.scoreboard th, .scoreboard td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; vertical-align: middle; }
.scoreboard thead th { color: var(--ink-3); font-weight: 500; font-size: 12px; }
.scoreboard tbody th { font-weight: 400; }
.scoreboard tr.focus { background: rgba(245, 240, 232, 0.05); }
.sb-player { display: flex; align-items: center; gap: 8px; min-width: 210px; }
.sb-name { display: flex; flex-direction: column; min-width: 0; }
.player-link { text-decoration: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.player-link:hover { text-decoration: underline; }
.player-link .tagline { font-weight: 400; font-size: 12px; }
.sb-analyze { font-size: 12px; color: var(--ink-3); }
.kda-small { font-family: var(--font-num); font-weight: 600; white-space: nowrap; }
.dmg-bar { display: block; height: 4px; background: var(--panel-2); border-radius: 0 2px 2px 0; margin-top: 4px; width: 90px; }
.dmg-bar span { display: block; height: 100%; background: var(--ink-2); border-radius: 0 2px 2px 0; }
.scoreboards .table-scroll, .scoreboards { overflow-x: auto; }
.scoreboard { min-width: 760px; }

.matchups { display: grid; gap: 8px; }
.matchup { display: grid; grid-template-columns: 1fr minmax(200px, 1.1fr) 1fr; align-items: center; gap: 12px; padding: 10px 12px; background: var(--panel); border-radius: var(--radius); }
.mu-side { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; }
.mu-name .player-link { display: block; max-width: 100%; }
.mu-side.red { justify-content: flex-end; text-align: right; }
.mu-name { min-width: 0; }
.mu-mid { text-align: center; }
.mu-mid p { margin: 0; }
.mu-pos { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.mu-diff { font-size: 14px; }
.mu-diff .lead.blue { color: var(--win-text); }
.mu-diff .lead.red { color: var(--loss-text); }
.mu-bar { display: block; height: 6px; margin-top: 6px; background: rgba(224, 93, 93, 0.6); border-radius: 3px; overflow: hidden; }
.mu-bar .b { display: block; height: 100%; background: var(--blue-side); border-right: 2px solid var(--panel); }
@media (max-width: 700px) {
  .matchup { grid-template-columns: 1fr 1fr; }
  .mu-mid { grid-column: 1 / -1; grid-row: 2; }
}
.objectives { margin-bottom: 18px; max-width: 760px; }
.objectives th, .objectives td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: center; font-size: 14px; }
.objectives thead th { color: var(--ink-3); font-weight: 500; font-size: 12px; }
.objectives tbody th { text-align: left; font-weight: 600; }
.objectives tr.blue th { box-shadow: inset 3px 0 var(--blue-side); padding-left: 10px; }
.objectives tr.red th { box-shadow: inset 3px 0 var(--red-side); padding-left: 10px; }
.objectives .first { display: inline-block; margin-left: 4px; font-size: 10px; padding: 0 4px; border-radius: 3px; background: var(--panel-3); color: var(--ink-2); vertical-align: 0.15em; }

/* ---------- Champions ---------- */
.tier-table th, .tier-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; font-size: 14px; white-space: nowrap; }
.tier-table thead th { color: var(--ink-3); font-weight: 500; font-size: 12px; }
.tier-table thead th[data-sort] { cursor: pointer; user-select: none; }
.tier-table thead th[aria-sort='descending']::after { content: ' ▼' / ''; font-size: 9px; }
.tier-table thead th[aria-sort='ascending']::after { content: ' ▲' / ''; font-size: 9px; }
.tier-table th:first-child, .tier-table td:first-child { text-align: left; padding-left: 0; }
.tier-table tbody tr:hover { background: rgba(245, 240, 232, 0.03); }
.filter input { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 7px 12px; width: 220px; }
.champ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 10px; }
.champ-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; font-size: 13px; color: var(--ink-2); text-align: center; }
.champ-grid a:hover { color: var(--ink); }
.champ-grid li[hidden] { display: none; }
.champ-hero { position: relative; margin-top: 12px; padding: 40px 28px 24px; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.champ-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(15, 15, 15, 0.97) 30%, rgba(15, 15, 15, 0.6)), var(--splash, none); background-size: cover; background-position: center 20%; }
.champ-hero > * { position: relative; }
.champ-hero-inner { display: flex; align-items: flex-end; gap: 20px; }
.champ-hero h1 { font-size: clamp(54px, 9vw, 96px); line-height: 0.88; }
.champ-title { color: var(--ink-2); font-size: 18px; margin: 4px 0 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12px; padding: 2px 9px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); text-transform: capitalize; }
.champ-hero .roles { margin-top: 20px; }
.rank-table th, .rank-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; font-size: 14px; }
.rank-table thead th { color: var(--ink-3); font-weight: 500; font-size: 12px; }
.rank-table tbody th, .rank-table thead th:first-child { text-align: left; font-weight: 600; padding-left: 0; }
.matchup-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px 36px; }
.matchup-cols h3 { margin-bottom: 10px; color: var(--ink-2); font-size: 15px; }
.mu-list li { display: grid; grid-template-columns: 1fr auto 80px; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mu-list .sub { display: inline; text-align: right; }
.abilities { display: grid; gap: 18px; }
.abilities li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.abilities img { border-radius: 6px; background: var(--panel-3); }
.abilities h3 { margin-bottom: 4px; }
.abilities .slot { display: inline-block; min-width: 28px; margin-right: 10px; font-family: var(--font-num); color: var(--ink-3); }
.abilities p { color: var(--ink-2); max-width: 78ch; font-size: 15px; }
.abilities p.sub { font-size: 13px; }
.tips { display: grid; gap: 10px; }
.tips li { color: var(--ink-2); padding-left: 16px; position: relative; max-width: 70ch; }
.tips li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; background: var(--red); border-radius: 1px; }
.coverage { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 18px 0; }
.coverage dt { font-size: 13px; color: var(--ink-3); }
.coverage dd { font-family: var(--font-num); font-weight: 600; font-size: 22px; }
.tier-coverage { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tier-coverage li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--panel); border-radius: var(--radius); font-size: 14px; }
.tier-coverage strong { margin-left: auto; font-family: var(--font-num); }
.bench-table th, .bench-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: right; font-size: 14px; white-space: nowrap; }
.bench-table thead th { color: var(--ink-3); font-weight: 500; font-size: 12px; }
.bench-table tbody th { text-align: left; padding-left: 0; font-weight: 500; }
.tier-name { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Deadlock ---------- */
.hero-icon { display: inline-block; line-height: 0; flex: none; }
.hero-icon img { border-radius: 6px; background: var(--panel-3); display: block; object-fit: cover; }
.dl-rank { display: inline-flex; align-items: center; gap: 6px; }
.stat-tiles { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-bottom: 14px; }
.stat-tiles dt { font-size: 13px; color: var(--ink-3); }
.stat-tiles dd { font-family: var(--font-display); font-size: 40px; line-height: 1.05; letter-spacing: 0.02em; }
.dl-history th, .dl-history td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; white-space: nowrap; }
.dl-history thead th { color: var(--ink-3); font-weight: 500; font-size: 12px; }
.dl-history tbody th { font-weight: 500; }
.result-chip { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.is-win .result-chip { background: rgba(61, 139, 224, 0.2); color: var(--win-text); }
.is-loss .result-chip { background: rgba(224, 93, 93, 0.18); color: var(--loss-text); }
.dl-history tr.is-win td:first-child { box-shadow: inset 3px 0 var(--win); }
.dl-history tr.is-loss td:first-child { box-shadow: inset 3px 0 var(--loss); }
.dl-hero::before { background-image: linear-gradient(90deg, rgba(15, 15, 15, 0.97) 40%, rgba(40, 30, 20, 0.85)); }
.wr-bars li { grid-template-columns: 130px 1fr 110px; }

/* ---------- Fejlsider ---------- */
.error-page { max-width: 720px; padding-block: 48px; }
.error-page h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 12px; }
.error-code { font-family: var(--font-display); font-size: 22px; color: var(--loss-text); margin-bottom: 4px; }
.error-page .search { margin: 20px 0; }
.status-json { white-space: pre-wrap; font-size: 13px; color: var(--ink-2); background: var(--panel); padding: 16px; border-radius: var(--radius); overflow-x: auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 48px; font-size: 13px; color: var(--ink-3); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; color: var(--ink); letter-spacing: 0.04em; }
.footer-brand .brand-mark { width: 22px; height: 22px; }
.site-footer ul { display: grid; gap: 6px; }
.site-footer a { color: var(--ink-2); }
.legal { grid-column: span 2; }
.legal p { max-width: 80ch; }
@media (max-width: 720px) { .legal { grid-column: auto; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .h2h-bars .bar span, .wr-w, .rb-track span { background: CanvasText !important; }
}
