:root {
  color-scheme: dark;
  --bg: #070706;
  --bg-soft: #0d0c0a;
  --surface: rgba(18, 17, 14, .86);
  --surface-solid: #11100e;
  --surface-strong: #171512;
  --surface-hover: #1d1a16;
  --text: #f8f6f1;
  --text-strong: #ffffff;
  --muted: #aaa39a;
  --muted-2: #777168;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 151, 28, .55);
  --orange: #ff971c;
  --orange-2: #f06d00;
  --orange-soft: rgba(255, 151, 28, .12);
  --gold: #ffc650;
  --green: #54e59f;
  --danger: #ff6c75;
  --shadow: 0 22px 70px rgba(0, 0, 0, .40);
  --shadow-soft: 0 10px 34px rgba(0, 0, 0, .24);
  --radius: 20px;
  --radius-sm: 13px;
  --shell: min(1380px, calc(100% - 42px));
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f2ec;
  --bg-soft: #fffaf2;
  --surface: rgba(255, 255, 255, .88);
  --surface-solid: #ffffff;
  --surface-strong: #fff9f0;
  --surface-hover: #fff5e8;
  --text: #231e18;
  --text-strong: #0d0c0b;
  --muted: #6e665d;
  --muted-2: #948b81;
  --line: rgba(63, 49, 34, .13);
  --line-strong: rgba(226, 109, 0, .48);
  --orange: #e96f00;
  --orange-2: #ff9b21;
  --orange-soft: rgba(235, 111, 0, .10);
  --gold: #b76c00;
  --green: #12885b;
  --danger: #c63e4d;
  --shadow: 0 24px 70px rgba(95, 65, 29, .14);
  --shadow-soft: 0 10px 30px rgba(95, 65, 29, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 151, 28, .11), transparent 25%),
    radial-gradient(circle at 12% 32%, rgba(240, 109, 0, .07), transparent 28%),
    var(--bg);
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: var(--shell); margin-inline: auto; }
.is-hidden { display: none !important; }

.page-texture {
  position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
html[data-theme="light"] .page-texture { opacity: .3; background-image: linear-gradient(rgba(94,67,38,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(94,67,38,.035) 1px, transparent 1px); }
.ambient { position: fixed; width: 420px; height: 420px; border-radius: 50%; filter: blur(125px); pointer-events: none; z-index: -1; opacity: .13; }
.ambient-one { left: -220px; top: 300px; background: var(--orange); }
.ambient-two { right: -220px; top: 160px; background: var(--orange-2); opacity: .08; }

.topbar-wrap {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 83%, transparent);
  backdrop-filter: blur(20px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 220px; }
.brand-logo { width: 105px; height: 62px; object-fit: contain; object-position: center; filter: drop-shadow(0 5px 12px rgba(0,0,0,.26)); }
.brand-copy { display: grid; gap: 0; }
.brand-copy b { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.brand-copy small { color: var(--orange); font-size: 9px; letter-spacing: .24em; font-weight: 900; }
.main-nav { display: flex; align-items: stretch; align-self: stretch; gap: 4px; }
.main-nav a { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .025em; transition: .2s ease; }
.main-nav a span { color: var(--orange); font-size: 15px; }
.main-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--orange); transform: scaleX(0); transition: .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--text-strong); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .refresh-button, .ghost-button {
  min-height: 40px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface-solid) 76%, transparent); color: var(--text);
  border-radius: 11px; cursor: pointer; transition: .2s ease; display: inline-flex; align-items: center; justify-content: center;
}
.icon-button { width: 40px; padding: 0; color: var(--orange); }
.icon-button svg, .refresh-button svg { width: 17px; }
.refresh-button { gap: 8px; padding: 0 13px; font-size: 12px; font-weight: 850; }
.ghost-button { padding: 0 13px; font-size: 12px; font-weight: 850; color: var(--muted); }
.icon-button:hover, .refresh-button:hover, .ghost-button:hover { border-color: var(--line-strong); background: var(--orange-soft); transform: translateY(-1px); }
.refresh-button.is-loading svg { animation: spin .8s linear infinite; }

.hero {
  min-height: 445px; padding: 54px 0 62px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr); gap: 70px; align-items: center;
}
.hero-copy { position: relative; padding-left: 8px; }
.hero-copy::before { content: ""; position: absolute; width: 230px; height: 230px; left: 52%; top: 48%; transform: translate(-50%,-50%) rotate(10deg); border: 1px solid rgba(255,151,28,.14); clip-path: polygon(50% 0,100% 100%,0 100%); opacity: .55; z-index: -1; }
.eyebrow, .kicker { color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: var(--orange-soft); padding: 7px 10px; border-radius: 999px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 15%, transparent), 0 0 18px var(--gold); }
.status-dot.online { background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 16%, transparent), 0 0 18px var(--green); }
.status-dot.offline { background: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 15%, transparent), 0 0 18px var(--danger); }
.hero h1 { margin: 22px 0 0; display: grid; gap: 4px; font-size: clamp(44px, 5vw, 68px); line-height: .96; letter-spacing: -.055em; color: var(--text-strong); }
.hero h1 span { font-weight: 950; }
.hero h1 em { color: var(--orange); font-style: normal; font-weight: 950; text-transform: none; text-shadow: 0 10px 40px color-mix(in srgb, var(--orange) 18%, transparent); }
.hero-rule { display: block; width: 74px; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--orange), var(--orange-2)); margin: 24px 0 0; }
.hero-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.primary-button, .secondary-button {
  min-height: 48px; border-radius: 11px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 12px; font-weight: 900; letter-spacing: .025em; transition: .2s ease; cursor: pointer;
}
.primary-button { color: #16100a; background: linear-gradient(135deg, #ffbd55, var(--orange) 48%, #f17600); box-shadow: 0 12px 30px rgba(242, 112, 0, .27), inset 0 1px rgba(255,255,255,.5); border: 1px solid #ffb445; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 35px rgba(242,112,0,.34); }
.primary-button .button-icon { font-size: 16px; }
.secondary-button { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.secondary-button span { color: var(--muted); }
.secondary-button b { color: var(--orange); }

.glass-card { background: linear-gradient(145deg, color-mix(in srgb, var(--surface-solid) 96%, transparent), color-mix(in srgb, var(--surface-strong) 90%, transparent)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-panel { position: relative; overflow: hidden; border-radius: 24px; padding: 27px 29px 25px; border-color: color-mix(in srgb, var(--orange) 42%, var(--line)); }
.panel-glow { position: absolute; inset: -1px; pointer-events: none; background: radial-gradient(circle at 8% 0%, rgba(255,151,28,.18), transparent 35%); }
.hero-panel::after { content: ""; position: absolute; right: -58px; top: -72px; width: 210px; height: 210px; border-radius: 50%; background: rgba(255,151,28,.09); filter: blur(45px); pointer-events: none; }
.hero-panel-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hero-panel-top b { color: var(--orange); margin-right: 7px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; color: var(--green); }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 14px currentColor; }
.champion { position: relative; z-index: 1; display: grid; grid-template-columns: 108px 1fr; gap: 22px; align-items: center; min-height: 142px; margin: 18px 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
.champion-avatar { width: 104px; height: 104px; border-radius: 23px; position: relative; overflow: hidden; display: grid; place-items: center; background: linear-gradient(145deg, rgba(255,151,28,.28), var(--surface-strong)); color: var(--orange); font-size: 24px; font-weight: 900; border: 1px solid color-mix(in srgb, var(--orange) 55%, transparent); box-shadow: 0 12px 32px rgba(0,0,0,.24); }
.champion-avatar img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.champion-info { display: grid; min-width: 0; }
.champion-info > span { color: var(--gold); font-size: 11px; font-weight: 950; letter-spacing: .09em; }
.champion-info strong { margin-top: 7px; overflow: hidden; text-overflow: ellipsis; font-size: clamp(28px, 3.2vw, 44px); line-height: 1; letter-spacing: -.045em; color: var(--text-strong); }
.champion-info small { margin-top: 10px; color: var(--muted); font-size: 13px; }
.hero-kpis { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hero-kpis > div { min-width: 0; padding: 15px 17px; display: grid; gap: 4px; }
.hero-kpis > div + div { border-left: 1px solid var(--line); }
.hero-kpis b { font-size: 23px; color: var(--text-strong); }
.hero-kpis span { color: var(--muted-2); font-size: 8px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; line-height: 1.35; }

.spotlight, .leaderboards { padding: 42px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 22px; }
.section-heading h2 { margin: 5px 0 0; color: var(--text-strong); font-size: clamp(26px, 3vw, 38px); letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.split-heading { align-items: center; }
.updated { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.updated > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.spotlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.spotlight-card, .metric-card { position: relative; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, var(--surface-solid), var(--surface)); box-shadow: var(--shadow-soft); transition: .22s ease; }
.spotlight-card { min-height: 315px; border-radius: 18px; padding: 21px; cursor: pointer; }
.spotlight-card::before, .metric-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--orange), var(--card-color, var(--orange))); }
.spotlight-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -48px; top: -46px; border-radius: 50%; background: color-mix(in srgb, var(--card-color, var(--orange)) 12%, transparent); filter: blur(20px); }
.spotlight-card:hover, .metric-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--orange) 43%, var(--line)); background: var(--surface-hover); }
.card-top, .metric-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.metric-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--orange); background: var(--orange-soft); border: 1px solid color-mix(in srgb, var(--orange) 25%, transparent); }
.metric-icon svg { width: 21px; }
.card-number { color: var(--muted-2); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.spotlight-card h3, .metric-card h3 { margin: 20px 0 0; color: var(--text-strong); letter-spacing: -.025em; }
.spotlight-card h3 { font-size: 23px; }
.winner { margin-top: 8px; color: var(--muted); font-size: 12px; }
.spotlight-value { margin-top: 7px; font-size: 26px; font-weight: 900; color: var(--orange); letter-spacing: -.035em; }
.mini-ranking { display: grid; gap: 10px; margin-top: 19px; }
.mini-rank-row { position: relative; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 8px; align-items: center; padding-bottom: 9px; font-size: 11px; }
.mini-rank-row .rank { color: var(--orange); font-weight: 900; }
.mini-rank-row .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-rank-row .value { color: var(--muted); }
.mini-progress { position: absolute; left: 38px; right: 0; bottom: 0; height: 3px; background: var(--line); border-radius: 999px; overflow: hidden; }
.mini-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--card-color, var(--orange))); }

.toolbar { border-radius: 16px; padding: 11px; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; box-shadow: var(--shadow-soft); }
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter-button { min-height: 37px; padding: 0 13px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 850; cursor: pointer; transition: .18s ease; white-space: nowrap; }
.filter-button:hover { color: var(--text); background: var(--orange-soft); }
.filter-button.active { color: #171009; background: linear-gradient(135deg, #ffbd55, var(--orange)); border-color: var(--orange); box-shadow: 0 8px 20px rgba(241,112,0,.18); }
.search-field { width: min(265px, 100%); min-height: 39px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; gap: 8px; padding: 0 11px; color: var(--muted); background: color-mix(in srgb, var(--bg) 45%, transparent); }
.search-field:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 3px var(--orange-soft); }
.search-field svg { width: 17px; flex: 0 0 auto; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
.search-field input::placeholder { color: var(--muted-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-card { min-height: 238px; padding: 18px; border-radius: 16px; color: var(--text); text-align: left; cursor: pointer; }
.metric-card h3 { font-size: 17px; }
.category-label { display: block; color: var(--orange); font-size: 9px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; margin-top: 5px; }
.metric-leader { display: flex; align-items: center; gap: 10px; margin-top: 19px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: color-mix(in srgb, var(--bg) 35%, transparent); }
.player-avatar { width: 38px; height: 38px; border-radius: 9px; flex: 0 0 auto; overflow: hidden; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); font-size: 10px; font-weight: 900; border: 1px solid color-mix(in srgb, var(--orange) 24%, transparent); }
.player-avatar img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.metric-leader-info { min-width: 0; display: grid; gap: 3px; }
.metric-leader-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.metric-leader-info span { color: var(--orange); font-size: 12px; font-weight: 850; }
.no-data { margin-top: 20px; color: var(--muted); font-size: 12px; }
.card-footer { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 800; }
.card-footer b { color: var(--orange); font-size: 16px; }
.error-banner { margin-bottom: 15px; padding: 12px 14px; color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent); border-radius: 11px; font-size: 12px; }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state > span { color: var(--orange); font-size: 42px; }
.empty-state h3 { margin: 8px 0 5px; color: var(--text); }
.empty-state p { margin: 0; font-size: 12px; }

.footer { margin-top: 40px; padding: 30px 0 38px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 22px; color: var(--muted); font-size: 10px; }
.footer > div { display: grid; gap: 5px; }
.footer b { color: var(--orange); letter-spacing: .16em; }
.footer > div:last-child { text-align: right; }

.leaderboard-dialog { width: min(660px, calc(100% - 28px)); max-height: min(760px, calc(100vh - 30px)); border: 1px solid color-mix(in srgb, var(--orange) 30%, var(--line)); border-radius: 20px; padding: 0; color: var(--text); background: var(--surface-solid); box-shadow: 0 35px 120px rgba(0,0,0,.55); }
.leaderboard-dialog::backdrop { background: rgba(0,0,0,.70); backdrop-filter: blur(7px); }
.dialog-shell { position: relative; padding: 25px; }
.dialog-close { position: absolute; right: 16px; top: 14px; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; font-size: 21px; }
.dialog-close:hover { color: var(--orange); border-color: var(--line-strong); }
.dialog-header { display: flex; align-items: center; gap: 13px; padding-right: 50px; margin-bottom: 20px; }
.dialog-header span:not(.metric-icon) { color: var(--orange); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.dialog-header h2 { margin: 4px 0 0; color: var(--text-strong); font-size: 25px; }
.dialog-rows { display: grid; gap: 7px; max-height: 560px; overflow: auto; padding-right: 3px; }
.dialog-row { display: grid; grid-template-columns: 42px 40px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 58px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; background: color-mix(in srgb, var(--bg) 32%, transparent); }
.dialog-row:first-child { border-color: color-mix(in srgb, var(--orange) 50%, var(--line)); background: var(--orange-soft); }
.dialog-rank { color: var(--orange); font-weight: 900; text-align: center; }
.dialog-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 800; }
.dialog-value { color: var(--orange); font-size: 12px; font-weight: 900; text-align: right; }

.skeleton-block, .skeleton-card { animation: pulse 1.3s ease-in-out infinite; }
.skeleton-card { background: linear-gradient(100deg, var(--surface-solid) 30%, var(--surface-hover) 50%, var(--surface-solid) 70%); background-size: 200% 100%; }
@keyframes pulse { 0%,100% { opacity: .52; } 50% { opacity: .86; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .main-nav { display: none; }
  .brand { min-width: auto; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: .82fr 1.18fr; gap: 42px; }
}
@media (max-width: 900px) {
  :root { --shell: min(100% - 28px, 760px); }
  .topbar { min-height: 68px; }
  .brand-logo { width: 82px; height: 54px; }
  .brand-copy { display: none; }
  .refresh-button span { display: none; }
  .refresh-button { width: 40px; padding: 0; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 42px 0 35px; gap: 34px; }
  .hero-copy { text-align: center; padding-left: 0; }
  .eyebrow { margin-inline: auto; }
  .hero h1 { font-size: clamp(42px, 10vw, 62px); }
  .hero-rule { margin-inline: auto; }
  .hero-buttons { justify-content: center; }
  .spotlight-grid { grid-template-columns: 1fr; }
  .spotlight-card { min-height: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading p { display: none; }
}
@media (max-width: 620px) {
  .online-players-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .online-player-card { min-height: 45px; }
  :root { --shell: calc(100% - 22px); }
  .top-actions { gap: 5px; }
  .ghost-button { display: none !important; }
  .brand-logo { width: 72px; }
  .hero { padding-top: 30px; }
  .hero h1 { font-size: clamp(38px, 13vw, 54px); }
  .hero-panel { padding: 21px 18px 18px; }
  .champion { grid-template-columns: 82px 1fr; gap: 15px; min-height: 115px; }
  .champion-avatar { width: 80px; height: 80px; border-radius: 18px; }
  .champion-info strong { font-size: 25px; }
  .hero-kpis > div { padding: 12px 9px; }
  .hero-kpis b { font-size: 18px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .section-heading { margin-bottom: 16px; }
  .spotlight, .leaderboards { padding: 30px 0; }
  .footer { flex-direction: column; }
  .footer > div:last-child { text-align: left; }
  .dialog-shell { padding: 20px 14px; }
  .dialog-row { grid-template-columns: 32px 38px minmax(0,1fr); }
  .dialog-value { grid-column: 3; text-align: left; }
}

/* =====================================================================
   WANAStatsWeb 1.2 – Spielerprofile, globale Suche und Serverstatus
   ===================================================================== */

body { min-height: 100vh; }
#app { min-height: calc(100vh - 155px); }
.app-view { animation: view-in .22s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.topbar { gap: 16px; }
.brand { min-width: 196px; }
.brand-logo { width: 92px; height: 58px; }
.main-nav { flex: 0 0 auto; }
.main-nav a { padding-inline: 10px; }

.header-search { position: relative; width: clamp(190px, 19vw, 285px); margin-left: auto; }
.header-search-field {
  min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 10px 0 12px;
  color: var(--muted); border: 1px solid var(--line); border-radius: 12px;
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent); transition: .2s ease;
}
.header-search-field:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 3px var(--orange-soft); background: var(--surface-solid); }
.header-search-field svg { width: 17px; flex: 0 0 auto; }
.header-search-field input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
.header-search-field input::placeholder { color: var(--muted-2); }
.header-search-field kbd { display: grid; place-items: center; min-width: 23px; height: 22px; padding: 0 5px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted-2); background: var(--bg-soft); font: 700 10px/1 ui-monospace, monospace; }
.player-suggestions {
  position: absolute; left: 0; right: 0; top: calc(100% + 9px); z-index: 80; padding: 7px;
  border: 1px solid color-mix(in srgb, var(--orange) 26%, var(--line)); border-radius: 15px;
  background: color-mix(in srgb, var(--surface-solid) 97%, transparent); box-shadow: 0 22px 60px rgba(0,0,0,.42); backdrop-filter: blur(18px);
}
.player-suggestion {
  width: 100%; min-height: 58px; display: grid; grid-template-columns: 39px minmax(0,1fr) auto; align-items: center; gap: 10px;
  padding: 8px 9px; border: 0; border-radius: 10px; color: var(--text); background: transparent; text-align: left; cursor: pointer;
}
.player-suggestion:hover, .player-suggestion.active { background: var(--orange-soft); }
.suggestion-info { min-width: 0; display: grid; gap: 3px; }
.suggestion-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.suggestion-info small { color: var(--muted); font-size: 10px; }
.suggestion-empty { padding: 18px 12px; color: var(--muted); text-align: center; font-size: 11px; }

.top-actions { flex: 0 0 auto; }
.server-status-chip {
  min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 11px; background: color-mix(in srgb, var(--surface-solid) 76%, transparent);
  color: var(--muted); font-size: 9px; font-weight: 950; letter-spacing: .09em;
}
.server-status-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px currentColor; }
.server-status-chip small { color: var(--muted-2); font-size: 9px; letter-spacing: 0; }
.server-status-chip.online { color: var(--green); border-color: color-mix(in srgb, var(--green) 26%, var(--line)); }
.server-status-chip.online i { background: var(--green); }
.server-status-chip.offline { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 28%, var(--line)); }
.server-status-chip.offline i { background: var(--danger); }
.server-status-chip.is-loading i { animation: pulse 1.2s ease-in-out infinite; }
.server-status-area { position: relative; display: inline-flex; }
.server-status-chip { cursor: pointer; font-family: inherit; }
.server-status-chip:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.online-players-popover {
  position: absolute; z-index: 120; top: calc(100% + 12px); right: 0;
  width: min(650px, calc(100vw - 24px)); padding: 14px;
  border: 1px solid color-mix(in srgb, var(--orange) 30%, var(--line)); border-radius: 17px;
  background: color-mix(in srgb, var(--surface-solid) 97%, transparent);
  box-shadow: 0 24px 70px rgba(0,0,0,.5); backdrop-filter: blur(22px) saturate(1.12);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-7px) scale(.985);
  transform-origin: top right; transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}
