*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* League client ("Hextech") palette */
:root {
  --hextech-black: #010a13;
  --blue-7: #0a1428;
  --blue-6: #091428;
  --blue-5: #0a323c;
  --blue-4: #005a82;
  --blue-3: #0397ab;
  --blue-2: #0ac8b9;
  --blue-1: #cdfafa;
  --gold-6: #32281e;
  --gold-5: #463714;
  --gold-4: #785a28;
  --gold-3: #c89b3c;
  --gold-2: #c8aa6e;
  --gold-1: #f0e6d2;
  --grey-cool: #1e282d;
  --grey-3: #1e2328;
  --grey-2: #3c3c41;
  --grey-15: #5b5a56;
  --grey-1: #a09b8c;
  --red: #e84057;
  --orange: #d8823a;

  --panel: rgba(1, 10, 19, 0.82);
  --gold-edge: linear-gradient(180deg, var(--gold-2), var(--gold-4));

  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;
}

html { background: var(--hextech-black); }
body {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(10, 50, 60, 0.45), transparent 70%),
    var(--hextech-black);
  color: var(--gold-1);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
main { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 24px 72px; flex: 1; position: relative; z-index: 1; }

/* Champion splash behind the page, faded out like the client's profile backdrop */
.backdrop {
  position: fixed; inset: 0 0 auto 0; height: 78vh; z-index: 0; pointer-events: none;
  background-size: cover; background-position: center 20%;
  opacity: 0; transition: opacity 0.8s ease;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 55%, transparent 100%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 55%, transparent 100%);
}
.backdrop.is-visible { opacity: 0.32; }
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--hextech-black) 0%, transparent 30%, transparent 70%, var(--hextech-black) 100%);
}

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 32px;
  background: linear-gradient(180deg, rgba(1,10,19,0.98), rgba(1,10,19,0.88));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gold-5);
}
.topbar::after {  /* thin gold highlight in the middle of the bar edge */
  content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-3), transparent);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.06em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-4));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Inputs & buttons ────────────────────────────────────────────────────── */
.hex-search {
  display: flex; align-items: stretch; width: 100%;
  background: rgba(1, 10, 19, 0.9);
  border: 1px solid var(--gold-4);
  box-shadow: inset 0 0 0 1px rgba(1,10,19,1), 0 0 24px rgba(0,0,0,0.6);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hex-search:focus-within { border-color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(1,10,19,1), 0 0 18px rgba(200,170,110,0.18); }
.hex-search input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: var(--gold-1); font: 500 16px var(--font-body); padding: 14px 14px; letter-spacing: 0.02em;
}
.hex-search input::placeholder { color: var(--grey-15); }
.region-select {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; cursor: pointer; outline: none;
  background: var(--grey-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23c8aa6e' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: none; border-right: 1px solid var(--gold-5);
  color: var(--gold-2); font: 700 13px var(--font-body); letter-spacing: 0.08em;
  padding: 0 30px 0 14px;
}
.region-select:focus-visible { color: var(--gold-1); }
.region-select option { background: var(--grey-3); color: var(--gold-1); }

.btn-hex {
  position: relative; flex-shrink: 0; cursor: pointer;
  font: 700 14px var(--font-display); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-1); background: linear-gradient(180deg, var(--grey-3), #10161b);
  border: none; padding: 0 26px;
  box-shadow: inset 0 0 0 1px var(--gold-4);
  transition: color 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-hex:hover, .btn-hex:focus-visible {
  outline: none; color: #fff;
  box-shadow: inset 0 0 0 1px var(--gold-2), inset 0 0 14px rgba(200,170,110,0.25);
}
.btn-hex-primary {
  background: linear-gradient(180deg, var(--blue-5), var(--blue-6));
  color: var(--blue-1);
  box-shadow: inset 0 0 0 1px var(--blue-3), inset 0 -10px 18px rgba(10,200,185,0.12);
}
.btn-hex-primary:hover, .btn-hex-primary:focus-visible {
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--blue-2), inset 0 -10px 22px rgba(10,200,185,0.3), 0 0 16px rgba(10,200,185,0.25);
}
.btn-ghost {
  background: none; cursor: pointer; padding: 8px 18px;
  font: 600 12px var(--font-body); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--grey-1); border: 1px solid var(--grey-2);
  transition: color 0.15s, border-color 0.15s;
}
.btn-ghost:hover { color: var(--gold-1); border-color: var(--gold-4); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 120px 0 100px;
}
.hero-kicker {
  font: 600 22px var(--font-display); letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 6px;
}
.hero-title {
  font: 800 92px/1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase;
  background: linear-gradient(180deg, #fffaf0 0%, var(--gold-1) 30%, var(--gold-2) 60%, var(--gold-4) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.8));
  margin-bottom: 44px;
}
.hero .hex-search { max-width: 560px; height: 56px; }
.hero-tags {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0;
  margin-top: 34px;
}
.hero-tags li {
  font: 600 12px var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-1);
  display: flex; align-items: center;
}
.hero-tags li + li::before {
  content: ""; width: 6px; height: 6px; margin: 0 14px; transform: rotate(45deg);
  background: var(--gold-4); display: inline-block;
}
.error-msg {
  margin-top: 18px; padding: 10px 16px; max-width: 560px; width: 100%;
  color: #ffd5db; font-size: 14px; text-align: center;
  background: rgba(232, 64, 87, 0.1); border: 1px solid rgba(232, 64, 87, 0.45);
}

