:root {
  color-scheme: dark;
  --bg: #080b12;
  --surface: #0e131d;
  --surface-2: #131a25;
  --surface-3: #192230;
  --line: #222d3c;
  --line-soft: rgba(255,255,255,.07);
  --text: #f5f8fb;
  --muted: #8490a2;
  --muted-2: #5f6a79;
  --accent: #b8f53e;
  --accent-strong: #caff58;
  --accent-soft: rgba(184,245,62,.11);
  --blue: #50a5ff;
  --red: #ff5d6c;
  --gold: #f3bd55;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% -20%, rgba(77,110,139,.16), transparent 32%),
    linear-gradient(145deg, #070a10 0%, #0a0e16 60%, #080c13 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

button, input, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 104px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 24px 14px;
  background: rgba(8,12,19,.93);
  border-right: 1px solid var(--line-soft);
  backdrop-filter: blur(22px);
  z-index: 50;
}

.brand { display: grid; justify-items: center; gap: 8px; background: transparent; border: 0; cursor: pointer; }
.brand-mark, .mobile-brand span, .modal-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #0a0e13;
  background: var(--accent);
  font-weight: 950;
  font-style: italic;
  font-size: 23px;
  clip-path: polygon(17% 0,100% 0,83% 100%,0 100%);
  box-shadow: 0 0 30px rgba(184,245,62,.2);
}
.brand-name { color: #aab3c0; font-size: 9px; font-weight: 900; letter-spacing: .18em; }

.primary-nav { display: grid; gap: 10px; margin-top: 58px; }
.nav-item {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 67px;
  padding: 11px 4px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  transition: .2s ease;
}
.nav-item svg, .icon-button svg { width: 21px; height: 21px; fill: currentColor; }
.nav-item span { font-size: 9px; font-weight: 800; letter-spacing: .045em; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.035); }
.nav-item.is-active { color: var(--accent); background: var(--accent-soft); }
.nav-item.is-active::before { content: ""; position: absolute; left: -14px; top: 17px; width: 3px; height: 32px; border-radius: 0 4px 4px 0; background: var(--accent); box-shadow: 0 0 16px rgba(184,245,62,.5); }
.nav-item .live-dot { position: absolute; top: 10px; right: 22px; width: 6px; height: 6px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(255,93,108,.12), 0 0 15px rgba(255,93,108,.6); }