.server-status-area:hover .online-players-popover,
.server-status-area:focus-within .online-players-popover,
.server-status-area.is-open .online-players-popover {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
}
.online-players-popover::before {
  content: ""; position: absolute; right: 34px; top: -7px; width: 12px; height: 12px;
  border-left: 1px solid color-mix(in srgb, var(--orange) 30%, var(--line));
  border-top: 1px solid color-mix(in srgb, var(--orange) 30%, var(--line));
  background: var(--surface-solid); transform: rotate(45deg);
}
.online-popover-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 2px 3px 12px; }
.online-popover-head > div { min-width: 0; display: grid; gap: 3px; }
.online-popover-head b { color: var(--text-strong); font-size: 13px; letter-spacing: -.01em; }
.online-popover-head small { color: var(--muted); font-size: 9px; }
.online-live-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 8px; font-weight: 950; letter-spacing: .12em; }
.online-live-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.online-live-badge.offline { color: var(--danger); }
.online-players-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; max-height: min(390px, 68vh); overflow-y: auto; padding: 2px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.online-player-card {
  min-width: 0; min-height: 47px; display: grid; grid-template-columns: 31px minmax(0,1fr); align-items: center; gap: 8px;
  padding: 7px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: color-mix(in srgb, var(--bg) 30%, transparent);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.online-player-card:hover { border-color: var(--line-strong); background: var(--orange-soft); transform: translateY(-1px); }
.online-player-card .player-avatar { width: 31px; height: 31px; border-radius: 8px; }
.online-player-copy { min-width: 0; display: grid; gap: 3px; }
.online-player-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-strong); font-size: 10px; }
.online-player-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-2); font-size: 7.5px; }
.online-player-copy small.online-since-compact { overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.18; }
.online-players-empty { padding: 26px 15px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; font-size: 10px; }
html[data-theme="light"] .online-players-popover { box-shadow: 0 22px 55px rgba(94,63,25,.2); }
.map-button { flex: 0 0 auto; }
.page-error { margin: 20px 0 0; }

.secondary-link-button {
  min-height: 48px; border: 1px solid var(--line); border-radius: 11px; padding: 0 17px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: var(--text);
  background: var(--surface); font-size: 12px; font-weight: 900; transition: .2s ease;
}
.secondary-link-button span { color: var(--orange); }
.secondary-link-button:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--orange-soft); }

.player-link { color: inherit; text-decoration: none; cursor: pointer; transition: color .18s ease; }
.player-link:hover { color: var(--orange); }
.avatar-link { display: inline-flex; position: relative; z-index: 3; }
.champion-name { display: block; color: var(--text-strong); font-size: clamp(25px, 3vw, 38px); font-weight: 950; line-height: 1.05; letter-spacing: -.04em; }
.metric-player-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 850; }
.winner .player-link, .mini-rank-row .player-link { position: relative; z-index: 3; }
.card-open-button { position: absolute; inset: 0; z-index: 1; border: 0; background: transparent; cursor: pointer; }
.metric-card > *:not(.card-open-button), .spotlight-card > *:not(.card-open-button) { position: relative; z-index: 2; }
.metric-card .player-link, .spotlight-card .player-link { position: relative; z-index: 4; }
.dialog-row { text-decoration: none; transition: .18s ease; }
.dialog-row:hover { border-color: var(--line-strong); background: var(--orange-soft); transform: translateX(2px); }

.presence-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 29px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 9px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.presence-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.presence-badge.online { color: var(--green); border-color: color-mix(in srgb, var(--green) 28%, var(--line)); background: color-mix(in srgb, var(--green) 7%, var(--surface)); }
.presence-badge.offline { color: var(--muted-2); }
.presence-badge.compact { min-width: 24px; min-height: 24px; padding: 0; justify-content: center; border: 0; background: transparent; }
.presence-badge.compact i { width: 8px; height: 8px; }

/* Player directory */
.subpage-hero { padding: 56px 0 35px; display: flex; align-items: end; justify-content: space-between; gap: 36px; }
.subpage-hero h1 { margin: 8px 0 9px; color: var(--text-strong); font-size: clamp(42px, 5vw, 67px); line-height: .95; letter-spacing: -.055em; }
.subpage-hero p { margin: 0; max-width: 620px; color: var(--muted); font-size: 14px; }
.subpage-kpis { min-width: 340px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 18px; overflow: hidden; }
.subpage-kpis > div { padding: 19px 22px; display: grid; gap: 4px; }
.subpage-kpis > div + div { border-left: 1px solid var(--line); }
.subpage-kpis b { color: var(--orange); font-size: 27px; letter-spacing: -.04em; }
.subpage-kpis span { color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
.players-directory { padding: 15px 0 45px; }
.players-toolbar { margin-bottom: 18px; padding: 11px; border-radius: 16px; display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow-soft); }
.players-local-search { flex: 0 0 285px; }
.alphabet-filter { min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.alphabet-filter::-webkit-scrollbar { display: none; }
.alphabet-filter button { flex: 0 0 auto; min-width: 33px; height: 34px; padding: 0 9px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; font-weight: 900; }
.alphabet-filter button:hover { color: var(--text); background: var(--orange-soft); }
.alphabet-filter button.active { color: #171009; border-color: var(--orange); background: linear-gradient(135deg, #ffbd55, var(--orange)); }
.players-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.player-card {
  min-height: 82px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto 24px; align-items: center; gap: 12px;
  padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-soft); transition: .2s ease;
}
.player-card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface-hover); }
.player-card .player-avatar { width: 48px; height: 48px; border-radius: 12px; }
.player-card-info { min-width: 0; display: grid; gap: 4px; }
.player-card-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-strong); font-size: 14px; }
.player-card-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.player-card-arrow { color: var(--orange); font-size: 17px; transition: .2s ease; }
.player-card:hover .player-card-arrow { transform: translateX(3px); }

/* Profile */
.profile-loading { min-height: 350px; margin: 60px 0; display: grid; place-content: center; justify-items: center; gap: 18px; border-radius: 24px; color: var(--muted); }
.profile-loader { width: 42px; height: 42px; border: 3px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
.profile-not-found { min-height: 440px; display: grid; place-content: center; justify-items: center; }
.profile-not-found .primary-button { margin-top: 18px; }
.profile-hero {
  position: relative; min-height: 390px; margin-top: 38px; padding: 56px 42px 36px;
  display: grid; grid-template-columns: 245px minmax(0,1fr) 150px; align-items: center; gap: 38px;
  border-radius: 26px; overflow: hidden; border-color: color-mix(in srgb, var(--orange) 36%, var(--line));
}
.profile-hero::after { content: ""; position: absolute; right: -110px; top: -180px; width: 430px; height: 430px; border-radius: 50%; background: color-mix(in srgb, var(--orange) 10%, transparent); filter: blur(70px); pointer-events: none; }
.back-button { position: absolute; top: 17px; left: 20px; z-index: 4; min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: color-mix(in srgb, var(--surface-solid) 76%, transparent); cursor: pointer; font-size: 10px; font-weight: 850; }
.back-button span { color: var(--orange); font-size: 16px; }
.back-button:hover { color: var(--text); border-color: var(--line-strong); background: var(--orange-soft); }
.profile-skin-stage { position: relative; z-index: 2; min-height: 295px; display: grid; place-items: center; }
.profile-skin-stage::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 175px; height: 30px; transform: translateX(-50%); border-radius: 50%; background: rgba(0,0,0,.36); filter: blur(12px); }
.skin-glow { position: absolute; width: 210px; height: 210px; border-radius: 50%; background: color-mix(in srgb, var(--orange) 19%, transparent); filter: blur(40px); }
.profile-skin { position: relative; z-index: 2; display: block; max-width: 220px; max-height: 300px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 20px 23px rgba(0,0,0,.34)); }
.profile-skin-fallback { position: relative; z-index: 2; }
.profile-skin-fallback .champion-avatar { width: 145px; height: 145px; }
.profile-identity { position: relative; z-index: 2; min-width: 0; }
.profile-name-line { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.profile-name-line h1 { margin: 8px 0 3px; overflow-wrap: anywhere; color: var(--text-strong); font-size: clamp(42px, 5vw, 68px); line-height: .94; letter-spacing: -.055em; }
.profile-uuid { margin: 9px 0 25px; color: var(--muted-2); font: 600 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; word-break: break-all; }
.profile-meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: color-mix(in srgb, var(--bg) 28%, transparent); }
.profile-meta-grid > div { min-width: 0; padding: 15px; display: grid; gap: 6px; }
.profile-meta-grid > div + div { border-left: 1px solid var(--line); }
.profile-meta-grid span { color: var(--muted-2); font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.profile-meta-grid b { overflow: hidden; text-overflow: ellipsis; color: var(--text); font-size: 11px; white-space: nowrap; }
.profile-avatar-card { position: relative; z-index: 2; display: grid; justify-items: center; gap: 12px; padding: 19px 13px; border: 1px solid var(--line); border-radius: 17px; background: color-mix(in srgb, var(--bg) 34%, transparent); }
.profile-avatar-card > span { color: var(--muted-2); font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.profile-avatar-card .champion-avatar { width: 105px; height: 105px; border-radius: 21px; }
.profile-stats-section { padding: 48px 0 30px; }
.global-stats-section { padding: 28px 0 42px; }
.global-kpis { grid-template-columns: repeat(3, 1fr); min-width: 510px; }
.global-kpis > div + div { border-left: 1px solid var(--line); }
.global-stats-loading { min-height: 150px; margin-top: 16px; }
.global-stat-card .profile-stat-value { color: var(--card-color); }
.global-stat-card .profile-stat-rank { color: var(--muted); }
.profile-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.profile-stat-card { position: relative; min-height: 205px; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-soft); }
.profile-stat-card::after { content: ""; position: absolute; right: -45px; top: -45px; width: 120px; height: 120px; border-radius: 50%; background: color-mix(in srgb, var(--card-color) 11%, transparent); filter: blur(22px); }
.profile-stat-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.profile-stat-card h3 { position: relative; z-index: 1; margin: 19px 0 7px; color: var(--text-strong); font-size: 15px; }
.profile-stat-value { position: relative; z-index: 1; display: block; color: var(--orange); font-size: clamp(23px, 2.2vw, 31px); line-height: 1; letter-spacing: -.04em; overflow-wrap: anywhere; }
.profile-stat-rank { position: relative; z-index: 1; display: block; margin-top: 11px; color: var(--muted); font-size: 10px; font-weight: 750; }
.profile-stat-key { position: absolute; z-index: 1; left: 18px; bottom: 16px; color: var(--muted-2); font-size: 8px; }
.empty-inline { grid-column: 1 / -1; padding: 65px 20px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; }

html[data-theme="light"] .player-suggestions { box-shadow: 0 20px 45px rgba(94,63,25,.17); }
html[data-theme="light"] .profile-skin-stage::after { background: rgba(83,54,23,.18); }
html[data-theme="light"] .profile-skin { filter: drop-shadow(0 18px 18px rgba(85,57,27,.18)); }

@media (max-width: 1280px) {
  .online-players-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brand-copy { display: none; }
  .brand { min-width: auto; }
  .main-nav a { padding-inline: 8px; font-size: 11px; }
  .header-search { width: min(240px, 22vw); }
  .server-status-chip small { display: none; }
  .profile-stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1080px) {
  .main-nav { display: flex; }
  .main-nav a span { display: none; }
  .brand-logo { width: 78px; }
  .header-search { width: min(230px, 27vw); }
  .server-status-chip { padding-inline: 9px; }
  .server-status-chip span { display: none; }
  .players-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-hero { grid-template-columns: 205px minmax(0,1fr); }
  .profile-avatar-card { display: none; }
}

@media (max-width: 860px) {
  .online-players-popover { position: fixed; top: 74px; right: 12px; left: 12px; width: auto; }
  .online-players-popover::before { display: none; }
  .online-players-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: min(410px, 65vh); }
  .topbar { min-height: 70px; flex-wrap: wrap; padding: 7px 0; }
  .brand { order: 1; }
  .top-actions { order: 2; margin-left: auto; }
  .main-nav { order: 3; height: 42px; flex: 1 1 auto; justify-content: center; }
  .main-nav a { padding: 0 13px; }
  .header-search { order: 4; width: 100%; margin: 0 0 5px; }
  .player-suggestions { top: calc(100% + 5px); }
  .subpage-hero { align-items: stretch; flex-direction: column; padding-top: 42px; }
  .subpage-kpis { min-width: 0; width: 100%; }
  .profile-hero { min-height: auto; grid-template-columns: 170px minmax(0,1fr); padding: 62px 25px 30px; gap: 24px; }
  .profile-skin-stage { min-height: 240px; }
  .profile-skin { max-height: 240px; max-width: 175px; }
  .profile-meta-grid { grid-template-columns: 1fr; }
  .profile-meta-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .profile-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .topbar { gap: 7px; }
  .brand-logo { width: 68px; height: 48px; }
  .main-nav { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { flex: 1 0 auto; justify-content: center; padding: 0 10px; font-size: 10px; }
  .server-status-chip { min-width: 35px; padding: 0; justify-content: center; }
  .server-status-chip span, .server-status-chip small { display: none; }
  .header-search-field kbd { display: none; }
  .players-toolbar { align-items: stretch; flex-direction: column; }
  .players-local-search { flex-basis: auto; width: 100%; }
  .players-grid { grid-template-columns: 1fr; }
  .player-card { grid-template-columns: 48px minmax(0,1fr) auto 20px; }
  .subpage-hero h1 { font-size: 46px; }
  .profile-hero { grid-template-columns: 1fr; text-align: center; padding: 58px 18px 25px; }
  .profile-skin-stage { min-height: 205px; }
  .profile-skin { max-height: 205px; }
  .profile-name-line { justify-content: center; }
  .profile-uuid { margin-bottom: 18px; }
  .profile-meta-grid { text-align: left; }
  .profile-stats-grid { grid-template-columns: 1fr; }
  .profile-stat-card { min-height: 185px; }
  .profile-stats-section { padding-top: 35px; }
}

/* Keep the reduced three-item navigation visible on normal desktop widths. */
.main-nav { display: flex; }

/* =====================================================================
   WANAStatsWeb 1.4 – deutsche Fortschritte und serverweite Platzierungen
   ===================================================================== */

.profile-meta-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-advancements-section { padding: 28px 0 48px; }
.advancement-total-badge {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--green) 28%, var(--line)); border-radius: 12px;
  background: color-mix(in srgb, var(--green) 8%, var(--surface-solid));
}
.advancement-total-badge b { color: var(--green); font-size: 17px; }
.advancement-total-badge span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.advancement-overview {
  display: grid; grid-template-columns: auto minmax(180px, 1fr); align-items: center; gap: 24px;
  margin-bottom: 14px; padding: 17px 19px; border-radius: 16px;
}
.advancement-overview-copy { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.advancement-overview-copy span { color: var(--muted); font-size: 10px; font-weight: 850; }
.advancement-overview-copy strong { color: var(--green); font-size: 22px; letter-spacing: -.04em; }
.advancement-progress-track {
  height: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 99px;
  background: color-mix(in srgb, var(--bg) 58%, transparent); box-shadow: inset 0 1px 3px rgba(0,0,0,.2);
}
.advancement-progress-track > span {
  display: block; width: 0; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--green) 82%, #fff), var(--green));
  box-shadow: 0 0 18px color-mix(in srgb, var(--green) 42%, transparent); transition: width .45s ease;
}
.advancement-categories { display: grid; gap: 12px; }
.advancement-category { overflow: hidden; border-radius: 17px; }
.advancement-category > summary,
.advancement-item > summary { list-style: none; cursor: pointer; user-select: none; }
.advancement-category > summary::-webkit-details-marker,
.advancement-item > summary::-webkit-details-marker { display: none; }
.advancement-category > summary {
  min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 13px 17px; transition: background .2s ease;
}
.advancement-category > summary:hover { background: var(--surface-hover); }
.advancement-category[open] > summary { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--orange) 5%, transparent); }
.advancement-category-identity { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; column-gap: 12px; }
.advancement-category-icon {
  grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--orange) 28%, var(--line)); border-radius: 12px;
  background: var(--orange-soft); font-style: normal; font-size: 20px;
}
.advancement-category-identity b { overflow: hidden; text-overflow: ellipsis; color: var(--text-strong); font-size: 14px; white-space: nowrap; }
.advancement-category-identity small { color: var(--muted); font-size: 10px; }
.advancement-category-progress { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.advancement-category-progress-track { width: 105px; height: 6px; overflow: hidden; border-radius: 99px; background: var(--line); }
.advancement-category-progress-track > span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.advancement-category-progress b { min-width: 42px; color: var(--muted); font-size: 10px; text-align: right; }
.advancement-category-progress > i { color: var(--orange); font-style: normal; transition: transform .2s ease; }
.advancement-category[open] .advancement-category-progress > i { transform: rotate(180deg); }
.advancement-list { display: grid; gap: 8px; padding: 12px; background: color-mix(in srgb, var(--bg) 22%, transparent); }
.advancement-item {
  overflow: hidden; border: 1px solid var(--line); border-radius: 13px;
  background: color-mix(in srgb, var(--surface-solid) 78%, transparent); transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.advancement-item:hover { border-color: color-mix(in srgb, var(--orange) 28%, var(--line)); transform: translateY(-1px); }
.advancement-item.completed {
  border-color: color-mix(in srgb, var(--green) 32%, var(--line));
  background: color-mix(in srgb, var(--green) 6%, var(--surface-solid));
}
.advancement-item > summary {
  min-height: 64px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px;
  padding: 9px 13px;
}
.advancement-status-icon {
  width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
  color: var(--muted-2); background: color-mix(in srgb, var(--bg) 38%, transparent); font-size: 17px; font-weight: 950;
}
.advancement-item.completed .advancement-status-icon {
  color: #071a10; border-color: color-mix(in srgb, var(--green) 65%, transparent); background: var(--green);
  box-shadow: 0 0 16px color-mix(in srgb, var(--green) 22%, transparent);
}
.advancement-item-copy { min-width: 0; display: grid; gap: 3px; }
.advancement-item-copy b { overflow: hidden; text-overflow: ellipsis; color: var(--text); font-size: 12px; white-space: nowrap; }
.advancement-item.completed .advancement-item-copy b { color: color-mix(in srgb, var(--green) 82%, var(--text-strong)); }
.advancement-item-copy small { color: var(--muted-2); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.advancement-item-badges { display: flex; align-items: center; gap: 8px; }
.advancement-secret-badge {
  padding: 5px 7px; border: 1px solid color-mix(in srgb, var(--orange) 34%, var(--line)); border-radius: 7px;
  color: var(--orange); background: var(--orange-soft); font-size: 8px; font-style: normal; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
}
.advancement-rank-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--orange) 42%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--orange) 11%, var(--surface));
  color: color-mix(in srgb, var(--orange) 88%, var(--text-strong));
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .035em;
  white-space: nowrap;
}
.advancement-rank-badge.pending-rank { opacity: .72; border-style: dashed; }
.advancement-rank-badge.first {
  border-color: color-mix(in srgb, #ffd166 65%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, #ffd166 19%, var(--surface)), color-mix(in srgb, var(--orange) 11%, var(--surface)));
  color: color-mix(in srgb, #ffd166 86%, var(--text-strong));
  box-shadow: 0 0 18px color-mix(in srgb, #ffd166 14%, transparent);
}

.advancement-chevron { color: var(--muted); font-style: normal; transition: transform .2s ease; }
.advancement-item[open] .advancement-chevron { transform: rotate(180deg); }
.advancement-item-body { padding: 0 63px 14px; }
.advancement-item-body p { margin: 0; padding-top: 1px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.advancement-item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; }
.advancement-item-meta span,
.advancement-item-meta time { font-size: 9px; font-weight: 800; }
.advancement-item-meta .done { color: var(--green); }
.advancement-item-meta .pending { color: var(--orange); }
.advancement-item-meta time { color: var(--muted); }
.advancement-item-meta .server-rank { color: color-mix(in srgb, var(--orange) 80%, var(--text)); }
.advancement-item-meta .server-first { color: color-mix(in srgb, #ffd166 78%, var(--text-strong)); }

.advancement-item-meta code {
  margin-left: auto; max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 4px 6px;
  border: 1px solid var(--line); border-radius: 6px; color: var(--muted-2); background: var(--bg-soft); font-size: 8px; white-space: nowrap;
}
.advancement-empty { min-height: 250px; }

html[data-theme="light"] .advancement-item.completed {
  border-color: color-mix(in srgb, var(--green) 35%, var(--line));
  background: color-mix(in srgb, var(--green) 7%, #fff);
}
html[data-theme="light"] .advancement-item.completed .advancement-status-icon { color: #fff; }
html[data-theme="light"] .advancement-rank-badge { background: #fff8ee; color: #9a4a00; }
html[data-theme="light"] .advancement-rank-badge.first { background: linear-gradient(135deg, #fff7d6, #fff3e2); color: #845200; }

html[data-theme="light"] .advancement-progress-track { box-shadow: inset 0 1px 3px rgba(80,52,24,.1); }

@media (max-width: 900px) {
  .profile-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-meta-grid > div + div { border-left: 1px solid var(--line); border-top: 0; }
  .profile-meta-grid > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .profile-meta-grid > div:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .advancement-overview { grid-template-columns: 1fr; gap: 11px; }
  .advancement-overview-copy { justify-content: space-between; }
  .advancement-category > summary { padding-inline: 12px; }
  .advancement-category-progress-track { display: none; }
  .advancement-category-identity { grid-template-columns: 38px minmax(0, 1fr); }
  .advancement-category-icon { width: 38px; height: 38px; }
  .advancement-item > summary { grid-template-columns: 34px minmax(0, 1fr) auto; padding-inline: 10px; }
  .advancement-status-icon { width: 31px; height: 31px; }
  .advancement-item-body { padding: 0 12px 13px 55px; }
  .advancement-item-meta code { width: 100%; margin-left: 0; }
  .advancement-total-badge { padding: 8px 10px; }
}

/* =====================================================================
   WANAStatsWeb 1.5.2 – dauerhafte Statistikdaten und einheitliche Online-Zeit
   ===================================================================== */
.hero {
  min-height: 355px;
  padding: 34px 0 40px;
  grid-template-columns: minmax(0, .94fr) minmax(390px, 1.06fr);
  gap: 48px;
}
.eyebrow { padding: 6px 9px; font-size: 9px; }
.hero h1 {
  margin-top: 16px;
  gap: 2px;
  font-size: clamp(38px, 4.25vw, 56px);
  line-height: .98;
}
.hero-rule { width: 64px; height: 3px; margin-top: 17px; }
.hero-buttons { margin-top: 20px; gap: 9px; }
.primary-button, .secondary-button, .secondary-link-button {
  min-height: 42px;
  padding-inline: 15px;
  font-size: 11px;
}
.hero-panel { border-radius: 20px; padding: 20px 23px 19px; }
.hero-panel-top { font-size: 9px; }
.champion {
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 17px;
  min-height: 108px;
  margin: 12px 0;
  padding: 12px 0;
}
.champion-avatar { width: 82px; height: 82px; border-radius: 18px; }
.champion-info > span { font-size: 9px; }
.champion-info strong { margin-top: 5px; font-size: clamp(24px, 2.55vw, 35px); }
.champion-info small { margin-top: 7px; font-size: 11px; }
.champion-name { font-size: clamp(24px, 2.55vw, 35px); }
.hero-kpis { border-radius: 12px; }
.hero-kpis > div { padding: 10px 13px; gap: 2px; }
.hero-kpis b { font-size: 19px; }
.hero-kpis span { font-size: 7px; }

.spotlight { padding: 28px 0 34px; }
.leaderboards { padding: 34px 0; }
.section-heading { margin-bottom: 16px; }
.section-heading h2 { font-size: clamp(24px, 2.6vw, 32px); }
.section-heading p { font-size: 12px; }
.spotlight-grid { gap: 13px; }
.spotlight-card { min-height: 260px; padding: 18px; }
.spotlight-card h3 { margin-top: 16px; font-size: 20px; }
.winner { margin-top: 6px; font-size: 11px; }
.spotlight-value { margin-top: 5px; font-size: 22px; }
.mini-ranking { gap: 7px; margin-top: 14px; }
.mini-rank-row { padding-bottom: 8px; font-size: 10px; }

.stats-grid { align-items: stretch; }
.metric-card {
  min-height: 220px;
  padding: 17px;
  display: flex;
  flex-direction: column;
}
.metric-card h3 { margin-top: 16px; font-size: 16px; }
.metric-leader { margin-top: 15px; margin-bottom: 13px; }
.card-footer {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  min-height: 31px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.card-footer span { color: var(--muted); }
.card-footer b { line-height: 1; }
.metric-empty-state {
  flex: 1;
  min-height: 88px;
  margin-top: 15px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 26%, transparent);
  text-align: center;
}
.metric-empty-state strong { color: var(--text); font-size: 12px; }
.metric-empty-state span { max-width: 210px; color: var(--muted-2); font-size: 9px; line-height: 1.45; }
.metric-card.is-empty { cursor: default; }
.metric-card.is-empty:hover {
  transform: none;
  border-color: var(--line);
  background: linear-gradient(145deg, var(--surface-solid), var(--surface));
}

@media (max-width: 1180px) {
  .hero { grid-template-columns: .86fr 1.14fr; gap: 34px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 32px 0 29px; gap: 26px; }
  .hero h1 { font-size: clamp(38px, 9vw, 54px); }
  .spotlight-card { min-height: auto; }
}
@media (max-width: 620px) {
  .hero { padding-top: 24px; }
  .hero h1 { font-size: clamp(34px, 12vw, 48px); }
  .hero-panel { padding: 18px 16px 16px; }
  .champion { grid-template-columns: 72px minmax(0, 1fr); min-height: 94px; gap: 13px; }
  .champion-avatar { width: 70px; height: 70px; border-radius: 15px; }
  .champion-info strong, .champion-name { font-size: 23px; }
  .hero-kpis > div { padding: 9px 7px; }
  .hero-kpis b { font-size: 17px; }
  .spotlight, .leaderboards { padding: 27px 0; }
  .metric-card { min-height: 208px; }
}


/* =====================================================================
   WANAStatsWeb 1.6 – Kampflog, Siege und Rivalitäten
   ===================================================================== */
.combat-page-hero { padding-bottom: 28px; }
.combat-kpis { min-width: 360px; }
.combat-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 15px;
  margin-bottom: 44px;
}
.combat-panel {
  min-height: 415px;
  padding: 22px;
  border-radius: 19px;
}
.combat-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.combat-panel-heading h2 { margin: 5px 0 0; color: var(--text-strong); font-size: 23px; letter-spacing: -.035em; }
.combat-panel-icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--orange) 34%, var(--line)); border-radius: 12px;
  color: var(--orange); background: var(--orange-soft); font-size: 19px;
}
.combat-ranking-list, .combat-rivalry-list { display: grid; gap: 8px; }
.combat-winner-row {
  display: grid; grid-template-columns: 34px 42px minmax(0,1fr) auto; align-items: center; gap: 10px;
  min-height: 58px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 34%, transparent); transition: .18s ease;
}
.combat-winner-row:first-child { border-color: color-mix(in srgb, var(--orange) 48%, var(--line)); background: var(--orange-soft); }
.combat-winner-row:hover { border-color: var(--line-strong); transform: translateX(2px); }
.combat-rank { color: var(--orange); font-size: 10px; font-weight: 950; text-align: center; }
.combat-player-copy { min-width: 0; display: grid; gap: 3px; }
.combat-player-copy .player-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 850; }
.combat-player-copy small { color: var(--muted); font-size: 9px; }
.combat-win-count { color: var(--orange); font-size: 19px; }
.combat-inline-empty {
  min-height: 255px; display: grid; place-items: center; padding: 30px;
  border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: 11px; text-align: center;
}
.combat-rivalry-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 10px 82px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 34%, transparent);
  transition: .18s ease;
}
.combat-rivalry-row:first-child {
  border-color: color-mix(in srgb, var(--orange) 48%, var(--line));
  background: var(--orange-soft);
}
.combat-rivalry-row:hover { border-color: var(--line-strong); }
.combat-rivalry-row > .combat-rank {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
}
.combat-rivalry-player {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.combat-rivalry-player-first {
  justify-content: flex-end;
  text-align: right;
}
.combat-rivalry-player-second {
  justify-content: flex-start;
  text-align: left;
}
.combat-rivalry-player .player-link:not(.avatar-link) {
  min-width: 0;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 850;
}
.combat-rivalry-player .player-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: 0 0 auto;
}
.combat-versus-score {
  width: 68px;
  padding: 8px 6px;
  border: 1px solid color-mix(in srgb, var(--orange) 34%, var(--line));
  border-radius: 9px;
  color: var(--orange);
  background: color-mix(in srgb, var(--orange-soft) 72%, transparent);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  justify-self: center;
}
.combat-duel-count {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 58px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 48%, transparent);
  font-size: 8px;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}
.combat-history { padding-bottom: 48px; }
.combat-fights-list { display: grid; gap: 9px; }
.combat-fight-row {
  position: relative; display: grid; grid-template-columns: minmax(0,1fr) 176px minmax(0,1fr);
  align-items: stretch; gap: 0; min-height: 96px; padding: 12px 18px; border-radius: 15px;
  overflow: hidden;
}
.combat-fight-row::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--orange), #ffcc55);
}
.combat-fighter {
  min-width: 0; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0 24px;
}
.combat-fighter.winner { justify-content: flex-end; text-align: right; }
.combat-fighter.loser { justify-content: flex-start; text-align: left; }
.combat-fighter .avatar-link { flex: 0 0 auto; }
.combat-fighter .champion-avatar { width: 53px; height: 53px; border-radius: 13px; }
.combat-fighter-copy { min-width: 0; max-width: 240px; display: grid; gap: 4px; }
.combat-fighter small { color: var(--muted-2); font-size: 8px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.combat-fighter.winner small { color: var(--green); }
.combat-fighter .player-link:not(.avatar-link) {
  display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-strong); font-size: 14px; font-weight: 900;
}
.combat-fight-center {
  min-width: 0; min-height: 70px; display: grid; place-content: center; justify-items: center; gap: 4px;
  padding: 8px 14px; border-inline: 1px solid var(--line); text-align: center;
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
}
.combat-fight-symbol { color: var(--orange); font-size: 17px; }
.combat-weapon-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 11px; }
.combat-fight-center small { color: var(--muted-2); font-size: 8px; white-space: nowrap; }
.combat-pagination {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  margin-top: 15px; padding: 10px 12px; border-radius: 14px;
}
.combat-pagination > span { color: var(--muted); font-size: 10px; font-weight: 850; text-align: center; }
.pagination-button {
  min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); background: transparent; font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; transition: .18s ease;
}
.pagination-button:last-child { justify-self: end; }
.pagination-button:hover:not(:disabled) { color: var(--orange); border-color: var(--line-strong); background: var(--orange-soft); }
.pagination-button:disabled { opacity: .35; cursor: not-allowed; }