/* ── Queue (loading) ─────────────────────────────────────────────────────── */
.queue { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 110px 0 80px; gap: 14px; }
.queue-ring { position: relative; width: 132px; height: 132px; margin-bottom: 10px; display: grid; place-items: center; }
.queue-ring-outer, .queue-ring-inner { position: absolute; border-radius: 50%; }
.queue-ring-outer {
  inset: 0; border: 2px solid var(--gold-5); border-top-color: var(--gold-2); border-right-color: var(--gold-3);
  animation: spin 1.6s linear infinite;
}
.queue-ring-inner {
  inset: 12px; border: 1px solid var(--blue-5); border-bottom-color: var(--blue-2);
  box-shadow: 0 0 22px rgba(10,200,185,0.15), inset 0 0 22px rgba(10,200,185,0.12);
  animation: spin 2.4s linear infinite reverse;
}
.queue-time { font: 600 28px var(--font-body); color: var(--gold-1); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
@keyframes spin { to { transform: rotate(360deg); } }
.queue-title { font: 700 26px var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-1); }
.queue-detail { color: var(--grey-1); font-size: 14px; max-width: 440px; min-height: 21px; }
.progress-track { width: 100%; max-width: 340px; height: 4px; background: var(--grey-3); border: 1px solid var(--gold-6); margin: 6px 0 12px; }
.progress-bar {
  height: 100%; width: 0; transition: width 0.4s ease;
  background: linear-gradient(90deg, var(--blue-4), var(--blue-2));
  box-shadow: 0 0 10px rgba(10,200,185,0.6);
}

/* ── Dashboard ───────────────────────────────────────────────────────────── */
.dashboard { display: flex; flex-direction: column; gap: 34px; padding-top: 40px; }

