:root {
  color-scheme: dark;
  --void: #050505;
  --night: #0c0c0c;
  --raised: #141414;
  --pop: linear-gradient(var(--raised), var(--raised)), #121212;
  --well: #0f0f0f;
  --edge: #2b2b2b;
  --edge-soft: #1f1f1f;
  --text: #d9d9d9;
  --bright: #f4f4f4;
  --muted: #9b9b9b;
  --faint: #6b6b6b;
  --win: #9fd45a;
  --loss: #e95b5b;
  --rank: #f97316;
  --frame: 0 0 0 1px #000, inset 0 0 0 1px var(--edge);
  --inset: 16px;
  --radius: 4px;
  --control: 36px;
  --body: "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --display: "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --checker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath fill='%230a0a0a' d='M0 0h2v2H0zM2 2h2v2H2z'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
body.site-themed {
  --void: var(--pf-bg); --night: var(--pf-bg); --raised: var(--pf-card); --well: var(--pf-card);
  --pop: linear-gradient(var(--pf-card), var(--pf-card));
  --bright: var(--pf-fg); --text: var(--pf-text); --muted: var(--pf-muted); --faint: var(--pf-muted);
  --edge: var(--pf-edge); --edge-soft: var(--pf-edge); --frame: 0 0 0 1px var(--pf-edge);
  --rank: var(--pf-accent); --body: var(--pf-font); --display: var(--pf-font); --radius: var(--pf-radius);
  background: var(--pf-pattern), var(--pf-bg);
  background-size: var(--pf-pattern-size), auto;
  background-attachment: fixed;
  color: var(--pf-text);
  font-family: var(--pf-font);
}
body.site-themed.has-page-image { background: linear-gradient(color-mix(in srgb, var(--pf-bg) 72%, transparent), color-mix(in srgb, var(--pf-bg) 88%, transparent)), var(--pf-page-image) center / cover fixed, var(--pf-bg); }
body.site-themed :is(.tool, .feed-item, .feed-card) { background: var(--pf-card); border: var(--pf-border); border-radius: var(--pf-radius); box-shadow: var(--pf-shadow); backdrop-filter: blur(var(--pf-blur)); }
body.site-themed :is(.tool, .feed-card):hover { background: var(--pf-row-hover); }
body.site-themed .mp-canvas { background-color: var(--pf-bg); background-image: radial-gradient(circle, var(--pf-edge) 1px, transparent 1.2px); }
html, body { margin: 0; }
body {
  background: var(--void) var(--checker);
  color: var(--text);
  font: 15px/1.5 var(--body);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > :is(header, main, footer) { width: 100%; }
a { color: inherit; }
img { display: block; }
b { font-weight: 700; }
:focus-visible { outline: 1px solid var(--rank); outline-offset: 2px; }
[hidden] { display: none !important; }
::selection { background: var(--rank); color: #000; }
.win { color: var(--win); }
.loss { color: var(--loss); }

.topbar { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; max-width: 1360px; margin: 0 auto 8px; padding: 12px 20px; }
.topbar::before { content: ""; position: absolute; inset: 0 50%; z-index: -1; width: 100vw; transform: translateX(-50%); background: color-mix(in srgb, var(--night) 82%, transparent); box-shadow: 0 1px 0 #000, 0 2px 0 var(--edge-soft); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-nav { justify-self: start; display: flex; align-items: center; gap: 22px; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > * { display: inline-flex; align-items: center; height: 32px; padding: 0 11px; border-radius: var(--radius); font: 600 13px var(--body); color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .15s ease, background .15s ease; }
.nav-links a:hover { color: var(--bright); background: color-mix(in srgb, var(--bright) 5%, transparent); }
.nav-links a[aria-current="page"] { color: var(--bright); background: var(--well); box-shadow: var(--frame); }
.nav-soon { color: var(--faint); opacity: .55; cursor: default; }
.brand { font: 700 16px var(--display); letter-spacing: .02em; text-decoration: none; color: var(--bright); }
.brand span { color: var(--rank); }
.game-pill { justify-self: end; font: 700 12px var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.on-landing .search-top, .on-landing .game-pill { visibility: hidden; }
.search-top { position: relative; justify-self: center; max-width: 560px; transition: max-width .25s ease; }
.search-top:focus-within { max-width: 680px; }
.search-top { height: var(--control); }
.search-top input { padding: 0 14px; font-size: 14px; }
.search-top > .search-go { width: 40px; }
.recent-drop { position: absolute; top: calc(100% + 4px); left: -1px; right: -1px; z-index: 20; display: flex; flex-direction: column; padding: 4px 0; background: var(--pop); box-shadow: 0 0 0 1px #000, inset 0 0 0 1px var(--edge), 0 12px 28px rgba(0,0,0,.6); }
.recent-drop-head { padding: 6px 12px 4px; font: 600 11px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.recent-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--text); text-decoration: none; }
.recent-item img, .recent-item span { width: 20px; height: 20px; flex: none; }
.recent-item b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-item:hover, .recent-item.active { background: #1c1c1c; color: var(--bright); }

.search { display: flex; width: 100%; overflow: hidden; border-radius: var(--radius); background: var(--well); border: 1px solid var(--edge); box-shadow: 0 0 0 1px #000; }
.search:focus-within { border-color: color-mix(in srgb, var(--rank) 70%, var(--edge)); }
.search input { flex: 1; min-width: 0; padding: 12px 14px; background: none; color: var(--bright); border: 0; font: 15px var(--body); }
.search input:focus { outline: none; }
.search input::placeholder { color: var(--faint); }
.search > button, .refresh, .action, .more-matches { padding: 0 16px; border-radius: 3px; transition: color .2s ease, background .2s ease; background: linear-gradient(#232323, #191919); color: var(--text); border: 0; box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px #303030; font: 700 13px var(--body); cursor: pointer; }
.search > button { border-radius: 0; box-shadow: none; border-left: 1px solid #000; outline: 1px solid var(--edge-soft); outline-offset: -2px; }
.search > button:hover:not(:disabled), .refresh:hover:not(:disabled), .action:hover:not(:disabled), .more-matches:hover:not(:disabled) { color: var(--rank); }
.search > button:disabled { color: var(--faint); cursor: wait; }

main { max-width: 1360px; margin: 0 auto; padding: 0 20px 56px; }
.status { margin: 20px auto; max-width: 560px; text-align: center; color: var(--muted); }
.status.error { color: var(--loss); }

#profile { position: relative; margin-top: 6px; padding: 20px var(--inset) var(--inset); border-radius: 6px; background: linear-gradient(180deg, #0e0e0e, #0a0a0a); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--edge-soft), 0 30px 60px -30px rgba(0,0,0,.9); animation: settle .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes settle { from { opacity: 0; transform: translateY(8px); } }

.landing { display: flex; flex-direction: column; align-items: center; width: min(880px, 100%); margin: 0 auto; padding: 22vh 0 6vh; text-align: center; }
.search-main input { padding: 24px 22px; font-size: 19px; }
.search-main > button { padding: 0 44px; font-size: 16px; }
.games { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.game { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 3px; transition: color .2s ease; background: linear-gradient(#1c1c1c, #151515); border: 0; box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px #2a2a2a; color: var(--muted); font: 14px var(--body); cursor: pointer; }
.game:hover:not(:disabled) { color: var(--bright); }
.game[aria-checked="true"] { color: var(--rank); font-weight: 700; }
.game:disabled { cursor: not-allowed; color: var(--faint); }
.search-main { overflow: visible; }
.search-main button[type="submit"] { border-radius: 0 3px 3px 0; }
.regions { position: relative; display: flex; flex: none; border-right: 1px solid #000; box-shadow: 1px 0 0 var(--edge-soft); }
.regions[hidden] { display: none; }
.region-pick { display: flex; align-items: center; gap: 10px; min-width: 92px; padding: 0 18px 0 22px; border: 0; border-radius: 3px 0 0 3px; background: none; color: var(--bright); font: 700 15px var(--body); letter-spacing: .02em; cursor: pointer; transition: background-color .2s ease; }
.region-pick:hover, .region-pick[aria-expanded="true"] { background: #141414; }
.region-pick:focus-visible { outline: 1px solid var(--rank); outline-offset: -2px; }
.region-pick i { width: 6px; height: 6px; margin: -3px 0 0 auto; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
.region-pick[aria-expanded="true"] i { margin-top: 3px; transform: rotate(-135deg); }
.region-list { position: absolute; top: calc(100% + 6px); left: -1px; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 380px; max-width: calc(100vw - 32px); margin: 0; padding: 6px; list-style: none; background: var(--pop); box-shadow: 0 0 0 1px #000, inset 0 0 0 1px var(--edge), 0 14px 32px rgba(0,0,0,.65); border-radius: 4px; text-align: left; }
.region-list[hidden] { display: none; }
.region-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 3px; background: none; color: var(--muted); font: 13px var(--body); cursor: pointer; text-align: left; }
.region-list img { width: 20px; height: 14px; flex: none; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.region-list b { min-width: 36px; color: var(--bright); font-weight: 700; }
.region-list span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: var(--faint); }
.region-list button:hover, .region-list button:focus-visible { background: #1c1c1c; outline: none; }
.region-list button[aria-selected="true"] { background: #1c1c1c; }
.region-list button[aria-selected="true"] b { color: var(--rank); }
.wip { font-size: 10px; padding: 1px 4px; border-radius: 2px; background: #000; color: var(--faint); }
.recent { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #000; box-shadow: inset 0 1px 0 var(--edge-soft); width: 100%; }
.recent-label { font-size: 12px; text-transform: lowercase; color: var(--faint); margin-right: 4px; }
.recent-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 5px; border-radius: 3px; transition: color .2s ease; background: var(--well); box-shadow: var(--frame); font-size: 13px; color: var(--muted); text-decoration: none; }
.recent-chip:hover { color: var(--bright); }
.recent-chip img { width: 16px; height: 16px; }

.block { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.block-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; min-height: 28px; }
.block-head h3 { margin: 0; font: 700 13px/1.1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--bright); }
.block-meta { font-size: 13px; color: var(--muted); }
.block-meta b { font-weight: 700; }
.card { position: relative; padding: var(--inset); border-radius: 4px; background: linear-gradient(180deg, #161616, #121212); box-shadow: var(--frame), inset 0 1px 0 rgba(255,255,255,.03); }
.flush > .card, .matches > .card { padding: 0; overflow: hidden; }
.empty { margin: 0; color: var(--muted); }
.tag { margin-left: 4px; font-weight: 400; color: var(--muted); }

.ident { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; min-height: 116px; padding: 20px; border-radius: 4px; background: linear-gradient(180deg, #161616, #121212); box-shadow: var(--frame), inset 0 1px 0 rgba(255,255,255,.03); overflow: hidden; isolation: isolate; }
.ident::after { content: ""; position: absolute; inset: 1px 1px 1px 40%; background: var(--art, none) right center / cover no-repeat; opacity: .14; mask-image: linear-gradient(90deg, transparent, #000 75%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 75%); pointer-events: none; z-index: -1; }
.who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.avatar { width: 76px; height: 76px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--edge), 0 0 0 3px #000; flex: none; }
.who h1 { margin: 0; font: 800 30px/1.1 var(--display); color: var(--bright); overflow-wrap: anywhere; }
.who h1 .tag { font-size: 17px; }
.facts { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 6px; font-size: 14px; color: var(--muted); }
.ident-side { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.refresh-row { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.saved { font-size: 13px; color: var(--muted); }
.refresh { padding: 7px 14px; }
.refresh:disabled { color: var(--faint); cursor: wait; }
.refresh-msg { margin: 0; text-align: right; font-size: 13px; color: var(--muted); }
.refresh-msg.error { color: var(--loss); }


.tabs { display: flex; gap: 2px; margin: 14px 0 22px; padding: 3px; border-radius: 4px; background: var(--well); box-shadow: var(--frame); overflow-x: auto; scrollbar-width: none; }
.tab { flex: none; padding: 10px 20px; background: none; border: 0; border-radius: 3px; color: var(--muted); font: 600 14px var(--body); cursor: pointer; white-space: nowrap; transition: color .2s ease, background .2s ease; }
.tab:hover { color: var(--bright); }
.tab[aria-selected="true"] { color: var(--bright); background: var(--raised); box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255,255,255,.05); }

.split { display: grid; grid-template-columns: minmax(280px, 330px) minmax(0, 1fr); gap: 22px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 26px; min-width: 0; }

.rating { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 14px; }
.rating small { display: block; font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.rating-icon { width: 68px; height: 68px; }
.rating-rank { display: block; margin-top: 2px; font: 800 20px/1.2 var(--display); color: var(--rank); }
.rating-extra { margin-top: 4px; font-size: 13px; color: var(--muted); }
.rating.peak { grid-template-columns: 48px minmax(0, 1fr); margin-top: 16px; padding-top: 16px; border-top: 1px solid #000; box-shadow: inset 0 1px 0 var(--edge-soft); }
.rating.peak .rating-icon { width: 48px; height: 48px; }
.rating.peak b { display: block; font-size: 16px; color: var(--bright); }


.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile { padding: 14px 16px; border-radius: 4px; background: linear-gradient(180deg, #131313, #0f0f0f); box-shadow: var(--frame); }
.tile small, .stat small, .cell small { display: block; font: 600 12px/1.3 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile b { display: block; margin-top: 4px; font: 800 26px/1.15 var(--display); color: var(--bright); }
.pctl { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--pc, var(--muted)) 80%, var(--text)); }
.pbar { display: block; height: 3px; margin-top: 8px; overflow: hidden; border-radius: 2px; background: #232323; }
.pbar i { display: block; width: var(--p); height: 100%; border-radius: inherit; background: var(--pc); box-shadow: 0 0 8px color-mix(in srgb, var(--pc) 45%, transparent); animation: pfill .9s cubic-bezier(.2, .7, .2, 1) both; }
.tile .pbar { margin-top: 10px; }
@keyframes pfill { from { width: 0; } }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; margin-top: 20px; }
.stat { min-width: 0; }
.stat b { display: block; margin-top: 2px; font: 700 19px/1.25 var(--display); color: var(--bright); }

.agent { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 0; }
.agent + .agent { border-top: 1px solid #000; box-shadow: inset 0 1px 0 var(--edge-soft); }
.agent img { width: 42px; height: 42px; border-radius: 3px; background: var(--well); box-shadow: 0 0 0 1px #000; }
.agent small { display: block; font-size: 13px; color: var(--muted); }

.matches { container-type: inline-size; }
.more-matches { display: block; width: 100%; padding: 12px 16px; border-top: 1px solid #000; }
.more-matches:disabled { color: var(--faint); cursor: wait; }
.more-end, .more-error { margin: 0; padding: 12px var(--inset); text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid #000; }
.more-error { color: var(--loss); }
.day { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding: 11px var(--inset); background: var(--well); border-top: 1px solid #000; box-shadow: inset 0 1px 0 var(--edge-soft); }
.day-group:first-child .day { border-top: 0; box-shadow: none; }
.day-when { display: flex; align-items: center; gap: 8px; }
.day-when b { font-size: 15px; color: var(--bright); }
.day-count { padding: 0 6px; border-radius: 2px; font-size: 12px; font-weight: 700; color: var(--muted); box-shadow: var(--frame); }
.day-wl { display: flex; gap: 8px; font-size: 14px; }
.day-stats { display: flex; gap: 24px; margin-left: auto; }
.day-stats .cell b { font-size: 15px; }

.match { position: relative; isolation: isolate; display: grid; grid-template-columns: 48px minmax(150px, 1.5fr) 112px minmax(118px, auto); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: center; gap: 14px; min-height: 76px; padding: 12px var(--inset); border-top: 1px solid #000; box-shadow: inset 0 1px 0 var(--edge-soft); overflow: hidden; transition: background-color .2s ease; content-visibility: auto; contain-intrinsic-size: auto 76px; }
.match::before { content: ""; position: absolute; inset: 0 0 0 35%; background: var(--map, none) center / cover no-repeat; opacity: .1; mask-image: linear-gradient(90deg, transparent, #000 50%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); z-index: -1; pointer-events: none; }
.match.win { background: linear-gradient(90deg, color-mix(in srgb, var(--win) 8%, transparent), transparent 40%); }
.match.loss { background: linear-gradient(90deg, color-mix(in srgb, var(--loss) 8%, transparent), transparent 40%); }
.match:hover { background-color: #191919; }
.match .agent-icon { width: 48px; height: 48px; object-fit: cover; border-radius: 3px; background: var(--well); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--edge); }
.m-where { min-width: 0; }
.m-where small { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-where b { display: block; font-size: 17px; font-weight: 700; color: var(--bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mvp { display: inline-block; margin-top: 2px; font: 800 11px var(--body); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--rank); }
.m-score { display: flex; flex-direction: column; gap: 3px; }
.m-score small { font: 600 12px var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.score { font-size: 19px; font-weight: 800; line-height: 1.1; }
.match.win .score { color: var(--win); }
.match.loss .score { color: var(--loss); }
.pips { display: flex; gap: 1px; }
.pips i { width: 4px; height: 7px; background: #262626; }
.pips i.w { background: color-mix(in srgb, var(--win) 85%, transparent); }
.match.loss .pips i.w { background: #5a5a5a; }
.match.loss .pips i:not(.w) { background: color-mix(in srgb, var(--loss) 80%, transparent); }
.cell { text-align: right; min-width: 0; }
.cell b { display: block; margin-top: 2px; font-size: 16px; font-weight: 700; color: var(--bright); white-space: nowrap; }
.cell.kda { text-align: left; }
.cell.rr b { font-weight: 800; }
.cell.win b { color: var(--win); }
.cell.loss b { color: var(--loss); }
.match[data-match] { cursor: pointer; }
.match[data-match]:focus-visible { outline: 1px solid var(--rank); outline-offset: -2px; }
.match[aria-expanded="true"] { background-color: #1a1a1a; }

.table-wrap { overflow-x: auto; scrollbar-color: var(--edge) var(--well); scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px var(--inset); text-align: left; border-top: 1px solid #000; box-shadow: inset 0 1px 0 var(--edge-soft); white-space: nowrap; }
thead th { border-top: 0; box-shadow: none; }
th { font: 600 12px var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
td { font-size: 15px; transition: background-color .2s ease; }
tbody tr:hover td { background: #191919; }
td.num, th.num { text-align: right; }
td b { color: var(--bright); }
.named { display: flex; align-items: center; gap: 12px; }
.named > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.named-sub { display: block; font-size: 12px; color: var(--muted); }
.named img { width: 32px; height: 32px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px #000; }
.named img.wide { width: 74px; height: 24px; object-fit: contain; box-shadow: none; }
.named img.tier { width: 26px; height: 26px; box-shadow: none; }

.names-state { text-transform: lowercase; }
.names-body { display: flex; flex-direction: column; }
.names-note { margin: 0; color: var(--muted); }
.names-note.error { color: var(--loss); }
.names-run { align-self: stretch; margin-top: 12px; padding: 10px 16px; }
.alias { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; border-top: 1px solid #000; box-shadow: inset 0 1px 0 var(--edge-soft); }
.alias:first-child { padding-top: 0; border-top: 0; box-shadow: none; }
.alias b { font-size: 17px; color: var(--bright); overflow-wrap: anywhere; }
.alias b .tag { font-size: 14px; }
.alias-used { font-size: 14px; color: var(--text); }
.alias small { font-size: 13px; color: var(--muted); }
.alias small .tag { font-size: 13px; margin-left: 1px; }



.choice { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 18px; width: 100%; padding: 14px var(--inset); background: none; border: 0; border-top: 1px solid #000; box-shadow: inset 0 1px 0 var(--edge-soft); color: var(--text); font: 15px var(--body); text-align: left; cursor: pointer; }
.choice:first-child { border-top: 0; box-shadow: none; }
.choice { transition: background-color .2s ease; }
.choice:hover { background: #191919; }
.choice:hover b { color: var(--rank); }
.choice img, .choice > span { width: 64px; height: 64px; object-fit: cover; border-radius: 3px; background: var(--well); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--edge); }
.choice b { font-size: 18px; color: var(--bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.choice small { font-size: 14px; color: var(--muted); }

.match-detail { display: flex; flex-direction: column; gap: 14px; padding: 14px var(--inset) 18px; background: var(--well); border-top: 1px solid #000; box-shadow: inset 0 1px 0 var(--edge-soft); }
.sb-note { margin: 0; padding: 6px 0; color: var(--muted); }
.sb-note.error { color: var(--loss); }
.sb-team { overflow: hidden; border-radius: 4px; background: var(--raised); box-shadow: var(--frame); }
.sb-head { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border-bottom: 1px solid #000; }
.sb-head.win { background: linear-gradient(90deg, color-mix(in srgb, var(--win) 8%, transparent), transparent 50%); }
.sb-head.loss { background: linear-gradient(90deg, color-mix(in srgb, var(--loss) 8%, transparent), transparent 50%); }
.sb-head b { color: var(--bright); font-size: 15px; }
.sb-head span { font-size: 14px; font-weight: 700; }
.sb-head.win span { color: var(--win); }
.sb-head.loss span { color: var(--loss); }
table.sb th, table.sb td { padding: 8px 12px; font-size: 14px; }
table.sb th { font-size: 11px; }
table.sb td.win { color: var(--win); }
table.sb td.loss { color: var(--loss); }
table.sb tr.self td { background: color-mix(in srgb, var(--rank) 9%, transparent); }
.sb-player { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 190px; }
.sb-player:hover b { color: var(--rank); }
.sb-player b { display: block; color: var(--bright); font-size: 15px; }
.sb-player small { display: block; font-size: 12px; color: var(--muted); }
.sb-icon { width: 36px; height: 36px; object-fit: cover; border-radius: 3px; background: var(--well); box-shadow: 0 0 0 1px #000; flex: none; }
.sb-rank { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; color: var(--text); }
.sb-tier { width: 22px; height: 22px; }
span.sb-tier { display: none; }
.tag-mvp, .tag-svp { font-style: normal; font-size: 10px; font-weight: 800; padding: 1px 4px; border-radius: 2px; margin-left: 4px; vertical-align: 1px; }
.tag-mvp { background: var(--rank); color: #000; }
.tag-svp { background: var(--edge); color: var(--bright); }

@container (max-width: 900px) {
  .cell.wide { display: none; }
}
@container (max-width: 760px) {
  .cell.opt, table.sb .opt { display: none; }
}
@container (max-width: 640px) {
  .match { grid-template-columns: 40px minmax(0, 1fr) auto; grid-auto-columns: auto; gap: 12px; }
  .match .agent-icon { width: 40px; height: 40px; }
  .pips, .m-score small, .cell.kda small, .cell:not(.kda):not(.rr) { display: none; }
  .day-stats .cell { display: block; }
  .sb-rank { font-size: 0; }
}

@media (max-width: 1180px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .ident::after { inset: 1px; }
  .tiles, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --inset: 12px; }
  .topbar { grid-template-columns: auto 1fr; row-gap: 10px; padding: 12px 14px 8px; }
  .topbar > span:empty { display: none; }
  .topbar > :last-child { grid-column: 2; grid-row: 1; justify-self: end; }
  .site-nav { display: contents; }
  .site-nav .brand { grid-column: 1; grid-row: 1; }
  .game-pill { display: none; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; margin: 0 -6px; overflow-x: auto; scrollbar-width: none; }
  .search-top { grid-column: 1 / -1; grid-row: 3; max-width: none; }
  .on-landing .search-top { display: none; }
  main { padding: 0 12px 40px; }
  #profile { padding: 16px 10px 10px; }
  .landing { padding-top: 6vh; }
  .search-main input { padding: 18px 14px; font-size: 16px; }
  .search-main > button { padding: 0 20px; font-size: 14px; }
  .region-pick { min-width: 0; padding: 0 12px 0 14px; gap: 8px; font-size: 14px; }
  .region-list { grid-template-columns: 1fr; width: 260px; max-height: 60vh; overflow-y: auto; }
  .games { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .game { justify-content: center; }
  .who h1 { font-size: 24px; }
  .avatar { width: 60px; height: 60px; }
  .ident-side { width: 100%; }
  .refresh-row { justify-content: space-between; }
  .tab { padding: 9px 14px; }
  .tile b { font-size: 22px; }
  .day-stats { gap: 16px; }
  .choice { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 12px var(--inset); }
  .choice img, .choice > span { width: 48px; height: 48px; }
  .choice b { font-size: 15px; }
  .choice small { grid-column: 2; font-size: 12px; }
  .match-detail { padding: 10px 8px 14px; }
  table.sb th, table.sb td { padding: 6px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #profile, .pbar i { animation: none; }
  .match, .tab, td, .choice, .game, .recent-chip { transition: none; }
}
.block-meta:has(> .names-state:empty) { display: none; }
.narrow-score { display: none; }
.m-where .narrow-score b { display: inline; font-size: 13px; }
.match.win .narrow-score b { color: var(--win); }
.match.loss .narrow-score b { color: var(--loss); }
@container (max-width: 480px) {
  .m-score { display: none; }
  .narrow-score { display: inline; }
  .match .mvp { font-size: 10px; }
}

.account-slot { justify-self: end; display: flex; align-items: center; gap: 10px; }
.discord-btn { display: inline-flex; align-items: center; justify-content: center; height: var(--control); padding: 0 14px; border-radius: var(--radius); background: linear-gradient(#232323, #191919); box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px #303030; color: var(--text); font: 700 13px var(--body); text-decoration: none; white-space: nowrap; }
.discord-btn:hover { color: var(--rank); }
.discord-btn.big { height: auto; padding: 14px 28px; font-size: 15px; }
.account-chip { display: inline-flex; align-items: center; gap: 8px; height: var(--control); padding: 0 10px 0 5px; border-radius: var(--radius); background: var(--well); box-shadow: var(--frame); color: var(--text); font: 600 13px var(--body); text-decoration: none; }
.account-chip:hover, .account-chip[aria-expanded="true"] { color: var(--bright); }
.account-chip img { width: 26px; height: 26px; border-radius: max(3px, calc(var(--radius) - 5px)); object-fit: cover; }

.account-main { width: min(640px, 100%); padding-top: 6vh; }
.panel { padding: 24px; background: var(--night); box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--edge-soft), 0 0 0 3px #000, 0 18px 40px rgba(0,0,0,.6); }
#connect { text-align: center; }
.panel-title { margin: 0; font: 800 26px/1.15 var(--display); color: var(--bright); }
.panel-sub { margin: 10px auto 24px; max-width: 440px; color: var(--muted); }
.fine { margin: 16px 0 0; font-size: 12px; color: var(--faint); }
.fine a { color: var(--muted); text-underline-offset: 2px; }

.site-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; max-width: 1180px; margin: auto auto 0; padding: 28px 24px 32px; font-size: 12px; color: var(--faint); }
.site-foot nav { display: flex; gap: 14px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--bright); }
@media (max-width: 720px) { .site-foot { padding: 24px 16px 28px; } }
.form-msg { margin: 0; font-size: 13px; color: var(--muted); }
.form-msg.error { color: var(--loss); }
#connect .form-msg { margin-bottom: 16px; }
.form-msg a { color: var(--rank); }

.me-head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #000; box-shadow: 0 1px 0 var(--edge-soft); }
.me-who { flex: 1; min-width: 0; }
.me-who h1, .me-who h2 { margin: 0; font: 800 24px/1.15 var(--display); color: var(--bright); overflow-wrap: anywhere; }
.me-who small { color: var(--muted); font-size: 13px; }
.me-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font: 700 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field-label small { margin-left: 6px; font-weight: 400; letter-spacing: 0; color: var(--faint); }
.input, .field textarea { display: flex; background: var(--well); border: 1px solid var(--edge); box-shadow: 0 0 0 1px #000; }
.input:focus-within, .field textarea:focus { border-color: color-mix(in srgb, var(--rank) 70%, var(--edge)); outline: none; }
.input input { flex: 1; min-width: 0; padding: 11px 12px; background: none; border: 0; color: var(--bright); font: 15px var(--body); }
.input input:focus { outline: none; }
.input input::placeholder { color: var(--faint); }
.input-prefix { display: flex; align-items: center; padding-left: 12px; color: var(--faint); font-size: 15px; white-space: nowrap; }
.input-prefix + input { padding-left: 0; }
.field textarea { padding: 11px 12px; color: var(--bright); font: 15px/1.45 var(--body); resize: vertical; }
.me-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.action { display: inline-flex; align-items: center; padding: 9px 16px; text-decoration: none; }
.action.primary { color: var(--rank); }
.action.primary:disabled { color: var(--faint); cursor: wait; }
.me-actions .form-msg { flex-basis: 100%; }

@media (max-width: 720px) {
  .account-main { padding-top: 2vh; }
  .panel { padding: 18px 14px; }
  .me-head { flex-wrap: wrap; }
  .me-head .avatar { width: 56px; height: 56px; }
}

.riot-row { display: flex; gap: 8px; }
.riot-row .input { flex: 1; min-width: 0; }
.riot-btn { color: var(--rank); white-space: nowrap; }
.input.locked { border-color: color-mix(in srgb, var(--rank) 45%, var(--edge)); }
.input.locked input { color: var(--text); cursor: default; }
.input.locked .verified { align-self: center; margin-right: 10px; }
.verified { display: inline-block; padding: 2px 7px; background: color-mix(in srgb, var(--rank) 14%, #000); color: var(--rank); font: 700 11px var(--body); letter-spacing: .04em; text-transform: none; white-space: nowrap; vertical-align: 2px; }
.field-hint { font-size: 12px; color: var(--faint); }
@media (max-width: 480px) {
  .riot-row { flex-wrap: wrap; }
  .riot-row .action { flex: 1; justify-content: center; }
}

.workspace.wide { width: min(1240px, calc(100vw - 40px)); margin-left: 50%; transform: translateX(-50%); }
.me-tabs { margin: 0 0 16px; }
.workspace:not(.wide) .me-tabs { width: fit-content; }
.styler { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }
.styler-controls { padding: 18px; }
.styler-preview { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; padding: 18px 18px 80px; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--edge-soft), 0 0 0 3px #000; isolation: isolate; }
.styler-preview.has-page-image { background: linear-gradient(color-mix(in srgb, var(--pf-bg) 72%, transparent), color-mix(in srgb, var(--pf-bg) 88%, transparent)), var(--pf-page-image) center / cover, var(--pf-bg); }
.styler-form { display: flex; flex-direction: column; gap: 18px; }
.styler-form fieldset { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0 0 18px; border: 0; border-bottom: 1px solid #000; box-shadow: 0 1px 0 var(--edge-soft); }
.styler-form legend { padding: 0; margin-bottom: 12px; font: 800 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--bright); }
.ctl { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; color: var(--muted); }
.ctl > span:first-child { display: flex; justify-content: space-between; gap: 8px; }
.ctl output { color: var(--text); font-variant-numeric: tabular-nums; }
.ctl select { padding: 9px 10px; background: var(--well); color: var(--bright); border: 1px solid var(--edge); font: 14px var(--body); }
.ctl input[type=range] { width: 100%; accent-color: var(--rank); }
.cp { --cp-hue: red; --cp-color: #000; display: flex; flex-direction: column; gap: 8px; padding: 10px; background: var(--well); box-shadow: var(--frame); }
.cp[hidden] { display: none; }
.cp-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.cp-head > span:first-child { flex: 1; }
.cp-swatch { width: 22px; height: 22px; background: var(--cp-color); box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(255,255,255,.12); }
.cp-hex { width: 84px; padding: 5px 8px; background: var(--night); border: 1px solid var(--edge); color: var(--bright); font: 13px ui-monospace, "JetBrains Mono", monospace; text-transform: lowercase; }
.cp-hex:focus { outline: none; border-color: color-mix(in srgb, var(--rank) 70%, var(--edge)); }
.cp-area { position: relative; height: 96px; background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, var(--cp-hue)); box-shadow: 0 0 0 1px #000; cursor: crosshair; touch-action: none; }
.cp-area:focus-visible { outline: 1px solid var(--rank); outline-offset: 2px; }
.cp-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--cp-color); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #000; pointer-events: none; }
.cp-hue { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; margin: 0; background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); box-shadow: 0 0 0 1px #000; cursor: pointer; }
.cp-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 8px; height: 18px; background: var(--bright); border: 0; box-shadow: 0 0 0 1px #000, inset 0 0 0 2px var(--night); cursor: grab; }
.cp-hue::-moz-range-thumb { width: 8px; height: 18px; background: var(--bright); border: 0; border-radius: 0; box-shadow: 0 0 0 1px #000, inset 0 0 0 2px var(--night); cursor: grab; }
.cp-hue:focus-visible { outline: 1px solid var(--rank); outline-offset: 3px; }
.cp-presets { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.cp-presets button { aspect-ratio: 1; padding: 0; background: var(--c); border: 0; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(255,255,255,.1); cursor: pointer; }
.cp-presets button:hover { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--edge); }
.cp-presets button[aria-pressed="true"] { box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--bright); }
.ctl-check { flex-direction: row; align-items: center; gap: 8px; cursor: pointer; }
.ctl-check input { accent-color: var(--rank); }
.ctl-image-row { display: flex; align-items: center; gap: 8px; }
.ctl-thumb { width: 64px; height: 34px; flex: none; background: var(--well) center / cover no-repeat; box-shadow: var(--frame); }
.ctl-image .action { cursor: pointer; }
.graph-locked .card { position: relative; overflow: hidden; }
.ctl .input input { padding: 9px 10px; font-size: 14px; }
.styler-save { position: sticky; bottom: 0; padding: 12px 0 0; background: var(--night); }

@media (max-width: 960px) {
  .workspace.wide { width: 100%; margin-left: 0; transform: none; }
  .styler { grid-template-columns: minmax(0, 1fr); }
  .styler-preview { position: relative; top: 0; max-height: none; order: -1; }
}
.me-logout { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-title { margin: 0 0 14px; font: 800 26px/1.2 var(--display); color: var(--bright); }
.settings-group { margin: 6px 0 -4px; font: 800 12px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--bright); }
.settings-group:not(:first-child) { margin-top: 10px; padding-top: 18px; border-top: 1px solid #000; box-shadow: inset 0 1px 0 var(--edge-soft); }
.tracker-tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.crop-dialog { max-height: calc(100vh - 40px); overflow: auto; margin: auto; padding: 20px; border: 0; border-radius: 6px; background: var(--raised); color: var(--text); font: 14px/1.5 var(--body); box-shadow: 0 0 0 1px #000, inset 0 0 0 1px var(--edge), 0 24px 60px rgba(0,0,0,.7); color-scheme: dark; }
.crop-dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
.crop-dialog h2 { margin: 0; font: 700 16px var(--body); color: var(--bright); }
@media (max-width: 720px) { .tracker-tools { grid-column: 2; grid-row: 1; } }
.crop-dialog { width: min(640px, calc(100vw - 32px)); }
.crop-dialog h2 { margin-bottom: 14px; }
.crop-stage { position: relative; height: min(420px, 60vh); overflow: hidden; border-radius: var(--radius); background: var(--void) var(--checker); cursor: grab; touch-action: none; user-select: none; }
.crop-stage.grabbing { cursor: grabbing; }
.crop-stage:focus-visible { outline-offset: -1px; }
.crop-stage img { position: absolute; left: 50%; top: 50%; max-width: none; pointer-events: none; }
.crop-frame { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 9999px #000a; outline: 1px solid #fff8; pointer-events: none; }
.crop-frame.round { border-radius: 50%; }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.crop-zoom input { flex: 1; accent-color: var(--rank); }
.crop-step { width: 28px; height: 28px; padding: 0; background: var(--well); color: var(--text); border: 0; border-radius: 3px; box-shadow: var(--frame); font: 600 16px/1 var(--body); cursor: pointer; }
.crop-actions { display: flex; justify-content: space-between; gap: 10px; }
.crop-actions span { display: flex; gap: 8px; }

.action, .refresh, .game, .recent-chip, .discord-btn, .account-chip, .mode-pick summary, .block-link, .owner-chip, .owner-social { transition: transform .18s cubic-bezier(.2, .7, .2, 1), box-shadow .18s ease, background .18s ease, color .18s ease, filter .18s ease; }
:is(.action, .refresh, .game, .discord-btn, .mode-pick summary, .block-link):hover:not(:disabled) { transform: translateY(-1px); background: linear-gradient(#2a2a2a, #1e1e1e); box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px #3a3a3a, 0 8px 16px -8px rgba(0,0,0,.9); }
:is(.recent-chip, .account-chip, .owner-chip, .owner-social):hover { transform: translateY(-1px); box-shadow: var(--frame), 0 8px 16px -8px rgba(0,0,0,.9); }
:is(.action, .refresh, .game, .discord-btn, .mode-pick summary, .block-link, .recent-chip, .account-chip, .owner-chip, .owner-social):active:not(:disabled) { transform: translateY(0); filter: brightness(.95); transition-duration: .06s; }
.search > button:hover:not(:disabled), .more-matches:hover:not(:disabled) { background: linear-gradient(#2a2a2a, #1e1e1e); }
.search > button:active:not(:disabled), .more-matches:active:not(:disabled) { filter: brightness(.9); }
.tab:hover:not([aria-selected="true"]) { background: rgba(255,255,255,.04); }
@media (prefers-reduced-motion: reduce) {
  .nav-links > * { transition: none; }
  .action, .refresh, .game, .recent-chip, .discord-btn, .account-chip, .mode-pick summary, .block-link, .owner-chip, .owner-social { transition: none; transform: none !important; }
}
.uid-tag { margin-left: 10px; padding: 2px 7px; border-radius: 3px; background: var(--well); box-shadow: var(--frame); font: 600 12px var(--body); letter-spacing: .02em; color: var(--muted); vertical-align: 4px; }

.search > .search-go { display: grid; place-items: center; flex: none; width: 46px; padding: 0; border: 0; border-radius: 0; outline: 0; background: none; box-shadow: none; color: var(--faint); cursor: pointer; transition: color .15s ease; }
.search > .search-go:hover:not(:disabled), .search > .search-go:focus-visible { color: var(--rank); background: none; }
.search > .search-go:focus-visible { outline: 0; }
.search-main > .search-go { width: 64px; padding: 0; }
.search-main > .search-go svg { width: 22px; height: 22px; }
body:is(.tracker-themed, .site-themed) .search > .search-go { color: var(--pf-muted); }
body:is(.tracker-themed, .site-themed) .search > .search-go:hover:not(:disabled) { color: var(--pf-accent); }

.account-menu-wrap { position: relative; display: flex; }
button.account-chip { border: 0; cursor: pointer; }
.account-chip > svg { color: var(--faint); transition: transform .18s ease; }
.account-chip[aria-expanded="true"] > svg { transform: rotate(180deg); }
.account-menu { --menu-bg: #121212; --menu-fg: var(--text); --menu-hover: #1d1d1d; --menu-edge: var(--edge-soft); position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; display: flex; flex-direction: column; gap: 2px; min-width: 210px; padding: 6px; border-radius: 6px; background: var(--menu-bg); box-shadow: 0 0 0 1px #000, inset 0 0 0 1px var(--menu-edge), 0 18px 40px -12px rgba(0,0,0,.85); animation: menu-in .14s ease both; }
.account-menu[hidden] { display: none; }
.account-menu [role="menuitem"] { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 4px; background: none; color: var(--menu-fg); font: 600 13px var(--body); text-align: left; text-decoration: none; cursor: pointer; transition: background .12s ease, color .12s ease; }
.account-menu [role="menuitem"] svg { flex: none; opacity: .75; }
.account-menu [role="menuitem"]:hover, .account-menu [role="menuitem"]:focus-visible { background: var(--menu-hover); color: var(--bright); outline: 0; }
.account-menu hr { width: calc(100% - 12px); height: 1px; margin: 4px auto; border: 0; background: var(--menu-edge); }
.account-menu .account-logout { color: var(--loss); }
.account-menu .account-logout:hover, .account-menu .account-logout:focus-visible { background: color-mix(in srgb, var(--loss) 14%, var(--menu-bg)); color: var(--loss); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
.pf-body .account-menu, body.tracker-themed .account-menu { --menu-bg: var(--pf-card-solid, #121212); --menu-fg: var(--pf-text, var(--text)); --menu-hover: color-mix(in srgb, var(--pf-fg, #fff) 8%, var(--pf-card-solid, #121212)); --menu-edge: var(--pf-edge, var(--edge-soft)); }
.pf-body .account-menu [role="menuitem"]:hover, body.tracker-themed .account-menu [role="menuitem"]:hover { color: var(--pf-fg, var(--bright)); }
@media (prefers-reduced-motion: reduce) { .account-menu { animation: none; } .account-chip > svg { transition: none; } }

html { scrollbar-gutter: stable; }

.role-badges { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; vertical-align: middle; }
.role-badge { width: 20px; height: 20px; object-fit: contain; }
.pf-comment-who { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.pf-comment-who .pf-check { width: 14px; height: 14px; }
.pf-comment-who .role-badges { margin-left: 2px; gap: 3px; }
.pf-comment-who .role-badge { width: 16px; height: 16px; }

.report-dialog { width: min(420px, calc(100vw - 32px)); margin: auto; padding: 20px; border: 0; border-radius: 6px; background: var(--raised); color: var(--text); font: 14px/1.5 var(--body); box-shadow: 0 0 0 1px #000, inset 0 0 0 1px var(--edge), 0 24px 60px rgba(0,0,0,.7); color-scheme: dark; }
.report-dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
.report-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.report-dialog h2 { margin: 0; font: 700 16px var(--body); color: var(--bright); }
.report-close { padding: 4px 8px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.report-close:hover { color: var(--bright); }
.report-reasons { display: flex; flex-direction: column; gap: 2px; margin: 0 0 12px; padding: 0; border: 0; }
.report-reasons label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 3px; cursor: pointer; }
.report-reasons label:hover, .report-reasons label:has(input:checked) { background: var(--well); }
.report-reasons input { accent-color: var(--rank); }
.report-dialog textarea { width: 100%; padding: 10px 12px; background: var(--well); color: var(--bright); border: 1px solid var(--edge); border-radius: 3px; font: 14px/1.45 var(--body); resize: vertical; }
.report-dialog textarea:focus { outline: none; border-color: color-mix(in srgb, var(--rank) 70%, var(--edge)); }
.report-msg { margin: 8px 0 0; font-size: 13px; color: var(--loss); }
.report-done { margin: 0 0 14px; color: var(--muted); }
.report-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

.appeal-who { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.appeal-who img { width: 36px; height: 36px; border-radius: 3px; object-fit: cover; }
.appeal-who b { color: var(--bright); }
.appeal-form { display: flex; flex-direction: column; gap: 14px; }

.share-btn { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; padding: 3px 9px; border: 0; border-radius: 3px; background: var(--well); box-shadow: var(--frame); color: var(--muted); font: 600 12px var(--body); letter-spacing: 0; text-transform: none; vertical-align: middle; cursor: pointer; }
.share-btn:hover { color: var(--bright); }

.badge-tip { display: inline-flex; border-radius: 3px; cursor: default; }
.badge-tip:focus-visible { outline: 1px solid var(--rank); outline-offset: 2px; }
.tip { position: fixed; z-index: 1000; display: flex; align-items: center; gap: 8px; max-width: min(280px, calc(100vw - 8px)); padding: 7px 11px; border-radius: 4px; background: #101010; color: #f4f4f4; font: 600 13px/1.3 var(--body); box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #2b2b2b, 0 10px 24px rgba(0,0,0,.6); pointer-events: none; opacity: 0; transform: translateY(3px); transition: opacity .12s ease, transform .12s ease; }
.tip.below { transform: translateY(-3px); }
.tip.on { opacity: 1; transform: none; }
.tip > span { overflow-wrap: anywhere; }
.tip::after { content: ""; position: absolute; left: var(--arrow, 50%); bottom: -5px; width: 8px; height: 8px; margin-left: -4px; background: #101010; box-shadow: 1px 1px 0 #2b2b2b; transform: rotate(45deg); }
.tip.below::after { top: -5px; bottom: auto; box-shadow: -1px -1px 0 #2b2b2b; }
@media (prefers-reduced-motion: reduce) { .tip { transition: none; transform: none; } }