html[data-theme="light"] .combat-fight-row,
html[data-theme="light"] .combat-winner-row,
html[data-theme="light"] .combat-rivalry-row { box-shadow: 0 8px 24px rgba(91,61,28,.06); }

@media (max-width: 1100px) {
  .combat-overview-grid { grid-template-columns: 1fr; }
  .combat-panel { min-height: 0; }
  .combat-inline-empty { min-height: 150px; }
}
@media (max-width: 760px) {
  .combat-kpis { min-width: 0; width: 100%; }
  .combat-fight-row { grid-template-columns: minmax(0,1fr) 122px minmax(0,1fr); padding: 10px 8px; }
  .combat-fighter { gap: 8px; padding-inline: 10px; }
  .combat-fight-center { min-width: 0; padding-inline: 6px; }
  .combat-fighter .champion-avatar { width: 42px; height: 42px; border-radius: 10px; }
  .combat-fighter .player-link:not(.avatar-link) { font-size: 11px; }
  .combat-weapon-name { max-width: 108px; }
  .combat-rivalry-row { grid-template-columns: minmax(0,1fr) 58px minmax(0,1fr); gap: 10px; padding-inline: 66px; }
  .combat-versus-score { width: 58px; font-size: 11px; }
}
@media (max-width: 540px) {
  .combat-overview-grid { margin-bottom: 32px; }
  .combat-panel { padding: 16px 12px; }
  .combat-rivalry-row { grid-template-columns: minmax(0,1fr) 48px minmax(0,1fr); gap: 7px; padding: 38px 12px 12px; }
  .combat-rivalry-row > .combat-rank { top: 17px; left: 14px; transform: none; text-align: left; }
  .combat-duel-count { top: 12px; right: 12px; transform: none; }
  .combat-rivalry-player .avatar-link { display: none; }
  .combat-rivalry-player .player-link:not(.avatar-link) { max-width: 110px; font-size: 10px; }
  .combat-versus-score { width: 48px; padding-inline: 3px; }
  .combat-fight-row { grid-template-columns: 1fr; padding: 10px 12px; text-align: left; }
  .combat-fighter, .combat-fighter.winner, .combat-fighter.loser {
    justify-content: flex-start; padding: 6px 2px; text-align: left;
  }
  .combat-fighter .avatar-link { order: 0; }
  .combat-fighter-copy { order: 1; max-width: none; }
  .combat-fight-center { min-height: 60px; border-inline: 0; border-block: 1px solid var(--line); }
  .combat-pagination { grid-template-columns: 1fr 1fr; }
  .combat-pagination > span { grid-column: 1 / -1; grid-row: 1; }
  .pagination-button { grid-row: 2; }
}


/* =====================================================================
   WANAStatsWeb 1.6.4 – PvP-Bilanz im Spielerprofil
   ===================================================================== */
