:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1e2229;
  --border: #2a2f3a;
  --text: #e6e8ee;
  --muted: #9aa3b2;
  --accent: #c8aa6e;
  --brand-purple: #781387;   /* the logo's purple; "Kill" in the wordmark uses it */
  --outline: #a23cba;        /* brand purple lifted for 1 px outlines on dark panels */
  --outline-glow: rgba(162,60,186,.22);
  --kill: #4ade80;
  --death: #f87171;
  --twitch: #9146ff;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; }

header.top {
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  margin-bottom: 24px;
}
header.top .wrap {
  display: grid; grid-template-columns: 1fr minmax(0, 560px) 1fr; align-items: center; gap: 20px; padding: 14px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); justify-self: start; }
.brand:hover { text-decoration: none; }
/* wordmark box is the same 32px as the logo; the capitals come out ~23px tall */
.brand .wordmark { height: 38px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(120,19,135,.35)); }

nav.links { display: flex; gap: 6px; justify-content: flex-end; }
nav.links a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; }
nav.links a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }

/* one box: the input and the search button share a single border; the button is the right-hand end of the field */
form.search { display: flex; gap: 0; align-items: stretch; max-width: 560px; width: 100%; justify-self: center;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; transition: border-color .15s ease, box-shadow .15s ease; }
form.search:focus-within { border-color: var(--outline); box-shadow: 0 0 0 3px var(--outline-glow); }
form.search .ac { flex: 1; min-width: 0; }
form.search input[type=text] {
  width: 100%; background: transparent; border: 0; color: var(--text);
  padding: 11px 14px; border-radius: 10px 0 0 10px; font-size: 15px; line-height: 1.2;
}
form.search input[type=text]:focus { outline: none; box-shadow: none; }
form.search button { display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border-radius: 0 9px 9px 0; font-size: 14px;
  background: var(--twitch); color: #fff; border: 0; margin: 0; }
form.search button:hover, form.search:focus-within button { filter: brightness(1.18); }
form.search button svg { width: 17px; height: 17px; }
form.search button svg { flex-shrink: 0; }
form.search select, form select, form input[type=text], form input[type=number] {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  padding: 10px 12px; border-radius: 8px; font-size: 15px;
}
button, .btn {
  background: var(--accent); color: #1a1405; border: 0; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; cursor: pointer; font-size: 14px; display: inline-block;
}
button:hover, .btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.btn.danger { background: #3a1f1f; color: #fca5a5; border: 1px solid #5b2b2b; }
.btn.twitch { background: var(--twitch); color: #fff; }
.btn.small { padding: 6px 10px; font-size: 13px; }

.hero { padding: 32px 0 16px; }
.hero h1 { margin: 0 0 8px; font-size: 32px; }
.hero p { color: var(--muted); margin: 0 0 20px; max-width: 700px; }

.panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 20px;
}
.panel h2 { margin: 0 0 12px; font-size: 18px; }
.notice { border-left: 4px solid var(--outline); }
.notice.error { border-left-color: var(--death); }
.notice code { background: var(--panel-2); padding: 2px 6px; border-radius: 4px; }

.stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 14px; min-width: 110px; }
.stat .n { font-size: 20px; font-weight: 700; line-height: 1.2; }
.stat .l { color: var(--muted); font-size: 12px; }

.streamer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.streamer-card {
  display: flex; gap: 12px; align-items: center; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px; color: var(--text);
}
.streamer-card:hover { border-color: var(--outline); text-decoration: none; }
.avatar { width: 20px; height: 20px; border-radius: 50%; background: #333; object-fit: cover; flex-shrink: 0; }
/* streamer cards: the picture matches the height of the three text lines beside it */
.streamer-card img, .streamer-card .avatar {
  width: 48px; height: 48px; border-radius: 50%; background: #333; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.streamer-card:hover img { border-color: var(--outline); }
.streamer-card > div { min-width: 0; }
.streamer-card .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.streamer-card .sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

table.kills { width: 100%; border-collapse: collapse; }
table.kills th { text-align: left; color: var(--muted); font-weight: 500; font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
table.kills td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.kills tr:last-child td { border-bottom: 0; }
table.kills tbody tr { transition: background-color .12s ease; }
table.kills tbody tr:hover td { background: var(--panel-2); }
table.kills tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--outline); }
.who { display: flex; align-items: center; gap: 10px; }
.who img { width: 20px; height: 20px; border-radius: 50%; }
.verb { font-weight: 600; }
.verb.kill { color: var(--kill); }
.verb.death { color: var(--death); }
.champ { color: var(--muted); font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tag { display: inline-block; background: var(--panel-2); border: 1px solid var(--border); border-radius: 5px; padding: 0 5px; font-size: 10.5px; line-height: 16px; color: var(--muted); letter-spacing: .2px; white-space: nowrap; }
table.kills .tag { font-size: 10px; line-height: 15px; padding: 0 4px; }
.matchid { font-size: 10px; letter-spacing: .2px; margin-top: 3px; opacity: .8; }
.result-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.result-head h1 { margin: 0; }
.empty { color: var(--muted); padding: 20px 0; text-align: center; }

table.admin { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin th, table.admin td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.admin form { display: inline; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; align-items: end; }
.form-grid label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.form-grid input, .form-grid select { width: 100%; }
pre.log { background: #0b0d11; border: 1px solid var(--border); border-radius: 8px; padding: 12px; overflow: auto; font-size: 13px; max-height: 420px; }
.err { color: var(--death); }
.ok { color: var(--kill); }

footer { color: var(--muted); font-size: 13px; margin-top: 40px; border-top: 1px solid var(--border); padding-top: 16px; }



/* ---- dashboard ---- */
.dash { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.dash.single { grid-template-columns: 1fr; }
.dash .side { position: sticky; top: 16px; }
.dash .side .panel { padding: 14px; }
.dash .side label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 4px; text-transform: uppercase; letter-spacing: .4px; }
.dash .side label:first-child { margin-top: 0; }
.dash .side select, .dash .side input[type=text] { width: 100%; }
.slist { list-style: none; margin: 10px 0 0; padding: 0; max-height: 60vh; overflow: auto; }
.slist li a {
  display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; color: var(--text); border: 1px solid transparent;
}
.slist li a:hover { background: var(--panel-2); text-decoration: none; }
.slist li a.active { background: var(--panel-2); border-color: var(--outline); }
.slist img, .slist .avatar { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: #333; flex-shrink: 0; }
.slist .name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.slist .sub { color: var(--muted); font-size: 12px; }
.slist li.hidden { display: none; }
.dash-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.dash-head img.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.dash-head h1 { margin: 0; font-size: 26px; }
.dash-head .meta { color: var(--muted); font-size: 13px; width: 100%; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 13px; background: var(--panel-2); }
.filters a.active { color: var(--text); border-color: var(--outline); }
.filters a:hover { text-decoration: none; color: var(--text); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; }
.badge.kill { background: rgba(74,222,128,.12); color: var(--kill); border: 1px solid rgba(74,222,128,.35); }
.badge.death { background: rgba(248,113,113,.12); color: var(--death); border: 1px solid rgba(248,113,113,.35); }
.engage { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.engage .p { display: inline-flex; flex-direction: column; line-height: 1.25; }
.engage .p .n { font-weight: 600; }
.engage .p .c { color: var(--muted); font-size: 12px; }
.engage .arrow { color: var(--muted); font-size: 18px; }
.detail { color: var(--muted); font-size: 12px; margin-top: 4px; }
.detail b { color: var(--text); font-weight: 600; }
.win { color: var(--kill); } .loss { color: var(--death); }
.vodcell { white-space: nowrap; text-align: center; }
.vodcell .t { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .dash .side { position: static; }
  .slist { max-height: none; }
}

/* ---- Riot ID type-ahead ---- */
.ac { position: relative; }
.ac-list {
  position: absolute; top: calc(100% + 6px); left: -1px; min-width: 100%; width: max-content; max-width: 440px; z-index: 50;
  margin: 0; padding: 4px; list-style: none; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.ac-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.ac-list li:hover, .ac-list li.sel { background: var(--panel); }
.ac-list .id { font-weight: 600; font-size: 15px; }
.ac-list .region { color: var(--text); font-size: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; }
.ac-list .enc { color: var(--muted); font-size: 12px; margin-left: auto; }
.ac-list li.hint { color: var(--muted); font-size: 12px; cursor: default; white-space: normal; max-width: 320px; }
.ac-list li.hint:hover { background: transparent; }

/* ---- dashboard toolbar ---- */
.dash-bar { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; margin-bottom: 18px; }
.dash-bar label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.dash-bar input[type=text] { min-width: 260px; }
.dash-bar button, .dash-bar .btn { align-self: end; }

/* ---- play button ---- */
.play {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--twitch); color: #fff; box-shadow: 0 2px 8px rgba(145,70,255,.35); transition: transform .12s ease, filter .12s ease;
}
.play:hover { transform: scale(1.1); filter: brightness(1.1); text-decoration: none; }
.play .play-ico { width: 20px; height: 20px; fill: currentColor; margin-left: 2px; }
table.kills td:last-child { text-align: center; }

/* ================================================================ responsive ================= */
html { -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 170px)); }
.stat { min-width: 0; }
table.admin { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll { overflow-x: auto; }

@media (max-width: 900px) {
  header.top .wrap { grid-template-columns: auto minmax(0, 1fr); }
  header.top form.search { max-width: none; min-width: 0; }
  .hero { padding: 20px 0 8px; }
  .hero h1 { font-size: 26px; }
  .dash-head h1 { font-size: 22px; }
  .dash-bar label { flex: 1 1 160px; }
  .dash-bar input[type=text] { min-width: 0; width: 100%; }
  .dash-bar button, .dash-bar .btn { flex: 1 1 auto; text-align: center; }
  .filters .muted { display: none; }
}

@media (max-width: 700px) {
  body { font-size: 15px; }
  .wrap { padding: 0 12px 40px; }
  header.top .wrap { padding: 10px 12px; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; }
  header.top .brand .wordmark { height: 24px; }
  nav.links a { padding: 8px 10px; }
  form.search input[type=text] { font-size: 16px; padding: 10px 12px; }
  form.search button span { display: none; }
  form.search button { padding: 0 13px; }
  .ac-list { width: 100%; max-width: none; }
  .ac-list li { white-space: normal; }
  .panel { padding: 14px; }
  .stat .n { font-size: 18px; }

  /* kill tables become cards */
  table.kills, table.kills tbody { display: block; width: 100%; }
  table.kills thead { display: none; }
  table.kills tbody tr {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "when watch" "engage watch" "game watch";
    gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border);
  }
  table.kills tbody tr:last-child { border-bottom: 0; }
  table.kills tbody td { display: block; padding: 0; border: 0; background: none !important; box-shadow: none !important; }
  table.kills td.c-when { grid-area: when; display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
  table.kills td.c-when .muted::before { content: "\00b7"; margin-right: 6px; }
  table.kills td.c-result { display: none; }
  table.kills td.c-engage { grid-area: engage; }
  table.kills td.c-game { grid-area: game; display: flex; gap: 8px; align-items: center; font-size: 12px; }
  table.kills td.c-game .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  table.kills td.c-watch { grid-area: watch; align-self: center; }
  table.kills tbody tr:hover { background: var(--panel-2); margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
  .engage { gap: 8px; }
  .engage .arrow { font-size: 16px; }
  .detail { font-size: 12px; }
  .play { width: 48px; height: 48px; }
  .play .play-ico { width: 24px; height: 24px; }

  /* dashboard: put the kill/death badge inline since the column is hidden */
  table.kills td.c-engage .engage::before { content: ""; }
  .filters a { padding: 8px 14px; }
  .dash-head { gap: 10px; }
  .dash-head .tag { font-size: 11px; }
}
.badge.mini { display: none; }
@media (max-width: 700px) { .badge.mini { display: inline-block; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- per-streamer record ---- */
table.record .who { color: var(--text); }
table.record .who .name { font-weight: 600; }
table.record .verb { font-size: 16px; }
.kd { font-weight: 700; font-size: 16px; }
.kd.up { color: var(--kill); } .kd.down { color: var(--death); }
@media (max-width: 700px) {
  table.record tbody tr { grid-template-columns: 1fr auto auto auto; grid-template-areas: "who k d kd" "games games games last"; gap: 4px 14px; }
  table.record td.c-engage { grid-area: who; }
  table.record td.c-when:nth-child(2) { grid-area: k; }
  table.record td.c-when:nth-child(3) { grid-area: d; }
  table.record td.c-game:nth-child(4) { grid-area: kd; }
  table.record td.c-game:nth-child(5) { grid-area: games; font-size: 12px; color: var(--muted); }
  table.record td.c-game:nth-child(5)::after { content: " games together"; }
  table.record td.c-watch { grid-area: last; justify-self: end; color: var(--muted); font-size: 12px; }
  table.record td.c-when::before { content: none; }
}

/* ---- in-page player modal ---- */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 10px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,6,10,.82); backdrop-filter: blur(3px); }
.modal-card {
  /* fills ~80% of the viewport height (player + ~104px header/footer) without exceeding 85% of its width */
  position: relative; width: min(85vw, calc((80vh - 104px) * 16 / 9)); background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; display: flex; flex-direction: column; max-height: 100%;
}
.modal-head { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--border); }
.modal-titles { flex: 1; min-width: 0; }
.modal-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-close { background: transparent; color: var(--muted); font-size: 26px; line-height: 1; padding: 2px 8px; border-radius: 8px; }
.modal-close:hover { color: var(--text); background: var(--panel-2); filter: none; }
.modal-player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.modal-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; }
.modal-foot button[disabled] { opacity: .35; cursor: default; }
table.kills tbody tr.playing td { background: rgba(145,70,255,.10); }
table.kills tbody tr.playing td:first-child { box-shadow: inset 3px 0 0 var(--twitch); }
@media (max-width: 700px) {
  .modal { padding: 0; align-items: stretch; }
  .modal-card { width: 100%; border-radius: 0; border: 0; max-height: none; height: 100%; height: 100dvh; }
  .modal-player { flex: 1; aspect-ratio: auto; min-height: 56vw; }
  .modal-player iframe { height: 100%; }
  .modal-head .btn { display: none; }
}

/* ---- game pills ---- */
.tag.game { font-weight: 700; letter-spacing: .04em; }
.tag.game.lol { color: #cf8ae0; border-color: rgba(162,60,186,.6); background: rgba(162,60,186,.12); }
.tag.game.val { color: #ff4655; border-color: rgba(255,70,85,.45); background: rgba(255,70,85,.10); }
.tag.game.dota2 { color: #e8705a; border-color: rgba(232,112,90,.45); background: rgba(232,112,90,.10); }
.idtag { font-size: .8em; letter-spacing: .3px; margin-left: 2px; }
.streamer-card .sub .tag.game { font-size: 9.5px; padding: 1px 6px; vertical-align: 1px; }

/* ---- home screen ---- */
/* home: sizes scale smoothly with the screen (clamp) from desktop down to ~280px phones */
.home { min-height: calc(100vh - 150px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
        padding: clamp(18px, 5vw, 32px) 0 clamp(24px, 6vw, 48px); }
.home .wordmark { height: clamp(46px, 15vw, 76px); width: auto; max-width: 100%; display: block; filter: drop-shadow(0 6px 18px rgba(120,19,135,.45)); }
.home h1 { margin: clamp(16px, 5vw, 26px) 0 8px; font-size: clamp(19px, 5.4vw, 28px); line-height: 1.25; text-wrap: balance; }
.home p { color: var(--muted); margin: 0; max-width: 560px; font-size: clamp(13.5px, 3.8vw, 15px); text-wrap: balance; }
.home form.search.big { max-width: 680px; width: 100%; margin: clamp(18px, 5vw, 26px) auto 0; justify-self: center; border-radius: 12px; }
/* 16px minimum: iPhones zoom into inputs with smaller text */
.home form.search.big input[type=text] { padding: clamp(12px, 3.4vw, 15px) clamp(12px, 3.6vw, 18px); font-size: clamp(16px, 4.4vw, 18px); border-radius: 12px 0 0 12px; }
.home form.search.big input[type=text]::placeholder { text-overflow: ellipsis; }
.home form.search.big button { padding: 0 clamp(14px, 4vw, 22px); font-size: 16px; border-radius: 0 11px 11px 0; }
.home form.search.big button svg { width: 20px; height: 20px; }
.home .ac-list { text-align: left; max-width: calc(100vw - 24px); }
.home .statline { color: var(--muted); font-size: clamp(12px, 3.4vw, 14px); margin-top: clamp(16px, 4.5vw, 22px); text-wrap: balance; }
.home .statline span { white-space: nowrap; }   /* lines break between the figures, never inside one */
@media (max-width: 700px) {
  .home { min-height: calc(100vh - 180px); }
  .home form.search.big button span { display: none; }
}
@media (max-width: 340px) {
  .home form.search.big input[type=text] { padding-left: 10px; padding-right: 8px; }
  .home form.search.big button { padding: 0 12px; }
}

/* ---- home: slow purple glow behind everything ---- */
.home-glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.home-glow span { position: absolute; border-radius: 50%; will-change: transform; }
.home-glow .g1 { width: 70vmax; height: 70vmax; top: -30vmax; left: -20vmax; opacity: .32;
  background: radial-gradient(circle, rgba(145,70,255,.38) 0%, rgba(145,70,255,.12) 35%, rgba(145,70,255,0) 70%);
  animation: glowDriftA 22s ease-in-out infinite alternate; }
.home-glow .g2 { width: 60vmax; height: 60vmax; bottom: -30vmax; right: -15vmax; opacity: .26;
  background: radial-gradient(circle, rgba(110,40,220,.36) 0%, rgba(110,40,220,.10) 40%, rgba(110,40,220,0) 70%);
  animation: glowDriftB 28s ease-in-out infinite alternate; }
.home-glow .g3 { width: 44vmax; height: 44vmax; top: 0; left: 0; opacity: .18;
  background: radial-gradient(circle, rgba(170,110,255,.30) 0%, rgba(170,110,255,0) 65%); }
@keyframes glowDriftA { from { transform: translate(0, 0) scale(1); } to { transform: translate(10vw, 12vh) scale(1.12); } }
@keyframes glowDriftB { from { transform: translate(0, 0) scale(1.05); } to { transform: translate(-9vw, -10vh) scale(0.95); } }
@media (prefers-reduced-motion: reduce) { .home-glow span { animation: none; } }

/* ---- inner pages: a quiet purple glow across the top, behind everything ---- */
body { position: relative; }
.page-glow { position: absolute; top: 0; left: 0; right: 0; height: 70vh; z-index: -1; pointer-events: none; overflow: hidden; }
.page-glow::before {
  content: ""; position: absolute; left: 50%; top: calc(-55vmax - 100px); width: 130vmax; height: 90vmax; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(145,70,255,.16) 0%, rgba(145,70,255,.06) 38%, rgba(145,70,255,0) 70%);
  animation: pageGlowBreathe 16s ease-in-out infinite alternate;
}
@keyframes pageGlowBreathe { from { opacity: .75; transform: translateX(-50%) scale(1); } to { opacity: 1; transform: translateX(-52%) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .page-glow::before { animation: none; } }

/* ---- pagination ---- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 16px; }
.pager a, .pager span { min-width: 36px; padding: 7px 11px; border-radius: 8px; text-align: center; font-size: 13px; line-height: 1; }
.pager a { color: var(--text); background: var(--panel-2); border: 1px solid var(--border); }
.pager a:hover { border-color: var(--outline); text-decoration: none; }
.pager .cur { background: var(--brand-purple); color: #fff; font-weight: 600; }
.pager .dis { color: var(--muted); opacity: .5; }
.pager .gap { color: var(--muted); min-width: 0; padding: 7px 2px; }

/* player search by bare name: list of players sharing it */
.namepick h1 { margin: 0 0 6px; font-size: 24px; }
.namepick ul { list-style: none; margin: 14px 0 0; padding: 0; }
.namepick li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 0; border-top: 1px solid var(--line, rgba(255,255,255,.08)); }
.namepick li a { font-weight: 600; }