.sidebar-bottom { display: grid; justify-items: center; gap: 16px; margin-top: auto; }
.icon-button, .avatar-button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.icon-button { color: var(--muted); }
.avatar-button { color: #10150a; background: linear-gradient(135deg, #e7ffb1, var(--accent)); border: 2px solid #2c3920; font-size: 11px; font-weight: 900; }

.main-column { min-height: 100vh; margin-left: 104px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 78px;
  padding: 0 34px;
  display: grid;
  grid-template-columns: minmax(340px, 580px) 1fr;
  align-items: center;
  gap: 24px;
  background: rgba(8,12,18,.82);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(22px);
}
.mobile-brand, .mobile-menu { display: none; }
.global-search-wrap { position: relative; width: 100%; z-index: 55; }
.summoner-search { display: flex; align-items: center; height: 45px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; transition: .2s ease; }
.summoner-search:focus-within { border-color: rgba(184,245,62,.5); box-shadow: 0 0 0 3px rgba(184,245,62,.07); }
.summoner-search.is-loading { border-color: rgba(184,245,62,.45); }
.summoner-search.is-loading .search-icon svg { animation: spin .75s linear infinite; }
.region-select { height: 100%; display: flex; align-items: center; padding: 0 10px 0 13px; border-right: 1px solid var(--line); }
.region-select select { appearance: none; padding-right: 17px; color: var(--text); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%238490a2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right center/9px; border: 0; font-size: 11px; font-weight: 900; cursor: pointer; }
.search-icon { display: grid; place-items: center; align-self: stretch; padding: 0 11px 0 14px; color: var(--muted); background: transparent; border: 0; cursor: pointer; }
.search-icon:hover { color: var(--accent); }
.search-icon svg { width: 18px; height: 18px; fill: currentColor; }
.summoner-search input { min-width: 0; flex: 1; height: 100%; color: var(--text); background: transparent; border: 0; outline: 0; }
.summoner-search input::placeholder { color: #657184; }
kbd { margin-right: 11px; padding: 4px 7px; color: #778293; border: 1px solid #2a3442; border-bottom-width: 2px; border-radius: 5px; font: 9px/1 Inter, sans-serif; letter-spacing: .04em; }
.top-search-suggestions { position: absolute; top: calc(100% + 9px); left: 0; width: 100%; display: grid; gap: 3px; padding: 6px; background: rgba(18,14,29,.98); border: 1px solid rgba(var(--accent-rgb, 168,130,255),.42); border-radius: 12px; box-shadow: 0 20px 38px rgba(0,0,0,.42); }
.top-search-suggestion { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; color: var(--text); background: transparent; border: 0; border-radius: 8px; cursor: pointer; text-align: left; }
.top-search-suggestion:hover, .top-search-suggestion.is-active { background: rgba(var(--accent-rgb, 168,130,255),.15); }
.top-search-suggestion img { width: 34px; height: 34px; object-fit: cover; border-radius: 8px; }
.top-search-suggestion strong, .top-search-suggestion small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-search-suggestion strong { font-size: 12px; }
.top-search-suggestion strong i { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 800; }
.top-search-suggestion small { margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 700; }
.top-search-suggestion em { padding: 4px 7px; color: var(--accent); background: rgba(var(--accent-rgb, 168,130,255),.12); border: 1px solid rgba(var(--accent-rgb, 168,130,255),.22); border-radius: 5px; font-size: 8px; font-style: normal; font-weight: 900; }
.topbar-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.patch-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font-size: 10px; font-weight: 800; }
.patch-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.ghost-button, .text-button, .arrow-button, .more-button { border: 0; background: transparent; cursor: pointer; }
.ghost-button { padding: 10px 15px; color: var(--text); border: 1px solid #344050; border-radius: 9px; font-size: 11px; font-weight: 800; }
.ghost-button:hover { border-color: var(--accent); color: var(--accent); }

main { width: min(1450px, calc(100% - 64px)); margin: 0 auto; padding: 43px 0 80px; }
.page { display: none; animation: pageIn .28s ease both; }
.page.is-active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 7px; color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .19em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(28px, 3vw, 42px); line-height: 1.06; letter-spacing: -.045em; }
h1 span { color: var(--accent); }
h2 { letter-spacing: -.03em; }
h3 { margin-bottom: 0; font-size: 17px; letter-spacing: -.02em; }
.subheading { margin: 0; color: var(--muted); font-size: 13px; }
.heading-actions { display: flex; align-items: center; gap: 10px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-size: 11px; font-weight: 800; }
.text-button svg { width: 14px; height: 14px; fill: currentColor; }
.text-button.is-spinning svg { animation: spin .7s linear; }
@keyframes spin { to { transform: rotate(360deg); } }
.updated-label { color: var(--muted-2); font-size: 10px; }
.updated-label b { font-weight: inherit; }

.card { background: linear-gradient(145deg, rgba(19,26,37,.98), rgba(13,18,28,.98)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.profile-hero { position: relative; isolation: isolate; min-height: 154px; display: grid; grid-template-columns: minmax(380px,1.7fr) minmax(250px,.8fr) minmax(270px,.75fr); align-items: center; gap: 24px; padding: 29px 34px; overflow: hidden; }
.profile-hero::after { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .06; background-image: linear-gradient(120deg, transparent 40%, #fff 41%, transparent 42%), linear-gradient(60deg, transparent 64%, #fff 65%, transparent 66%); background-size: 140px 140px; }
.profile-glow { position: absolute; z-index: -1; left: -50px; top: -130px; width: 430px; height: 350px; background: radial-gradient(circle, rgba(184,245,62,.16), transparent 66%); pointer-events: none; }
.profile-main { display: flex; align-items: center; min-width: 0; }
.profile-avatar-wrap { position: relative; flex: 0 0 auto; }
.profile-avatar { width: 88px; height: 88px; object-fit: cover; border-radius: 21px; border: 2px solid #3a4a54; box-shadow: 0 0 0 5px rgba(184,245,62,.05); }
.level-chip { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 3px 8px; color: #11170b; background: var(--accent); border: 3px solid var(--surface); border-radius: 999px; font-size: 9px; font-weight: 900; }
.profile-copy { min-width: 0; margin-left: 23px; }
.profile-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.profile-title-row h2 { margin: 0; font-size: 26px; }
.profile-title-row > span:not(.status-chip) { color: var(--muted); font-size: 14px; font-weight: 600; }
.status-chip { display: inline-flex; align-items: center; padding: 4px 7px; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(184,245,62,.18); border-radius: 5px; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.profile-copy > p { margin: 7px 0 15px; color: var(--muted); font-size: 11px; }
.role-chips { display: flex; flex-wrap: wrap; gap: 16px; }
.role-chips span { color: var(--muted); font-size: 9px; }
.role-chips b { margin-right: 4px; color: var(--text); font-size: 9px; }
.rank-block { display: flex; align-items: center; gap: 15px; padding-left: 28px; border-left: 1px solid var(--line); }
.rank-emblem { position: relative; display: grid; place-items: center; width: 76px; height: 82px; }
.rank-emblem img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 9px rgba(0,0,0,.45)); }
.rank-emblem span { position: absolute; top: 47%; left: 50%; z-index: 1; color: #f4f7fb; font: 900 11px/1 Georgia, serif; text-shadow: 0 1px 3px #000; transform: translate(-50%, -50%); }
.rank-block p, .rank-block span { display: block; margin: 0; color: var(--muted); font-size: 9px; }
.rank-block .rank-emblem span { position: absolute; color: #f4f7fb; font: 900 11px/1 Georgia, serif; }
.rank-block strong { display: block; margin: 4px 0 5px; font-size: 18px; }
.season-stats { display: grid; grid-template-columns: repeat(3,1fr); border-left: 1px solid var(--line); }
.season-stats div { text-align: center; }
.season-stats span { display: block; font-size: 21px; font-weight: 800; }
.season-stats small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(310px,.8fr); gap: 18px; margin-top: 18px; }
.performance-card, .champion-focus-card { padding: 25px 27px; }
.profile-tabs { display: flex; gap: 4px; margin-top: 14px; padding: 4px; width: max-content; max-width: 100%; overflow-x: auto; background: #0c111a; border: 1px solid var(--line); border-radius: 9px; }
.profile-tabs button { padding: 8px 14px; color: var(--muted); background: transparent; border: 0; border-radius: 6px; font-size: 10px; font-weight: 900; cursor: pointer; }
.profile-tabs button:hover { color: var(--text); }
.profile-tabs button.is-active { color: #101609; background: var(--accent); }
.profile-summary-card, .champion-pool-card { padding: 20px; }
.summary-winrate { padding: 7px 9px; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(184,245,62,.18); border-radius: 6px; font-size: 10px; font-weight: 900; }
.summary-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; margin-top: 16px; }
.summary-metrics > div { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.summary-metrics span { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .06em; }
.summary-metrics strong { font-size: 13px; }
.champion-pool { display: grid; margin-top: 15px; border-top: 1px solid var(--line); }
.pool-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pool-row img { width: 34px; height: 34px; object-fit: cover; border-radius: 8px; }
.pool-row strong, .pool-row small { display: block; }
.pool-row strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.pool-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.pool-row b { color: var(--accent); font-size: 10px; white-space: nowrap; }
.pool-empty { padding: 17px 0; color: var(--muted); font-size: 10px; text-align: center; }
.champion-stats-card { padding: 24px; }
.stats-table-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.stats-table-header .eyebrow { margin-bottom: 5px; color: var(--muted); }
.stats-sample { padding: 7px 9px; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(184,245,62,.18); border-radius: 6px; font-size: 9px; font-weight: 900; white-space: nowrap; }
.profile-stats-state { padding: 52px 20px; color: var(--muted); text-align: center; }
.champion-stats-scroll { overflow-x: auto; }
.champion-stats-table { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0 7px; }
.champion-stats-table th { padding: 0 11px 9px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .06em; text-align: right; white-space: nowrap; }
.champion-stats-table th:first-child, .champion-stats-table th:nth-child(2) { text-align: left; }
.champion-stats-table td { padding: 11px; color: var(--text); background: rgba(20,27,39,.8); font-size: 11px; font-weight: 750; text-align: right; white-space: nowrap; }
.champion-stats-table td:first-child { width: 44px; color: var(--muted); text-align: left; border-radius: 8px 0 0 8px; }
.champion-stats-table td:last-child { border-radius: 0 8px 8px 0; }
.champion-stat-champion { display: flex; align-items: center; gap: 10px; min-width: 155px; text-align: left !important; }
.champion-stat-champion img { width: 34px; height: 34px; object-fit: cover; border-radius: 7px; }
.champion-stat-champion strong { display: block; }
.champion-stat-champion small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.champion-stat-win { color: var(--accent) !important; }
.champion-stat-kda { display: block; font-size: 12px; }
.champion-stat-kda small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 700; }
.queue-card { padding: 18px 20px; }
.queue-card-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 10px; font-weight: 900; }
.queue-card-heading::before { content: ""; width: 3px; height: 17px; margin-right: 9px; background: var(--accent); box-shadow: 0 0 12px rgba(184,245,62,.4); }
.queue-card-heading span { margin-right: auto; }
.queue-card-heading i { display: grid; place-items: center; width: 20px; height: 20px; color: var(--muted); background: var(--surface-3); border-radius: 5px; font-style: normal; }
.queue-card-body { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 13px; padding-top: 14px; }
.queue-emblem { position: relative; display: grid; place-items: center; width: 48px; height: 48px; font-size: 9px; }
.queue-emblem img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.queue-emblem b { position: absolute; top: 47%; left: 50%; color: #f4f7fb; font: 900 8px/1 Georgia, serif; text-shadow: 0 1px 2px #000; transform: translate(-50%, -50%); }
.queue-card-body strong, .queue-card-body small { display: block; }
.queue-card-body strong { font-size: 16px; }
.queue-card-body small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.card-header .eyebrow { margin-bottom: 5px; color: var(--muted); }
.more-button { color: var(--muted); font-size: 16px; letter-spacing: 2px; }
.arrow-button { color: var(--accent); font-size: 24px; line-height: .8; }
.performance-body { display: grid; grid-template-columns: 155px 1fr; align-items: center; gap: 30px; padding: 30px 0 20px; }
.winrate-ring { width: 135px; height: 135px; padding: 9px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--value)*1%), #222c38 0); transform: rotate(-35deg); }
.winrate-ring > div { display: grid; place-content: center; width: 100%; height: 100%; text-align: center; border-radius: 50%; background: var(--surface-2); transform: rotate(35deg); }
.winrate-ring strong { font-size: 33px; letter-spacing: -.06em; }
.winrate-ring strong b { font: inherit; }
.winrate-ring strong span { margin-left: 2px; color: var(--accent); font-size: 14px; }
.winrate-ring small { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.performance-metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px 30px; }
.performance-metrics > div { display: grid; grid-template-columns: 1fr auto; align-items: end; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.performance-metrics span { grid-column: 1/-1; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .09em; }
.performance-metrics strong { font-size: 20px; }
.performance-metrics small { padding-bottom: 2px; color: var(--muted); font-size: 8px; }
.positive { color: var(--accent) !important; }
.warning { color: var(--gold) !important; }
.trend-chart { padding-top: 7px; border-top: 1px solid var(--line-soft); }
.chart-labels { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.trend-chart svg { display: block; width: 100%; height: 90px; overflow: visible; }
.chart-area { fill: url(#chartFill); }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.trend-chart circle { fill: var(--accent); stroke: rgba(184,245,62,.25); stroke-width: 10; }

.focus-champion { display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 15px; margin: 26px 0 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.focus-champion img { width: 68px; height: 68px; border-radius: 15px; object-fit: cover; }
.focus-champion span, .focus-champion strong, .focus-champion small { display: block; }
.focus-champion span { margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.focus-champion strong { margin-bottom: 4px; font-size: 16px; }
.focus-champion small { color: var(--muted); font-size: 9px; }
.grade { color: var(--accent); font: italic 900 25px/1 Inter, sans-serif; }
.focus-bars { display: grid; gap: 14px; }
.focus-bars > div { display: grid; grid-template-columns: 68px 1fr 22px; align-items: center; gap: 9px; }
.focus-bars span, .focus-bars b { font-size: 8px; font-weight: 900; }
.focus-bars span { color: var(--muted); }
.focus-bars b { text-align: right; }
.focus-bars div div { height: 4px; overflow: hidden; background: #252e3b; border-radius: 4px; }
.focus-bars i { display: block; height: 100%; background: linear-gradient(90deg, #6ea328, var(--accent)); border-radius: inherit; }
.primary-button { padding: 13px 20px; color: #0c1206; background: var(--accent); border: 0; border-radius: 10px; font-size: 10px; font-weight: 950; letter-spacing: .05em; cursor: pointer; transition: .2s ease; }
.primary-button:hover { background: var(--accent-strong); box-shadow: 0 9px 24px rgba(184,245,62,.16); transform: translateY(-1px); }
.primary-button span { float: right; }
.full-width { width: 100%; margin-top: 23px; }

.match-history-card { margin-top: 18px; padding: 25px 27px 13px; }
.match-header { align-items: center; margin-bottom: 15px; }
.filter-tabs { display: flex; padding: 3px; background: #0c111a; border: 1px solid var(--line); border-radius: 8px; }
.filter-tabs button { padding: 7px 12px; color: var(--muted); background: transparent; border: 0; border-radius: 6px; font-size: 9px; font-weight: 800; cursor: pointer; }
.filter-tabs button.is-active { color: var(--text); background: var(--surface-3); }
.match-row { position: relative; display: grid; grid-template-columns: 82px 230px 145px 1fr 90px; align-items: center; min-height: 90px; border-top: 1px solid var(--line-soft); animation: pageIn .2s ease both; }
.match-row::before { content: ""; position: absolute; left: -27px; width: 3px; height: 48px; border-radius: 0 4px 4px 0; background: var(--blue); }
.match-row.loss::before { background: var(--red); }
.match-result b, .match-result small { display: block; }
.match-result b { color: var(--blue); font-size: 10px; letter-spacing: .08em; }
.match-row.loss .match-result b { color: var(--red); }
.match-result small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.match-champion { display: flex; align-items: center; gap: 12px; }
.match-champion > img { width: 49px; height: 49px; object-fit: cover; border-radius: 11px; }
.match-champion strong, .match-champion small { display: block; }
.match-champion strong { font-size: 12px; }
.match-champion small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.spell-stack { display: grid; grid-template-columns: repeat(2,18px); gap: 3px; margin-left: auto; }
.spell-stack img { width: 18px; height: 18px; border-radius: 3px; }
.match-kda strong { display: block; font-size: 14px; letter-spacing: .015em; }
.match-kda small { color: var(--muted); font-size: 8px; }
.match-items { display: flex; gap: 5px; }
.match-items img, .item-placeholder { width: 30px; height: 30px; border-radius: 6px; background: #202a36; border: 1px solid rgba(255,255,255,.06); }
.match-cs { text-align: right; }
.match-cs strong, .match-cs small { display: block; }
.match-cs strong { font-size: 11px; }
.match-cs small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.empty-state { padding: 40px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); }
.match-players { display: grid; gap: 4px; min-width: 132px; }
.match-player-group { display: flex; gap: 3px; }
.match-player { width: 20px; height: 20px; padding: 0; overflow: hidden; background: transparent; border: 0; border-radius: 4px; cursor: pointer; }
.match-player img { display: block; width: 100%; height: 100%; object-fit: cover; }
.match-player:hover { box-shadow: 0 0 0 1px var(--accent); transform: translateY(-1px); }

/* Profil-Informationsarchitektur: kompakte Statistiken links, detaillierte Match-Historie rechts. */
@media (min-width: 1181px) {
  body.has-profile .page[data-page="overview"].is-active { display: grid; grid-template-columns: 355px minmax(0, 1fr); column-gap: 18px; align-items: start; }
  body.has-profile .page[data-page="overview"] > .page-heading,
  body.has-profile .page[data-page="overview"] > .profile-hero,
  body.has-profile .page[data-page="overview"] > .profile-tabs { grid-column: 1 / -1; }
  body.has-profile .page[data-page="overview"] > .profile-champion-panel { grid-column: 1 / -1; grid-row: 4; width: 100%; }
  body.has-profile .dashboard-grid { grid-column: 1; grid-row: 4; grid-template-columns: 1fr; gap: 18px; }
  body.has-profile .match-history-card { grid-column: 2; grid-row: 4; min-width: 0; margin-top: 0; padding: 22px 24px 12px; }
  body.has-profile .match-row { grid-template-columns: 64px minmax(150px, 1fr) 86px minmax(160px, 1fr) 135px 66px; min-height: 92px; }
  body.has-profile .match-items { gap: 3px; }
  body.has-profile .match-items img, body.has-profile .match-items .item-placeholder { width: 24px; height: 24px; }
  body.has-profile .match-players { min-width: 126px; }
}

.lane-switcher { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); background: #0c111a; border-radius: 9px; }
.lane-switcher button { padding: 8px 12px; color: var(--muted); background: transparent; border: 0; border-radius: 6px; font-size: 9px; font-weight: 900; cursor: pointer; }
.lane-switcher button.is-active { color: #101609; background: var(--accent); }
.meta-callout { position: relative; min-height: 205px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 42px 50px; overflow: hidden; }
.meta-callout::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 50%, rgba(184,245,62,.17), transparent 32%), linear-gradient(105deg, transparent 55%, rgba(255,255,255,.025)); }
.meta-callout::after { content: "MID"; position: absolute; right: 4%; top: -34px; color: rgba(255,255,255,.025); font-size: 185px; font-weight: 950; font-style: italic; letter-spacing: -.1em; }
.meta-copy, .meta-number { position: relative; z-index: 1; }
.meta-copy { max-width: 640px; }
.meta-copy h2 { margin: 15px 0 8px; font-size: 29px; }
.meta-copy p { margin: 0; color: var(--muted); line-height: 1.6; }
.meta-number { margin-right: 30px; text-align: right; }
.meta-number span, .meta-number small { display: block; }
.meta-number span { color: var(--accent); font-size: 39px; font-weight: 900; letter-spacing: -.05em; }
.meta-number small { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .11em; }
.champion-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 29px 0 18px; }
.champion-search { display: flex; align-items: center; width: 280px; height: 40px; padding: 0 13px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.champion-search input { flex: 1; min-width: 0; padding-left: 10px; color: var(--text); background: transparent; border: 0; outline: 0; }
.tier-legend { display: flex; gap: 15px; color: var(--muted); font-size: 9px; font-weight: 800; }
.tier-legend span { display: flex; align-items: center; gap: 6px; }
.tier-legend i { width: 6px; height: 6px; border-radius: 50%; }
.s-tier { background: var(--accent); }.a-tier { background: var(--gold); }.b-tier { background: var(--blue); }
.champion-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 13px; }
.champion-card { position: relative; min-width: 0; padding: 11px; overflow: hidden; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: .2s ease; }
.champion-card:hover { transform: translateY(-3px); border-color: #3a4859; box-shadow: 0 16px 30px rgba(0,0,0,.25); }
.champion-card img { width: 100%; aspect-ratio: 1.45; object-fit: cover; object-position: center 25%; border-radius: 9px; filter: saturate(.88); }
.champion-tier { position: absolute; top: 17px; left: 17px; display: grid; place-items: center; width: 27px; height: 27px; color: #101509; background: var(--accent); border-radius: 7px; font-size: 12px; font-weight: 950; }
.champion-card[data-tier="A"] .champion-tier { background: var(--gold); }
.champion-card[data-tier="B"] .champion-tier { background: var(--blue); }
.champion-name-row { display: flex; justify-content: space-between; align-items: center; margin: 12px 3px 5px; }
.champion-name-row strong { font-size: 13px; }
.champion-name-row small { color: var(--accent); font-size: 9px; font-weight: 800; }
.champion-card > small { margin-left: 3px; color: var(--muted); font-size: 8px; }

.build-heading { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 22px; margin-bottom: 30px; }
.champion-splash-mini { width: 92px; height: 92px; padding: 4px; border-radius: 22px; background: linear-gradient(135deg, var(--accent), #2d3b41); }
.champion-splash-mini img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.build-heading h1 { margin-bottom: 5px; }
.build-winrate { padding-left: 35px; border-left: 1px solid var(--line); text-align: right; }
.build-winrate span, .build-winrate small { display: block; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.build-winrate strong { display: block; margin: 4px 0; color: var(--accent); font-size: 27px; }
.build-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 18px; }
.build-main { display: grid; gap: 18px; }
.build-section, .matchup-card, .tip-card { padding: 27px; }
.section-title { display: flex; align-items: center; gap: 13px; margin-bottom: 27px; }
.section-title .eyebrow { margin-bottom: 4px; color: var(--muted); }
.step-number { display: grid; place-items: center; width: 36px; height: 36px; color: var(--accent); background: var(--accent-soft); border-radius: 9px; font-size: 10px; font-weight: 900; }
.pickrate { margin-left: auto; color: var(--muted); font-size: 9px; }
.build-path { display: flex; justify-content: space-around; align-items: center; gap: 14px; padding: 8px 10px 6px; }
.item-block { text-align: center; }
.item-block > span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .09em; }
.item-row { display: flex; justify-content: center; gap: 7px; }
.item-row img { width: 47px; height: 47px; border: 1px solid #394555; border-radius: 9px; }
.item-block small { display: block; margin-top: 9px; color: var(--muted); font-size: 8px; }
.path-arrow { color: var(--muted-2); }
.rune-layout { display: grid; grid-template-columns: 1fr 1px 1fr auto; align-items: center; gap: 28px; padding: 4px 28px 8px; }
.rune-tree { text-align: center; }
.rune-tree > span { color: #e36eff; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.rune-tree.secondary > span { color: #73a7ff; }
.rune-orb { display: grid; place-items: center; width: 56px; height: 56px; margin: 13px auto; font-size: 25px; border: 2px solid #aa45ce; border-radius: 50%; box-shadow: 0 0 23px rgba(170,69,206,.18); }
.rune-row { display: flex; justify-content: center; gap: 10px; margin: 14px 0; }
.rune-row i { display: grid; place-items: center; width: 34px; height: 34px; color: #d7a6ec; background: #22152b; border: 1px solid #633776; border-radius: 50%; font-style: normal; }
.secondary .rune-row i { color: #9ec1ff; background: #121d32; border-color: #2e588e; }
.rune-tree small { color: var(--muted); font-size: 9px; line-height: 1.7; }
.rune-divider { width: 1px; height: 130px; background: var(--line); }
.rune-stats { display: grid; gap: 8px; }
.rune-stats span { padding: 8px 10px; color: var(--muted); background: var(--surface-3); border-radius: 5px; font-size: 8px; }
.skill-order { display: grid; gap: 9px; }
.skill-order > div { display: grid; grid-template-columns: 44px repeat(5,36px); align-items: center; gap: 6px; }
.skill-order b, .skill-order span { display: grid; place-items: center; height: 32px; border-radius: 6px; font-size: 9px; }
.skill-order b { color: #0f1608; background: var(--accent); }
.skill-order span { color: var(--muted); background: var(--surface-3); border: 1px solid var(--line); }
.skill-order .ultimate { grid-template-columns: 44px repeat(3,36px); }
.skill-order .ultimate b { color: white; background: #7551df; }
.build-aside { display: grid; align-content: start; gap: 18px; }
.matchup-card h3 { margin: 0 0 15px; }
.second-heading { padding-top: 24px; border-top: 1px solid var(--line); margin-top: 24px !important; }
.matchup-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 11px; padding: 8px 0; }
.matchup-row img { width: 36px; height: 36px; border-radius: 9px; }
.matchup-row strong { display: block; font-size: 10px; }
.matchup-row small { color: var(--muted); font-size: 8px; }
.matchup-row > b { color: var(--accent); font-size: 10px; }
.matchup-row.bad > b { color: var(--red); }
.tip-card { background: linear-gradient(145deg, rgba(184,245,62,.13), rgba(15,23,22,.98)); border-color: rgba(184,245,62,.25); }
.tip-card > span { color: var(--accent); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.tip-card p { margin: 12px 0 0; color: #aab7b1; font-size: 11px; line-height: 1.7; }
.tip-card b { color: white; }

.live-heading .eyebrow { display: flex; align-items: center; gap: 10px; }
.live-status { display: flex; align-items: center; gap: 11px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.live-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(184,245,62,.6); }
.live-status span { font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.live-status small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 500; letter-spacing: 0; }
.live-scoreboard { display: grid; grid-template-columns: 1fr 52px 1fr; gap: 12px; }
.team-label { display: flex; justify-content: space-between; padding: 15px 20px; border-radius: 11px 11px 0 0; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.team-label.blue { color: #9ac9ff; background: rgba(80,165,255,.1); border: 1px solid rgba(80,165,255,.2); }
.team-label.red { grid-column: 3; color: #ff9da6; background: rgba(255,93,108,.1); border: 1px solid rgba(255,93,108,.2); }
.versus { grid-column: 2; grid-row: 1/3; display: grid; place-items: center; color: var(--muted-2); font-size: 11px; font-weight: 900; }
.team-column { display: grid; gap: 7px; }
.team-column#redTeam { grid-column: 3; }
.player-card { position: relative; display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 13px; min-height: 78px; padding: 9px 14px 9px 9px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.player-card.is-user { border-color: rgba(184,245,62,.4); box-shadow: inset 0 0 25px rgba(184,245,62,.04); }
.player-card img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; }
.player-card strong { display: block; font-size: 11px; }
.player-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; }
.player-tags { display: flex; gap: 5px; margin-top: 7px; }
.player-tags span { padding: 3px 5px; color: var(--muted); background: var(--surface-3); border-radius: 4px; font-size: 7px; font-weight: 800; }
.player-card.is-user .player-tags span:first-child { color: var(--accent); background: var(--accent-soft); }
.player-rank { text-align: right; }
.player-rank b, .player-rank small { display: block; }
.player-rank b { font-size: 10px; }
.profile-search-state, .live-search-state { text-align: left; }
.profile-onboarding { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(300px, .88fr) minmax(410px, 1.12fr); grid-template-areas: "copy preview" "steps steps"; gap: 30px 46px; max-width: none; min-height: 430px; margin: 0; padding: 38px 40px 24px; overflow: hidden; }
.profile-onboarding::before { content: ""; position: absolute; z-index: -2; inset: 0; background: radial-gradient(circle at 8% 10%, rgba(184,245,62,.16), transparent 30%), radial-gradient(circle at 90% 24%, rgba(80,165,255,.11), transparent 32%), linear-gradient(135deg, rgba(19,28,37,.98), rgba(9,14,22,.98)); }
.profile-onboarding::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .32; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 62px 62px; mask-image: linear-gradient(to right, #000, transparent 72%); pointer-events: none; }
.onboarding-copy { grid-area: copy; display: flex; flex-direction: column; align-items: flex-start; align-self: center; gap: 13px; max-width: 500px; }
.onboarding-copy .status-chip { margin-bottom: 7px; }
.onboarding-kicker { margin: 0 !important; color: #b7c0ce !important; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.onboarding-copy h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: .94; letter-spacing: -.065em; }
.onboarding-copy h2 span { color: var(--accent); }
.onboarding-copy > p:not(.onboarding-kicker) { max-width: 470px; margin: 2px 0 4px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.onboarding-copy > .primary-button { margin-top: 5px; }
.onboarding-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 5px; }
.onboarding-actions > span { color: var(--muted-2); font-size: 10px; }
.onboarding-actions b { color: #c3ccd8; }
.onboarding-preview { grid-area: preview; align-self: center; padding: 17px; background: linear-gradient(145deg, rgba(31,42,55,.82), rgba(13,20,30,.92)); border: 1px solid rgba(143,165,188,.22); border-radius: 15px; box-shadow: 0 22px 42px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.045); }
.preview-topline { display: flex; align-items: center; gap: 8px; padding-bottom: 13px; color: var(--muted); border-bottom: 1px solid var(--line-soft); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.preview-topline i { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); }
.preview-topline b { margin-left: auto; color: var(--accent); font-size: 8px; }
.preview-profile { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 15px 0; }
.preview-avatar { display: grid; place-items: center; width: 46px; height: 46px; color: #10170b; background: linear-gradient(135deg, #e2ff9d, var(--accent)); border: 2px solid rgba(184,245,62,.3); border-radius: 12px; font-size: 23px; font-weight: 950; font-style: italic; }
.preview-profile strong, .preview-profile span, .preview-profile small { display: block; }
.preview-profile strong { overflow: hidden; color: var(--text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.preview-profile strong small { display: inline; margin-left: 4px; color: var(--muted); font-size: 9px; }
.preview-profile > div:nth-child(2) > span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.preview-rank { display: grid; justify-items: end; gap: 4px; color: var(--muted); font-size: 8px; font-weight: 800; }
.preview-rank i { width: 24px; height: 25px; border: 2px solid #b7ccdf; clip-path: polygon(50% 0, 100% 20%, 88% 78%, 50% 100%, 12% 78%, 0 20%); opacity: .9; }
.preview-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 -3px; padding: 11px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.preview-metrics > div { min-width: 0; padding: 0 11px; border-right: 1px solid var(--line-soft); }
.preview-metrics > div:last-child { border: 0; }
.preview-metrics span, .preview-metrics b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-metrics span { margin-bottom: 5px; color: var(--muted-2); font-size: 7px; font-weight: 900; letter-spacing: .05em; }
.preview-metrics b { color: #dfe7f1; font-size: 9px; }
.preview-match { display: grid; grid-template-columns: 5px 20px 1fr auto; align-items: center; gap: 8px; margin-top: 13px; padding: 10px 11px; color: var(--muted); background: rgba(4,8,13,.42); border: 1px solid var(--line-soft); border-radius: 8px; }
.preview-result { width: 4px; height: 23px; background: var(--accent); border-radius: 999px; }
.preview-match > span:nth-child(2) { width: 20px; height: 20px; background: linear-gradient(135deg, #516883, #1d2b3d); border-radius: 5px; }
.preview-match strong { color: #c7d0db; font-size: 9px; }
.preview-match em { color: var(--accent); font-style: normal; font-size: 15px; }
.onboarding-steps { grid-area: steps; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line-soft); }
.onboarding-steps li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 18px; border-right: 1px solid var(--line-soft); }
.onboarding-steps li:first-child { padding-left: 0; }
.onboarding-steps li:last-child { border-right: 0; }
.onboarding-steps b { color: var(--accent); font-size: 10px; }
.onboarding-steps strong, .onboarding-steps small { display: block; }
.onboarding-steps strong { overflow: hidden; color: #dce4ee; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.onboarding-steps small { margin-top: 4px; color: var(--muted-2); font-size: 9px; }
.live-search-state { display: grid; justify-items: start; gap: 13px; max-width: 760px; margin: 28px auto; padding: 42px; }
.live-search-state h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.live-search-state p { max-width: 600px; margin: 0; color: var(--muted); line-height: 1.7; }
body:not(.has-profile) .page[data-page="overview"] .heading-actions { display: none; }
.profile-data-section, .live-data-section { display: none; }
body.has-profile .profile-search-state, body.has-live-game .live-search-state { display: none; }
body.has-profile .profile-data-section, body.has-live-game .live-data-section { display: grid; }
.player-card { width: 100%; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.player-card:hover { border-color: rgba(184,245,62,.65); transform: translateY(-1px); }
.player-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.champion-card[data-tier="—"] .champion-tier { color: var(--muted); background: var(--surface-3); }

/* Riftlab-Meta: eigenes Verzeichnis und Ranglistenraster, keine Kopie externer Seiten. */
.page[data-page="champions"] > .page-heading > .lane-switcher,
.page[data-page="champions"] > .meta-callout,
.page[data-page="champions"] > .champion-toolbar,
.legacy-champion-grid { display: none; }
.meta-scope { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 13px 16px; }
.meta-selects { display: flex; flex-wrap: wrap; gap: 9px; }
.meta-selects label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .06em; }
.meta-selects select { min-width: 102px; padding: 9px 26px 9px 10px; color: var(--text); background: var(--surface-3); border: 1px solid var(--line); border-radius: 7px; font: inherit; outline: 0; }
.meta-queue { display: flex; padding: 3px; background: #0c111a; border: 1px solid var(--line); border-radius: 8px; }
.meta-queue button { padding: 8px 12px; color: var(--muted); background: transparent; border: 0; border-radius: 5px; font-size: 9px; font-weight: 900; cursor: pointer; }
.meta-queue button.is-active { color: #101609; background: var(--accent); }
.champion-meta-layout { display: grid; grid-template-columns: 258px minmax(0,1fr); gap: 16px; align-items: start; }
.champion-directory { position: sticky; top: 16px; padding: 15px; }
.directory-head, .meta-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.directory-head .eyebrow, .meta-panel-head .eyebrow { margin-bottom: 5px; color: var(--muted); }
.directory-head h3 { font-size: 15px; }
.directory-head > span { display: grid; place-items: center; min-width: 25px; height: 25px; color: var(--accent); background: var(--accent-soft); border-radius: 6px; font-size: 9px; font-weight: 900; }
.directory-search { display: flex; align-items: center; gap: 8px; margin: 15px 0 9px; padding: 0 10px; height: 38px; color: var(--muted); background: var(--surface-3); border: 1px solid var(--line); border-radius: 7px; }
.directory-search input { min-width: 0; flex: 1; color: var(--text); background: transparent; border: 0; outline: 0; font-size: 11px; }
.directory-all { width: 100%; padding: 9px 10px; color: var(--muted); background: var(--surface-3); border: 1px solid var(--line); border-radius: 7px; font-size: 10px; font-weight: 900; text-align: left; cursor: pointer; }
.directory-all.is-active, .directory-all:hover { color: #101609; background: var(--accent); border-color: var(--accent); }
.champion-directory-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px; max-height: 590px; margin-top: 10px; padding-right: 3px; overflow-y: auto; }
.directory-champion { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 5px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 6px; text-align: left; cursor: pointer; }
.directory-champion:hover, .directory-champion.is-active { color: var(--text); background: var(--surface-3); border-color: var(--line); }
.directory-champion.is-active { box-shadow: inset 2px 0 var(--accent); }
.directory-champion img { width: 25px; height: 25px; flex: 0 0 auto; object-fit: cover; border-radius: 5px; }
.directory-champion span { overflow: hidden; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.directory-empty { grid-column: 1/-1; margin: 18px 0; color: var(--muted); font-size: 10px; text-align: center; }
.champion-meta-panel { min-width: 0; padding: 18px; }
.meta-panel-head { align-items: center; margin-bottom: 16px; }
.meta-panel-head h2 { margin: 0; font-size: 20px; }
.meta-lanes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-bottom: 10px; padding: 3px; }
.meta-lanes button { padding: 10px 6px; text-transform: none; }
.champion-meta-scroll { overflow-x: auto; }
.champion-meta-table { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0 5px; }
.champion-meta-table th { padding: 0 9px 8px; color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .055em; text-align: right; white-space: nowrap; }
.champion-meta-table th.text-left { text-align: left; }
.meta-sort { padding: 0; color: inherit; background: transparent; border: 0; font: inherit; font-weight: inherit; letter-spacing: inherit; cursor: pointer; }
.meta-sort:hover, .meta-sort.is-active { color: var(--accent); }
.champion-meta-table th:nth-child(1), .champion-meta-table th:nth-child(2), .champion-meta-table th:nth-child(8), .champion-meta-table th:nth-child(9) { text-align: left; }
.champion-meta-table td { padding: 9px; color: var(--text); background: rgba(20,27,39,.8); font-size: 10px; font-weight: 800; text-align: right; white-space: nowrap; }
.champion-meta-table td:first-child { width: 34px; color: var(--muted); border-radius: 7px 0 0 7px; text-align: left; }
.champion-meta-table td:last-child { border-radius: 0 7px 7px 0; text-align: left; }
.meta-champion-cell { display: flex; align-items: center; gap: 8px; min-width: 150px; text-align: left !important; }
.meta-champion-cell img { width: 29px; height: 29px; object-fit: cover; border-radius: 5px; }
.meta-tier { display: inline-grid; min-width: 23px; place-items: center; padding: 4px 5px; color: #101609; background: #778294; border-radius: 4px; font-size: 8px; font-weight: 950; }
.meta-tier-op { background: #ff5d7a; color: #fff; }.meta-tier-a { background: var(--accent); }.meta-tier-b { background: var(--blue); color: #fff; }
.meta-winrate { color: var(--accent) !important; }
.meta-strength { color: #dce5f4; }.meta-weakness { color: var(--muted); font-weight: 700; }
.meta-detail-card { display: grid; grid-template-columns: 50px minmax(0,1fr) auto; align-items: center; gap: 12px; margin-top: 14px; padding: 13px; background: linear-gradient(100deg, rgba(184,245,62,.1), transparent 54%), var(--surface-3); border: 1px solid rgba(184,245,62,.22); border-radius: 9px; }
.meta-detail-card > img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }
.meta-detail-copy h3 { margin: 2px 0 4px; font-size: 14px; }.meta-detail-copy p:last-child { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.meta-detail-actions .ghost-button { padding: 9px 11px; font-size: 9px; white-space: nowrap; }
.player-rank small { margin-top: 4px; }
.live-insights { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 13px; margin-top: 18px; }
.insight-card, .fairplay-card { min-height: 124px; display: flex; align-items: flex-start; gap: 16px; padding: 25px; }
.insight-icon { flex: 0 0 auto; display: grid; place-items: center; width: 37px; height: 37px; color: var(--accent); background: var(--accent-soft); border-radius: 9px; font-size: 18px; }
.insight-card h3 { margin-bottom: 7px; }
.insight-card p:last-child, .fairplay-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.warning-card .eyebrow, .warning-card .insight-icon { color: var(--gold); }
.warning-card .insight-icon { background: rgba(243,189,85,.1); }
.fairplay-card { align-items: center; background: linear-gradient(145deg, rgba(184,245,62,.08), var(--surface)); }
.fairplay-card > span { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; color: #0f1608; background: var(--accent); border-radius: 50%; font-weight: 900; }
.fairplay-card b { display: block; margin-bottom: 7px; }

.toast { position: fixed; right: 25px; bottom: 25px; z-index: 100; display: flex; align-items: center; gap: 12px; min-width: 270px; padding: 14px 16px; background: #17211c; border: 1px solid rgba(184,245,62,.3); border-radius: 12px; box-shadow: 0 20px 55px rgba(0,0,0,.4); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .25s ease; }
.toast.is-visible { opacity: 1; transform: none; }
.toast > span { display: grid; place-items: center; width: 28px; height: 28px; color: #0d1307; background: var(--accent); border-radius: 50%; font-weight: 900; }
.toast b, .toast small { display: block; }.toast b { font-size: 11px; }.toast small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; background: rgba(3,5,8,.76); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: .2s ease; }
.modal-backdrop.is-visible { opacity: 1; pointer-events: auto; }
.modal { position: relative; width: min(430px,100%); padding: 38px; text-align: center; transform: translateY(10px) scale(.98); transition: .2s ease; }
.modal-backdrop.is-visible .modal { transform: none; }
.modal-icon { margin: 0 auto 18px; width: 51px; height: 51px; }
.modal h2 { margin: 8px 0 12px; font-size: 24px; }
.modal p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.modal-close { position: absolute; top: 12px; right: 15px; color: var(--muted); background: transparent; border: 0; font-size: 23px; cursor: pointer; }
.modal .full-width { margin-top: 12px; }

body.light-mode { --bg:#e8edf2; --surface:#f8fafc; --surface-2:#edf1f5; --surface-3:#e2e8ef; --line:#d4dbe4; --line-soft:rgba(5,16,28,.08); --text:#101722; --muted:#687487; --muted-2:#9099a7; --shadow:0 20px 48px rgba(47,61,77,.12); background:#eef2f5; color-scheme:light; }
body.light-mode .sidebar, body.light-mode .topbar { background: rgba(244,247,250,.9); }
body.light-mode .card, body.light-mode .champion-card, body.light-mode .player-card { background: linear-gradient(145deg,#fff,#f3f6f9); }
body.light-mode .summoner-search, body.light-mode .filter-tabs, body.light-mode .lane-switcher { background:#edf1f5; }
body.light-mode .rank-emblem::after { background: #f8fafc; }
body.light-mode .primary-button { color: #131a0b; }

@media (max-width: 960px) {
  .profile-onboarding { grid-template-columns: 1fr; grid-template-areas: "copy" "preview" "steps"; gap: 25px; }
  .onboarding-copy { max-width: 620px; }
}

@media (max-width: 650px) {
  .profile-onboarding { min-height: 0; padding: 26px 20px 20px; border-radius: 14px; }
  .onboarding-copy h2 { font-size: 38px; }
  .onboarding-preview { padding: 13px; }
  .preview-metrics { grid-template-columns: 1fr; gap: 10px; }
  .preview-metrics > div { padding: 0 8px; border-right: 0; }
  .onboarding-steps { grid-template-columns: 1fr; gap: 12px; padding-top: 15px; }
  .onboarding-steps li { padding: 0; border-right: 0; }
}

@media (max-width: 1180px) {
  .profile-hero { grid-template-columns: 1.4fr 1fr; }
  .season-stats { grid-column: 1/-1; padding-top: 20px; border-top: 1px solid var(--line); border-left: 0; }
  .champion-grid { grid-template-columns: repeat(4,1fr); }
  .live-insights { grid-template-columns: 1fr 1fr; }
  .fairplay-card { grid-column: 1/-1; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: .25s ease; box-shadow: 16px 0 50px rgba(0,0,0,.35); }
  .sidebar.is-open { transform: none; }
  .main-column { margin-left: 0; }
  .topbar { grid-template-columns: auto minmax(200px,1fr) auto; padding: 0 20px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
  .mobile-brand span { width: 29px; height: 29px; font-size: 16px; }
  .mobile-menu { display: block; width: 38px; height: 38px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
  .topbar-actions .patch-pill, .topbar-actions .ghost-button { display: none; }
  main { width: min(100% - 34px, 800px); padding-top: 32px; }
  .dashboard-grid, .build-layout { grid-template-columns: 1fr; }
  .profile-hero { grid-template-columns: 1fr 1fr; }
  .profile-main { grid-column: 1/-1; }
  .rank-block { padding-left: 0; border-left: 0; }
  .champion-grid { grid-template-columns: repeat(3,1fr); }
  .match-row { grid-template-columns: 65px 1.3fr 100px 1fr; }
  .match-items { display: none; }
  .live-scoreboard { grid-template-columns: 1fr; }
  .team-label.red, .team-column#redTeam { grid-column: 1; }
  .team-label.red { grid-row: auto; }
  .versus { grid-column: 1; grid-row: auto; min-height: 40px; }
  .team-column#redTeam { grid-row: auto; }
  .champion-meta-layout { grid-template-columns: 1fr; }
  .champion-directory { position: static; }
  .champion-directory-list { max-height: 235px; grid-template-columns: repeat(4, minmax(0,1fr)); }
}

@media (max-width: 650px) {
  .topbar { grid-template-columns: auto 1fr auto; height: auto; min-height: 68px; gap: 10px; padding: 10px 14px; }
  .mobile-brand { font-size: 0; }
  .summoner-search { height: 42px; }
  .region-select { display: none; }
  .summoner-search kbd { display: none; }
  main { width: calc(100% - 24px); padding-top: 24px; }
  .page-heading { display: block; }
  .heading-actions, .lane-switcher, .live-status { margin-top: 18px; }
  h1 { font-size: 28px; }
  .profile-hero { grid-template-columns: 1fr; padding: 24px; }
  .profile-main { grid-column: auto; align-items: flex-start; }
  .profile-avatar { width: 65px; height: 65px; }
  .profile-copy { margin-left: 16px; }
  .profile-title-row h2 { font-size: 20px; }
  .role-chips { display: none; }
  .rank-block { grid-column: auto; }
  .season-stats { grid-column: auto; }
  .performance-card, .champion-focus-card, .match-history-card, .build-section, .matchup-card, .tip-card { padding: 20px; }
  .performance-body { grid-template-columns: 1fr; justify-items: center; }
  .performance-metrics { width: 100%; }
  .match-header { display: block; }
  .filter-tabs { width: fit-content; margin-top: 15px; }
  .match-row { grid-template-columns: 58px 1fr 82px; min-height: 82px; }
  .match-row::before { left: -20px; }
  .match-kda { text-align: right; }
  .match-cs { display: none; }
  .match-champion > img { width: 40px; height: 40px; }
  .spell-stack { display: none; }
  .meta-callout { min-height: 250px; padding: 30px 25px; }
  .meta-number { display: none; }
  .champion-toolbar { gap: 15px; }
  .champion-search { width: 100%; }
  .tier-legend { display: none; }
  .champion-grid { grid-template-columns: repeat(2,1fr); }
  .meta-scope { align-items: stretch; flex-direction: column; }
  .meta-selects { display: grid; grid-template-columns: repeat(3,1fr); }
  .meta-selects label { display: grid; gap: 4px; }
  .meta-selects select { min-width: 0; width: 100%; }
  .meta-queue { width: fit-content; }
  .champion-directory-list { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .champion-meta-panel, .champion-stats-card { padding: 14px; }
  .meta-detail-card { grid-template-columns: 42px 1fr; }.meta-detail-card > img { width: 42px; height: 42px; }.meta-detail-actions { grid-column: 1/-1; }
  .build-heading { grid-template-columns: 70px 1fr; }
  .champion-splash-mini { width: 70px; height: 70px; }
  .build-winrate { grid-column: 1/-1; padding: 15px 0 0; border-top: 1px solid var(--line); border-left: 0; text-align: left; }
  .build-path { justify-content: flex-start; overflow-x: auto; }
  .item-row img { width: 41px; height: 41px; }
  .rune-layout { grid-template-columns: 1fr; padding: 0; }
  .rune-divider { width: 100%; height: 1px; }
  .rune-stats { grid-template-columns: repeat(3,1fr); }
  .skill-order { overflow-x: auto; padding-bottom: 7px; }
  .skill-order > div { min-width: 290px; }
  .live-insights { grid-template-columns: 1fr; }
  .fairplay-card { grid-column: auto; }
  .toast { left: 12px; right: 12px; bottom: 12px; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Violett-Design: ruhige Oberfl\u00e4chen, klare Hierarchie, Akzente nur f\u00fcr relevante Aktionen. */
:root {
  color-scheme: dark;
  --bg: #0c0a14;
  --surface: #14101f;
  --surface-2: #1a1628;
  --surface-3: #241f35;
  --line: #37304d;
  --line-soft: rgba(225,217,255,.08);
  --text: #f7f5ff;
  --muted: #a39bb6;
  --muted-2: #736b87;
  --accent: #a78bfa;
  --accent-strong: #c4b5fd;
  --accent-soft: rgba(167,139,250,.14);
  --accent-rgb: 167,139,250;
  --blue: #8db9ff;
  --red: #fb7185;
  --gold: #f6c86b;
  --radius: 16px;
  --shadow: 0 22px 55px rgba(3,1,11,.38);
}

body {
  background:
    radial-gradient(circle at 84% -12%, rgba(139,92,246,.20), transparent 31%),
    radial-gradient(circle at 34% 0%, rgba(99,102,241,.10), transparent 28%),
    linear-gradient(145deg, #090710 0%, #100c1a 56%, #0b0912 100%);
  background-attachment: fixed;
  background-size: 100vw 100vh;
  background-repeat: no-repeat;
}
.sidebar { width: 96px; padding: 22px 12px; background: rgba(13,10,22,.9); border-right-color: rgba(225,217,255,.09); }
.main-column { margin-left: 96px; }
.brand-mark, .mobile-brand span, .modal-icon { color: #160f2a; background: linear-gradient(135deg, #d8ccff, var(--accent)); border-radius: 13px; clip-path: none; box-shadow: 0 10px 28px rgba(var(--accent-rgb),.25); }
.brand-name { color: #c4bdd2; }
.nav-item { border-radius: 12px; }
.nav-item.is-active { color: #d7ccff; background: rgba(var(--accent-rgb),.14); }
.nav-item.is-active::before { left: -12px; background: var(--accent); box-shadow: 0 0 16px rgba(var(--accent-rgb),.55); }
.avatar-button { color: #180f2a; background: linear-gradient(135deg, #e8e2ff, var(--accent)); border-color: #554876; }
.topbar { background: rgba(12,9,20,.78); border-bottom-color: rgba(225,217,255,.08); }
.summoner-search { background: rgba(27,22,41,.78); border-color: #3b3451; }
.summoner-search:focus-within { border-color: rgba(var(--accent-rgb),.72); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.12); }
.summoner-search.is-loading { border-color: rgba(var(--accent-rgb),.72); }
.patch-pill { color: #bcb4cb; background: rgba(28,23,42,.62); border-color: #3b3451; }
.card { background: linear-gradient(145deg, rgba(27,22,42,.96), rgba(16,13,27,.97)); border-color: rgba(193,178,235,.15); box-shadow: var(--shadow); }
.profile-hero::after { opacity: .045; }
.profile-glow { background: radial-gradient(circle, rgba(var(--accent-rgb),.19), transparent 66%); }
.profile-avatar { border-color: #6c5d91; box-shadow: 0 0 0 5px rgba(var(--accent-rgb),.09); }
.level-chip, .profile-tabs button.is-active, .lane-switcher button.is-active, .meta-queue button.is-active, .directory-all.is-active, .directory-all:hover { color: #180f2a; background: var(--accent); border-color: var(--accent); }
.status-chip, .summary-winrate, .stats-sample { border-color: rgba(var(--accent-rgb),.33); }
.queue-card-heading::before { box-shadow: 0 0 12px rgba(var(--accent-rgb),.45); }
.focus-bars i { background: linear-gradient(90deg, #6d57c8, var(--accent)); }
.primary-button { color: #180f2a; background: linear-gradient(135deg, var(--accent), #b9a6ff); border-radius: 9px; box-shadow: 0 8px 20px rgba(var(--accent-rgb),.12); }
.primary-button:hover { background: linear-gradient(135deg, #c4b5fd, #d2c6ff); box-shadow: 0 12px 27px rgba(var(--accent-rgb),.25); }
.tip-card { background: linear-gradient(145deg, rgba(var(--accent-rgb),.15), rgba(21,16,34,.98)); border-color: rgba(var(--accent-rgb),.33); }
.live-status i { box-shadow: 0 0 12px rgba(var(--accent-rgb),.65); }
.player-card.is-user { border-color: rgba(var(--accent-rgb),.58); box-shadow: inset 0 0 25px rgba(var(--accent-rgb),.07); }
.player-card:hover { border-color: rgba(var(--accent-rgb),.78); }
.profile-onboarding::before { background: radial-gradient(circle at 8% 10%, rgba(var(--accent-rgb),.22), transparent 31%), radial-gradient(circle at 91% 24%, rgba(99,102,241,.16), transparent 33%), linear-gradient(135deg, rgba(30,23,48,.98), rgba(13,10,23,.98)); }
.onboarding-preview { background: linear-gradient(145deg, rgba(42,33,64,.83), rgba(18,14,30,.93)); border-color: rgba(206,192,255,.22); }
.preview-avatar { color: #180f2a; background: linear-gradient(135deg, #e5ddff, var(--accent)); border-color: rgba(var(--accent-rgb),.48); }
.meta-detail-card { background: linear-gradient(100deg, rgba(var(--accent-rgb),.14), transparent 54%), var(--surface-3); border-color: rgba(var(--accent-rgb),.32); }
.fairplay-card { background: linear-gradient(145deg, rgba(var(--accent-rgb),.12), var(--surface)); }
.fairplay-card > span, .toast > span { color: #180f2a; }
.toast { background: #211a33; border-color: rgba(var(--accent-rgb),.42); }

@media (max-width: 900px) {
  .main-column { margin-left: 0; }
}

/* Build-Hub: volle Breite statt Seitenleiste, mit klaren Entscheidungen je Abschnitt. */
.page[data-page="builds"] { max-width: 1180px; margin: 0 auto; }
.page[data-page="builds"] .build-layout { display: none !important; }
.build-heading { position: relative; isolation: isolate; min-height: 154px; grid-template-columns: 86px minmax(0,1fr) auto; gap: 20px; margin-bottom: 16px; padding: 26px 30px; overflow: hidden; background: linear-gradient(105deg, rgba(37,28,59,.96), rgba(20,15,34,.96)); border: 1px solid rgba(var(--accent-rgb),.23); border-radius: 18px; box-shadow: var(--shadow); }
.build-heading::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .55; background: radial-gradient(circle at 80% 34%, rgba(var(--accent-rgb),.25), transparent 25%), linear-gradient(120deg, transparent 42%, rgba(255,255,255,.035) 42.4%, transparent 42.8%); }
.champion-splash-mini { width: 86px; height: 86px; padding: 3px; background: linear-gradient(135deg, #d8ceff, var(--accent), #554296); border-radius: 18px; box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.champion-splash-mini img { border-radius: 15px; image-rendering: auto; }
.build-heading h1 { font-size: clamp(31px, 4vw, 48px); }
.build-heading .eyebrow { color: #c7bbff; }
.build-winrate { min-width: 132px; padding: 12px 0 12px 28px; border-left-color: rgba(218,207,255,.16); text-align: left; }
.build-winrate strong { font-size: 31px; }
.build-hub { display: grid; gap: 16px; }
.build-role-tabs { display: flex; align-items: center; gap: 15px; padding: 10px 12px; overflow-x: auto; color: var(--muted); background: rgba(22,17,35,.68); border: 1px solid rgba(193,178,235,.14); border-radius: 12px; }
.build-role-tabs > span { flex: 0 0 auto; padding: 0 7px; color: #c9bdff; font-size: 8px; font-weight: 950; letter-spacing: .12em; }
.build-role-tabs > div { display: flex; gap: 4px; }
.build-role-tabs button { flex: 0 0 auto; padding: 7px 11px; color: var(--muted); background: transparent; border: 0; border-radius: 7px; font-size: 9px; font-weight: 900; cursor: pointer; }
.build-role-tabs button:hover { color: var(--text); background: rgba(var(--accent-rgb),.1); }
.build-role-tabs button.is-active { color: #1a1030; background: var(--accent); }
.build-role-tabs small { margin-left: auto; flex: 0 0 auto; color: var(--muted-2); font-size: 9px; }
.build-variant-section, .build-runes-card, .build-spells-card, .build-items-card, .build-skills-card { padding: 25px; }
.build-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.build-section-head.compact { align-items: center; margin-bottom: 18px; }
.build-section-head .eyebrow { margin-bottom: 6px; color: #bfb4d7; }
.build-section-head h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.build-section-head p:last-child { max-width: 520px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.build-guide-badge { flex: 0 0 auto; padding: 6px 8px; color: #c9bdff; background: rgba(var(--accent-rgb),.12); border: 1px solid rgba(var(--accent-rgb),.26); border-radius: 6px; font-size: 8px; font-weight: 950; letter-spacing: .08em; }
.build-variant-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; }
.build-variant-card { position: relative; min-height: 174px; display: flex; flex-direction: column; align-items: flex-start; padding: 17px; color: var(--text); text-align: left; background: rgba(10,8,18,.36); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: .18s ease; }
.build-variant-card:hover { border-color: rgba(var(--accent-rgb),.56); transform: translateY(-2px); }
.build-variant-card.is-active { background: linear-gradient(145deg, rgba(var(--accent-rgb),.16), rgba(27,21,43,.93)); border-color: rgba(var(--accent-rgb),.72); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),.14), 0 12px 28px rgba(0,0,0,.17); }
.variant-tag { margin-bottom: 14px; color: #cfc5ff; font-size: 8px; font-weight: 950; letter-spacing: .1em; }
.build-variant-card strong { font-size: 15px; letter-spacing: -.02em; }
.build-variant-card > small { min-height: 31px; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.variant-items { display: flex; gap: 5px; margin-top: auto; padding-top: 14px; }
.variant-items img, .clean-item-row img { display: block; width: 42px; height: 42px; object-fit: cover; image-rendering: auto; background: var(--surface-3); border: 1px solid rgba(221,210,255,.21); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.23); }
.build-variant-card em { position: absolute; top: 15px; right: 14px; color: var(--muted-2); font-size: 8px; font-style: normal; font-weight: 800; }
.build-variant-card.is-active em { color: var(--accent-strong); }
.build-duo-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 16px; }
.rune-build-clean { display: grid; grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr); align-items: stretch; gap: 13px; padding: 16px; background: #0d0b13; border: 1px solid var(--line-soft); border-radius: 12px; }
.rune-path { min-width: 0; padding: 15px; background: rgba(255,255,255,.018); border: 1px solid rgba(225,217,255,.07); border-radius: 10px; }
.rune-path-title { display: flex; align-items: center; justify-content: center; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid rgba(225,217,255,.07); }
.rune-path-title > img { width: 38px; height: 38px; object-fit: contain; }
.rune-path-title span, .rune-path-title strong { display: block; }
.rune-path-title span { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.rune-path-title strong { overflow: hidden; margin-top: 4px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.rune-tree-slots { display: grid; gap: 10px; margin-top: 13px; }
.rune-slot { min-height: 39px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.rune-option { position: relative; display: grid; place-items: center; width: 38px; height: 38px; padding: 3px; opacity: .23; background: #18151f; border: 1px solid rgba(225,217,255,.08); border-radius: 50%; filter: grayscale(.75); transition: .18s ease; }
.rune-option img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.rune-option i { display: none; }
.rune-option.is-selected { opacity: 1; background: radial-gradient(circle, rgba(var(--accent-rgb),.24), #16121f 72%); border-color: rgba(var(--accent-rgb),.9); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.12), 0 0 18px rgba(var(--accent-rgb),.18); filter: none; }
.rune-option.is-selected i { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 14px; height: 14px; color: #140d22; background: var(--accent); border: 2px solid #0d0b13; border-radius: 50%; font: 900 8px/1 Arial; }
.keystone-slot { min-height: 52px; gap: 17px; }
.keystone-slot .rune-option { width: 48px; height: 48px; }
.rune-path-summary { min-height: 27px; margin: 13px 0 0; color: #bdb5cb; font-size: 8px; line-height: 1.45; text-align: center; }
.rune-path-divider { align-self: center; display: grid; place-items: center; width: 28px; height: 28px; color: #cbbfff; background: var(--accent-soft); border: 1px solid rgba(var(--accent-rgb),.3); border-radius: 50%; font-size: 13px; font-weight: 900; }
.rune-shards { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; margin-top: 13px; padding: 11px 14px; background: #0d0b13; border: 1px solid var(--line-soft); border-radius: 10px; }
.rune-shards-label { color: var(--muted); font-size: 8px; font-weight: 950; letter-spacing: .11em; }
.rune-shards > div { display: flex; justify-content: flex-end; gap: 12px; }
.rune-shard-row { display: flex; gap: 5px; }
.rune-shard { position: relative; display: grid; place-items: center; width: 25px; height: 25px; opacity: .24; background: #18151f; border: 1px solid rgba(225,217,255,.08); border-radius: 50%; filter: grayscale(.8); }
.rune-shard img { width: 19px; height: 19px; object-fit: contain; }
.rune-shard i { display: none; }
.rune-shard.is-selected { opacity: 1; border-color: rgba(var(--accent-rgb),.78); box-shadow: 0 0 0 2px rgba(var(--accent-rgb),.1); filter: none; }
.rune-shard.is-selected i { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 11px; height: 11px; color: #140d22; background: var(--accent); border-radius: 50%; font: 900 7px/1 Arial; }
.spell-options { display: grid; gap: 9px; }
.spell-option { display: grid; grid-template-columns: 74px 1fr; column-gap: 11px; align-items: center; padding: 10px; color: var(--text); text-align: left; background: rgba(9,7,16,.32); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.spell-option:hover, .spell-option.is-active { border-color: rgba(var(--accent-rgb),.58); background: rgba(var(--accent-rgb),.09); }
.spell-option > div { display: flex; gap: 5px; grid-row: 1 / span 2; }
.spell-option img { width: 34px; height: 34px; object-fit: cover; border: 1px solid rgba(221,210,255,.22); border-radius: 7px; }
.spell-option strong { font-size: 10px; }.spell-option small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.build-card-note { margin: 15px 0 0; color: var(--muted-2); font-size: 9px; line-height: 1.55; }
.build-item-stages { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 12px; }
.build-item-stages > div { min-width: 0; padding: 17px; background: rgba(9,7,16,.26); border-right: 1px solid var(--line-soft); }
.build-item-stages > div:last-child { border-right: 0; }.build-item-stages > div.is-core { background: linear-gradient(145deg, rgba(var(--accent-rgb),.12), rgba(24,19,39,.74)); }
.build-item-stages > div > span { display: block; margin-bottom: 13px; color: var(--muted); font-size: 8px; font-weight: 950; letter-spacing: .08em; }
.clean-item-row { display: flex; flex-wrap: wrap; gap: 6px; min-height: 42px; }
.clean-item-row img { width: 39px; height: 39px; }
.build-item-stages small { display: block; min-height: 25px; margin-top: 11px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.clean-skill-order { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.clean-skill-order > div { display: grid; grid-template-columns: 30px repeat(5, minmax(0,1fr)); gap: 4px; align-items: center; }
.clean-skill-order > div.ultimate { grid-template-columns: 30px repeat(3, minmax(0,1fr)); }
.clean-skill-order b, .clean-skill-order span { display: grid; place-items: center; height: 29px; border-radius: 6px; font-size: 8px; font-weight: 900; }
.clean-skill-order b { color: #180f2a; background: var(--accent); }.clean-skill-order span { color: var(--muted); background: var(--surface-3); border: 1px solid var(--line); }
.clean-skill-order .ultimate b { color: #fff; background: #7c63d8; }

@media (max-width: 900px) {
  .build-duo-grid { grid-template-columns: 1fr; }
  .build-item-stages { grid-template-columns: repeat(2, 1fr); }
  .build-item-stages > div:nth-child(2) { border-right: 0; }.build-item-stages > div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .clean-skill-order { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
  .build-heading { grid-template-columns: 64px 1fr; min-height: 0; padding: 20px; }.champion-splash-mini { width: 64px; height: 64px; border-radius: 14px; }.champion-splash-mini img { border-radius: 11px; }.build-heading h1 { font-size: 30px; }.build-winrate { grid-column: 1 / -1; padding: 13px 0 0; border-top: 1px solid rgba(218,207,255,.16); border-left: 0; }
  .build-role-tabs { gap: 8px; }.build-role-tabs > span, .build-role-tabs small { display: none; }
  .build-variant-section, .build-runes-card, .build-spells-card, .build-items-card, .build-skills-card { padding: 18px; }.build-section-head h2 { font-size: 18px; }
  .build-variant-grid, .build-item-stages, .clean-skill-order { grid-template-columns: 1fr; }.build-item-stages > div { border-right: 0; border-top: 1px solid var(--line-soft); }.build-item-stages > div:first-child { border-top: 0; }
  .rune-build-clean { grid-template-columns: 1fr; }.rune-path-divider { justify-self: center; }.rune-shards { grid-template-columns: 1fr; }.rune-shards > div { justify-content: flex-start; flex-wrap: wrap; }
  .clean-skill-order > div, .clean-skill-order > div.ultimate { grid-template-columns: 30px repeat(5, minmax(27px,1fr)); }.clean-skill-order > div.ultimate { grid-template-columns: 30px repeat(3, minmax(27px,1fr)); }
}

/* Dichte Datenansicht: Tabellen-Charakter für Builds, ohne die Startseiten-Farbwelt zu verlassen. */
.page[data-page="champions"] { position: relative; }
.page[data-page="champions"] .card { background: linear-gradient(145deg, rgba(17,15,24,.98), rgba(11,10,16,.99)); border-color: rgba(193,178,235,.13); }
.page[data-page="champions"] .meta-scope { background: linear-gradient(145deg, rgba(17,15,24,.98), rgba(11,10,16,.99)); }
.page[data-page="champions"] .champion-meta-table td { background: rgba(16,14,22,.94); border-top: 1px solid rgba(225,217,255,.045); border-bottom: 1px solid rgba(225,217,255,.045); }
.page[data-page="champions"] .champion-meta-table tr.meta-build-row { cursor: pointer; }
.page[data-page="champions"] .champion-meta-table tr.meta-build-row:hover td { background: rgba(28,23,39,.96); }
.page[data-page="champions"] .champion-meta-table tr.meta-build-row:focus-visible td { outline: 2px solid var(--accent); outline-offset: -2px; }
.page[data-page="champions"] .directory-search, .page[data-page="champions"] .directory-all, .page[data-page="champions"] .meta-selects select { background-color: rgba(14,12,20,.96); }

.build-variant-section { padding: 0; overflow: hidden; }
.build-variant-section .build-section-head { align-items: center; margin: 0; padding: 17px 20px; background: rgba(48,38,70,.52); border-bottom: 1px solid var(--line-soft); }
.build-variant-section .build-section-head h2 { font-size: 18px; }
.build-variant-section .build-section-head p:last-child { display: none; }
.build-variant-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.build-variant-card { min-height: 82px; display: grid; grid-template-columns: 86px minmax(170px,1fr) minmax(220px,1.35fr) auto 78px; column-gap: 15px; align-items: center; padding: 13px 20px; background: rgba(20,15,33,.45); border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; }
.build-variant-card:first-child { border-top: 0; }
.build-variant-card:hover { background: rgba(53,41,80,.58); transform: none; }
.build-variant-card.is-active { background: linear-gradient(90deg, rgba(var(--accent-rgb),.17), rgba(32,25,49,.72) 58%); box-shadow: inset 3px 0 var(--accent); }
.variant-tag { margin: 0; font-size: 8px; }
.build-variant-card strong { font-size: 13px; }
.build-variant-card > small { min-height: 0; margin: 0; font-size: 9px; }
.variant-items { margin: 0; padding: 0; }
.variant-items img { width: 38px; height: 38px; border-radius: 6px; }
.build-variant-card em { position: static; justify-self: end; font-size: 8px; }
.build-variant-card.is-active em { padding: 6px 8px; background: rgba(var(--accent-rgb),.16); border: 1px solid rgba(var(--accent-rgb),.28); border-radius: 5px; }
.build-runes-card, .build-spells-card, .build-items-card, .build-skills-card { overflow: hidden; padding: 0; }
.build-runes-card .build-section-head, .build-spells-card .build-section-head, .build-items-card .build-section-head, .build-skills-card .build-section-head { margin: 0; padding: 16px 20px; background: rgba(48,38,70,.52); border-bottom: 1px solid var(--line-soft); }
.build-runes-card .rune-build-clean, .build-spells-card .spell-options, .build-spells-card .build-card-note, .build-items-card .build-item-stages, .build-skills-card .clean-skill-order { margin: 16px 20px 20px; }
.build-item-stages { border-radius: 8px; }
.build-item-stages > div { padding: 14px; }
.clean-item-row img { width: 37px; height: 37px; border-radius: 6px; }
.build-skills-card .clean-skill-order { padding: 0; }

@media (max-width: 650px) {
  .build-variant-section .build-section-head { align-items: flex-start; padding: 15px; }
  .build-variant-card { grid-template-columns: 1fr auto; row-gap: 7px; padding: 14px 15px; }
  .build-variant-card > small { grid-column: 1 / -1; }
  .variant-items { grid-column: 1 / -1; }
  .build-runes-card .rune-build-clean, .build-spells-card .spell-options, .build-spells-card .build-card-note, .build-items-card .build-item-stages, .build-skills-card .clean-skill-order { margin: 14px; }
}

/* Vollständige Match-Historie: kompakte Karten mit echten Riot-Matchdaten. */
.match-history-card { padding: 22px; background: rgba(17,13,28,.9); }
.match-history-card .match-header { margin-bottom: 14px; }
.matches { display: grid; gap: 10px; }
.match-row {
  position: relative;
  display: grid;
  grid-template-columns: 92px 178px 180px minmax(205px,1fr) 220px 30px;
  grid-template-areas:
    "result loadout performance build players expand"
    "details details details details details details";
  gap: 10px;
  min-height: 126px;
  padding: 15px 12px 15px 17px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(72,117,211,.24), rgba(36,30,66,.76) 58%, rgba(27,22,47,.92));
  border: 1px solid rgba(104,145,230,.22);
  border-radius: 10px;
  animation: pageIn .2s ease both;
}
.match-row.loss { background: linear-gradient(90deg, rgba(194,65,93,.25), rgba(67,35,59,.76) 58%, rgba(35,22,39,.92)); border-color: rgba(255,93,108,.22); }
.match-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; height: auto; border-radius: 0; background: #6796ff; box-shadow: 0 0 18px rgba(103,150,255,.35); }
.match-row.loss::before { background: #ff526d; box-shadow: 0 0 18px rgba(255,82,109,.3); }
.match-result { grid-area: result; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; padding-right: 10px; border-right: 1px solid rgba(255,255,255,.08); }
.match-result strong, .match-result span, .match-result b, .match-result small { display: block; }
.match-result strong { overflow: hidden; max-width: 100%; color: #8eb5ff; font-size: 10px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.match-row.loss .match-result strong, .match-row.loss .match-result b { color: #ff7187; }
.match-result span, .match-result small { margin-top: 3px; color: #a19ab4; font-size: 9px; line-height: 1.25; }
.match-result i { width: 48px; height: 1px; margin: 9px 0 7px; background: rgba(255,255,255,.12); }
.match-result b { color: #8eb5ff; font-size: 11px; letter-spacing: .02em; text-transform: none; }
.match-loadout { grid-area: loadout; display: grid; grid-template-columns: 58px 22px minmax(0,1fr); align-items: center; gap: 7px; min-width: 0; }
.match-portrait { position: relative; width: 58px; height: 58px; }
.match-portrait > img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; box-shadow: 0 7px 18px rgba(0,0,0,.28); }
.match-portrait > span { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; color: white; background: #171326; border: 2px solid #8f7ae3; border-radius: 50%; font-size: 9px; font-weight: 900; }
.match-loadout .spell-stack { display: grid; grid-template-columns: 22px; gap: 4px; margin: 0; }
.match-loadout .spell-stack img { width: 22px; height: 22px; border-radius: 5px; }
.match-champion-name { min-width: 0; }
.match-champion-name strong, .match-champion-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-champion-name strong { font-size: 12px; }
.match-champion-name small { margin-top: 5px; color: #9a92ab; font-size: 8px; text-transform: capitalize; }
.match-performance { grid-area: performance; display: grid; align-content: center; gap: 8px; min-width: 0; padding: 0 12px; border-left: 1px solid rgba(255,255,255,.06); }
.match-kda strong { display: block; color: #f5f1ff; font-size: 16px; letter-spacing: .02em; }
.match-kda strong em { color: inherit; font-style: normal; }
.match-kda strong .deaths { color: #ff657c; }
.match-kda small { display: block; margin-top: 3px; color: #b0a8c0; font-size: 9px; }
.match-metrics { display: grid; gap: 3px; color: #aaa2b9; font-size: 8px; }
.match-metrics b { color: #c6b8ff; }
.match-build { grid-area: build; display: grid; align-content: center; gap: 9px; min-width: 0; }
.match-items { display: flex; flex-wrap: wrap; gap: 4px; }
.match-items img, .match-items .item-placeholder { width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.09); border-radius: 6px; background: rgba(10,8,18,.48); }
.match-items img.trinket { margin-left: 2px; border-radius: 50%; }
.match-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.match-badges span { padding: 4px 7px; color: #d4cde0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.06); border-radius: 999px; font-size: 8px; font-weight: 800; }
.match-badges .highlight { color: white; background: linear-gradient(135deg, #fb4f79, #d6438e); border-color: transparent; }
.match-players { grid-area: players; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; min-width: 0; align-content: center; }
.match-player-group { display: grid; gap: 3px; min-width: 0; }
.match-player { width: 100%; height: 18px; display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: center; gap: 5px; padding: 0; overflow: visible; color: #aba4b9; background: transparent; border: 0; border-radius: 4px; cursor: pointer; text-align: left; }
.match-player img { width: 18px; height: 18px; object-fit: cover; border-radius: 4px; }
.match-player span { overflow: hidden; font-size: 8px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.match-player.is-self span { color: #fff; font-weight: 900; }
.match-player.is-self img { box-shadow: 0 0 0 1px var(--accent); }
.match-player:hover { color: white; box-shadow: none; transform: translateX(2px); }
.match-expand { grid-area: expand; align-self: stretch; width: 30px; padding: 0; color: #a995ff; background: rgba(10,8,18,.24); border: 0; border-left: 1px solid rgba(255,255,255,.08); border-radius: 0 7px 7px 0; font-size: 19px; cursor: pointer; transition: .2s ease; }
.match-expand:hover { color: white; background: rgba(var(--accent-rgb),.12); }
.match-row.is-expanded .match-expand { transform: rotate(180deg); }
.match-expanded { grid-area: details; display: none; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; margin: 4px 0 -3px; padding: 12px; background: rgba(8,6,15,.36); border-top: 1px solid rgba(255,255,255,.07); border-radius: 7px; }
.match-row.is-expanded .match-expanded { display: grid; }
.match-expanded span { display: grid; gap: 3px; }
.match-expanded small { color: #91899f; font-size: 8px; text-transform: uppercase; }
.match-expanded b { font-size: 11px; }

@media (min-width: 1181px) {
  body.has-profile .match-history-card { padding: 20px; }
  body.has-profile .match-row { grid-template-columns: 82px 164px 170px minmax(188px,1fr) 210px 28px; min-height: 126px; }
  body.has-profile .match-items { gap: 4px; }
  body.has-profile .match-items img, body.has-profile .match-items .item-placeholder { width: 27px; height: 27px; }
  body.has-profile .match-players { min-width: 0; }
}

@media (max-width: 1500px) {
  .match-row { grid-template-columns: 92px 175px minmax(160px,1fr) 30px; grid-template-areas: "result loadout performance expand" "build build players players" "details details details details"; }
  .match-build, .match-players { padding-top: 10px; border-top: 1px solid rgba(255,255,255,.07); }
}

@media (max-width: 700px) {
  .match-history-card { padding: 15px; }
  .match-row { grid-template-columns: 82px minmax(0,1fr) 28px; grid-template-areas: "result loadout expand" "performance performance performance" "build build build" "players players players" "details details details"; padding: 13px 9px 13px 14px; }
  .match-performance { grid-template-columns: auto 1fr; align-items: center; padding: 10px 0 0; border-top: 1px solid rgba(255,255,255,.07); border-left: 0; }
  .match-metrics { justify-self: end; text-align: right; }
  .match-build { padding-top: 10px; }
  .match-players { grid-template-columns: 1fr 1fr; }
  .match-expanded { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

/* Rangdarstellung: CommunityDragon liefert 16:9-Dateien mit großem transparentem Rand. */
.rank-block { gap: 19px; min-width: 310px; padding-left: 24px; }
.rank-emblem {
  position: relative;
  flex: 0 0 116px;
  width: 116px;
  height: 104px;
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 53%, rgba(var(--accent-rgb),.2), transparent 62%);
}
.rank-emblem img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  transform: scale(4.35);
  transform-origin: 50% 52%;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.58));
}
.rank-block .rank-emblem span {
  top: auto;
  bottom: 6px;
  min-width: 26px;
  padding: 3px 7px;
  color: #f8f5ff;
  background: rgba(14,10,24,.9);
  border: 1px solid rgba(203,190,255,.32);
  border-radius: 999px;
  font: 900 10px/1 Inter, sans-serif;
  letter-spacing: .06em;
  transform: translateX(-50%);
}
.rank-block > div:last-child { min-width: 130px; }
.rank-block p { color: #aaa1bb; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.rank-block strong { margin: 5px 0 6px; font-size: 20px; letter-spacing: -.02em; }
.rank-block > div:last-child > span { font-size: 9px; }

.queue-card { min-height: 150px; }
.queue-card-body { grid-template-columns: 86px minmax(0,1fr); gap: 17px; padding-top: 13px; }
.queue-emblem {
  position: relative;
  width: 86px;
  height: 74px;
  overflow: hidden;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 52%, rgba(var(--accent-rgb),.18), transparent 64%);
}
.queue-emblem img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  transform: scale(4.4);
  transform-origin: 50% 52%;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.55));
}
.queue-emblem b {
  top: auto;
  bottom: 3px;
  min-width: 23px;
  padding: 3px 6px;
  color: #f8f5ff;
  background: rgba(14,10,24,.9);
  border: 1px solid rgba(203,190,255,.3);
  border-radius: 999px;
  font: 900 8px/1 Inter, sans-serif;
  letter-spacing: .05em;
  transform: translateX(-50%);
}
.queue-card-body strong { font-size: 17px; }
.queue-card-body small { max-width: 185px; font-size: 9px; line-height: 1.45; }

/* Vollständiger Build: drei Core-Items plus getrennte Optionen für Slot 4–6. */
.build-opening-stages {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  margin: 17px 20px 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 9px 9px 0 0;
}
.build-opening-stages > div { min-width: 0; padding: 14px 16px; background: rgba(9,7,16,.25); }
.build-opening-stages > div + div { border-left: 1px solid var(--line-soft); }
.build-opening-stages > div > span, .build-slot-heading span { display: block; color: var(--muted); font-size: 8px; font-weight: 950; letter-spacing: .09em; }
.build-opening-stages small, .build-core-three small, .build-late-slots small { display: block; margin-top: 9px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.build-opening-stages .clean-item-row { margin-top: 11px; }
.build-complete-path { margin: 0 20px 20px; overflow: hidden; border: 1px solid var(--line-soft); border-top: 0; border-radius: 0 0 10px 10px; }
.build-core-three {
  display: grid;
  grid-template-columns: 126px minmax(220px,1fr) minmax(130px,.55fr);
  align-items: center;
  gap: 20px;
  min-height: 92px;
  padding: 17px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb),.17), rgba(33,25,50,.72));
  border-bottom: 1px solid var(--line-soft);
  box-shadow: inset 3px 0 var(--accent);
}
.build-slot-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.build-slot-heading b { display: grid; place-items: center; min-width: 25px; height: 25px; color: #1a102c; background: var(--accent); border-radius: 7px; font-size: 10px; }
.build-core-three .build-slot-heading { display: grid; justify-content: stretch; gap: 7px; }
.build-core-three .build-slot-heading b { width: fit-content; height: auto; padding: 5px 8px; color: #cfc2ff; background: rgba(var(--accent-rgb),.12); border: 1px solid rgba(var(--accent-rgb),.28); }
.build-core-three .clean-item-row { flex-wrap: nowrap; gap: 15px; }
.build-core-three .clean-item-row img { width: 50px; height: 50px; border-color: rgba(var(--accent-rgb),.48); box-shadow: 0 7px 18px rgba(0,0,0,.28); }
.build-core-three small { margin: 0; text-align: right; }
.build-late-slots { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.build-late-slots > div { min-width: 0; padding: 16px; background: rgba(14,10,24,.42); }

/* OP.GG-artige Runenstatistik: drei Datenspalten statt einer vereinfachten Auswahlkarte. */
.build-duo-grid { grid-template-columns: 1fr; }
.build-runes-card { background: linear-gradient(145deg, rgba(27,22,42,.96), rgba(16,13,27,.98)); }
.build-runes-card .build-section-head { background: rgba(48,38,70,.52); }
.build-runes-card .build-section-head .eyebrow { color: #bfb4d7; }
.rune-build-overview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 16px 20px 0; overflow: hidden; border: 1px solid rgba(193,178,235,.17); border-radius: 8px; }
.rune-overview-option { min-width: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; min-height: 63px; padding: 10px 16px; background: rgba(20,15,33,.62); border-left: 1px solid rgba(193,178,235,.15); }
.rune-overview-option { color: var(--text); border-top: 0; border-right: 0; border-bottom: 0; font: inherit; text-align: left; cursor: pointer; transition: background .18s ease, box-shadow .18s ease; }
.rune-overview-option:first-child { border-left: 0; }
.rune-overview-option.is-active { background: linear-gradient(90deg, rgba(var(--accent-rgb),.24), rgba(45,35,68,.78)); box-shadow: inset 3px 0 var(--accent); }
.rune-overview-option:not(.is-active):hover { background: rgba(49,39,72,.62); }
.rune-overview-icons { display: flex; align-items: center; gap: 7px; }
.rune-overview-icons img { width: 25px; height: 25px; object-fit: contain; }
.rune-overview-icons img.keystone { width: 38px; height: 38px; }
.rune-overview-option > div:nth-child(2) { display: grid; gap: 3px; }
.rune-overview-option > div:nth-child(2) strong { color: #fff; font-size: 13px; }
.rune-overview-option > div:nth-child(2) span { color: var(--muted); font-size: 8px; font-weight: 800; }
.rune-overview-option > b { color: #bca9ff; font-size: 11px; }
.build-runes-card .rune-build-clean { grid-template-columns: minmax(0,1.15fr) minmax(0,.9fr) minmax(0,.9fr); align-items: stretch; gap: 0; margin: 16px 20px 0; padding: 0; overflow: hidden; background: rgba(12,9,20,.7); border-color: rgba(193,178,235,.17); border-radius: 8px 8px 0 0; }
.build-runes-card .rune-path, .build-runes-card .rune-shards { min-width: 0; display: flex; flex-direction: column; margin: 0; padding: 20px 15px 12px; background: linear-gradient(180deg, rgba(35,28,51,.34), rgba(15,12,24,.25)); border: 0; border-left: 1px solid rgba(193,178,235,.13); border-radius: 0; }
.build-runes-card .rune-path:first-child { border-left: 0; }
.build-runes-card .rune-tree-slots, .build-runes-card .rune-shard-groups { flex: 1; display: grid; align-content: space-evenly; gap: 18px; margin: 0; }
.build-runes-card .rune-slot, .build-runes-card .rune-shard-row { min-height: 70px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; justify-items: center; gap: 7px; }
.build-runes-card .keystone-slot { grid-template-columns: repeat(4,minmax(0,1fr)); }
.build-runes-card .rune-option, .build-runes-card .rune-shard { width: 100%; height: auto; display: grid; justify-items: center; gap: 2px; padding: 0; opacity: 1; background: transparent; border: 0; border-radius: 0; filter: none; box-shadow: none; }
.build-runes-card .rune-image-wrap { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 4px; opacity: .24; background: #120e1d; border: 1px solid rgba(193,178,235,.16); border-radius: 50%; filter: grayscale(1); }
.build-runes-card .keystone-slot .rune-image-wrap { width: 44px; height: 44px; }
.build-runes-card .rune-image-wrap img { width: 34px; height: 34px; object-fit: contain; border-radius: 50%; }
.build-runes-card .keystone-slot .rune-image-wrap img { width: 39px; height: 39px; }
.build-runes-card .rune-option.is-selected .rune-image-wrap, .build-runes-card .rune-shard.is-selected .rune-image-wrap { opacity: 1; background: #171124; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(var(--accent-rgb),.2), 0 0 16px rgba(var(--accent-rgb),.18); filter: none; }
.build-runes-card .rune-option strong, .build-runes-card .rune-shard strong { color: #a7a3b3; font-size: 8px; line-height: 1.15; }
.build-runes-card .rune-option b, .build-runes-card .rune-shard b { color: #9c98a8; font-size: 9px; line-height: 1.15; }
.build-runes-card .rune-option small, .build-runes-card .rune-shard small { color: #716e7c; font-size: 7px; line-height: 1.15; }
.build-runes-card .rune-option.is-selected strong, .build-runes-card .rune-shard.is-selected strong { color: #bca9ff; }
.build-runes-card .rune-option.is-selected b, .build-runes-card .rune-shard.is-selected b { color: #fff; }
.build-runes-card .rune-option.is-selected::after, .build-runes-card .rune-shard.is-selected::after { content: none; }
.build-runes-card .rune-shards > div { justify-content: initial; }
.build-runes-card .rune-shard-row { display: grid; }
.build-runes-card .rune-shard .rune-image-wrap { width: 35px; height: 35px; }
.build-runes-card .rune-shard .rune-image-wrap img { width: 27px; height: 27px; }
.opgg-rune-column-title { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 17px; min-height: 24px; color: #b9b1ca; font-size: 10px; }
.opgg-rune-column-title img { width: 21px; height: 21px; object-fit: contain; }
.rune-template-note { margin: 0 20px; padding: 9px 13px; color: var(--muted-2); background: rgba(18,14,29,.82); border: 1px solid rgba(193,178,235,.17); border-top: 0; font-size: 8px; line-height: 1.4; }
.rune-copy-button { width: calc(100% - 40px); margin: 10px 20px 20px; padding: 10px 14px; color: #190f2d; background: linear-gradient(135deg, var(--accent), #bba8ff); border: 0; border-radius: 4px; box-shadow: 0 8px 20px rgba(var(--accent-rgb),.16); font-size: 10px; font-weight: 850; cursor: pointer; }
.rune-copy-button:hover { background: linear-gradient(135deg, #c4b5fd, #d2c6ff); box-shadow: 0 10px 25px rgba(var(--accent-rgb),.25); }

@media (max-width: 900px) {
  .build-runes-card .rune-build-clean { grid-template-columns: 1fr; }
  .build-runes-card .rune-path, .build-runes-card .rune-shards { border-top: 1px solid rgba(193,178,235,.13); border-left: 0; }
  .build-runes-card .rune-path:first-child { border-top: 0; }
}

@media (max-width: 600px) {
  .rune-build-overview { grid-template-columns: 1fr; }
  .rune-overview-option { border-top: 1px solid rgba(193,178,235,.15); border-left: 0; }
  .rune-overview-option:first-child { border-top: 0; }
  .build-runes-card .rune-slot, .build-runes-card .rune-shard-row { gap: 3px; }
}
.build-late-slots > div + div { border-left: 1px solid var(--line-soft); }
.build-late-slots .clean-item-row { flex-wrap: nowrap; gap: 7px; margin-top: 13px; }
.build-late-slots .clean-item-row img { width: 43px; height: 43px; opacity: .78; transition: .18s ease; }
.build-late-slots .clean-item-row img:first-child { opacity: 1; border-color: rgba(var(--accent-rgb),.68); box-shadow: 0 0 0 2px rgba(var(--accent-rgb),.1), 0 6px 16px rgba(0,0,0,.25); }
.build-late-slots .clean-item-row img:hover { opacity: 1; transform: translateY(-2px); }

@media (max-width: 1180px) {
  .rank-block { min-width: 0; }
  .build-core-three { grid-template-columns: 115px minmax(190px,1fr) 120px; }
  .build-late-slots .clean-item-row { flex-wrap: wrap; }
}

@media (max-width: 700px) {
  .rank-block { padding-left: 0; }
  .rank-emblem { flex-basis: 94px; width: 94px; height: 88px; }
  .build-opening-stages { grid-template-columns: 1fr; margin: 14px 14px 0; }
  .build-opening-stages > div + div { border-top: 1px solid var(--line-soft); border-left: 0; }
  .build-complete-path { margin: 0 14px 14px; }
  .build-core-three { grid-template-columns: 1fr; gap: 12px; }
  .build-core-three small { text-align: left; }
  .build-late-slots { grid-template-columns: 1fr; }
  .build-late-slots > div + div { border-top: 1px solid var(--line-soft); border-left: 0; }
  .build-late-slots .clean-item-row { flex-wrap: nowrap; }
}

/* Profil-Navigation und Datenansichten */
.sidebar-bottom { gap: 0; }
.avatar-button { position: relative; }
.avatar-button::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; background: #7f6bd8; border: 2px solid #100c1a; border-radius: 50%; }
.profile-copy > p, .role-chips { display: none !important; }
.profile-title-row { margin-top: 0; }
.profile-tabs { width: 100%; gap: 28px; margin: 8px 0 0; padding: 0; overflow: visible; background: transparent; border: 0; border-bottom: 1px solid rgba(206,192,255,.14); border-radius: 0; }
body.has-profile .profile-tabs { display: flex; }
.profile-tabs button { position: relative; padding: 13px 2px 14px; color: #a9a0b9; background: transparent !important; border-radius: 0; font-size: 12px; letter-spacing: .01em; }
.profile-tabs button.is-active { color: #f6f2ff; }
.profile-tabs button.is-active::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--accent); border-radius: 3px 3px 0 0; box-shadow: 0 0 14px rgba(var(--accent-rgb),.45); }
.profile-stats-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0 8px; }
.profile-stats-toolbar > span { color: var(--muted); font-size: 11px; }
.profile-stats-filters button { font-size: 11px; }
.history-sample { display: block; margin-top: 5px; color: #9b91aa; font-size: 9px; font-weight: 700; }
.champion-stats-card { width: 100%; padding: 30px; }
.champion-stats-scroll { width: 100%; }
.champion-stats-table { width: 100%; min-width: 1120px; border-spacing: 0 8px; table-layout: auto; }
.champion-stats-table th { padding: 0 14px 10px; font-size: 10px; }
.champion-stats-table td { padding: 14px; background: rgba(29,23,45,.82); font-size: 13px; }
.champion-stats-table td > small { display: block; margin-top: 4px; color: #8f879e; font-size: 9px; font-weight: 650; }
.champion-stat-champion { min-width: 178px; }
.champion-stat-champion button { width: 100%; display: flex; align-items: center; gap: 11px; padding: 0; color: var(--text); background: transparent; border: 0; cursor: pointer; text-align: left; }
.champion-stat-champion button:hover strong { color: var(--accent); }
.champion-stat-champion img { width: 46px; height: 46px; }
.champion-stat-champion strong { font-size: 14px; }
.champion-stat-games b, .champion-stat-games small { display: block; }
.champion-stat-games i { color: #72a5ff; font-style: normal; }
.champion-stat-games em { color: #ff6b85; font-style: normal; }
.champion-stat-kda { font-size: 13px; }
.multi-kill-cell { min-width: 170px; }
.multi-kill-values { display: grid; grid-template-columns: repeat(4, minmax(32px,1fr)); align-items: center; gap: 6px; }
.multi-kill-values > span { display: grid; grid-template-rows: auto auto; justify-items: center; gap: 3px; min-width: 0; }
.multi-kill-values b { color: #cbbdff; font-size: 13px; line-height: 1; text-align: center; }
.multi-kill-values > span > small { display: block; margin: 0; color: #8f879e; font-size: 9px; font-weight: 800; line-height: 1; text-align: center; }

/* Einheitliche dunkle Select-Menüs statt weißer Browser-Listen. */
.region-select select, .meta-selects select { color-scheme: dark; }
.region-select select option, .meta-selects select option { color: #f5f1ff; background: #171221; font-weight: 700; }
.region-select select { min-width: 57px; font-size: 12px; }
.meta-selects { gap: 13px; }
.meta-selects label { position: relative; gap: 9px; font-size: 10px; }
.meta-selects select { min-width: 128px; padding: 11px 30px 11px 12px; font-size: 11px; font-weight: 800; }
.meta-elo-label select { padding-left: 42px; }
.meta-rank-icon { position: absolute; z-index: 2; left: 39px; bottom: 4px; width: 33px; height: 33px; pointer-events: none; }
.meta-rank-icon[hidden] { display: none; }
.meta-rank-icon img { width: 100%; height: 100%; object-fit: contain; }
.meta-queue button { padding: 10px 14px; font-size: 10px; }
.page[data-page="champions"] .page-heading h1 { font-size: clamp(34px, 4vw, 46px); }
.page[data-page="champions"] .subheading { font-size: 12px; }
.page[data-page="champions"] .champion-directory h3, .page[data-page="champions"] .meta-panel-head h2 { font-size: 19px; }
.page[data-page="champions"] .directory-champion span { font-size: 10px; }
.page[data-page="champions"] .champion-meta-table th { font-size: 9px; }
.page[data-page="champions"] .champion-meta-table td { font-size: 11px; }

/* Lesbare Matchkarten und OP.GG-artige, vollständig aufgeklappte Teams. */
.match-history-card .filter-tabs { flex-wrap: wrap; }
.match-history-card .filter-tabs button { padding: 8px 13px; font-size: 10px; }
.match-result strong { font-size: 11px; }
.match-result span, .match-result small { font-size: 10px; }
.match-result b { font-size: 12px; }
.match-champion-name strong { font-size: 13px; }
.match-champion-name small { font-size: 9px; }
.match-kda strong { font-size: 17px; }
.match-kda small { font-size: 10px; }
.match-metrics { font-size: 9px; line-height: 1.45; }
.match-badges span { font-size: 9px; }
.match-player span { font-size: 9px; }
.match-expanded { display: none; grid-template-columns: 1fr; gap: 0; margin-top: 10px; padding: 0; overflow: hidden; background: rgba(10,8,17,.5); border: 1px solid rgba(211,199,255,.12); border-radius: 10px; }
.match-row.is-expanded .match-expanded { display: grid; }
.expanded-match-tabs { display: flex; align-items: center; gap: 16px; padding: 7px; background: rgba(38,30,57,.76); border-bottom: 1px solid rgba(211,199,255,.12); }
.expanded-match-tabs button { padding: 8px 18px; color: #1a102c; background: var(--accent); border: 0; border-radius: 6px; font-size: 10px; font-weight: 900; }
.expanded-match-tabs span { color: #a9a0b7; font-size: 10px; }
.expanded-team { min-width: 920px; }
.expanded-team + .expanded-team { border-top: 1px solid rgba(211,199,255,.16); }
.expanded-team > header { display: flex; align-items: center; gap: 20px; padding: 10px 13px; color: #8fb5ff; background: rgba(76,119,205,.12); }
.expanded-team.loser > header { color: #ff7188; background: rgba(196,66,92,.11); }
.expanded-team > header strong { margin-right: auto; font-size: 11px; }
.expanded-team > header span { font-size: 10px; }
.expanded-team-columns, .expanded-player { display: grid; grid-template-columns: minmax(230px,1.5fr) 105px minmax(125px,.75fr) 70px 90px minmax(220px,1.3fr); align-items: center; gap: 12px; }
.expanded-team-columns { padding: 7px 13px; color: #7f778d; background: rgba(255,255,255,.018); font-size: 8px; text-transform: uppercase; }
.expanded-player { min-height: 52px; padding: 7px 13px; border-top: 1px solid rgba(255,255,255,.045); }
.expanded-player.is-self { background: rgba(var(--accent-rgb),.08); box-shadow: inset 3px 0 var(--accent); }
.expanded-player-identity { min-width: 0; display: grid; grid-template-columns: 24px 36px minmax(0,1fr); align-items: center; gap: 8px; padding: 0; color: var(--text); background: transparent; border: 0; cursor: pointer; text-align: left; }
.expanded-player-identity > img { width: 36px; height: 36px; object-fit: cover; border-radius: 7px; }
.expanded-player-level { display: grid; place-items: center; width: 23px; height: 23px; color: #ddd4ec; background: #221b31; border-radius: 50%; font-size: 8px; font-weight: 900; }
.expanded-player-identity strong, .expanded-player-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.expanded-player-identity strong { font-size: 11px; }
.expanded-player-identity small { margin-top: 3px; color: #928a9f; font-size: 8px; }
.expanded-player-kda b, .expanded-player-kda small, .expanded-player-vision b, .expanded-player-vision small, .expanded-player-cs b, .expanded-player-cs small { display: block; }
.expanded-player-kda b, .expanded-player-vision b, .expanded-player-cs b { font-size: 10px; }
.expanded-player-kda em { color: #ff6b82; font-style: normal; }
.expanded-player-kda small, .expanded-player-vision small, .expanded-player-cs small, .expanded-player-bars small { margin-top: 3px; color: #898190; font-size: 8px; }
.expanded-player-bars > span { display: block; width: 100%; height: 4px; overflow: hidden; background: #2b2438; border-radius: 4px; }
.expanded-player-bars i { display: block; height: 100%; background: linear-gradient(90deg, #7760d1, #ad95ff); }
.expanded-player-items { display: flex; gap: 3px; }
.expanded-player-items img, .expanded-player-items > span { width: 25px; height: 25px; background: #211b2b; border: 1px solid rgba(255,255,255,.07); border-radius: 5px; }
.expanded-player-items img.trinket { margin-left: 2px; border-radius: 50%; }
.expanded-unavailable { padding: 22px; color: var(--muted); font-size: 11px; text-align: center; }

@media (max-width: 1050px) {
  .match-expanded { overflow-x: auto; }
  .profile-stats-toolbar { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 650px) {
  .profile-tabs { gap: 18px; }
  .profile-tabs button { font-size: 11px; }
  .profile-stats-filters { overflow-x: auto; max-width: 100%; }
}

/* Profil-Unterseiten wechseln nur den Inhalt unterhalb des festen Profilkopfs. */
[hidden] { display: none !important; }
.profile-champion-panel, .champion-stats-card, .champion-stats-scroll { min-width: 0; }
.profile-champion-panel { width: 100%; gap: 18px; margin-top: 18px; }
.profile-champion-panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 4px 2px 0; }
.profile-champion-panel-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.profile-champion-panel-heading h2 span { color: var(--accent); }
.profile-champion-panel-heading .subheading { margin: 7px 0 0; font-size: 11px; }

@media (max-width: 650px) {
  .profile-champion-panel-heading { align-items: flex-start; flex-direction: column; }
}

/* Creative landing hero: a compact command center instead of a profile placeholder. */
.rift-landing {
  min-height: 500px;
  grid-template-columns: minmax(330px, .86fr) minmax(520px, 1.14fr);
  gap: 34px 52px;
  padding: 44px 46px 26px;
  border-color: rgba(191,169,255,.22);
  box-shadow: 0 28px 75px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.035);
}
.rift-landing::before {
  background:
    radial-gradient(circle at 9% 14%, rgba(168,130,255,.3), transparent 28%),
    radial-gradient(circle at 77% 40%, rgba(78,54,144,.22), transparent 34%),
    radial-gradient(circle at 101% 2%, rgba(95,131,255,.13), transparent 28%),
    linear-gradient(132deg, #1c1530 0%, #100c1c 53%, #0d0a17 100%);
}
.rift-landing::after {
  opacity: .42;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(115deg, transparent 44%, rgba(179,151,255,.07) 45%, transparent 46%);
  background-size: 54px 54px, 54px 54px, 220px 220px;
  mask-image: linear-gradient(90deg, #000 0%, #000 58%, transparent 100%);
}
.rift-landing-copy { align-self: center; gap: 12px; }
.rift-landing-copy .status-chip { gap: 7px; padding: 7px 9px; color: #d7c9ff; background: rgba(168,130,255,.12); border-color: rgba(190,166,255,.28); }
.rift-landing-copy .status-chip i { width: 6px; height: 6px; background: #a9ffcf; border-radius: 50%; box-shadow: 0 0 11px #7dfcb7; animation: landingPulse 2.2s ease-in-out infinite; }
.rift-landing-copy .onboarding-kicker { color: #c2b8d0 !important; }
.rift-landing-copy h2 { max-width: 610px; font-size: clamp(42px, 4.5vw, 66px); line-height: .91; letter-spacing: -.075em; }
.rift-landing-copy h2 span { color: transparent; background: linear-gradient(105deg, #f0eaff 8%, #a882ff 51%, #7d91ff); background-clip: text; -webkit-background-clip: text; }
.rift-landing-copy > p:not(.onboarding-kicker) { max-width: 530px; color: #a79eb5; font-size: 13px; line-height: 1.72; }
.rift-landing-copy .primary-button { min-height: 44px; padding-inline: 20px; box-shadow: 0 12px 28px rgba(126,86,224,.25); }
.landing-signals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.landing-signals span { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; color: #8f859f; background: rgba(9,7,15,.42); border: 1px solid rgba(207,194,255,.1); border-radius: 7px; font-size: 8px; font-weight: 850; letter-spacing: .055em; }
.landing-signals b { color: #d8ceea; font-size: 8px; }
.landing-signals .signal-live { width: 5px; height: 5px; background: #8affbd; border-radius: 50%; box-shadow: 0 0 8px rgba(138,255,189,.8); }

.rift-console { grid-area: preview; align-self: stretch; display: grid; grid-template-rows: auto minmax(285px,1fr) auto; min-width: 0; overflow: hidden; background: linear-gradient(145deg, rgba(28,21,44,.92), rgba(10,8,17,.97)); border: 1px solid rgba(205,187,255,.2); border-radius: 19px; box-shadow: 0 28px 55px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.045); }
.rift-console-head, .rift-console-foot { display: flex; align-items: center; padding: 13px 16px; color: #81768e; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.rift-console-head { border-bottom: 1px solid rgba(220,208,255,.09); }
.rift-console-head span { display: inline-flex; align-items: center; gap: 7px; }
.rift-console-head i { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); }
.rift-console-head b { margin-left: auto; color: #bca7ff; font-size: 8px; }
.rift-radar { position: relative; min-height: 285px; overflow: hidden; isolation: isolate; }
.radar-grid { position: absolute; z-index: -3; inset: 18px 62px; border: 1px solid rgba(185,158,255,.13); border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 43px, rgba(185,158,255,.09) 44px 45px), linear-gradient(90deg, transparent 49.8%, rgba(185,158,255,.1) 50%, transparent 50.2%), linear-gradient(transparent 49.8%, rgba(185,158,255,.1) 50%, transparent 50.2%); transform: perspective(600px) rotateX(5deg); }
.radar-grid::before, .radar-grid::after { content: ""; position: absolute; inset: 20%; border: 1px solid rgba(185,158,255,.11); border-radius: 50%; }
.radar-grid::after { inset: 39%; }
.radar-sweep { position: absolute; z-index: -2; left: 50%; top: 50%; width: 42%; height: 42%; transform-origin: 0 0; background: conic-gradient(from -32deg at 0 0, rgba(168,130,255,.26), transparent 27deg); animation: radarSweep 6.5s linear infinite; }
.radar-core { position: absolute; z-index: 3; left: 50%; top: 50%; display: grid; place-items: center; width: 76px; height: 76px; color: #160f27; background: linear-gradient(135deg, #eee8ff, #9e7aff 66%, #7351d5); border: 7px solid rgba(20,14,34,.86); border-radius: 50%; box-shadow: 0 0 0 1px rgba(190,165,255,.42), 0 0 42px rgba(150,111,255,.34); transform: translate(-50%,-50%); }
.radar-core span { font-size: 29px; font-weight: 950; font-style: italic; }
.radar-core small { position: absolute; top: calc(100% + 11px); color: #9d8daf; font-size: 7px; font-weight: 900; letter-spacing: .18em; }
.radar-champion { position: absolute; z-index: 2; width: 48px; height: 48px; object-fit: cover; border: 3px solid #21172f; border-radius: 13px; box-shadow: 0 0 0 1px rgba(183,153,255,.45), 0 12px 24px rgba(0,0,0,.45); }
.radar-ahri { left: 16%; top: 20%; }
.radar-viego { right: 15%; top: 18%; }
.radar-jinx { right: 20%; bottom: 15%; }
.radar-card { position: absolute; z-index: 4; min-width: 128px; padding: 9px 10px; background: rgba(15,11,25,.88); border: 1px solid rgba(200,181,255,.16); border-radius: 9px; box-shadow: 0 12px 26px rgba(0,0,0,.26); backdrop-filter: blur(10px); }
.radar-card span, .radar-card strong, .radar-card small { display: block; }
.radar-card span { color: #8f7ba8; font-size: 6px; font-weight: 950; letter-spacing: .12em; }
.radar-card strong { margin-top: 4px; color: #eee9f7; font-size: 10px; }
.radar-card small { margin-top: 3px; color: #7e748b; font-size: 7px; }
.radar-rank { right: 4%; top: 38%; }
.radar-build { left: 4%; bottom: 13%; }
.radar-match { right: 5%; bottom: 6%; transform: translateY(100%); opacity: 0; animation: radarReveal 6s ease-in-out infinite; }
.rift-console-foot { justify-content: space-between; gap: 12px; border-top: 1px solid rgba(220,208,255,.09); letter-spacing: 0; }
.rift-console-foot span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.rift-console-foot i { width: 4px; height: 4px; background: #78eaa9; border-radius: 50%; box-shadow: 0 0 7px #78eaa9; }
.rift-console-foot b { color: #b9afc7; font-size: 8px; }
.rift-steps { padding-top: 20px; }
.rift-steps li { position: relative; }
.rift-steps li::after { content: ""; position: absolute; right: 15px; width: 34px; height: 1px; background: linear-gradient(90deg, rgba(168,130,255,.4), transparent); }
.rift-steps li:last-child::after { display: none; }

@keyframes radarSweep { to { transform: rotate(360deg); } }
@keyframes radarReveal { 0%,45%,100% { opacity: 0; transform: translateY(100%); } 55%,88% { opacity: 1; transform: translateY(0); } }
@keyframes landingPulse { 50% { opacity: .45; box-shadow: 0 0 4px #7dfcb7; } }

@media (max-width: 1100px) {
  .rift-landing { grid-template-columns: 1fr; grid-template-areas: "copy" "preview" "steps"; }
  .rift-landing-copy { max-width: 680px; }
  .rift-console { min-height: 390px; }
}

@media (max-width: 650px) {
  .rift-landing { gap: 24px; padding: 26px 18px 20px; }
  .rift-landing-copy h2 { font-size: 43px; }
  .rift-landing-copy .onboarding-actions { align-items: flex-start; flex-direction: column; }
  .rift-console { grid-template-rows: auto 275px auto; min-height: 0; }
  .radar-grid { inset: 24px 18px; }
  .radar-card { min-width: 113px; }
  .radar-rank { right: 2%; }
  .radar-build { left: 2%; }
  .radar-match { display: none; }
  .radar-ahri { left: 5%; }
  .radar-viego { right: 6%; }
  .rift-console-foot { align-items: flex-start; flex-direction: column; }
  .rift-steps li::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .radar-sweep, .radar-match, .rift-landing-copy .status-chip i { animation: none; }
  .radar-match { opacity: 1; transform: none; }
}