.profile-combat-section { padding: 10px 0 58px; }
.profile-combat-summary {
  max-width: 520px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  font-size: 9px;
  font-weight: 850;
  text-align: center;
}
.profile-combat-legend {
  margin: -8px 0 14px;
  color: var(--muted-2);
  font-size: 9px;
  text-align: right;
}
.profile-combat-legend b { color: var(--orange); }
.profile-combat-list { display: grid; gap: 10px; }
.profile-combat-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr) 118px;
  align-items: center;
  gap: 18px;
  min-height: 88px;
  padding: 13px 17px;
  border-radius: 15px;
  overflow: hidden;
}
.profile-combat-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--orange), #ffcc55);
}
.profile-combat-player {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}
.profile-combat-owner { justify-content: flex-end; text-align: right; }
.profile-combat-opponent { justify-content: flex-start; text-align: left; }
.profile-combat-player .champion-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex: 0 0 auto;
}
.profile-combat-player-copy { min-width: 0; display: grid; gap: 4px; }
.profile-combat-player-copy small {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.profile-combat-owner .profile-combat-player-copy small { color: var(--orange); }
.profile-combat-player-copy .player-link {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 900;
}
.profile-combat-score {
  width: 92px;
  min-height: 56px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  border: 1px solid color-mix(in srgb, var(--orange) 34%, var(--line));
  border-radius: 12px;
  background: var(--orange-soft);
  text-align: center;
}
.profile-combat-score strong { color: var(--orange); font-size: 18px; line-height: 1; white-space: nowrap; }
.profile-combat-score small { color: var(--muted-2); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.profile-combat-score.is-positive { border-color: color-mix(in srgb, var(--green) 48%, var(--line)); background: color-mix(in srgb, var(--green) 10%, var(--surface)); }
.profile-combat-score.is-positive strong { color: var(--green); }
.profile-combat-score.is-negative { border-color: color-mix(in srgb, #ff6c75 48%, var(--line)); background: color-mix(in srgb, #ff6c75 9%, var(--surface)); }
.profile-combat-score.is-negative strong { color: #ff7f86; }
.profile-combat-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.profile-combat-meta b { color: var(--text); font-size: 10px; white-space: nowrap; }
.profile-combat-meta small { color: var(--muted-2); font-size: 8px; line-height: 1.35; }
.profile-combat-empty { min-height: 180px; }
html[data-theme="light"] .profile-combat-row { box-shadow: 0 8px 24px rgba(91,61,28,.06); }

@media (max-width: 900px) {
  .profile-combat-row { grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .profile-combat-score { width: 78px; }
  .profile-combat-meta { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line); text-align: center; }
  .profile-combat-player-copy .player-link { max-width: 150px; font-size: 11px; }
  .profile-combat-player .champion-avatar { width: 42px; height: 42px; border-radius: 10px; }
}
@media (max-width: 560px) {
  .profile-combat-summary { max-width: none; width: 100%; border-radius: 12px; line-height: 1.45; }
  .profile-combat-legend { margin-top: 0; text-align: center; }
  .profile-combat-row { grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr); gap: 6px; padding: 11px 8px; }
  .profile-combat-score { width: 62px; min-height: 50px; }
  .profile-combat-score strong { font-size: 14px; }
  .profile-combat-score small { display: none; }
  .profile-combat-player { gap: 6px; }
  .profile-combat-player .avatar-link { display: none; }
  .profile-combat-player-copy .player-link { max-width: 100px; font-size: 10px; }
  .profile-combat-player-copy small { font-size: 7px; }
}

/* =====================================================================
   Elite-Bosse & Trophäen · WANAStatsWeb 1.8.4
   ===================================================================== */
.elite-boss-page-hero { padding-bottom: 30px; }
.elite-boss-page-hero > div:first-child { max-width: 680px; }
.elite-hook-status {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 11px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 10px; font-weight: 800;
}
.elite-hook-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 12px color-mix(in srgb, var(--danger) 65%, transparent); }
.elite-hook-status.is-live::before { background: var(--green); box-shadow: 0 0 12px color-mix(in srgb, var(--green) 70%, transparent); }
.elite-boss-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.elite-recent-section, .elite-catalog-section, .profile-elite-boss-section { padding: 34px 0 54px; }
.elite-boss-recent-list { display: grid; gap: 10px; }
.elite-boss-kill-row {
  position: relative; overflow: hidden; min-height: 112px; border-radius: 18px; padding: 14px 20px;
  display: grid; grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr); align-items: center;
}
.elite-boss-kill-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--orange), var(--gold));
}
.elite-kill-boss, .elite-kill-player { min-width: 0; display: flex; align-items: center; gap: 14px; }
.elite-kill-player { justify-content: flex-start; padding-left: 22px; }
.elite-kill-boss { justify-content: flex-end; text-align: right; padding-right: 22px; }
.elite-kill-boss > div, .elite-kill-player > div { min-width: 0; display: grid; gap: 4px; }
.elite-kill-boss small, .elite-kill-player small { color: var(--orange); font-size: 8px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.elite-kill-boss h3 { margin: 0; color: var(--text-strong); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.elite-kill-boss span, .elite-kill-player span { color: var(--muted); font-size: 9px; }
.elite-kill-player .player-link:not(.avatar-link) { color: var(--text-strong); font-size: 14px; font-weight: 900; }
.elite-kill-center {
  min-height: 72px; display: grid; place-content: center; justify-items: center; gap: 5px; text-align: center;
  border-inline: 1px solid var(--line); color: var(--muted);
}
.elite-kill-center b { color: var(--text); font-size: 10px; }
.elite-kill-center small { color: var(--muted-2); font-size: 8px; }
.elite-kill-symbol { color: var(--orange); font-size: 20px; }

.elite-boss-toolbar { margin-bottom: 16px; border-radius: 16px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.elite-boss-toolbar .search-field { flex: 0 1 340px; }
.elite-difficulty-filters { flex-wrap: wrap; justify-content: flex-end; }
.elite-boss-catalog { display: grid; gap: 11px; }
.elite-boss-card { overflow: hidden; border-radius: 19px; }
.elite-boss-card > summary {
  position: relative; cursor: pointer; min-height: 104px; padding: 16px 18px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 16px; align-items: center;
  list-style: none; transition: background .2s ease;
}
.elite-boss-card > summary::-webkit-details-marker { display: none; }
.elite-boss-card > summary:hover { background: var(--surface-hover); }
.elite-boss-card[open] > summary { border-bottom: 1px solid var(--line); background: var(--orange-soft); }
.elite-boss-card-copy { min-width: 0; display: grid; gap: 7px; }
.elite-boss-card-title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.elite-boss-card-title h3 { min-width: 0; margin: 0; color: var(--text-strong); font-size: 17px; letter-spacing: -.015em; }
.elite-boss-card-copy p { margin: 0; color: var(--muted); font-size: 10px; }
.elite-boss-card-stats { display: flex; align-items: stretch; gap: 8px; }
.elite-boss-chevron { color: var(--orange); font-size: 19px; transition: transform .2s ease; }
.elite-boss-card[open] .elite-boss-chevron { transform: rotate(180deg); }
.elite-boss-card-body { padding: 16px 18px 18px; }
.elite-boss-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.elite-boss-facts > div {
  min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface-solid) 75%, transparent); display: grid; gap: 5px;
}
.elite-boss-facts span { color: var(--muted-2); font-size: 7px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.elite-boss-facts b { color: var(--text); font-size: 11px; overflow-wrap: anywhere; }
.elite-boss-slayers-heading { margin: 19px 0 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.elite-boss-slayers-heading h4 { margin: 0; color: var(--text-strong); font-size: 14px; }
.elite-boss-slayers-heading span { color: var(--muted); font-size: 9px; }
.elite-boss-slayers { display: grid; gap: 7px; }
.elite-boss-slayer-row {
  min-width: 0; display: grid; grid-template-columns: 34px auto minmax(130px, 1fr) 90px 110px 170px; gap: 11px; align-items: center;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb, var(--surface) 76%, transparent);
}
.elite-slayer-rank { color: var(--orange); font-size: 9px; font-weight: 950; text-align: center; }
.elite-slayer-copy { min-width: 0; display: grid; gap: 3px; }
.elite-slayer-copy .player-link { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-strong); font-size: 11px; font-weight: 900; }
.elite-slayer-copy small, .elite-boss-slayer-row time { color: var(--muted-2); font-size: 8px; }
.elite-boss-slayer-row time { text-align: right; }
.metric-stack { min-width: 72px; display: grid; align-content: center; gap: 3px; padding: 8px 10px; border-radius: 10px; background: var(--orange-soft); text-align: center; }
.metric-stack b { color: var(--text-strong); font-size: 13px; }
.metric-stack span { color: var(--muted-2); font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.boss-difficulty { display: inline-flex; align-items: center; justify-content: center; min-height: 23px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 8px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.difficulty-legendar { color: #ffd569; background: rgba(255, 198, 80, .13); border-color: rgba(255, 198, 80, .42); }
.difficulty-extrem { color: #ff858b; background: rgba(255, 108, 117, .11); border-color: rgba(255, 108, 117, .42); }
.difficulty-schwer { color: #ff9b4a; background: rgba(255, 151, 28, .11); border-color: rgba(255, 151, 28, .42); }
.difficulty-mittel { color: #d6b3ff; background: rgba(210, 155, 255, .10); border-color: rgba(210, 155, 255, .38); }
.difficulty-leicht { color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); border-color: color-mix(in srgb, var(--green) 38%, transparent); }
.elite-boss-expanded-overview {
  display: grid; grid-template-columns: 164px minmax(0, 1fr); gap: 18px; align-items: stretch;
  padding: 14px; border: 1px solid var(--line); border-radius: 17px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--orange-soft) 48%, var(--surface)), var(--surface));
}
.elite-boss-expanded-copy { min-width: 0; display: grid; align-content: center; }

.boss-visual {
  position: relative; isolation: isolate; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 13px; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,178,72,.16), transparent 52%),
    linear-gradient(150deg, color-mix(in srgb, var(--surface-strong) 90%, #1d1309), var(--surface-solid));
  border: 1px solid color-mix(in srgb, var(--orange) 58%, var(--line));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--shadow-soft);
}
.boss-visual.large { width: 78px; height: 78px; border-radius: 19px; }
.boss-visual.hero { width: 136px; height: 136px; border-radius: 24px; align-self: center; justify-self: center; }
.boss-visual::before, .boss-visual::after { content: ""; position: absolute; pointer-events: none; z-index: 0; }
.boss-visual::after { inset: 0; border-radius: inherit; box-shadow: inset 0 0 24px rgba(0,0,0,.24); z-index: 5; }
.boss-portrait-canvas {
  position: absolute; z-index: 1; inset: -4%; width: 108%; height: 108%; opacity: 0; transform: translateY(2%) scale(.96);
  transition: opacity .18s ease, transform .18s ease; image-rendering: pixelated;
  filter: drop-shadow(0 8px 6px rgba(0,0,0,.52));
}
.boss-portrait-canvas.is-ready { opacity: 1; transform: translateY(2%) scale(1); }
.boss-visual.is-baby .boss-portrait-canvas { transform: translateY(8%) scale(.86); }
.boss-visual.is-baby .boss-portrait-canvas.is-ready { transform: translateY(8%) scale(.9); }
.boss-visual.is-large-entity .boss-portrait-canvas { width: 116%; height: 116%; inset: -8%; }
.boss-head-image, .boss-player-skin {
  position: relative; z-index: 3; width: 100%; height: 100%; padding: 4px; object-fit: contain; image-rendering: pixelated;
  filter: drop-shadow(0 8px 6px rgba(0,0,0,.42));
}
.boss-visual.large .boss-head-image,
.boss-visual.large .boss-player-skin { padding: 5px; }
.boss-visual.hero .boss-head-image,
.boss-visual.hero .boss-player-skin { padding: 8px; }
.boss-portrait-canvas.is-hidden { opacity: 0 !important; transform: translateY(2%) scale(.98) !important; }
.boss-entity-render {
  position: absolute; z-index: 2; inset: -9%; display: block; opacity: 0;
  transform: translateY(3%) scale(.94); transition: opacity .25s ease, transform .25s ease;
  pointer-events: none; overflow: hidden;
}
.boss-entity-render.is-ready { opacity: 1; transform: translateY(2%) scale(1); }
.boss-entity-render canvas {
  width: 100% !important; height: 100% !important; display: block !important;
  background: transparent !important; image-rendering: auto;
  filter: drop-shadow(0 10px 6px rgba(0,0,0,.58));
}
.boss-visual.has-full-render .boss-portrait-fallback { opacity: 0; }
.boss-visual.is-baby .boss-entity-render { inset: 1%; transform: translateY(8%) scale(.84); }
.boss-visual.is-baby .boss-entity-render.is-ready { transform: translateY(8%) scale(.9); }
.boss-integrated-equipment {
  position: absolute; z-index: 4; object-fit: contain; image-rendering: pixelated;
  pointer-events: none; filter: drop-shadow(0 5px 4px rgba(0,0,0,.82));
}
/* Keine Badges: Helm und Waffe liegen direkt im Porträt und wirken als Teil der Figur. */
.boss-integrated-helmet { width: 36%; height: 36%; top: 10%; left: 50%; transform: translateX(-50%) perspective(80px) rotateX(-8deg); }
.boss-integrated-weapon { width: 48%; height: 48%; right: -5%; bottom: -1%; transform: rotate(-28deg); transform-origin: 62% 72%; }
.boss-visual.hero .boss-integrated-helmet { width: 31%; height: 31%; top: 12%; }
.boss-visual.hero .boss-integrated-weapon { width: 42%; height: 42%; right: 1%; bottom: 3%; }
.boss-visual.effect-flame::before { inset: -20%; background: radial-gradient(circle at 50% 82%, rgba(255,89,25,.72), transparent 38%), radial-gradient(circle at 30% 62%, rgba(255,183,45,.52), transparent 24%); filter: blur(3px); animation: bossPulse 1.8s ease-in-out infinite; }
.boss-visual.effect-snow::before { inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.5px); background-size: 13px 13px; opacity: .68; }
.boss-visual.effect-cloud::before { inset: 8%; background: radial-gradient(circle at 28% 72%, rgba(215,215,215,.42), transparent 28%), radial-gradient(circle at 75% 28%, rgba(185,185,185,.34), transparent 26%); filter: blur(4px); }
.boss-visual.effect-soul::before { inset: -10%; background: radial-gradient(circle at 50% 70%, rgba(46,223,218,.55), transparent 42%); filter: blur(4px); animation: bossPulse 2s ease-in-out infinite; }
.boss-visual.effect-spark::before { inset: 0; background-image: radial-gradient(circle, rgba(255,181,76,.85) 0 1px, transparent 1.6px); background-size: 15px 15px; opacity: .6; }
@keyframes bossPulse { 0%,100% { opacity: .55; transform: scale(.94); } 50% { opacity: .9; transform: scale(1.06); } }

.elite-boss-loot-heading { margin-top: 22px; }
.elite-boss-loot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.elite-loot-card {
  min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 12px; border: 1px solid var(--line); border-radius: 15px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}
.elite-loot-card.compact { min-height: 112px; }
.elite-loot-copy { min-width: 0; display: grid; gap: 7px; }
.elite-loot-title { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 7px; }
.elite-loot-title h3 { min-width: 0; margin: 0; color: var(--text-strong); font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.loot-chance {
  flex: 0 0 auto; padding: 4px 7px; border: 1px solid color-mix(in srgb, var(--gold) 42%, var(--line));
  border-radius: 999px; color: var(--gold); background: color-mix(in srgb, var(--gold) 9%, transparent);
  font-size: 7px; font-weight: 950; letter-spacing: .04em; white-space: nowrap;
}
.elite-loot-material { margin: 0; color: var(--muted); font-size: 8px; font-weight: 750; }
.elite-loot-lore { margin: 0; color: var(--muted-2); font-size: 8px; line-height: 1.5; font-style: italic; }
.elite-loot-properties { display: flex; flex-wrap: wrap; gap: 5px; }
.elite-loot-properties span {
  padding: 4px 6px; border: 1px solid var(--line); border-radius: 7px; color: var(--text);
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent); font-size: 7px; font-weight: 800;
}
.elite-loot-properties .loot-effect { color: #cda7ff; border-color: color-mix(in srgb, #b873ff 35%, var(--line)); }
.elite-loot-properties .loot-model { color: var(--gold); }
.item-visual {
  position: relative; isolation: isolate; flex: 0 0 auto; width: 58px; height: 58px; overflow: hidden; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--orange) 48%, var(--line)); border-radius: 14px;
  background:
    radial-gradient(circle at 42% 36%, rgba(255,255,255,.08), transparent 42%),
    linear-gradient(145deg, color-mix(in srgb, var(--orange-soft) 72%, var(--surface)), var(--surface-strong));
  color: var(--orange); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), var(--shadow-soft);
}
.item-visual.large { width: 90px; height: 90px; border-radius: 20px; }
.item-visual img {
  position: relative; z-index: 2; width: 78%; height: 78%; object-fit: contain; padding: 2px;
  opacity: 0; image-rendering: pixelated; filter: drop-shadow(0 7px 4px rgba(0,0,0,.58));
}
.item-visual img.is-loaded { opacity: 1; }
.item-visual-fallback { position: relative; z-index: 1; color: var(--muted); font-size: 13px; font-weight: 950; letter-spacing: .08em; }
.item-visual.rarity-rare { border-color: rgba(79,154,255,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 16px rgba(79,154,255,.12); }
.item-visual.rarity-epic { border-color: rgba(184,115,255,.76); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 17px rgba(184,115,255,.16); }
.item-visual.rarity-legendary { border-color: rgba(255,198,80,.86); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 20px rgba(255,198,80,.2); }
.item-visual.enchanted i {
  position: absolute; z-index: 3; inset: -22%; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(118deg,
    transparent 0 92px,
    rgba(190, 108, 255, .08) 108px,
    rgba(255, 255, 255, .22) 126px,
    rgba(88, 222, 255, .16) 144px,
    transparent 166px 260px);
  background-size: 260px 260px;
  filter: blur(5px);
  mix-blend-mode: screen;
  transform: translateZ(0);
  will-change: background-position;
  animation: itemGlint 4.2s linear infinite;
}
.item-visual.enchanted.item-image-ready i { opacity: .46; }
@keyframes itemGlint {
  from { background-position: -260px 0; }
  to { background-position: 0 0; }
}



.profile-sticky {
  --profile-sticky-top: 86px;
  position: fixed;
  z-index: 60;
  top: var(--profile-sticky-top);
  left: max(12px, calc((100vw - var(--shell)) / 2));
  width: max-content;
  max-width: min(280px, calc(100vw - 24px));
  min-height: 48px;
  padding: 6px 12px 6px 7px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 14px;
  border-color: color-mix(in srgb, var(--orange) 34%, var(--line));
  background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
  box-shadow: 0 12px 34px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(18px) saturate(1.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-9px) scale(.97);
  transform-origin: top left;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.profile-sticky.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}
.profile-sticky-avatar { flex: 0 0 auto; }
.profile-sticky-avatar .player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border-color: color-mix(in srgb, var(--orange) 46%, var(--line));
}
.profile-sticky-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  line-height: 1.08;
}
.profile-sticky-copy small {
  color: var(--orange);
  font-size: 6px;
  font-weight: 950;
  letter-spacing: .12em;
}
.profile-sticky-copy b {
  max-width: 190px;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 620px) {
  .profile-sticky {
    left: 10px;
    max-width: calc(100vw - 20px);
    min-height: 44px;
    padding: 5px 10px 5px 6px;
    border-radius: 13px;
  }
  .profile-sticky-avatar .player-avatar { width: 33px; height: 33px; border-radius: 8px; }
  .profile-sticky-copy b { max-width: 150px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-sticky { transition: none; }
}

.profile-trophy-section { padding: 42px 0 24px; }
.profile-trophy-intro { max-width: 790px; margin: -6px 0 17px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.profile-trophy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trophy-card {
  position: relative; overflow: hidden; min-height: 170px; grid-template-columns: auto minmax(0, 1fr); padding: 15px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--orange-soft) 68%, var(--surface)), var(--surface));
}
.trophy-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(var(--orange), var(--gold)); }
.trophy-card .elite-loot-title h3 { font-size: 16px; }
.trophy-card .elite-loot-lore { font-size: 9px; }
.trophy-meta { display: flex; flex-wrap: wrap; gap: 7px 13px; color: var(--muted-2); font-size: 8px; }
.trophy-boss-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 4px; }
.trophy-boss-sources small { width: 100%; color: var(--muted-2); font-size: 7px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.trophy-boss-sources span { padding: 5px 7px; border-radius: 8px; background: var(--orange-soft); color: var(--text); font-size: 7px; font-weight: 800; }

.profile-elite-boss-section { padding-top: 4px; }
.profile-elite-boss-list { display: grid; gap: 10px; }
.profile-elite-boss-row {
  position: relative; overflow: hidden; min-height: 102px; border-radius: 17px; padding: 14px 16px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px;
}
.profile-elite-boss-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--orange), var(--gold)); }
.profile-elite-boss-copy { min-width: 0; display: grid; gap: 6px; }
.profile-elite-boss-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.profile-elite-boss-heading h3 { margin: 0; color: var(--text-strong); font-size: 15px; }
.profile-elite-boss-copy p { margin: 0; color: var(--muted); font-size: 9px; }
.profile-elite-boss-dates { display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--muted-2); font-size: 8px; }
.profile-elite-boss-numbers { display: flex; align-items: stretch; gap: 8px; }

html[data-theme="light"] .elite-boss-card,
html[data-theme="light"] .elite-boss-kill-row,
html[data-theme="light"] .profile-elite-boss-row,
html[data-theme="light"] .trophy-card { box-shadow: 0 10px 28px rgba(91, 61, 28, .08); }

@media (max-width: 1100px) {
  .profile-trophy-grid { grid-template-columns: 1fr; }
  .elite-boss-loot-grid { grid-template-columns: 1fr; }
  .elite-boss-kill-row { grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1fr); }
  .elite-boss-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .elite-boss-slayer-row { grid-template-columns: 30px auto minmax(120px, 1fr) 80px 100px; }
  .elite-boss-slayer-row time { grid-column: 3 / -1; text-align: left; }
}

@media (max-width: 820px) {
  .elite-boss-kpis { grid-template-columns: repeat(2, 1fr); }
  .elite-boss-kpis > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .elite-boss-kpis > div:nth-child(4) { border-top: 1px solid var(--line); }
  .elite-boss-kill-row { grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); padding-inline: 10px; }
  .elite-kill-boss, .elite-kill-player { gap: 8px; padding-inline: 8px; }
  .elite-kill-boss h3 { font-size: 12px; }
  .elite-kill-player .player-link:not(.avatar-link) { font-size: 11px; }
  .elite-boss-toolbar { align-items: stretch; flex-direction: column; }
  .elite-boss-toolbar .search-field { flex-basis: auto; width: 100%; }
  .elite-difficulty-filters { justify-content: flex-start; }
  .elite-boss-card > summary { grid-template-columns: auto minmax(0, 1fr) auto; }
  .elite-boss-card-stats { grid-column: 2; justify-content: flex-start; }
  .elite-boss-chevron { grid-column: 3; grid-row: 1 / span 2; }
  .elite-boss-slayer-row { grid-template-columns: 28px auto minmax(0, 1fr) 80px; }
  .elite-boss-slayer-row .metric-stack:nth-of-type(2) { display: none; }
  .profile-elite-boss-row { grid-template-columns: auto minmax(0, 1fr); }
  .profile-elite-boss-numbers { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 560px) {
  .elite-boss-kpis { grid-template-columns: 1fr; }
  .elite-boss-kpis > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .profile-trophy-section { padding-top: 28px; }
  .trophy-card { grid-template-columns: 1fr; min-height: 0; }
  .trophy-card .item-visual.large { width: 72px; height: 72px; }
  .elite-loot-card.compact { grid-template-columns: auto minmax(0, 1fr); }
  .elite-loot-title { display: grid; justify-content: stretch; }
  .loot-chance { justify-self: start; }
  .elite-boss-kill-row { grid-template-columns: 1fr; gap: 9px; padding: 13px; }
  .elite-kill-boss, .elite-kill-player { justify-content: flex-start; text-align: left; padding: 0; }
  .elite-kill-center { min-height: 54px; border-inline: 0; border-block: 1px solid var(--line); }
  .elite-boss-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .elite-boss-card > summary { gap: 10px; padding: 13px; }
  .elite-boss-card-stats { display: none; }
  .elite-boss-card-title { align-items: flex-start; flex-direction: column; gap: 6px; }
  .elite-boss-card-title h3 { font-size: 14px; }
  .elite-boss-card-body { padding: 12px; }
  .elite-boss-slayers-heading { align-items: flex-start; flex-direction: column; }
  .elite-boss-slayer-row { grid-template-columns: 24px auto minmax(0, 1fr); gap: 7px; }
  .elite-boss-slayer-row > .metric-stack, .elite-boss-slayer-row time { grid-column: 3; text-align: left; }
  .profile-elite-boss-row { padding: 12px; gap: 10px; }
  .profile-elite-boss-row .boss-visual { width: 52px; height: 52px; }
  .profile-elite-boss-numbers { grid-column: 1 / -1; }
}