/* Summoner banner */
.summoner-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 8px 0 26px; border-bottom: 1px solid var(--gold-5); position: relative;
}
.summoner-banner::after {
  content: ""; position: absolute; left: 0; width: 180px; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--gold-2), transparent);
}
.summoner-id { display: flex; align-items: center; gap: 22px; min-width: 0; }
.avatar { position: relative; flex-shrink: 0; width: 96px; height: 96px; }
.avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
  border: 2px solid var(--gold-3); box-shadow: 0 0 0 3px var(--hextech-black), 0 0 0 4px var(--gold-5), 0 6px 20px rgba(0,0,0,0.6);
  background: var(--grey-3);
}
.avatar-level {
  position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
  min-width: 44px; padding: 1px 8px; text-align: center;
  font: 600 12px var(--font-body); color: var(--gold-1); letter-spacing: 0.04em;
  background: var(--hextech-black); border: 1px solid var(--gold-4);
}
.summoner-name {
  font: 700 34px/1.1 var(--font-display); color: var(--gold-1); letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9); overflow-wrap: anywhere;
}
.summoner-tag { font: 500 18px var(--font-body); color: var(--grey-1); margin-left: 6px; letter-spacing: 0.02em; }
.rank-line { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.rank-emblem { width: 52px; height: 52px; margin: -6px 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.7)); }
.rank-tier { font: 700 15px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.rank-lp { font-size: 13px; color: var(--grey-1); }

.verdict-banner { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.verdict-kicker { font: 600 11px var(--font-body); letter-spacing: 0.3em; text-transform: uppercase; color: var(--grey-1); margin-bottom: 2px; }
.verdict-word {
  font: 800 40px/1.05 var(--font-display); text-transform: uppercase; letter-spacing: 0.04em;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.verdict-win .verdict-word {
  background-image: linear-gradient(180deg, #ffffff 0%, var(--blue-1) 35%, var(--blue-2) 100%);
  filter: drop-shadow(0 0 14px rgba(10,200,185,0.35));
}
.verdict-loss .verdict-word {
  background-image: linear-gradient(180deg, #ffe3e7 0%, #ff8a9b 40%, var(--red) 100%);
  filter: drop-shadow(0 0 14px rgba(232,64,87,0.35));
}
.verdict-unknown .verdict-word { background-image: linear-gradient(180deg, var(--gold-1), var(--grey-1)); }
.verdict-reason { margin-top: 6px; font-size: 13px; color: var(--grey-1); max-width: 360px; }

/* Big meme verdict */
.verdict-panel {
  display: flex; align-items: center; gap: 30px; padding: 22px;
  background: linear-gradient(90deg, rgba(30,35,40,0.92), rgba(1,10,19,0.75));
  border: 1px solid var(--gold-5); position: relative;
}
.verdict-panel::before {  /* gold corner accents */
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background:
    linear-gradient(var(--gold-2), var(--gold-2)) top left / 22px 2px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) top left / 2px 22px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) bottom right / 22px 2px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) bottom right / 2px 22px no-repeat;
}
.verdict-gif {
  width: 240px; height: 150px; object-fit: cover; flex-shrink: 0; display: block;
  border: 1px solid var(--gold-4); box-shadow: 0 0 0 3px var(--hextech-black), 0 0 0 4px var(--gold-5);
}
.verdict-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.verdict-label { font: 600 11px var(--font-body); letter-spacing: 0.3em; text-transform: uppercase; color: var(--grey-1); }
.verdict-title { font: 800 46px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; }
.verdict-line { color: var(--grey-1); font-size: 14px; }
.int-headline { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
.int-number { font: 800 64px/1 var(--font-display); color: var(--tone); text-shadow: 0 0 22px var(--tone-glow); font-variant-numeric: tabular-nums; }
.int-of { font: 600 18px var(--font-body); color: var(--grey-15); margin-left: -8px; }
.int-headline .verdict-title { font-size: 34px; }
.int-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 4px 0 2px; }
.int-part { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.int-part-head { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-1); }
.int-part-head strong { color: var(--tone); font-size: 14px; letter-spacing: 0; }
.int-part-detail { font-size: 12px; color: var(--grey-15); }
.verdict-line strong { color: var(--gold-1); font-weight: 700; }

/* Tones for the five verdict categories */
.tone-0 { --tone: #f0d590; --tone-glow: rgba(240,213,144,0.35); }
.tone-1 { --tone: var(--blue-2); --tone-glow: rgba(10,200,185,0.3); }
.tone-2 { --tone: var(--grey-1); --tone-glow: rgba(160,155,140,0.2); }
.tone-3 { --tone: var(--orange); --tone-glow: rgba(216,130,58,0.3); }
.tone-4 { --tone: var(--red); --tone-glow: rgba(232,64,87,0.35); }
.verdict-title, .lane-verdict, .lane-pct { color: var(--tone); text-shadow: 0 0 16px var(--tone-glow); }

/* Section headings: "──── TITLE ────" like the client */
.block { display: flex; flex-direction: column; }
.section-title {
  display: flex; align-items: center; gap: 16px;
  font: 700 15px var(--font-display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-2);
}
.section-title::before, .section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-5)); }
.section-title::after { background: linear-gradient(90deg, var(--gold-5), transparent); }
.section-sub { text-align: center; color: var(--grey-15); font-size: 13px; margin: 6px 0 18px; }

