:root {
  color-scheme: light;
  --ink: #111932;
  --muted: #5a657d;
  --blue: #3e58d3;
  --line: #e4e8f1;
  --page: #f4f6fa;
  --card: #fff;
  font-family: Inter, "Segoe UI", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #8091ff; outline-offset: 3px; }
.shell { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); background: var(--card); }
.topbar-inner { display: flex; gap: 36px; height: 68px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 19px; font-weight: 750; letter-spacing: -.7px; }
.brand-light { font-weight: 520; }
.brand-icon { width: 35px; height: 35px; border-radius: 10px; background: #222d73; display: flex; align-items: end; justify-content: center; gap: 3px; padding-bottom: 8px; }
.brand-icon i { width: 4px; height: 10px; background: #aab9ff; border-radius: 2px; transform: skew(-10deg); }
.brand-icon i:nth-child(2) { height: 15px; background: #d2dcff; }
.brand-icon i:nth-child(3) { height: 19px; background: white; }
nav { display: flex; gap: 26px; color: var(--muted); font-size: 13px; font-weight: 650; }
nav a:hover { color: var(--blue); }
.status { display: flex; align-items: center; margin-left: auto; gap: 8px; color: #525c72; border: 1px solid var(--line); border-radius: 30px; padding: 6px 11px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #9ca7be; }
.status.running { color: #14745a; background: #f0fbf7; border-color: #d3eee2; }
.status.running .dot { background: #24a37a; box-shadow: 0 0 0 3px #24a37a1a; }
.status.attention { color: #8e520e; background: #fff7e9; border-color: #f8e6c6; }
.status.attention .dot { background: #d79c51; }
main { padding-top: 26px; }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 36px; min-height: 212px; padding: 34px 42px; overflow: hidden; background: linear-gradient(112deg, #121d43 12%, #202765 75%, #292d6d); color: white; border-radius: 22px; }
.hero-map { position: absolute; z-index: -1; inset: 0 4% 0 auto; width: min(55%, 612px); background: url('./rift.png') center 45% / cover no-repeat; transform: rotate(-11deg) scale(1.3); opacity: .28; filter: saturate(.55) hue-rotate(23deg); mask-image: radial-gradient(ellipse at center, black, transparent 67%); }
.hero-label { display: flex; gap: 9px; align-items: center; color: #b9c7ff; font-size: 11px; font-weight: 750; letter-spacing: 1.7px; margin: 0; }
.hero-label span { width: 4px; height: 4px; border-radius: 50%; background: #8ba0ff; }
h1 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -.065em; margin: 9px 0 7px; line-height: 1.25; }
.hero-scope { margin: 0; color: #c5cdea; font-size: 14px; }
.hero-count { flex: none; min-width: 215px; padding: 16px 19px 19px; border: 1px solid #9ba9e447; border-radius: 15px; background: #172147ba; backdrop-filter: blur(6px); }
.hero-count p { margin: 0; color: #c3cffb; font-size: 12px; font-weight: 650; }
.hero-count strong { font-size: 34px; font-variant-numeric: tabular-nums; letter-spacing: -.07em; }
.hero-count span { color: #b3c0f0; font-size: 13px; }
.track { height: 6px; overflow: hidden; border-radius: 10px; background: #edf0f8; }
.track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width .25s; }
.track i.nonzero { min-width: 3px; }
.hero-track { background: #ffffff24; margin-top: 5px; }
.hero-track i { background: #9baeff; }
.filterbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 21px 0 16px; }
.filterbar p, .note { color: var(--muted); font-size: 12px; margin: 0; }
.segmented { display: flex; align-items: center; gap: 3px; padding: 4px; background: #eaedf5; border-radius: 11px; }
.segmented button { color: #48536d; border: 0; border-radius: 8px; padding: 7px 13px; cursor: pointer; background: none; font-size: 13px; font-weight: 650; white-space: nowrap; }
.segmented button[aria-pressed="true"] { color: #273ba1; background: white; box-shadow: 0 1px 3px #20284e17; }
.grid { display: grid; grid-template-columns: minmax(0, 1.64fr) minmax(300px, 1fr); align-items: stretch; gap: 18px; }
.panel { min-width: 0; border: 1px solid var(--line); background: var(--card); border-radius: 17px; padding: 22px 24px; }
.viewer-page { display: grid; min-height: 100svh; place-items: center; padding: 20px; }
.viewer-card { width: min(100%, 420px); padding: 28px; }
.viewer-card h1 { font-size: 30px; margin: 0 0 12px; }
.viewer-card p { color: var(--muted); margin: 0 0 16px; }
.viewer-card form { display: grid; gap: 10px; margin-top: 20px; }
.viewer-card label { font-size: 14px; font-weight: 650; }
.viewer-card input, .viewer-card button { min-height: 46px; border-radius: 9px; font: inherit; }
.viewer-card input { min-width: 0; padding: 8px 12px; border: 1px solid var(--line); }
.viewer-card button { background: var(--blue); color: white; border: 0; cursor: pointer; font-weight: 650; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 13px; }
.panel-title h2 { font-size: 20px; letter-spacing: -.055em; margin: 0 0 4px; }
.panel-title p { color: var(--muted); font-size: 13px; margin: 0; }
.control select { padding: 8px 26px 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #334267; font-size: 13px; font-weight: 650; cursor: pointer; }
.leader-bars { display: grid; gap: 14px; margin: 27px 0 20px; }
.leader { display: grid; grid-template-columns: 74px minmax(0, 1fr) 48px; align-items: center; gap: 10px; }
.leader strong { font-size: 13px; font-weight: 650; }
.leader .track { height: 12px; background: #eef1fa; }
.leader .track i { background: #8392e7; }
.leader.is-first .track i { background: linear-gradient(90deg, #425edb, #6177e5); }
.leader.is-first strong, .leader.is-first .value { color: #263db1; }
.value { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 680; }
.note { border-top: 1px solid var(--line); padding-top: 12px; }
.tier-progress { display: grid; gap: 11px; margin: 17px 0 13px; }
.tier-progress .tier { display: grid; gap: 5px; }
.tier-title { display: flex; justify-content: space-between; align-items: center; color: #414c68; font-size: 12px; }
.tier-title strong { color: var(--ink); font-size: 13px; }
.tier-name { display: flex; align-items: center; gap: 7px; }
.tier-name::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); border-radius: 2px; background: var(--tier); }
.tier .track { height: 4px; }
.tier .track i { background: var(--tier); }
.BRONZE { --tier: #a76a56; }
.SILVER { --tier: #8391a7; }
.GOLD { --tier: #b8923b; }
.PLATINUM { --tier: #289080; }
.collection-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.collection-footer[hidden] { display: none; }
.collection-footer h3 { font-size: 12px; margin: 0; font-weight: 650; }
.recent { display: flex; flex-wrap: wrap; gap: 5px; }
.recent a { padding: 2px 5px; font-size: 11px; color: #4054a9; border-radius: 5px; background: #f1f4ff; font-variant-numeric: tabular-nums; }
.recent a:hover { text-decoration: underline; }
.champion-panel { margin-top: 18px; }
.selects { display: flex; gap: 8px; }
table { width: 100%; border-collapse: collapse; margin-top: 18px; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 12px; text-align: right; border-bottom: 1px solid #edf0f6; }
th:first-child, td:first-child { text-align: left; }
thead th { background: #f2f4f9; color: #53607b; font-size: 12px; font-weight: 650; }
thead th:first-child { border-radius: 7px 0 0 7px; }
thead th:last-child { border-radius: 0 7px 7px 0; }
td { font-size: 13px; }
tbody tr:last-child td { border: 0; }
.champion-name { display: flex; gap: 9px; align-items: center; font-weight: 650; }
.champion-name img { border-radius: 6px; border: 1px solid #e0e4ef; width: 28px; height: 28px; object-fit: cover; }
.win { font-weight: 750; color: #3249b7; }
.empty { padding: 18px 12px; color: var(--muted); }
footer { margin: 19px 0 24px; color: var(--muted); font-size: 11px; }
footer p { margin: 3px 0; }
.error { border: 1px solid #f2d6c2; border-radius: 10px; background: #fff5ec; padding: 8px 12px; color: #903f16; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 800px) {
  .shell { width: calc(100% - 34px); }
  .grid { grid-template-columns: 1fr; gap: 13px; }
  .hero { padding: 25px 27px; }
  .topbar-inner { gap: 20px; }
  nav { gap: 13px; }
}
@media (max-width: 550px) {
  .shell { width: calc(100% - 24px); }
  .topbar-inner { height: 56px; }
  nav { display: none; }
  main { padding-top: 13px; }
  .hero { padding: 19px; border-radius: 16px; flex-direction: column; align-items: stretch; gap: 17px; }
  .hero-map { inset: 0 0 0 auto; width: 55%; }
  .hero-count { padding: 9px 12px 13px; }
  .hero-count strong { font-size: 28px; }
  .filterbar { flex-wrap: wrap; padding: 14px 0 11px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding-inline: 3px; }
  .panel { padding: 16px 14px; }
  .panel-title h2 { font-size: 17px; }
  .leader { grid-template-columns: 54px minmax(0, 1fr) 43px; }
  .champion-title { flex-wrap: wrap; }
  th, td { padding: 7px; }
}
@media (prefers-reduced-motion: reduce) { .track i { transition: none; } }