/* Elite-Boss-Chronik: rein grafisches Symbol statt Emoji. */
.elite-kill-symbol { position: relative; width: 28px; height: 28px; display: inline-block; }
.elite-kill-symbol::before, .elite-kill-symbol::after {
  content: ""; position: absolute; left: 13px; top: 2px; width: 2px; height: 24px; border-radius: 2px;
  background: linear-gradient(var(--gold), var(--orange)); box-shadow: 0 0 8px color-mix(in srgb, var(--orange) 45%, transparent);
}
.elite-kill-symbol::before { transform: rotate(45deg); }
.elite-kill-symbol::after { transform: rotate(-45deg); }

/* Bossdetails bleiben auf Tablets und Mobilgeräten im bestehenden WANA-Kartenstil. */
@media (max-width: 820px) {
  .elite-boss-expanded-overview { grid-template-columns: 124px minmax(0, 1fr); gap: 13px; padding: 12px; }
  .boss-visual.hero { width: 112px; height: 112px; border-radius: 21px; }
}

@media (max-width: 560px) {
  .elite-boss-expanded-overview { grid-template-columns: 1fr; }
  .boss-visual.hero { width: 122px; height: 122px; justify-self: start; }
  .elite-boss-expanded-copy { width: 100%; }
  .item-visual { width: 56px; height: 56px; }
}

@media (max-width: 900px) {
  .global-kpis { min-width: 0; width: 100%; }
}
@media (max-width: 620px) {
  .global-kpis { grid-template-columns: 1fr; }
  .global-kpis > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .global-stats-section { padding-top: 22px; }
}

/* =====================================================================
   WANAStatsWeb 1.9.2 – kompaktere Statistik- und Chronik-Layouts
   ===================================================================== */

/* Leaderboard-Kategorien: Symbol direkt vor der Bezeichnung, Zähler in
   derselben Zeile wie die orange Kategorie. */
.metric-card {
  min-height: 176px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}
.metric-card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.metric-card-heading .metric-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.metric-card-heading .metric-icon svg { width: 18px; }
.metric-card-heading h3,
.metric-card h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.metric-card-meta {
  min-height: 18px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.metric-card-meta .category-label,
.profile-stat-meta .category-label {
  margin: 0;
}
.metric-card-meta .card-number {
  flex: 0 0 auto;
  font-size: 8px;
}
.metric-leader {
  min-height: 52px;
  margin: 9px 0 8px;
  padding: 7px 9px;
}
.metric-leader .player-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.metric-leader-info { gap: 2px; }
.metric-leader-info .metric-player-name,
.metric-leader-info strong { font-size: 11px; }
.metric-leader-info span { font-size: 11px; }
.metric-card .card-footer {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  min-height: 24px;
  margin-top: auto;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  font-size: 8px;
}
.metric-card .card-footer b { font-size: 13px; }
.metric-card .metric-empty-state {
  flex: 1;
  min-height: 60px;
  margin-top: 9px;
  padding: 10px;
}
.metric-card .metric-empty-state strong { font-size: 10px; }
.metric-card .metric-empty-state span { font-size: 8px; }

/* Global- und Profilwerte: Symbol direkt vor dem eigentlichen Wert. */
.profile-stat-card {
  min-height: 140px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}
.profile-stat-card h3 {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.2;
}
.profile-stat-value-row {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.profile-stat-value-row .metric-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.profile-stat-value-row .metric-icon svg { width: 17px; }
.profile-stat-value-row .profile-stat-value {
  min-width: 0;
  font-size: clamp(19px, 1.8vw, 25px);
  line-height: 1.05;
}
.profile-stat-meta {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.profile-stat-meta .profile-stat-rank {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 8px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-stat-card .profile-stat-key {
  position: relative;
  left: auto;
  bottom: auto;
  margin-top: auto;
  padding-top: 8px;
  font-size: 7px;
}

/* Sechs letzte Boss-Siege pro Seite: drei Karten pro Reihe. */
.elite-boss-recent-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}
.elite-boss-kill-row {
  min-width: 0;
  min-height: 0;
  padding: 12px 13px;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.elite-kill-boss,
.elite-kill-player {
  width: 100%;
  padding: 0;
  justify-content: flex-start;
  text-align: left;
  gap: 10px;
}
.elite-boss-kill-row .boss-visual.large {
  width: 58px;
  height: 58px;
  border-radius: 14px;
}
.elite-boss-kill-row .elite-kill-player .champion-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}
.elite-kill-boss h3 { font-size: 13px; }
.elite-kill-player .player-link:not(.avatar-link) { font-size: 12px; }
.elite-kill-center {
  min-height: 42px;
  padding: 7px 2px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  justify-items: start;
  gap: 7px;
  border-inline: 0;
  border-block: 1px solid var(--line);
  text-align: left;
}
.elite-kill-center b {
  min-width: 0;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.elite-kill-center small {
  justify-self: end;
  white-space: nowrap;
}
.elite-kill-symbol { transform: scale(.72); }

/* Zwei Bosse nebeneinander im Katalog. */
.elite-boss-catalog {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.elite-boss-card { min-width: 0; }
.elite-boss-card > summary {
  min-height: 94px;
  padding: 13px 15px;
  gap: 12px;
}
.elite-boss-card-stats { gap: 6px; }
.elite-boss-card-stats .metric-stack {
  min-width: 58px;
  padding-inline: 7px;
}

/* Kampflog: 20 Einträge ergeben zwei Spalten mit zehn Reihen. */
.combat-fights-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.combat-fight-row {
  min-width: 0;
  min-height: 86px;
  padding: 9px 10px;
  grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
}
.combat-fighter {
  gap: 8px;
  padding-inline: 9px;
}
.combat-fighter .champion-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}
.combat-fighter .player-link:not(.avatar-link) { font-size: 11px; }
.combat-fight-center {
  min-height: 64px;
  padding: 7px 6px;
}
.combat-weapon-name { max-width: 100px; font-size: 9px; }
.combat-fight-center small { font-size: 7px; }

/* Trophäen sind eigenständige kompakte Karten und verschwenden bei wenigen
   Gegenständen nicht mehr die halbe Seitenbreite. */
.profile-trophy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}
.trophy-card {
  min-width: 0;
  min-height: 142px;
  padding: 12px;
  gap: 11px;
}
.trophy-card .item-visual.large {
  width: 78px;
  height: 78px;
}
.trophy-card .elite-loot-title h3 { font-size: 13px; }
.trophy-card .elite-loot-lore { font-size: 8px; }
.trophy-meta { gap: 5px 9px; font-size: 7px; }

/* Boss-Verweise funktionieren überall genauso eindeutig wie Spielerlinks. */
.boss-route-link,
.trophy-boss-sources a {
  color: inherit;
  text-decoration: none;
}
.boss-route-link {
  border-radius: 12px;
  transition: background .16s ease, color .16s ease;
}
.boss-route-link:hover h3,
.trophy-boss-sources a:hover { color: var(--orange); }
.boss-route-card {
  cursor: pointer;
  transition: transform .17s ease, border-color .17s ease, background .17s ease;
}
.boss-route-card:hover,
.boss-route-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--orange-soft);
  outline: none;
}
.trophy-boss-sources a {
  padding: 5px 7px;
  border-radius: 8px;
  background: var(--orange-soft);
  color: var(--text);
  font-size: 7px;
  font-weight: 800;
  transition: background .16s ease, color .16s ease;
}
.trophy-boss-sources a:hover { background: color-mix(in srgb, var(--orange) 18%, var(--surface)); }
.elite-boss-card.boss-route-target {
  border-color: color-mix(in srgb, var(--orange) 72%, var(--line));
  box-shadow: 0 0 0 3px var(--orange-soft), 0 20px 55px rgba(0,0,0,.28);
}

@media (max-width: 1450px) {
  .elite-boss-recent-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-trophy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1300px) {
  .elite-boss-catalog,
  .combat-fights-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .elite-boss-recent-list,
  .profile-trophy-grid { grid-template-columns: minmax(0, 1fr); }
  .metric-card { min-height: 166px; }
  .profile-stat-card { min-height: 132px; }
}

@media (max-width: 560px) {
  .metric-card-heading .metric-icon { width: 31px; height: 31px; }
  .metric-card-heading h3 { font-size: 13px; }
  .profile-stat-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .profile-stat-meta .profile-stat-rank { text-align: left; white-space: normal; }
  .elite-kill-center { grid-template-columns: 24px minmax(0, 1fr); }
  .elite-kill-center small { grid-column: 2; justify-self: start; }
}

@media (max-width: 540px) {
  .combat-fight-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 12px;
    text-align: left;
  }
  .combat-fighter,
  .combat-fighter.winner,
  .combat-fighter.loser {
    justify-content: flex-start;
    padding: 6px 2px;
    text-align: left;
  }
  .combat-fighter .avatar-link { order: 0; }
  .combat-fighter-copy { order: 1; max-width: none; }
  .combat-fight-center {
    min-height: 58px;
    border-inline: 0;
    border-block: 1px solid var(--line);
  }
}


/* 1.9.3 – kompaktere Spielerliste und vollständige Boss-Teilnehmer */
.elite-kill-participants {
  grid-column: 1 / -1;
  min-width: 0;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.elite-kill-participants > small {
  color: var(--orange);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.elite-kill-participant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.elite-kill-participant-chip {
  min-width: 0;
  min-height: 28px;
  padding: 3px 8px 3px 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  transition: .18s ease;
}
.elite-kill-participant-chip:hover {
  border-color: var(--line-strong);
  background: var(--orange-soft);
}
.elite-kill-participant-chip .player-avatar {
  width: 21px;
  height: 21px;
  border-radius: 5px;
}
.elite-kill-participant-chip span {
  max-width: 120px;
  overflow: hidden;
  font-size: 8px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 1281px) {
  .players-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .player-card {
    min-height: 70px;
    padding: 11px 12px;
    grid-template-columns: 42px minmax(0, 1fr) auto 18px;
    gap: 9px;
  }
  .player-card .player-avatar { width: 42px; height: 42px; border-radius: 10px; }
  .player-card-info strong { font-size: 12px; }
  .player-card-info span { font-size: 9px; }
}
@media (min-width: 861px) and (max-width: 1280px) {
  .players-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) and (min-width: 621px) {
  .players-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* =====================================================================
   WANAStatsWeb 1.9.5 – kompakte Highlights und Gesamt-Spitzenreiter
   ===================================================================== */
.hero {
  min-height: 300px;
  padding: 24px 0 30px;
  grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
  gap: 38px;
}
.hero h1 {
  margin-top: 12px;
  gap: 0;
  font-size: clamp(34px, 3.8vw, 49px);
}
.hero-rule { margin-top: 13px; }
.hero-buttons { margin-top: 17px; }
.hero-panel { padding: 17px 21px 16px; }
.champion {
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 15px;
  min-height: 92px;
  margin: 9px 0;
  padding: 9px 0;
}
.champion-avatar { width: 72px; height: 72px; border-radius: 16px; }
.champion-info > span { font-size: 8px; }
.champion-info strong, .champion-name { margin-top: 4px; font-size: clamp(23px, 2.3vw, 32px); }
.champion-info small { margin-top: 5px; font-size: 10px; }
.hero-kpis > div { padding: 8px 12px; }
.hero-kpis b { font-size: 17px; }

.spotlight { padding-top: 23px; }
.spotlight-card {
  min-height: 224px;
  padding: 16px;
}
.spotlight-card-heading,
.spotlight-title-line,
.spotlight-summary {
  display: flex;
  align-items: center;
}
.spotlight-card-heading { justify-content: space-between; gap: 12px; }
.spotlight-title-line { min-width: 0; gap: 10px; }
.spotlight-title-line .metric-icon { width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto; }
.spotlight-title-line .metric-icon svg { width: 19px; }
.spotlight-card .spotlight-title-line h3 {
  min-width: 0;
  margin: 0;
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.spotlight-summary {
  justify-content: space-between;
  gap: 14px;
  min-height: 34px;
  margin-top: 9px;
}
.spotlight-summary .winner { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spotlight-summary .spotlight-value { flex: 0 0 auto; margin: 0; font-size: 20px; }
.mini-ranking { gap: 5px; margin-top: 10px; }
.mini-rank-row {
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 7px;
  min-height: 31px;
  padding-bottom: 5px;
}
.mini-player-link {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.mini-player-link .player-avatar {
  width: 23px;
  height: 23px;
  border-radius: 6px;
  flex: 0 0 auto;
}
.mini-player-link > span:last-child,
.mini-player-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-progress { left: 33px; }

/* Die vier Haupt-Unterseiten verwenden dieselbe vertikale Rhythmik und Titelgröße. */
.global-page-hero,
.players-page-hero,
.combat-page-hero,
.elite-boss-page-hero {
  padding-top: 40px;
  padding-bottom: 27px;
}
.global-page-hero h1,
.players-page-hero h1,
.combat-page-hero h1,
.elite-boss-page-hero h1 {
  font-size: clamp(39px, 4.1vw, 54px);
  line-height: .96;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 27px 0; gap: 23px; }
  .hero-copy { text-align: center; }
  .hero-rule { margin-inline: auto; }
  .hero-buttons { justify-content: center; }
  .spotlight-card { min-height: auto; }
}
@media (max-width: 620px) {
  .hero h1 { font-size: clamp(32px, 11vw, 44px); }
  .spotlight-summary { align-items: flex-end; }
  .spotlight-summary .winner { white-space: normal; }
  .global-page-hero h1,
  .players-page-hero h1,
  .combat-page-hero h1,
  .elite-boss-page-hero h1 { font-size: 41px; }
}


/* =====================================================================
   WANAStatsWeb 1.9.6 – verdichteter Startbereich und konsistente Raster
   ===================================================================== */

/* Startbereich: beide Hälften gleich hoch; Buttons, Kopfzeile, LIVE und
   die drei unteren Zähler werden bewusst entfernt. */
.hero {
  min-height: 0;
  padding: 20px 0 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}
.hero-copy,
.hero-panel {
  min-height: 178px;
  height: 100%;
}
.hero-copy {
  padding: 18px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-buttons,
.hero-panel-top,
.hero-kpis { display: none !important; }
.hero-panel {
  padding: 18px 24px;
  display: flex;
  align-items: center;
}
.champion {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-bottom: 0;
  grid-template-columns: 74px minmax(0, 1fr);
}
.champion-info > span {
  color: var(--gold);
  font-size: 9px;
}

/* Die beiden Kampflog-Übersichtskarten besitzen garantiert dieselbe Höhe. */
.combat-overview-grid {
  grid-auto-rows: 1fr;
  align-items: stretch;
}
.combat-panel {
  min-height: 286px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.combat-ranking-list,
.combat-rivalry-list {
  flex: 1 1 auto;
  align-content: start;
}

/* Auf sehr breiten Ansichten passen vier Boss-Siege pro Reihe und drei
   PvP-Kämpfe. Dadurch entstehen keine unnötig breiten Einzelkarten. */
@media (min-width: 1500px) {
  .elite-boss-recent-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .combat-fights-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }
  .combat-fight-row {
    grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
    padding-inline: 8px;
  }
  .combat-fighter { padding-inline: 6px; }
  .combat-fighter .champion-avatar {
    width: 38px;
    height: 38px;
  }
  .combat-fight-center { padding-inline: 4px; }
  .combat-weapon-name { max-width: 84px; }
}

@media (min-width: 1301px) and (max-width: 1499px) {
  .combat-fights-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy,
  .hero-panel { min-height: 0; }
}


/* =====================================================================
   WANAStatsWeb 1.9.7 – kompakte Profilraster und Spitzenreiter-Kategorien
   ===================================================================== */

/* Der Spitzenreiter nutzt die komplette Kartenbreite sinnvoll: links die
   Person, rechts alle echten Statistik-Kategorien, in denen sie führt. */
.hero-panel {
  padding: 12px 14px;
  align-items: stretch;
}
.champion {
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.62fr);
  gap: 16px;
  align-items: center;
}
.champion-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 4px 14px 4px 4px;
  border-right: 1px solid var(--line);
}
.champion-identity .champion-avatar {
  width: 62px;
  height: 62px;
  border-radius: 14px;
}
.champion-identity .champion-info > span {
  font-size: 7px;
  line-height: 1.35;
}
.champion-identity .champion-name,
.champion-identity .champion-info strong {
  margin-top: 3px;
  font-size: clamp(20px, 2vw, 28px);
}
.champion-identity .champion-info small {
  margin-top: 4px;
  font-size: 8px;
  line-height: 1.35;
}
.champion-winning-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  align-content: center;
}
.champion-winning-stat {
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border: 1px solid color-mix(in srgb, var(--winning-stat-color) 25%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--winning-stat-color) 6%, var(--surface));
}
.champion-winning-stat .metric-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 7px;
  color: var(--winning-stat-color);
  border-color: color-mix(in srgb, var(--winning-stat-color) 42%, transparent);
  background: color-mix(in srgb, var(--winning-stat-color) 10%, transparent);
}
.champion-winning-stat .metric-icon svg { width: 14px; height: 14px; }
.champion-winning-stat > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 8px;
  font-weight: 850;
}
.champion-winning-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted-2);
  font-size: 9px;
}

/* Spielerprofil: mehrere PvP-Bilanzen und Bossarten pro Reihe, statt einer
   einzigen überbreiten Karte. Acht Einträge werden pro Seite gezeigt. */
.profile-combat-list,
.profile-elite-boss-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.profile-combat-row {
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 7px;
  min-height: 112px;
  padding: 10px;
  border-radius: 15px;
}
.profile-combat-player { gap: 6px; }
.profile-combat-player .champion-avatar {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}
.profile-combat-player-copy { gap: 2px; }
.profile-combat-player-copy small { font-size: 6px; }
.profile-combat-player-copy .player-link {
  max-width: 98px;
  font-size: 9px;
}
.profile-combat-score {
  width: 58px;
  min-height: 48px;
  gap: 2px;
  border-radius: 10px;
}
.profile-combat-score strong { font-size: 14px; }
.profile-combat-score small { display: none; }
.profile-combat-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 2px 0;
  border-left: 0;
  border-top: 1px solid var(--line);
}
.profile-combat-meta b { font-size: 8px; }
.profile-combat-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 7px;
  text-align: right;
}