/* Lane rows */
.lane-list { display: flex; flex-direction: column; gap: 6px; }
.lane-row {
  display: grid; align-items: center; gap: 18px;
  grid-template-columns: 40px 190px minmax(80px, 1fr) 58px 128px 210px 92px;
  padding: 12px 18px 12px 14px;
  background: linear-gradient(90deg, rgba(30,35,40,0.9), rgba(1,10,19,0.7));
  border: 1px solid var(--grey-3); border-left: 3px solid var(--tone);
  transition: border-color 0.15s, background 0.15s;
}
.lane-row:hover { border-color: var(--gold-5); border-left-color: var(--tone); }
.lane-row.is-self {
  background: linear-gradient(90deg, rgba(70,55,20,0.45), rgba(1,10,19,0.7));
  border-color: var(--gold-4); border-left-color: var(--tone);
  box-shadow: 0 0 18px rgba(200,170,110,0.12);
}
.lane-icon { width: 34px; height: 34px; opacity: 0.85; }
.lane-row.is-self .lane-icon { filter: sepia(1) saturate(2.5) hue-rotate(5deg) brightness(1.1); opacity: 1; }
.lane-name { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.lane-name-main { display: flex; align-items: center; gap: 8px; font: 700 16px var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-1); }
.lane-games { font-size: 12px; color: var(--grey-15); margin-top: 2px; }
.lane-row.is-self .lane-name-main { color: #f0d590; }
.lane-row.is-self .lane-games { color: var(--grey-1); }
.lane-bar { height: 6px; background: var(--grey-3); border: 1px solid var(--gold-6); position: relative; }
.lane-bar > div { height: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 45%, transparent), var(--tone)); box-shadow: 0 0 8px var(--tone-glow); }
.lane-pct { font: 700 22px var(--font-body); text-align: right; font-variant-numeric: tabular-nums; }
.lane-verdict { font: 700 13px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; display: flex; flex-direction: column; }
.lane-verdict small { font: 500 11px var(--font-body); letter-spacing: 0.02em; text-transform: none; color: var(--grey-15); text-shadow: none; margin-top: 1px; }
.lane-diffs { display: flex; gap: 14px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lane-kda { font-size: 12px; font-weight: 600; text-align: right; color: var(--grey-1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--blue-2); }
.neg { color: var(--red); }
.empty-note { color: var(--grey-1); text-align: center; padding: 20px; border: 1px dashed var(--grey-2); }

/* Evidence tabs — like the client's top navigation */
.view-tabs { display: flex; justify-content: center; gap: 4px; margin: 14px 0 6px; border-bottom: 1px solid var(--gold-6); }
.view-tab {
  position: relative; cursor: pointer; background: none; border: none; padding: 10px 18px 12px;
  font: 700 13px var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-1);
  transition: color 0.15s;
}
.view-tab:hover { color: var(--gold-1); }
.view-tab[aria-selected="true"] { color: var(--gold-1); }
.view-tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  box-shadow: 0 0 10px rgba(200,170,110,0.6);
}
.view { display: flex; flex-direction: column; }
.view .frame-title { margin: 26px 0 10px; }