.profile-elite-boss-row {
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 9px 10px;
  min-height: 126px;
  padding: 11px;
  align-content: start;
}
.profile-elite-boss-row .boss-visual.large {
  width: 54px;
  height: 54px;
}
.profile-elite-boss-copy { gap: 4px; }
.profile-elite-boss-heading { gap: 5px; }
.profile-elite-boss-heading h3 {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.profile-elite-boss-heading .difficulty-badge {
  padding: 4px 6px;
  font-size: 6px;
}
.profile-elite-boss-copy p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 7px;
}
.profile-elite-boss-dates {
  display: grid;
  gap: 2px;
  font-size: 6px;
}
.profile-elite-boss-numbers {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.profile-elite-boss-numbers .metric-stack {
  min-width: 0;
  padding: 7px 6px;
}
.profile-elite-boss-numbers .metric-stack b { font-size: 11px; }
.profile-elite-boss-numbers .metric-stack span { font-size: 6px; }
.profile-section-pagination { margin-top: 12px; }

@media (max-width: 1540px) {
  .champion-winning-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-combat-list,
  .profile-elite-boss-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .champion { grid-template-columns: minmax(230px, .85fr) minmax(0, 1.15fr); }
  .champion-winning-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-combat-list,
  .profile-elite-boss-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .champion { grid-template-columns: 1fr; gap: 12px; }
  .champion-identity {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 2px 2px 12px;
  }
  .champion-winning-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-combat-list,
  .profile-elite-boss-list { grid-template-columns: 1fr; }
  .profile-combat-row {
    grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
  }
  .profile-combat-player-copy .player-link { max-width: 150px; }
}
@media (max-width: 560px) {
  .champion-winning-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .champion-winning-stat > span:last-child { white-space: normal; line-height: 1.2; }
  .profile-combat-player .avatar-link { display: block; }
  .profile-combat-meta { flex-direction: column; align-items: center; }
  .profile-combat-meta small { white-space: normal; text-align: center; }
}

/* 1.9.7 Feinschliff: Die vier Statistikbezeichnungen pro Reihe bleiben
   vollständig lesbar und dürfen höchstens auf zwei Zeilen umbrechen. */
.champion-winning-stat { min-height: 38px; }
.champion-winning-stat > span:last-child {
  white-space: normal;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}


/* WANAStatsWeb 1.9.8 – kompakter Profilkopf, Trophäen und einheitliche Aktualisierung */
.page-updated { margin: 8px 0 9px; justify-content: flex-start; }
.subpage-hero > div:first-child > .page-updated { margin-top: 8px; margin-bottom: 7px; }
.hero-copy .page-updated { margin-top: 8px; }
.profile-page-updated { margin: 3px 0 14px; }

.profile-hero {
  min-height: 282px;
  padding: 46px 28px 24px;
  grid-template-columns: 164px minmax(0, 1fr) 112px;
  gap: 26px;
  align-items: stretch;
}
.profile-skin-stage {
  min-height: 0;
  height: 206px;
  align-self: end;
  align-items: end;
  padding-top: 0;
}
.profile-skin-stage::after { width: 118px; height: 18px; bottom: 0; }
.skin-glow { width: 145px; height: 145px; }
.profile-skin { max-width: 145px; max-height: 206px; align-self: end; }
.profile-skin-fallback .champion-avatar { width: 104px; height: 104px; }
.profile-identity { align-self: center; }
.profile-name-line h1 { font-size: clamp(36px, 4vw, 56px); }
.profile-uuid { margin: 6px 0 0; }
.profile-meta-grid > div { padding: 12px 13px; }
.profile-avatar-card { width: 112px; padding: 13px 10px; align-self: center; }
.profile-avatar-card .player-avatar,
.profile-avatar-card .champion-avatar { width: 76px; height: 76px; }

.profile-trophy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trophy-card {
  grid-template-columns: 78px minmax(0, 1fr);
  grid-template-areas: "visual copy" "source copy";
  align-items: start;
  min-height: 0;
  padding: 12px;
  gap: 8px 12px;
}
.trophy-card > .item-visual { grid-area: visual; justify-self: center; }
.trophy-card > .elite-loot-copy { grid-area: copy; min-width: 0; }
.trophy-card > .trophy-boss-sources {
  grid-area: source;
  align-self: start;
  display: grid;
  gap: 5px;
  padding: 0;
}
.trophy-card > .trophy-boss-sources small { width: auto; }
.trophy-card > .trophy-boss-sources a {
  width: 100%;
  padding: 5px 6px;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
}
.trophy-card .item-visual.large { width: 72px; height: 72px; }
.trophy-card .elite-loot-title h3 { font-size: 13px; }
.trophy-card .elite-loot-material { font-size: 8px; }
.trophy-card .elite-loot-properties { gap: 4px; }
.trophy-card .elite-loot-properties span { padding: 4px 6px; font-size: 7px; }

.champion-winning-stat { position: relative; overflow: visible; cursor: help; }
.champion-winning-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 20;
  min-width: max-content;
  max-width: 220px;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--winning-stat-color) 62%, var(--line));
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface-solid) 94%, #000);
  color: var(--text-strong);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity .16s ease, transform .16s ease;
}
.champion-winning-stat:hover .champion-winning-tooltip,
.champion-winning-stat:focus-visible .champion-winning-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1280px) {
  .profile-trophy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .profile-hero { grid-template-columns: 130px minmax(0,1fr); min-height: 240px; padding: 50px 20px 22px; gap: 18px; }
  .profile-skin-stage { height: 176px; }
  .profile-skin { max-width: 120px; max-height: 176px; }
  .profile-avatar-card { display: none; }
}
@media (max-width: 680px) {
  .profile-hero { grid-template-columns: 1fr; text-align: center; }
  .profile-skin-stage { height: 150px; }
  .profile-skin { max-height: 150px; }
  .profile-page-updated { justify-content: center; }
  .profile-trophy-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   WANAStatsWeb 1.9.9 – Menü-Update, saubere Spitzenreiter-Kacheln,
   kompaktere Profilwerte und angeglichene Boss/PvP-Raster
   ===================================================================== */

.brand-copy { gap: 1px; }
.brand-copy .brand-updated {
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: .08em;
  font-weight: 800;
  text-transform: none;
}

/* Der globale Aktualisierungshinweis sitzt nur noch in der Menüleiste. */
.page-updated {
  display: none !important;
}

/* Gesamt-Spitzenreiter: mehr Ruhe, keine Überlappungen, Tooltip unterhalb. */
.hero-panel {
  overflow: visible;
  padding: 12px 16px;
}
.champion {
  overflow: visible;
  grid-template-columns: minmax(220px, .68fr) minmax(0, 1.32fr);
  gap: 14px;
}
.champion-identity {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  padding: 4px 10px 4px 2px;
}
.champion-identity .champion-avatar {
  width: 56px;
  height: 56px;
  border-radius: 13px;
}
.champion-winning-grid {
  overflow: visible;
  grid-template-columns: repeat(4, minmax(112px, 1fr));
  gap: 8px;
  align-items: stretch;
}
.champion-winning-stat {
  min-height: 46px;
  align-items: flex-start;
  padding: 8px 9px;
  z-index: 1;
}
.champion-winning-stat:hover,
.champion-winning-stat:focus-visible {
  z-index: 30;
}
.champion-winning-stat .metric-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.champion-winning-stat > span:last-child {
  font-size: 8px;
  line-height: 1.15;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.champion-winning-tooltip {
  top: calc(100% + 8px);
  bottom: auto;
  left: 50%;
  z-index: 120;
}

/* Profil-Statistiken: kompakter ohne Aktualisiert-Zeile pro Box. */
.profile-stat-card {
  min-height: 142px;
  padding: 16px;
}
.profile-stat-card h3 {
  margin: 0 0 10px;
  min-height: 34px;
  font-size: 14px;
  line-height: 1.2;
}
.profile-stat-value-row {
  margin-bottom: 12px;
}
.profile-stat-key {
  display: none;
}

/* PvP-Übersicht: beide Highlight-Zeilen gleiche Höhe. */
.combat-panel-heading {
  min-height: 58px;
}
.combat-winner-row,
.combat-rivalry-row {
  min-height: 72px;
}

/* Letzte Boss-Siege: Bosskopf und Spielerkopf gleich groß. */
.elite-boss-kill-row .boss-visual.large,
.elite-boss-kill-row .elite-kill-player .champion-avatar {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

@media (max-width: 1420px) {
  .champion-winning-grid {
    grid-template-columns: repeat(3, minmax(112px, 1fr));
  }
}
@media (max-width: 1180px) {
  .champion {
    grid-template-columns: minmax(200px, .72fr) minmax(0, 1.28fr);
  }
  .champion-winning-grid {
    grid-template-columns: repeat(2, minmax(112px, 1fr));
  }
}
@media (max-width: 820px) {
  .champion-winning-grid {
    grid-template-columns: repeat(2, minmax(112px, 1fr));
  }
}
@media (max-width: 640px) {
  .brand-copy .brand-updated {
    display: none;
  }
}

/* =====================================================================
   WANAStatsWeb 1.9.10 – Profilkarten-Kopfzeile, zentrierte Bossquelle,
   identische Boss-/Spielerköpfe und zweizeilige Aktualisierungsanzeige
   ===================================================================== */

.brand-copy {
  align-content: center;
  gap: 0;
}
.brand-copy .brand-updated {
  display: grid;
  gap: 0;
  margin-top: 3px;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.15;
  letter-spacing: .04em;
  font-weight: 750;
  text-transform: none;
}
.brand-updated-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  font-size: 7px;
  font-weight: 850;
}
.brand-updated-label i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #4ee59a;
  box-shadow: 0 0 10px rgba(78,229,154,.8);
}
#navUpdatedAge {
  padding-left: 11px;
  color: var(--muted-2);
  white-space: nowrap;
}

/* Kategorie und Rang stehen bei Profil- und Globalwerten immer ganz oben. */
.profile-stat-card {
  min-height: 132px;
  padding: 14px 15px;
}
.profile-stat-meta.profile-stat-meta-top {
  order: -1;
  margin: 0 0 8px;
  min-height: 17px;
}
.profile-stat-meta-top .category-label {
  font-size: 8px;
  line-height: 1;
}
.profile-stat-meta-top .profile-stat-rank {
  max-width: 58%;
  font-size: 7px;
  line-height: 1.15;
}
.profile-stat-card h3 {
  min-height: 0;
  margin: 0 0 10px;
}
.profile-stat-value-row {
  margin: 0;
}

/* Bossquelle exakt unter dem Lootbild zentrieren. */
.trophy-card > .trophy-boss-sources {
  width: 78px;
  justify-items: center;
  justify-self: center;
  text-align: center;
}
.trophy-card > .trophy-boss-sources small {
  display: block;
  width: 100% !important;
  text-align: center;
}
.trophy-card > .trophy-boss-sources a {
  width: 100%;
  margin-inline: auto;
  justify-content: center;
  text-align: center;
}

/* In der Bosschronik nutzen beide Köpfe exakt dieselbe Außen- und Innenfläche. */
.elite-boss-kill-row .boss-visual.large,
.elite-boss-kill-row .elite-kill-player .champion-avatar {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  box-sizing: border-box;
  border-radius: 12px;
}
.elite-boss-kill-row .boss-visual.large .boss-head-image,
.elite-boss-kill-row .boss-visual.large .boss-player-skin {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  transform: scale(1.08);
}
.elite-boss-kill-row .boss-visual.large .boss-portrait-canvas {
  width: 108%;
  height: 108%;
  inset: -4%;
}
.elite-boss-kill-row .elite-kill-player .champion-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 680px) {
  .profile-stat-meta-top .profile-stat-rank {
    max-width: 62%;
    white-space: normal;
  }
}

/* =====================================================================
   WANAStatsWeb 1.9.11 – Profilkopf unten ausrichten und kompakte
   Spitzenreiter-Kategorien ohne Überstände
   ===================================================================== */

/* Spielerkopfkarte am unteren Rand der Profil-Metadaten verankern. Die
   linke untere Ecke bleibt der Bezugspunkt; die Karte wächst nach oben
   und rechts und nutzt den freien Platz besser aus. */
.profile-avatar-card {
  align-self: end;
  justify-self: start;
  width: 132px;
  min-height: 154px;
  margin-left: -16px;
  margin-bottom: -1px;
  padding: 15px 12px 16px;
  transform: translateY(1px);
}
.profile-avatar-card > span {
  font-size: 8px;
  letter-spacing: .11em;
}
.profile-avatar-card .player-avatar,
.profile-avatar-card .champion-avatar {
  width: 90px;
  height: 90px;
  border-radius: 19px;
}

/* Die Gewinner-Kategorien werden als dichtes, echtes Raster ausgegeben.
   Keine Mindestbreite erzwingt mehr ein Überlaufen aus der Karte. */
.champion {
  grid-template-columns: minmax(225px, .72fr) minmax(0, 1.28fr);
  gap: 12px;
}
.champion-winning-grid {
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  align-content: center;
}
.champion-winning-stat {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  gap: 5px;
  padding: 5px 6px;
  align-items: center;
  border-radius: 8px;
}
.champion-winning-stat .metric-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 6px;
}
.champion-winning-stat .metric-icon svg {
  width: 11px;
  height: 11px;
}
.champion-winning-stat > span:last-child {
  min-width: 0;
  max-width: 100%;
  font-size: 7px;
  line-height: 1.08;
  font-weight: 850;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.champion-winning-tooltip {
  max-width: 170px;
  font-size: 9px;
}

@media (max-width: 1420px) {
  .champion-winning-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1180px) {
  .champion {
    grid-template-columns: minmax(210px, .78fr) minmax(0, 1.22fr);
  }
  .champion-winning-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 940px) {
  .champion-winning-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .profile-avatar-card {
    display: none;
  }
}
@media (max-width: 820px) {
  .champion {
    grid-template-columns: 1fr;
  }
  .champion-winning-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .champion-winning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =====================================================================
   WANAStatsWeb 1.9.12 – saubere Spitzenreiter-Kacheln, Spieler-Editionen
   und Suchfelder links vor den Kategorien
   ===================================================================== */

/* Der eigentliche Kategoriename ist das direkte span-Kind. Frühere Regeln
   trafen wegen des Tooltip-elements nicht zuverlässig zu. */
.champion {
  grid-template-columns: minmax(210px, .66fr) minmax(0, 1.34fr);
  gap: 12px;
}
.champion-identity .champion-info > span {
  font-size: 6px;
  line-height: 1.2;
}
.champion-identity .champion-name,
.champion-identity .champion-info strong {
  font-size: clamp(18px, 1.7vw, 24px);
}
.champion-identity .champion-info small {
  font-size: 7px;
  line-height: 1.25;
}
.champion-winning-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.champion-winning-stat {
  min-width: 0;
  min-height: 34px;
  gap: 5px;
  padding: 5px 6px;
  overflow: visible;
}
.champion-winning-stat > span {
  min-width: 0;
  max-width: 100%;
  color: var(--text);
  font-size: 6.5px !important;
  font-weight: 850;
  line-height: 1.08;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.champion-winning-stat .metric-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.champion-winning-stat .metric-icon svg {
  width: 10px;
  height: 10px;
}

/* Suchfeld beginnt auf Leaderboards und Global immer ganz links. */
.toolbar-search-first {
  justify-content: flex-start;
}
.toolbar-search-first > .search-field {
  order: 0;
  flex: 0 0 min(300px, 34%);
}
.toolbar-search-first > .filters {
  order: 1;
  flex: 1 1 auto;
}

/* Java-/Bedrock-Umschalter im Stil der Boss-Schwierigkeitsfilter. */
.player-type-filters {
  flex: 0 0 auto;
  overflow: visible;
  padding-right: 4px;
  border-right: 1px solid var(--line);
}
.player-type-filters button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
}
.player-type-filters button:hover {
  color: var(--text);
  background: var(--orange-soft);
}
.player-type-filters button.active {
  color: #171009;
  border-color: var(--orange);
  background: linear-gradient(135deg, #ffbd55, var(--orange));
}

@media (max-width: 1180px) {
  .champion-winning-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .toolbar-search-first {
    align-items: stretch;
    flex-direction: column;
  }
  .toolbar-search-first > .search-field {
    flex-basis: auto;
    width: 100%;
  }
  .players-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .player-type-filters {
    border-right: 0;
  }
}
@media (max-width: 680px) {
  .champion-winning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =====================================================================
   WANAStatsWeb 1.9.13 – vertikaler Spitzenreiter, lesbare Kategorien,
   einheitliche Leaderboard-Kopfzeile und kompaktere Bereichsabstände
   ===================================================================== */

/* Links Kopf oberhalb der Beschriftung, rechts vier lesbare Kategorien. */
.champion {
  grid-template-columns: minmax(180px, .56fr) minmax(0, 1.44fr);
  gap: 16px;
  align-items: stretch;
}
.champion-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 18px 7px 4px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.champion-identity .champion-avatar {
  width: 70px;
  height: 70px;
  border-radius: 16px;
}
.champion-identity .champion-info {
  justify-items: center;
  width: 100%;
}
.champion-identity .champion-info > span {
  max-width: 190px;
  font-size: 7.5px;
  line-height: 1.25;
}
.champion-identity .champion-name,
.champion-identity .champion-info strong {
  max-width: 100%;
  margin-top: 4px;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1;
}
.champion-identity .champion-info small {
  max-width: 195px;
  margin-top: 5px;
  font-size: 8px;
  line-height: 1.3;
}
.champion-winning-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-content: center;
  overflow: visible;
}
.champion-winning-stat {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 48px;
  padding: 7px 9px;
  overflow: visible;
  border-radius: 10px;
}
.champion-winning-stat .metric-icon {
  width: 25px;
  height: 25px;
  flex-basis: 25px;
  border-radius: 7px;
}
.champion-winning-stat .metric-icon svg {
  width: 14px;
  height: 14px;
}
.champion-winning-stat > span:not(.champion-winning-tooltip) {
  min-width: 0;
  color: var(--text);
  font-size: 9px !important;
  font-weight: 900;
  line-height: 1.18;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: normal;
  word-break: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.champion-winning-tooltip {
  top: calc(100% + 8px);
  bottom: auto;
  left: 50%;
  z-index: 150;
  min-width: 170px;
  max-width: 230px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  text-align: left;
}
.champion-winning-tooltip .metric-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}
.champion-winning-tooltip-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.champion-winning-tooltip-copy b {
  color: var(--text-strong);
  font-size: 10px;
  line-height: 1.15;
}
.champion-winning-tooltip-copy strong {
  color: var(--winning-stat-color);
  font-size: 13px;
  line-height: 1;
}

/* Leaderboard-Karten: Oberkategorie und Anzahl bilden immer die erste Zeile. */
.metric-card-meta {
  order: -2;
  min-height: 18px;
  margin: 0 0 9px;
}
.metric-card-heading {
  order: -1;
}
.metric-card-meta .category-label {
  font-size: 9px;
}
.metric-card-meta .card-number {
  font-size: 8px;
}

/* Die folgenden Bereiche bleiben optisch getrennt, verschwenden aber weniger Höhe. */
.spotlight {
  padding-bottom: 18px;
}
.leaderboards {
  padding-top: 12px;
}
.elite-recent-section {
  padding-bottom: 18px;
}
.elite-catalog-section {
  padding-top: 12px;
}

@media (max-width: 1280px) {
  .champion-winning-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .champion {
    grid-template-columns: minmax(170px, .62fr) minmax(0, 1.38fr);
  }
  .champion-winning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .champion {
    grid-template-columns: 1fr;
  }
  .champion-identity {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 4px 4px 12px;
  }
  .champion-winning-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .champion-winning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .champion-winning-stat > span:not(.champion-winning-tooltip) {
    font-size: 8.5px !important;
  }
}

/* =====================================================================
   WANAStatsWeb 1.9.14 – einheitliche Kategorie-Symbole und breiter
   Spitzenreiter-Tooltip
   ===================================================================== */

/* Die sechs Kategorien verwenden überall dieselbe visuelle Sprache.
   Die Filter zeigen daher jetzt ebenfalls das jeweilige Originalsymbol. */
.category-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 5px 12px 5px 7px;
}
.category-filter-button .metric-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 8px;
  color: var(--filter-color);
  border-color: color-mix(in srgb, var(--filter-color) 42%, transparent);
  background: color-mix(in srgb, var(--filter-color) 11%, transparent);
}
.category-filter-button .metric-icon svg {
  width: 15px;
  height: 15px;
}
.category-filter-button > span:last-child {
  color: inherit;
  font-size: 10px;
  font-weight: 900;
}
.category-filter-button:hover {
  color: var(--text-strong);
  border-color: color-mix(in srgb, var(--filter-color) 32%, transparent);
  background: color-mix(in srgb, var(--filter-color) 8%, var(--surface));
}
.category-filter-button.active {
  color: var(--text-strong);
  border-color: color-mix(in srgb, var(--filter-color) 72%, var(--line));
  background: color-mix(in srgb, var(--filter-color) 15%, var(--surface));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--filter-color) 14%, transparent);
}
.category-filter-button.active .metric-icon {
  color: var(--filter-color);
  border-color: color-mix(in srgb, var(--filter-color) 74%, transparent);
  background: color-mix(in srgb, var(--filter-color) 16%, transparent);
}

/* Die Kategorien im Spitzenreiter bleiben kompakt, sind aber klar lesbar. */
.champion-winning-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.champion-winning-stat {
  min-height: 52px;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 10px;
}
.champion-winning-stat .metric-icon {
  width: 29px;
  height: 29px;
  flex-basis: 29px;
  border-radius: 8px;
}
.champion-winning-stat .metric-icon svg {
  width: 16px;
  height: 16px;
}
.champion-winning-stat > span:not(.champion-winning-tooltip) {
  font-size: 9.5px !important;
  line-height: 1.17;
  -webkit-line-clamp: 2;
}

/* Der Hover ist eine eigene horizontale Karte und wird nicht mehr von den
   alten Textregeln der kleinen Kachel zusammengedrückt. */
.champion-winning-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  right: auto;
  bottom: auto;
  z-index: 300;
  width: 250px;
  min-width: 250px;
  max-width: none;
  min-height: 62px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  overflow: visible;
  white-space: normal;
  border: 1px solid color-mix(in srgb, var(--winning-stat-color) 62%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-solid) 96%, #000);
  box-shadow: 0 18px 42px rgba(0,0,0,.48);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 7px);
  transition: opacity .16s ease, transform .16s ease;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}
.champion-winning-stat:hover .champion-winning-tooltip,
.champion-winning-stat:focus-visible .champion-winning-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}
.champion-winning-tooltip .metric-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
}
.champion-winning-tooltip .metric-icon svg {
  width: 21px;
  height: 21px;
}
.champion-winning-tooltip-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
  overflow: visible;
  white-space: normal;
}
.champion-winning-tooltip-copy b {
  overflow: visible;
  color: var(--text-strong);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  white-space: normal;
}
.champion-winning-tooltip-copy strong {
  overflow: visible;
  color: var(--winning-stat-color);
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}
/* An den äußeren Spalten bleibt der Tooltip innerhalb der großen Karte. */
.champion-winning-stat:nth-child(4n + 1) .champion-winning-tooltip {
  left: 0;
  transform: translate(0, 7px);
}
.champion-winning-stat:nth-child(4n + 1):hover .champion-winning-tooltip,
.champion-winning-stat:nth-child(4n + 1):focus-visible .champion-winning-tooltip {
  transform: translate(0, 0);
}
.champion-winning-stat:nth-child(4n) .champion-winning-tooltip {
  left: auto;
  right: 0;
  transform: translate(0, 7px);
}
.champion-winning-stat:nth-child(4n):hover .champion-winning-tooltip,
.champion-winning-stat:nth-child(4n):focus-visible .champion-winning-tooltip {
  transform: translate(0, 0);
}

@media (max-width: 1280px) {
  .champion-winning-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .champion-winning-stat:nth-child(4n + 1) .champion-winning-tooltip,
  .champion-winning-stat:nth-child(4n) .champion-winning-tooltip {
    left: 50%;
    right: auto;
    transform: translate(-50%, 7px);
  }
  .champion-winning-stat:nth-child(4n + 1):hover .champion-winning-tooltip,
  .champion-winning-stat:nth-child(4n + 1):focus-visible .champion-winning-tooltip,
  .champion-winning-stat:nth-child(4n):hover .champion-winning-tooltip,
  .champion-winning-stat:nth-child(4n):focus-visible .champion-winning-tooltip {
    transform: translate(-50%, 0);
  }
  .champion-winning-stat:nth-child(3n + 1) .champion-winning-tooltip {
    left: 0;
    transform: translate(0, 7px);
  }
  .champion-winning-stat:nth-child(3n + 1):hover .champion-winning-tooltip,
  .champion-winning-stat:nth-child(3n + 1):focus-visible .champion-winning-tooltip {
    transform: translate(0, 0);
  }
  .champion-winning-stat:nth-child(3n) .champion-winning-tooltip {
    left: auto;
    right: 0;
    transform: translate(0, 7px);
  }
  .champion-winning-stat:nth-child(3n):hover .champion-winning-tooltip,
  .champion-winning-stat:nth-child(3n):focus-visible .champion-winning-tooltip {
    transform: translate(0, 0);
  }
}
@media (max-width: 980px) {
  .champion-winning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .champion-winning-stat:nth-child(3n + 1) .champion-winning-tooltip,
  .champion-winning-stat:nth-child(3n) .champion-winning-tooltip {
    left: 50%;
    right: auto;
    transform: translate(-50%, 7px);
  }
  .champion-winning-stat:nth-child(3n + 1):hover .champion-winning-tooltip,
  .champion-winning-stat:nth-child(3n + 1):focus-visible .champion-winning-tooltip,
  .champion-winning-stat:nth-child(3n):hover .champion-winning-tooltip,
  .champion-winning-stat:nth-child(3n):focus-visible .champion-winning-tooltip {
    transform: translate(-50%, 0);
  }
  .champion-winning-stat:nth-child(2n + 1) .champion-winning-tooltip {
    left: 0;
    transform: translate(0, 7px);
  }
  .champion-winning-stat:nth-child(2n + 1):hover .champion-winning-tooltip,
  .champion-winning-stat:nth-child(2n + 1):focus-visible .champion-winning-tooltip {
    transform: translate(0, 0);
  }
  .champion-winning-stat:nth-child(2n) .champion-winning-tooltip {
    left: auto;
    right: 0;
    transform: translate(0, 7px);
  }
  .champion-winning-stat:nth-child(2n):hover .champion-winning-tooltip,
  .champion-winning-stat:nth-child(2n):focus-visible .champion-winning-tooltip {
    transform: translate(0, 0);
  }
}
@media (max-width: 620px) {
  .category-filter-button {
    padding-right: 10px;
  }
  .category-filter-button .metric-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
  .champion-winning-tooltip {
    width: min(250px, calc(100vw - 40px));
    min-width: min(250px, calc(100vw - 40px));
  }
}


/* =====================================================================
   WANAStatsWeb 1.9.15 – systemweite Kategoriefarben und sauberer
   Spitzenreiter-Block
   ===================================================================== */

/* Jedes Standardsymbol trägt seine semantische Kategoriefarbe überall:
   Filter, Leaderboards, Global, Profile, Highlights, Dialoge und Champion. */
.metric-icon {
  color: var(--metric-color, var(--orange)) !important;
  border-color: color-mix(in srgb, var(--metric-color, var(--orange)) 42%, transparent) !important;
  background: color-mix(in srgb, var(--metric-color, var(--orange)) 11%, transparent) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--metric-color, var(--orange)) 4%, transparent);
}
.metric-icon svg {
  stroke: currentColor;
}
.category-filter-button:hover .metric-icon,
.category-filter-button.active .metric-icon,
.champion-winning-stat:hover .metric-icon,
.champion-winning-stat:focus-visible .metric-icon {
  color: var(--metric-color, var(--orange)) !important;
  border-color: color-mix(in srgb, var(--metric-color, var(--orange)) 70%, transparent) !important;
  background: color-mix(in srgb, var(--metric-color, var(--orange)) 17%, transparent) !important;
}

/* Der gelbe Status ist bewusst zweizeilig: Text oben, Zahl unten. */
.champion-rank-badge {
  display: grid;
  justify-items: center;
  gap: 2px;
  max-width: 210px;
  color: var(--gold);
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
}
.champion-rank-badge b,
.champion-rank-badge strong {
  display: block;
  color: inherit;
  font-weight: 950;
  letter-spacing: .075em;
}
.champion-rank-badge b {
  font-size: 9.5px;
}
.champion-rank-badge strong {
  font-size: 11px;
}

/* Alte allgemeine span-Regeln dürfen den neuen Badge nicht verkleinern. */
.champion-identity .champion-info > .champion-rank-badge {
  max-width: 210px;
  font-size: inherit;
  line-height: 1.08;
}

/* Kategorien beim Spitzenreiter: echtes, festes Iconfeld statt zu kleiner
   oder verrutschter Symbole. */
.champion-winning-stat {
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 58px;
  gap: 9px;
  padding: 9px 10px;
  align-items: center;
}
.champion-winning-stat > .metric-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  flex: 0 0 38px;
  align-self: center;
  justify-self: start;
  border-radius: 10px;
}
.champion-winning-stat > .metric-icon svg {
  width: 21px;
  height: 21px;
}
.champion-winning-stat > span:not(.metric-icon):not(.champion-winning-tooltip) {
  align-self: center;
  font-size: 10px !important;
  line-height: 1.18;
}

/* Tooltip-Symbol ebenfalls exakt ausgerichtet und kategoriefarbig. */
.champion-winning-tooltip > .metric-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
}
.champion-winning-tooltip > .metric-icon svg {
  width: 23px;
  height: 23px;
}

@media (max-width: 620px) {
  .champion-rank-badge b { font-size: 8.5px; }
  .champion-rank-badge strong { font-size: 10px; }
  .champion-winning-stat {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 54px;
  }
  .champion-winning-stat > .metric-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }
}


/* =====================================================================
   WANAStatsWeb 1.9.16 – Große Vier, geordnete Kampfwerte und kompaktere
   Spitzenreiter-Kacheln
   ===================================================================== */

/* Vier gleichwertige Highlights auf der Startseite. */
.spotlight-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Die Zahl der ersten Plätze bleibt prominent, ist aber knapp kleiner als
   der Spielername. Die höhere Spezifität verhindert alte strong-Regeln. */
.champion-identity .champion-info .champion-rank-badge strong {
  margin-top: 1px;
  font-size: clamp(20px, 1.95vw, 28px);
  line-height: .98;
  letter-spacing: .045em;
}

/* Die Gewinnerkategorien erhalten links ein kompaktes, sauber zentriertes
   Iconfeld. Dadurch bleibt rechts deutlich mehr Platz für den vollen Namen. */
.champion-winning-stat {
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 48px;
  gap: 7px;
  padding: 7px 9px;
  align-items: center;
}
.champion-winning-stat > .metric-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: start;
  border-radius: 8px;
}
.champion-winning-stat > .metric-icon svg {
  width: 15px;
  height: 15px;
}
.champion-winning-stat > span:not(.metric-icon):not(.champion-winning-tooltip) {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  text-overflow: ellipsis;
  font-size: 9px !important;
  line-height: 1.12;
}

@media (max-width: 1180px) {
  .spotlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
  .champion-identity .champion-info .champion-rank-badge strong {
    font-size: 21px;
  }
}


/* =====================================================================
   WANAStatsWeb 1.9.17 – feinere Größenkorrekturen für Spitzenreiter,
   Kampflog, Profilwerte und Leaderboards
   ===================================================================== */

/* Der Titel der gewonnenen Ranglisten bleibt präsent, tritt aber klar hinter
   dem Spielernamen zurück. */
.champion-rank-badge {
  gap: 3px;
}
.champion-rank-badge b {
  font-size: 10px;
  letter-spacing: .08em;
}
.champion-identity .champion-info .champion-rank-badge strong {
  margin-top: 0;
  font-size: clamp(13px, 1.12vw, 15px);
  line-height: 1.02;
  letter-spacing: .06em;
}

/* Kompaktere Kampflog-Highlights: gleiche Kopfgröße, geringere Zeilenhöhe und
   weniger Luft, damit beide Übersichtskarten effizienter wirken. */