/* Game by game */
.inter-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.inter-stat {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  padding: 18px 12px; background: rgba(30,35,40,0.75); border: 1px solid var(--grey-3); position: relative;
}
.inter-stat::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--gold-edge); }
.inter-num { font: 700 38px/1 var(--font-display); color: var(--gold-1); font-variant-numeric: tabular-nums; }
.inter-num small { font: 600 16px var(--font-body); color: var(--grey-15); margin-left: 3px; }
.inter-cap { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-1); }
.inter-stat.is-bad .inter-num { color: var(--red); text-shadow: 0 0 16px rgba(232,64,87,0.35); }
.inter-stat.is-good .inter-num { color: var(--blue-2); text-shadow: 0 0 16px rgba(10,200,185,0.3); }

.count-list { display: flex; flex-direction: column; gap: 4px; }
.count-row {
  --tone: var(--red); --tone-glow: rgba(232,64,87,0.3);
  display: grid; grid-template-columns: 28px 110px 1fr 44px; align-items: center; gap: 14px;
  padding: 8px 14px; background: rgba(30,35,40,0.6); border: 1px solid var(--grey-3);
}
.count-row.is-self { border-color: var(--gold-4); background: rgba(70,55,20,0.35); }
.count-icon { width: 24px; height: 24px; opacity: 0.85; }
.count-icon-you { display: block; width: 14px; height: 14px; margin: 5px; transform: rotate(45deg); background: linear-gradient(135deg, var(--gold-1), var(--gold-3)); }
.count-label { font: 700 14px var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-1); }
.count-row.is-self .count-label { color: #f0d590; }
.count-num { font: 700 16px var(--font-body); text-align: right; color: var(--gold-1); font-variant-numeric: tabular-nums; }

.match-list { display: flex; flex-direction: column; gap: 4px; }
.match-row {
  display: grid; grid-template-columns: 110px 64px 120px 120px 1fr; align-items: center; gap: 16px;
  padding: 8px 16px 8px 14px; border: 1px solid var(--grey-3); border-left-width: 3px;
}
.match-row.is-win { background: linear-gradient(90deg, rgba(10,50,60,0.75), rgba(1,10,19,0.6)); border-left-color: var(--blue-2); }
.match-row.is-loss { background: linear-gradient(90deg, rgba(70,20,30,0.6), rgba(1,10,19,0.6)); border-left-color: var(--red); }
.match-result, .match-kda, .match-place, .match-inter { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.match-outcome { font: 700 14px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.is-win .match-outcome { color: var(--blue-2); }
.is-loss .match-outcome { color: var(--red); }
.match-meta { font-size: 12px; color: var(--grey-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-champ { position: relative; width: 48px; height: 48px; }
.match-champ-icon { width: 48px; height: 48px; border: 1px solid var(--gold-4); display: block; }
.match-pos {
  position: absolute; right: -8px; bottom: -6px; width: 22px; height: 22px; padding: 2px;
  background: var(--hextech-black); border: 1px solid var(--gold-5); border-radius: 50%;
}
.match-kda-line { font: 700 15px var(--font-body); color: var(--gold-1); font-variant-numeric: tabular-nums; }
.match-place-num { font: 700 18px var(--font-display); color: var(--grey-1); }
.match-place.is-best .match-place-num { color: #f0d590; text-shadow: 0 0 12px rgba(240,213,144,0.35); }
.match-place.is-worst .match-place-num { color: var(--red); text-shadow: 0 0 12px rgba(232,64,87,0.35); }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 2px; }
.who-icon { width: 24px; height: 24px; border: 1px solid var(--gold-5); flex-shrink: 0; }
.who-name { font-weight: 600; color: var(--gold-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-role { font-size: 12px; color: var(--grey-15); }
.who-none { font-size: 13px; color: var(--grey-15); font-style: italic; }
.who-you {
  font: 700 12px var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; padding: 2px 8px;
  color: #fff; background: linear-gradient(180deg, #ff6b7f, var(--red)); box-shadow: 0 0 12px rgba(232,64,87,0.45);
}

/* You vs team */
.versus { display: flex; flex-direction: column; gap: 6px; }
.versus-row {
  display: grid; grid-template-columns: 210px 1fr 70px; align-items: center; gap: 20px;
  padding: 16px 20px; background: linear-gradient(90deg, rgba(30,35,40,0.9), rgba(1,10,19,0.7));
  border: 1px solid var(--grey-3); border-left: 3px solid var(--tone);
}
.versus-row.is-self { background: linear-gradient(90deg, rgba(70,55,20,0.45), rgba(1,10,19,0.7)); border-color: var(--gold-4); border-left-color: var(--tone); }
.versus-row.is-self .lane-name-main { color: #f0d590; }
.versus-row .lane-bar { height: 10px; }
.versus-row .lane-pct { font-size: 26px; }
.versus-verdict { margin-top: 18px; text-align: center; font: 700 18px var(--font-display); letter-spacing: 0.04em; color: var(--gold-1); }

/* Full stats */
.section-toggle { cursor: pointer; list-style: none; user-select: none; padding: 6px 0; }
.section-toggle::-webkit-details-marker { display: none; }
.section-toggle span::after { content: "▾"; margin-left: 10px; font-size: 12px; display: inline-block; transition: transform 0.2s; }
details:not([open]) > .section-toggle span::after { transform: rotate(-90deg); }
.section-toggle:hover { color: var(--gold-1); }
.more-stats-body { display: flex; flex-direction: column; gap: 22px; padding-top: 22px; }

.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.stat-tile {
  padding: 14px 16px; background: rgba(30,35,40,0.75); border: 1px solid var(--grey-3); position: relative;
}
.stat-tile::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--gold-edge); }
.stat-label { font: 600 11px var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-1); margin-bottom: 4px; }
.stat-value { font: 700 22px var(--font-body); color: var(--gold-1); font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 13px; color: var(--grey-1); margin-top: 2px; }

.frame { background: rgba(1,10,19,0.75); border: 1px solid var(--gold-6); padding: 18px 20px; }
.frame-title { font: 700 13px var(--font-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px; }

.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.data-table th {
  text-align: left; padding: 6px 12px 10px; font: 600 11px var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-15);
  border-bottom: 1px solid var(--gold-5);
}
.data-table td { padding: 9px 12px; border-bottom: 1px solid var(--grey-3); color: var(--gold-1); }
.data-table tbody tr:hover td { background: rgba(200,170,110,0.05); }
.champ-cell { display: flex; align-items: center; gap: 12px; font-weight: 600; white-space: nowrap; }
.champ-icon { width: 32px; height: 32px; border: 1px solid var(--gold-4); background: var(--grey-3); }

.metric-selector { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }
.metric-btn {
  cursor: pointer; padding: 6px 14px; background: var(--grey-3); border: 1px solid var(--grey-2);
  font: 600 12px var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-1);
  transition: color 0.15s, border-color 0.15s;
}
.metric-btn:hover { color: var(--gold-1); border-color: var(--gold-4); }
.metric-btn.active { color: var(--gold-1); border-color: var(--gold-2); background: linear-gradient(180deg, rgba(200,170,110,0.18), rgba(200,170,110,0.04)); }
.chart-box { position: relative; }

/* Footer */
.legal {
  position: relative; z-index: 1;
  border-top: 1px solid var(--gold-6); padding: 22px 24px 28px;
  text-align: center; font-size: 11px; line-height: 1.6; color: var(--grey-15);
}

/* Utilities */
.hidden { display: none !important; }
::selection { background: var(--gold-4); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--hextech-black); }
::-webkit-scrollbar-thumb { background: var(--gold-5); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .lane-row { grid-template-columns: 36px 1fr 56px; grid-template-areas: "icon name pct" "bar bar bar" "verdict diffs kda"; row-gap: 8px; }
  .lane-row .lane-icon { grid-area: icon; }
  .lane-row .lane-name { grid-area: name; }
  .lane-row .lane-pct { grid-area: pct; }
  .lane-row .lane-bar { grid-area: bar; }
  .lane-row .lane-verdict { grid-area: verdict; }
  .lane-row .lane-diffs { grid-area: diffs; justify-content: center; }
  .lane-row .lane-kda { grid-area: kda; }
  .match-row { grid-template-columns: 96px 56px 104px 100px 1fr; gap: 12px; }
}
@media (max-width: 700px) {
  .topbar { padding: 10px 16px; flex-wrap: wrap; }
  .hex-search-compact { order: 3; }
  main { padding: 0 16px 56px; }
  .hero { padding: 72px 0 64px; }
  .hero-kicker { font-size: 16px; }
  .hero-title { font-size: 52px; margin-bottom: 32px; }
  .hero .hex-search { height: 52px; }
  .btn-hex { padding: 0 16px; }
  .hero-tags li { font-size: 11px; letter-spacing: 0.1em; }
  .hero-tags li + li::before { margin: 0 9px; }
  .summoner-banner { flex-direction: column; align-items: flex-start; }
  .verdict-banner { align-items: flex-start; text-align: left; }
  .avatar { width: 76px; height: 76px; }
  .summoner-name { font-size: 26px; }
  .verdict-word { font-size: 32px; }
  .verdict-panel { flex-direction: column; align-items: stretch; padding: 16px; gap: 18px; }
  .verdict-gif { width: 100%; height: 180px; }
  .verdict-title, .int-headline .verdict-title { font-size: 28px; }
  .int-number { font-size: 52px; }
  .int-parts { grid-template-columns: 1fr; gap: 10px; }
  .lane-row { grid-template-columns: 30px 1fr 52px; grid-template-areas: "icon name pct" "bar bar bar" "verdict verdict kda" "diffs diffs diffs"; padding: 12px; gap: 8px 12px; }
  .lane-row .lane-icon { width: 28px; height: 28px; }
  .lane-row .lane-diffs { justify-content: flex-start; }
  .view-tab { padding: 10px 10px 12px; font-size: 12px; letter-spacing: 0.08em; }
  .inter-summary { gap: 6px; }
  .inter-stat { padding: 12px 6px; }
  .inter-num { font-size: 28px; }
  .inter-cap { font-size: 10px; letter-spacing: 0.06em; }
  .count-row { grid-template-columns: 24px 80px 1fr 36px; gap: 10px; padding: 8px 10px; }
  .match-row { grid-template-columns: 52px 1fr auto; grid-template-areas: "champ kda place" "champ result inter"; gap: 4px 14px; padding: 10px 12px; }
  .match-champ { grid-area: champ; }
  .match-result { grid-area: result; }
  .match-kda { grid-area: kda; }
  .match-place { grid-area: place; align-items: flex-end; }
  .match-inter { grid-area: inter; align-items: flex-end; }
  .match-inter > .match-meta { display: none; }
  .who-name { max-width: 90px; }
  .versus-row { grid-template-columns: 1fr 64px; grid-template-areas: "name pct" "bar bar"; gap: 10px; padding: 14px; }
  .versus-row .lane-name { grid-area: name; }
  .versus-row .lane-bar { grid-area: bar; }
  .versus-row .lane-pct { grid-area: pct; }
}
@media (min-width: 701px) {
  .hex-search-compact { max-width: 380px; height: 40px; }
  .hex-search-compact input { font-size: 14px; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .queue-ring-outer, .queue-ring-inner { animation-duration: 6s; }
  .backdrop, .progress-bar { transition: none; }
}