.combat-panel-heading {
  margin-bottom: 14px;
}
.combat-ranking-list,
.combat-rivalry-list {
  gap: 6px;
}
.combat-winner-row {
  grid-template-columns: 30px 34px minmax(0, 1fr) auto;
  min-height: 52px;
  gap: 8px;
  padding: 7px 10px;
}
.combat-rivalry-row {
  grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
  min-height: 58px;
  gap: 12px;
  padding: 8px 74px;
}
.combat-rivalry-row > .combat-rank {
  left: 16px;
  width: 24px;
}
.combat-winner-row .player-avatar,
.combat-rivalry-player .player-avatar {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.combat-player-copy .player-link {
  font-size: 11px;
}
.combat-player-copy small {
  font-size: 8px;
}
.combat-win-count {
  font-size: 17px;
}
.combat-rivalry-player {
  gap: 8px;
}
.combat-rivalry-player .player-link:not(.avatar-link) {
  max-width: 168px;
  font-size: 10px;
}
.combat-versus-score {
  width: 62px;
  padding: 6px 5px;
  font-size: 12px;
}
.combat-duel-count {
  right: 12px;
  min-width: 52px;
  padding: 4px 6px;
  font-size: 7px;
}

/* Profilkarten: innerhalb derselben Boxen leicht größer und präsenter. */
.profile-stat-card h3 {
  margin-bottom: 9px;
  font-size: 14px;
}
.profile-stat-value-row {
  gap: 10px;
}
.profile-stat-value-row .metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.profile-stat-value-row .metric-icon svg {
  width: 18px;
  height: 18px;
}
.profile-stat-value-row .profile-stat-value {
  font-size: clamp(21px, 1.95vw, 27px);
}
.profile-stat-meta .category-label {
  font-size: 9px;
}
.profile-stat-meta .profile-stat-rank {
  font-size: 8.5px;
}
.profile-stat-card .profile-stat-key {
  padding-top: 9px;
  font-size: 7.5px;
}

/* Leaderboard-Karten: sehr vorsichtig größer, damit die Boxen dichter und
   besser ausgenutzt wirken, ohne überladen zu werden. */
.metric-card-heading {
  gap: 11px;
}
.metric-card-heading .metric-icon {
  width: 35px;
  height: 35px;
}
.metric-card-heading .metric-icon svg {
  width: 18.5px;
  height: 18.5px;
}
.metric-card-heading h3,
.metric-card h3 {
  font-size: 15.5px;
}
.metric-card-meta {
  margin-bottom: 10px;
}
.metric-card-meta .category-label {
  font-size: 9.5px;
}
.metric-card-meta .card-number {
  font-size: 8.5px;
}
.metric-leader {
  min-height: 54px;
  margin: 10px 0 9px;
  padding: 8px 10px;
}
.metric-leader .player-avatar {
  width: 35px;
  height: 35px;
}
.metric-leader-info .metric-player-name,
.metric-leader-info strong,
.metric-leader-info span {
  font-size: 11.5px;
}
.metric-card .card-footer {
  padding-top: 8px;
  font-size: 8.5px;
}
.metric-card .card-footer b {
  font-size: 13.5px;
}
.metric-card .metric-empty-state strong {
  font-size: 10.5px;
}
.metric-card .metric-empty-state span {
  font-size: 8.5px;
}

@media (max-width: 720px) {
  .champion-identity .champion-info .champion-rank-badge strong {
    font-size: 13px;
  }
}

/* =====================================================================
   WANAStatsWeb 1.9.18 – Symbolskalierung, dritte Kampflog-Statistik und
   klarere Leaderboard-Zeilen
   ===================================================================== */

/* Gesamt-Spitzenreiter: obere Zeile kleiner, damit Stern + Titel sauber in
   einer Zeile bleiben. */
.champion-rank-badge {
  max-width: 230px;
}
.champion-rank-badge b {
  font-size: 8px;
  letter-spacing: .055em;
  white-space: nowrap;
}
.champion-identity .champion-info > .champion-rank-badge {
  max-width: 230px;
}

/* Die Kategorien rechts bekommen korrekt zentrierte und größer gezogene
   SVG-Symbole statt kleine Icons in der Ecke. */
.champion-winning-stat > .metric-icon {
  display: grid;
  place-items: center;
}
.champion-winning-stat > .metric-icon svg,
.champion-winning-tooltip > .metric-icon svg {
  display: block;
  width: 18px !important;
  height: 18px !important;
  margin: 0 auto;
}

/* Drei Übersichtskarten im Kampflog: Sieger, Verlierer und Duelle. */
.combat-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.combat-panel {
  min-height: 276px;
}
.combat-inline-empty {
  min-height: 200px;
}

/* Das Duell-Badge darf präsenter sein. */
.combat-duel-count {
  right: 12px;
  min-width: 66px;
  padding: 6px 9px;
  font-size: 8.5px;
  font-weight: 900;
}

/* Leaderboard-Karten: Kopf links, Name mittig größer, Wert rechts größer. */
.metric-leader {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
}
.metric-leader .avatar-link {
  grid-column: 1;
}
.metric-leader .player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.metric-leader-info {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.metric-leader-info .metric-player-name,
.metric-leader-info strong {
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.15;
}
.metric-leader-info span {
  justify-self: end;
  text-align: right;
  color: var(--orange);
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

@media (max-width: 1400px) {
  .combat-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .combat-overview-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .champion-rank-badge b {
    font-size: 7.4px;
  }
  .metric-leader-info {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .metric-leader-info span {
    justify-self: start;
    text-align: left;
  }
}


/* =====================================================================
   WANAStatsWeb 1.9.19 – Fortschritt direkt nach Zeit und ausgewogenere
   Kampflog-Spalten
   ===================================================================== */

/* Sieger und Verlierer bewusst schmaler, Rivalitäten deutlich breiter.
   So bleiben auch längere Spielernamen im Duell lesbar. */
.combat-overview-grid {
  grid-template-columns: minmax(260px, .78fr) minmax(260px, .78fr) minmax(520px, 1.44fr);
  gap: 16px;
}

/* Platzierung klarer hervorheben; Sieg-/Niederlagenzahl moderat größer. */
.combat-winner-row .combat-rank,
.combat-rivalry-row > .combat-rank {
  font-size: 13px;
  font-weight: 950;
}
.combat-win-count {
  font-size: 20px;
  line-height: 1;
}

/* Die breitere Duellkarte nutzt den zusätzlichen Raum auch wirklich aus. */
.combat-rivalry-row {
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  gap: 14px;
  padding-left: 68px;
  padding-right: 82px;
}
.combat-rivalry-player .player-link:not(.avatar-link) {
  max-width: none;
  font-size: 11px;
}
.combat-versus-score {
  width: 72px;
  font-size: 13px;
}
.combat-duel-count {
  min-width: 70px;
  font-size: 8.5px;
}

@media (max-width: 1500px) {
  .combat-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .combat-overview-grid .combat-panel:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .combat-overview-grid {
    grid-template-columns: 1fr;
  }
  .combat-overview-grid .combat-panel:last-child {
    grid-column: auto;
  }
}

/* Kleine letzte Lesbarkeitskorrektur für Rang und Ergebniszeile. */
.combat-winner-row .combat-rank,
.combat-rivalry-row > .combat-rank { font-size: 14px; }
.combat-player-copy small { font-size: 9px; }


/* =====================================================================
   WANAStatsWeb 1.9.20 – Fortschritt-Reihenfolge und Feinschliff für
   Kampflog- sowie Spielerkarten
   ===================================================================== */

/* Letzte Kämpfe: Sieger/Verlierer und Spielernamen spürbar größer, aber
   weiterhin ellipsensicher für längere Namen. */
.combat-fighter-copy {
  max-width: 260px;
  gap: 5px;
}
.combat-fighter small {
  font-size: 9px;
  letter-spacing: .1em;
}
.combat-fighter .player-link:not(.avatar-link) {
  font-size: 15px;
  line-height: 1.12;
}

/* Top-5-Karten im Kampflog: Spielernamen und Zahlen nutzen den verfügbaren
   Platz besser aus, ohne unruhig zu wirken. */
.combat-rank {
  font-size: 13px;
}
.combat-player-copy .player-link {
  font-size: 13px;
  line-height: 1.12;
}
.combat-player-copy small {
  font-size: 9px;
}
.combat-win-count {
  font-size: 18px;
}
.combat-rivalry-player .player-link:not(.avatar-link) {
  max-width: 220px;
  font-size: 12px;
  line-height: 1.1;
}

/* Spielerübersicht: Name oben bündig, Status unten bündig zur Kopfhöhe,
   insgesamt größer und besser ausgenutzt. */
.player-card {
  align-items: center;
}
.player-card .player-avatar {
  width: 50px;
  height: 50px;
  border-radius: 12px;
}
.player-card-info {
  min-height: 50px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  padding-block: 1px;
}
.player-card-info strong {
  font-size: 15px;
  line-height: 1.1;
}
.player-card-info span {
  font-size: 11px;
  line-height: 1.1;
}

@media (min-width: 1281px) {
  .player-card {
    min-height: 76px;
    grid-template-columns: 50px minmax(0, 1fr) auto 18px;
    gap: 10px;
  }
  .player-card .player-avatar {
    width: 50px;
    height: 50px;
  }
  .player-card-info {
    min-height: 50px;
  }
  .player-card-info strong {
    font-size: 14px;
  }
  .player-card-info span {
    font-size: 10.5px;
  }
}

@media (max-width: 720px) {
  .combat-fighter .player-link:not(.avatar-link) {
    font-size: 13px;
  }
  .combat-player-copy .player-link,
  .combat-rivalry-player .player-link:not(.avatar-link) {
    font-size: 11px;
  }
}


/* =====================================================================
   WANAStatsWeb 1.9.21 – schmalere Spielerliste und größere Statistiktitel
   ===================================================================== */

/* Spielerliste: Karten etwas schmaler, damit pro Reihe eine Karte mehr passt.
   Der Spielername wird prominenter und optisch mittig neben dem Kopf geführt,
   während der Online-Status unten stehen bleibt. */
.players-grid {
  gap: 10px;
}
.player-card {
  min-height: 78px;
  padding: 12px 12px;
  grid-template-columns: 46px minmax(0, 1fr) auto 18px;
  gap: 10px;
}
.player-card .player-avatar {
  width: 46px;
  height: 46px;
  border-radius: 11px;
}
.player-card-info {
  min-height: 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  padding-block: 0;
}
.player-card-info strong {
  font-size: 15.5px;
  line-height: 1.05;
  transform: translateY(-2px);
}
.player-card-info span {
  font-size: 10.5px;
  line-height: 1.08;
}
.player-card-arrow {
  font-size: 16px;
}

/* Große Ansichten: eine zusätzliche Karte pro Reihe. */
@media (min-width: 1281px) {
  .players-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
  }
  .player-card {
    min-height: 74px;
    padding: 10px 11px;
    grid-template-columns: 44px minmax(0, 1fr) auto 16px;
    gap: 9px;
  }
  .player-card .player-avatar {
    width: 44px;
    height: 44px;
  }
  .player-card-info {
    min-height: 44px;
  }
  .player-card-info strong {
    font-size: 14.5px;
    transform: translateY(-1px);
  }
  .player-card-info span {
    font-size: 10px;
  }
}

@media (min-width: 861px) and (max-width: 1280px) {
  .players-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Globale Statistik-Karten: Titel wie „Blöcke abgebaut“ etwas größer. */
.profile-stat-card h3 {
  font-size: 15.5px;
  line-height: 1.18;
}

/* Leaderboard-Karten: Statistiktitel ebenfalls größer, da genug Platz da ist. */
.metric-card-heading h3,
.metric-card h3 {
  font-size: 16.5px;
  line-height: 1.16;
}

@media (max-width: 720px) {
  .player-card-info strong {
    font-size: 14px;
    transform: none;
  }
  .player-card-info span {
    font-size: 10px;
  }
  .profile-stat-card h3 {
    font-size: 14.5px;
  }
  .metric-card-heading h3,
  .metric-card h3 {
    font-size: 15px;
  }
}


/* =====================================================================
   WANAStatsWeb 1.9.22 – exakte Namensposition in der Spielerliste und
   einheitliche Überschriften in allen Statistikblöcken
   ===================================================================== */

/* Spielerliste: Name wirklich zentral neben dem Kopf, mit leichter Tendenz
   nach oben rechts. Der Status bleibt unten an seiner bisherigen Position. */
.player-card-info {
  position: relative;
  min-height: 46px;
  display: block;
  align-self: stretch;
}
.player-card-info strong {
  position: absolute;
  inset: auto 0 auto 0;
  top: 50%;
  transform: translateY(-62%);
  font-size: 15.8px;
  line-height: 1.04;
}
.player-card-info span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 10.5px;
  line-height: 1.08;
}

@media (min-width: 1281px) {
  .player-card-info {
    min-height: 44px;
  }
  .player-card-info strong {
    font-size: 14.8px;
    transform: translateY(-60%);
  }
  .player-card-info span {
    font-size: 10px;
  }
}

/* Alle weißen Überschriften in Statistikblöcken auf die gleiche Größe wie bei
   „Die großen Vier“ bringen. */
.spotlight-card h3,
.metric-card-heading h3,
.metric-card h3,
.profile-stat-card h3 {
  font-size: 20px !important;
  line-height: 1.14;
}

@media (max-width: 720px) {
  .player-card-info strong {
    font-size: 14.2px;
    transform: translateY(-56%);
  }
  .player-card-info span {
    font-size: 10px;
  }
  .spotlight-card h3,
  .metric-card-heading h3,
  .metric-card h3,
  .profile-stat-card h3 {
    font-size: 17px !important;
  }
}


/* =====================================================================
   WANAStatsWeb 1.9.23 – Große Vier ohne Spitzenreiterzeile, mit größerer
   Top-3-Darstellung
   ===================================================================== */

/* In den Großen Vier fällt die separate Spitzenreiterzeile samt orangefarbener
   Einzelzahl weg. Der frei gewordene Platz wird komplett für die Top 3 genutzt. */
.spotlight-summary {
  display: none !important;
}
.spotlight-card {
  min-height: 250px;
}
.spotlight-card .mini-ranking {
  gap: 10px;
  margin-top: 16px;
}
.spotlight-card .mini-rank-row {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 42px;
  padding-bottom: 8px;
  font-size: 13px;
}
.spotlight-card .mini-rank-row .rank {
  font-size: 16px;
  line-height: 1;
}
.spotlight-card .mini-player-link {
  gap: 9px;
  font-size: 14px;
  font-weight: 800;
}
.spotlight-card .mini-player-link .player-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.spotlight-card .mini-rank-row .value {
  font-size: 14px;
  color: var(--text);
}
.spotlight-card .mini-progress {
  left: 47px;
  bottom: 0;
}
.spotlight-card .mini-progress i {
  height: 4px;
}

@media (max-width: 720px) {
  .spotlight-card .mini-ranking {
    gap: 8px;
    margin-top: 14px;
  }
  .spotlight-card .mini-rank-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    min-height: 38px;
    font-size: 12px;
  }
  .spotlight-card .mini-rank-row .rank {
    font-size: 14px;
  }
  .spotlight-card .mini-player-link {
    font-size: 12.5px;
  }
  .spotlight-card .mini-player-link .player-avatar {
    width: 25px;
    height: 25px;
  }
  .spotlight-card .mini-rank-row .value {
    font-size: 12.5px;
  }
  .spotlight-card .mini-progress {
    left: 42px;
  }
}


/* =====================================================================
   WANAStatsWeb 1.9.24 – Feinschliff Spielerübersicht
   ===================================================================== */

/* Spielername etwas größer, Statuszeile leicht nach oben gezogen, damit sie
   sauber mit der Unterkante des Kopfes abschließt. */
.player-card-info strong {
  font-size: 16.4px;
  transform: translateY(-64%);
}
.player-card-info span {
  bottom: 3px;
  font-size: 10.7px;
}

@media (min-width: 1281px) {
  .player-card-info strong {
    font-size: 15.2px;
    transform: translateY(-63%);
  }
  .player-card-info span {
    bottom: 3px;
    font-size: 10.2px;
  }
}

@media (max-width: 720px) {
  .player-card-info strong {
    font-size: 14.6px;
    transform: translateY(-58%);
  }
  .player-card-info span {
    bottom: 2px;
    font-size: 10px;
  }
}


/* =====================================================================
   WANAStatsWeb 1.9.25 – Feinschliff Spielerstatus, Kampflog-Ausrichtung und
   Markenblock mit Versionsanzeige
   ===================================================================== */

/* Spielerübersicht: Status minimal höher, damit er sauber mit dem Kopf
   abschließt. */
.player-card-info span {
  bottom: 5px;
}

@media (min-width: 1281px) {
  .player-card-info span {
    bottom: 5px;
  }
}

@media (max-width: 720px) {
  .player-card-info span {
    bottom: 4px;
  }
}

/* Letzte Kämpfe: beide Köpfe exakt auf gleicher Höhe halten. */
.combat-fighter .avatar-link {
  display: flex;
  align-items: center;
  align-self: center;
}
.combat-fighter .champion-avatar {
  display: block;
}
.combat-fighter-copy {
  align-self: center;
}

/* Header-Markierung: Text beginnt bündig auf Höhe der Logospitze, die
   Versionsnummer steht unter dem Aktualisierungshinweis. */
.brand {
  align-items: flex-start;
}
.brand-copy {
  align-self: flex-start;
  padding-top: 2px;
}
.brand-copy .brand-updated {
  gap: 1px;
}
#navVersion {
  padding-left: 11px;
  color: var(--muted-2);
  font-size: 7px;
  line-height: 1.15;
  letter-spacing: .04em;
  font-weight: 780;
}


/* =====================================================================
   WANAStatsWeb 1.9.26 – exakte Kampfkopf-Ausrichtung und kompaktere
   Errungenschafts-/Profilkarten
   ===================================================================== */

/* Letzte Kämpfe: beide Köpfe exakt auf derselben Y-Achse. Durch explizite
   Grid-Spalten bekommen Sieger- und Verliererblock identische Vertikalzentren. */
.combat-fighter {
  display: grid;
  align-items: center;
  width: 100%;
  padding: 0 22px;
  column-gap: 12px;
}
.combat-fighter.winner {
  grid-template-columns: minmax(0, 1fr) 53px;
  justify-items: end;
  text-align: right;
}
.combat-fighter.loser {
  grid-template-columns: 53px minmax(0, 1fr);
  justify-items: start;
  text-align: left;
}
.combat-fighter .avatar-link {
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  margin: 0;
  line-height: 0;
}
.combat-fighter .champion-avatar {
  margin: 0;
}
.combat-fighter-copy {
  align-self: center;
}

/* Globale und persönliche Profil-/Errungenschaftskarten: weniger verschenkter
   Platz oben und unten, dabei gleichmäßige Innenabstände. */
.profile-stat-card {
  min-height: 122px;
  padding: 12px 15px;
}
.profile-stat-meta.profile-stat-meta-top {
  margin: 0 0 7px;
  min-height: 15px;
}
.profile-stat-card h3 {
  margin: 0 0 8px;
}
.profile-stat-value-row {
  margin: 0;
}
.profile-stat-card .profile-stat-key {
  padding-top: 7px;
}

@media (max-width: 720px) {
  .profile-stat-card {
    min-height: 118px;
    padding: 11px 13px;
  }
  .profile-stat-meta.profile-stat-meta-top {
    margin-bottom: 6px;
  }
  .profile-stat-card h3 {
    margin-bottom: 7px;
  }
}


/* =====================================================================
   WANAStatsWeb 1.9.27 – Kampflog-Feinschliff, kompaktere Statistikblöcke,
   kleinere Trophäenkarten und größere Profil-Metadaten
   ===================================================================== */

/* Letzte Kämpfe: Namen kleiner, damit sie nicht abgeschnitten werden. Der
   rechte Kopf wird minimal abgesenkt, damit beide Köpfe visuell exakt gleich
   hoch sitzen. */
.combat-fight-row {
  align-items: center;
}
.combat-fighter {
  align-self: center;
  padding: 0 18px;
  column-gap: 10px;
}
.combat-fighter-copy {
  max-width: 190px;
  gap: 4px;
}
.combat-fighter .player-link:not(.avatar-link) {
  font-size: 12.6px;
  line-height: 1.08;
}
.combat-fighter.loser .avatar-link {
  transform: translateY(2px);
}

/* Globale und persönliche Statistikblöcke noch etwas kompakter, mit weiterhin
   gleichmäßigen Abständen oben und unten. */
.profile-stat-card {
  min-height: 114px;
  padding: 11px 15px;
}
.profile-stat-meta.profile-stat-meta-top {
  margin: 0 0 6px;
  min-height: 14px;
}
.profile-stat-card h3 {
  margin: 0 0 7px;
}
.profile-stat-value-row {
  gap: 9px;
}
.profile-stat-card .profile-stat-key {
  padding-top: 6px;
}

/* Boss-Trophäen: Bildkasten kleiner, Gesamthöhe kompakter. Die Bossquelle und
   Dropchance sitzen unten auf Höhe der Erfassungszeile. */
.trophy-card {
  grid-template-columns: 70px minmax(0, 1fr);
  padding: 10px 11px;
  gap: 6px 10px;
}
.trophy-card > .item-visual {
  align-self: start;
}
.trophy-card .item-visual.large {
  width: 64px;
  height: 64px;
}
.trophy-card > .trophy-boss-sources {
  width: 70px;
  gap: 4px;
  align-self: end;
}
.trophy-card > .trophy-boss-sources small {
  font-size: 6.5px;
}
.trophy-card > .trophy-boss-sources a {
  padding: 4px 5px;
  font-size: 6.6px;
  line-height: 1.18;
}
.trophy-card .elite-loot-title h3 {
  font-size: 12.5px;
}
.trophy-card .elite-loot-lore,
.trophy-card .elite-loot-material {
  font-size: 7.7px;
}
.trophy-card .elite-loot-properties span {
  padding: 3px 6px;
}
.trophy-meta {
  gap: 5px 10px;
}

/* Profilkopf-Metaboxen: Texte deutlich größer, damit der verfügbare Platz auch
   sichtbar genutzt wird. */
.profile-meta-grid > div {
  padding: 14px 15px;
  gap: 7px;
}
.profile-meta-grid span {
  font-size: 8.8px;
}
.profile-meta-grid b {
  font-size: 13.2px;
  line-height: 1.15;
}

@media (max-width: 720px) {
  .combat-fighter .player-link:not(.avatar-link) {
    font-size: 11.5px;
  }
  .profile-stat-card {
    min-height: 110px;
    padding: 10px 13px;
  }
  .trophy-card {
    padding: 10px;
  }
  .trophy-card .item-visual.large {
    width: 60px;
    height: 60px;
  }
  .profile-meta-grid span {
    font-size: 8.2px;
  }
  .profile-meta-grid b {
    font-size: 12.2px;
  }
}


/* =====================================================================
   WANAStatsWeb 1.9.29 – mobiles Kampflog + Hamburger-Menü
   ===================================================================== */

/* Mobilmenü: Desktop bleibt wie bisher, auf kleinen Geräten wird die breite
   Navigationsleiste durch einen Button „Menü“ mit Aufklappliste ersetzt. */
.mobile-menu-wrap {
  position: relative;
  display: none;
}
.mobile-menu-button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface-solid) 76%, transparent);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: .2s ease;
}
.mobile-menu-button:hover,
.mobile-menu-button[aria-expanded="true"] {
  border-color: var(--line-strong);
  background: var(--orange-soft);
}
.mobile-menu-button .hamburger {
  display: inline-grid;
  gap: 3px;
}
.mobile-menu-button .hamburger i {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 99px;
  background: var(--orange);
}
.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(240px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--orange) 26%, var(--line));
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface-solid) 96%, transparent);
  box-shadow: 0 24px 65px rgba(0,0,0,.46);
  backdrop-filter: blur(18px);
  z-index: 60;
}
.mobile-menu-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.mobile-menu-panel a span {
  color: var(--orange);
  font-size: 15px;
}
.mobile-menu-panel a:hover,
.mobile-menu-panel a.active {
  color: var(--text-strong);
  background: var(--orange-soft);
}

/* Mobile Kampfansicht: Sieger oben rechts, Verlierer unten links. */
@media (max-width: 620px) {
  .main-nav { display: none !important; }
  .mobile-menu-wrap { display: inline-flex; }

  .combat-fight-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px 12px;
    text-align: left;
  }
  .combat-fighter {
    width: 100%;
    padding: 8px 6px;
    column-gap: 10px;
  }
  .combat-fighter.winner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    justify-items: end;
    align-items: center;
    text-align: right;
  }
  .combat-fighter.loser {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    text-align: left;
  }
  .combat-fighter .avatar-link { order: initial; margin: 0; }
  .combat-fighter-copy { order: initial; max-width: none; }
  .combat-fighter .player-link:not(.avatar-link) {
    font-size: 11.4px;
    line-height: 1.06;
  }
  .combat-fighter-copy small {
    font-size: 7.2px;
  }
  .combat-fighter.loser .avatar-link { transform: none; }
  .combat-fight-center {
    min-height: 68px;
    border-inline: 0;
    border-block: 1px solid var(--line);
  }
}


/* =====================================================================
   WANAStatsWeb 1.9.30 – Android Render-Safe-Modus
   ===================================================================== */

/* Einige Android-/WebView-Versionen reagieren empfindlich auf mehrere
   gleichzeitig gerenderte Blur-, Backdrop- und Blend-Layer. Auf Android wird
   deshalb ausschließlich die grafische Nachbearbeitung reduziert. Abstände,
   Größen, Inhalte und das eigentliche Layout bleiben unverändert. */
html.android-render-safe .page-texture,
html.android-render-safe .ambient {
  display: none !important;
}

html.android-render-safe .topbar-wrap,
html.android-render-safe .player-suggestions,
html.android-render-safe .online-players-popover,
html.android-render-safe .profile-sticky,
html.android-render-safe .mobile-menu-panel,
html.android-render-safe .leaderboard-dialog::backdrop {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html.android-render-safe .topbar-wrap {
  background: var(--bg) !important;
}
html.android-render-safe .player-suggestions,
html.android-render-safe .online-players-popover,
html.android-render-safe .profile-sticky,
html.android-render-safe .mobile-menu-panel {
  background: var(--surface-solid) !important;
}

html.android-render-safe .hero-panel::after,
html.android-render-safe .spotlight-card::after,
html.android-render-safe .profile-hero::after,
html.android-render-safe .profile-stat-card::after,
html.android-render-safe .skin-glow {
  display: none !important;
}

html.android-render-safe .item-visual.enchanted i {
  display: none !important;
  animation: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  transform: none !important;
  will-change: auto !important;
}

html.android-render-safe .boss-visual.effect-flame::before,
html.android-render-safe .boss-visual.effect-cloud::before,
html.android-render-safe .boss-visual.effect-soul::before {
  animation: none !important;
  filter: none !important;
}


/* Versteckte Aufgaben: Die Bedingung wird absichtlich niemals im Frontend ausgeliefert. */
.profile-hidden-tasks-section { margin-top: 28px; }
.hidden-tasks-intro { margin: -8px 0 18px; color: var(--muted, #9aa7b8); }
.hidden-tasks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.hidden-task-card { padding: 18px; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; background: rgba(255,255,255,.035); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.hidden-task-card h3 { margin: 0 0 14px; font-size: 1rem; }
.hidden-task-values { display: flex; align-items: baseline; gap: 5px; margin-bottom: 10px; }
.hidden-task-values b { font-size: 1.35rem; }
.hidden-task-values span { color: var(--muted, #9aa7b8); }
.hidden-task-track { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.hidden-task-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6bc7ff, #9d78ff); }
.hidden-task-card.is-complete { border-color: rgba(98, 232, 160, .35); }
.hidden-task-card.is-complete .hidden-task-track span { background: linear-gradient(90deg, #57d696, #93f2bd); }
@media (max-width: 640px) { .hidden-tasks-grid { grid-template-columns: 1fr; } }
