/* Inter (SIL Open Font License), self-hosted so visitors' IPs are not sent to a font CDN */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/inter-latin-800.woff2) format('woff2'); }
:root {
  --bg: #0E1219;
  --panel: #151B24;
  --panel-2: #1B2330;
  --line: #26303D;
  --text: #E8EDF4;
  --muted: #93A0B2;
  --accent: #ff8a3d;
  --a: #5B9BFF;
  --b: #FF6B8B;
  --ok: #34C77B;
  --err: #F05252;
  --coin: #F5C542;
  --r: 12px;
  --font-num: 'Barlow Condensed', 'Arial Narrow', Inter, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;  color: var(--text);
  font: 14px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01", "tnum" 0; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
h1 {  margin: 24px 0 12px; }

/* --- top bar --- */
.top { position: sticky; top: 0; z-index: 10;    }
.top .wrap { display: flex; align-items: center; gap: 20px;  }
.brand { font-weight: 800;  display: flex; align-items: center; gap: 8px; }
.brand i { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--accent), #ff7a3d); display: inline-block; }
.nav { display: flex; gap: 4px; }
.nav a {   color: var(--muted); }
.nav a:hover, .nav a.on { color: var(--text); background: var(--panel); }
.me { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.coins { display: inline-flex; align-items: center; gap: 6px;    border: 1px solid var(--line); font-weight: 700; font-variant-numeric: tabular-nums; }
.coins::before { content: ""; width: 10px; height: 10px; border-radius: 50%;   }
.avatar { width: 28px; height: 28px; border-radius: 50%; vertical-align: middle; }
.btn { display: inline-flex; align-items: center; gap: 6px;   border: 1px solid var(--line); background: var(--panel); font-weight: 600; font-size: 13px; }
.btn:hover { border-color: #33404f; }
.btn.primary { background: var(--accent); border-color: var(--accent);  }

.btn.ghost { background: none; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); }
.btn.bonus { border-color: var(--accent); color: var(--accent); background: rgba(255,138,61,.08); }
.inline { display: inline; margin: 0; }

/* --- day groups + match rows --- */

.list { border: 1px solid var(--line);  overflow: hidden; background: var(--panel); }
.match { border-top: 1px solid var(--line); }
.match:first-child { border-top: 0; }
.match form { margin: 0; }
.row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 12px;  }
.when { font-variant-numeric: tabular-nums; }
.when b { display: block;  }
.when small { color: var(--muted); font-size: 12px; }
.when .live { color: var(--err); font-weight: 700; font-size: 12px; }
.when .live::before { content: "● "; }
.when .score { display: block; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.event { display: flex; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.event > span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event .more { opacity: 0; transition: opacity .12s;  flex: none; }
.match:hover .event .more, .event:focus .more { opacity: 1; }
.event:hover { color: var(--text); }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.pick { position: relative; display: flex; align-items: center; gap: 8px;    border: 1px solid var(--line); min-width: 0; transition: border-color .12s, background .12s; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick .tm { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .odds { font-weight: 800; font-variant-numeric: tabular-nums;  }
.pick .ini { width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.pick .logo { width: 22px; height: 22px; object-fit: contain; flex: none; }
.pick.a .ini { background: rgba(76,141,255,.18); color: var(--a); }
.pick.b .ini { background: rgba(255,92,122,.18); color: var(--b); }
label.pick { cursor: pointer; }

.pick.a:has(input:checked) { border-color: var(--a); background: rgba(76,141,255,.10); }
.pick.b:has(input:checked) { border-color: var(--b); background: rgba(255,92,122,.10); }
.pick.mine::after { content: "Your pick"; position: absolute; top: -8px; right: 8px; font-size: 10px; font-weight: 700; padding: 0 6px;  background: var(--accent);  }
.pick.won { border-color: var(--ok); }
.pick.dim { opacity: .55; }

.split { display: flex;   overflow: hidden;   }


.meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted);  font-variant-numeric: tabular-nums; }
.maps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--muted); }
.maps .mp { padding: 2px 7px; border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 6px; font-variant-numeric: tabular-nums; }
.maps .mp b.pa { color: var(--a); } .maps .mp b.pb { color: var(--b); }
.maps .mp.live { color: var(--err); border-color: currentColor; }

/* bet slip: only shown once a side is picked */
.slip { display: none; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 14px 12px 118px; }
.match:has(.pick input:checked) .slip { display: flex; }
.slip input[type=number] { width: 96px; padding: 6px 8px;  border: 1px solid var(--line); background: var(--bg); font-variant-numeric: tabular-nums; }
.chip { padding: 5px 9px;  border: 1px solid var(--line); background: none; font-size: 12px; color: var(--muted); }
.chip:hover { color: var(--text); border-color: #33404f; }
.slip .win { margin-left: auto; font-size: 12px; color: var(--muted); }
.slip .win b { color: var(--ok); }
.note { margin: 0 14px 0 118px; font-size: 12px; padding: 0 0 10px 0; }
.note.err { color: var(--err); }
.note.ok { color: var(--ok); }

/* --- tables (leaderboard, my bets, admin) --- */
table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line);  overflow: hidden; }
th, td { text-align: left; padding: 9px 14px; border-top: 1px solid var(--line); }
th { border-top: 0;    color: var(--muted);   }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; padding: 1px 8px;  font-size: 12px; font-weight: 600; background: var(--panel-2); color: var(--muted); }
.tag.ok { color: var(--ok); background: rgba(47,191,113,.12); }
.tag.err { color: var(--err); background: rgba(255,92,92,.12); }
.tag.live { color: var(--accent); background: rgba(255,138,61,.12); }

/* --- forms (admin) --- */
.form { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; align-items: end; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.form label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.form input { padding: 7px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* --- misc --- */

.hero {      display: flex;   }
.hero p { margin: 0; flex: 1; color: var(--muted); }
.hero strong { color: var(--text); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); padding: 10px 16px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.4); animation: fade 4s forwards; }
.toast.ok { border-color: var(--ok); }
.toast.error { border-color: var(--err); }
@keyframes fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
footer { margin: 40px 0 24px; font-size: 12px; color: var(--muted); text-align: center; }

@media (max-width: 640px) {
  .nav a:not(.on) { display: none; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .when { display: flex; gap: 8px; align-items: baseline; }
  .slip, .note { padding-left: 14px; margin-left: 14px; }
  .slip { padding-left: 14px; }
  .me .name { display: none; }
}

/* --- cosmetics --- */
.pn { font-weight: 700; }
.pn.rainbow { background: linear-gradient(90deg, #ff5c7a, #ff8a3d, #9be15d, #6fd3ff, #b48cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ptitle { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .3px; color: var(--accent); background: rgba(255,138,61,.12); vertical-align: middle; }
.banner-default { background: linear-gradient(120deg, #1b2130, #151a23); }
.banner-sunset { background: linear-gradient(120deg, #ff7a3d, #ff5c7a 55%, #7b3fe4); }
.banner-ocean { background: linear-gradient(120deg, #0f4c81, #1fa2c4 60%, #6fd3ff); }
.banner-toxic { background: linear-gradient(120deg, #0d2b12, #2fbf71 55%, #c6f432); }
.banner-midnight { background: linear-gradient(120deg, #0b0f2a, #2b2d6e 55%, #6a4cff); }
.banner-inferno { background: radial-gradient(circle at 20% 120%, #ffd166, #ff5c1a 35%, #8b0d0d 70%, #1a0505); }
.plink { display: inline-flex; align-items: center; gap: 8px; }
.plink:hover .pn, .plink:hover .name { text-decoration: underline; }

/* --- profile --- */
.profile-head {    display: flex;   border: 1px solid var(--line); position: relative; overflow: hidden; }
.profile-head::after { content: ""; position: absolute; inset: 0;  pointer-events: none; }
.profile-head > * { position: relative; z-index: 1; }
.profile-head h1 { margin: 0 0 4px;  }
.profile-head .who { flex: 1; min-width: 0; }
.profile-head .sub { color: #d6dae3; font-size: 13px; display: flex; align-items: center; gap: 8px; }


.coins.sm { padding: 2px 8px; font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr);   }
.stats div { background: var(--panel); border: 1px solid var(--line);   }
.stats b { display: block;  font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; color: var(--muted); }
.pos { color: var(--ok); }
.neg { color: var(--err); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));  }
.ach { background: var(--panel); border: 1px solid var(--line);   display: grid; gap: 2px;  }

.ach b { font-size: 13px; }
.ach span { font-size: 12px; color: var(--muted); }
.ach small { font-size: 11px; color: var(--accent); font-weight: 700; margin-top: 2px; }
.ach-note { color: var(--accent); }
.logo-sm { width: 16px; height: 16px; object-fit: contain; vertical-align: -3px; margin-right: 6px; }

/* --- shop --- */
.preview { margin-top: 14px; padding: 14px 16px; border-radius: var(--r); display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); }
.shop-grid { display: grid;  gap: 8px; }
.item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }

.swatch { height: 64px; display: grid; place-items: center; background: var(--panel-2); padding: 8px; }
.bswatch { width: 100%; height: 100%; border-radius: 6px; }
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; }
.item-foot b { font-size: 13px; }
.price { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price::before { content: ""; width: 8px; height: 8px; border-radius: 50%;  }
.btn.buy { padding: 4px 10px; }
.btn.buy.off { opacity: .45; }

/* --- leaderboard tabs --- */
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tabs { display: flex; gap: 2px; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.tabs a { padding: 5px 10px; border-radius: 6px; font-size: 13px; color: var(--muted); }
.tabs a.on { background: var(--panel-2); color: var(--text); }

@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .head-row { flex-direction: column; align-items: flex-start; }
}

/* ======================= v7: layout, cards, new features ======================= */
.small { font-size: 12px; }
.acc { color: var(--accent); }
.right { display: flex; justify-content: flex-end; margin-top: 12px; }
.btn.sm { padding: 4px 9px; font-size: 12px; }
.btn.lg { padding: 10px 18px; font-size: 14px; }
.btn.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,138,61,.45); } 50% { box-shadow: 0 0 0 6px rgba(255,138,61,0); } }
.qbadge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(47,191,113,.14); color: var(--ok); border: 1px solid rgba(47,191,113,.4); white-space: nowrap; }
.back { display: inline-block;  font-size: 13px; color: var(--muted); }
.back:hover { color: var(--text); }
.cnt { margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--panel-2); font-size: 11px; letter-spacing: 0; }
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--err); margin-right: 6px; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.hint { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--r);   font-size: 13px; color: var(--muted); }
.hint b { color: var(--text); }
.avatar.sm { width: 20px; height: 20px; }
.me-row td { background: rgba(255,138,61,.06); }

/* hero */




/* two-column layout */
.home, .mgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.side-col, .mgrid > aside { position: sticky; top: 70px; display: grid; gap: 12px; margin-top: 22px; }

/* cards */
.card { background: var(--panel); border: 1px solid var(--line);  padding: 12px 14px; margin: 0; }
.card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.card-h .muted { font-size: 12px; }
.card-more { display: block; margin-top: 8px; font-size: 12px;  }

/* quests */
.quest { padding: 8px 0; border-top: 1px solid var(--line); }
.quest:first-of-type { border-top: 0; padding-top: 0; }
.qtop { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.bar { height: 4px; border-radius: 2px; background: var(--line); margin: 6px 0 2px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width .3s; }
.quest.ready .bar i, .quest.claimed .bar i { background: var(--ok); }
.quest.claimed { opacity: .6; }
.quest small { font-size: 11px; }

/* mini ranking list */
.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mini li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mini .plink { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mini .rk { width: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mini b { font-variant-numeric: tabular-nums; }
.mini b small { font-weight: 400; }

/* feed */
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13px; }
.feed li { line-height: 1.35; }
.feed li a:not(.plink):hover { text-decoration: underline; }
.feed time { color: var(--muted); font-size: 11px; margin-left: 4px; }

/* recent results */
.results .res { display: grid; grid-template-columns: 1fr 52px 1fr minmax(0, 1.2fr); gap: 10px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.results .res:first-child { border-top: 0; }

.res .t { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.res .t.r { text-align: left; }
.res .t.w { color: var(--text); font-weight: 700; }
.res .sc { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.res .ev { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }

/* match page */

.mev { text-align: center; font-size: 12px; color: var(--muted);  }
.mteams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;  }
.mt { display: grid; justify-items: center;  text-align: center; min-width: 0; }
.mt b { font-size: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt.w b { color: var(--ok); }
.tlogo {   object-fit: contain; }
.tlogo.ini { display: grid; place-items: center;  font-weight: 800;  }
.tlogo.ini.a { background: rgba(76,141,255,.18); color: var(--a); }
.tlogo.ini.b { background: rgba(255,92,122,.18); color: var(--b); }
.mmid { display: grid; justify-items: center;   }
.mmid .big {  font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.mmid .big span { color: var(--muted); margin: 0 4px; }

.mmid .live {  font-weight: 700; font-size: 12px; }
.mmid .live::before { content: "● "; }
.tform { display: flex; gap: 3px; }
.fm { display: inline-grid; place-items: center; width: 18px; height: 18px;  font-size: 10px; font-weight: 800; flex: none; }
.fm.w { background: rgba(47,191,113,.18); color: var(--ok); }
.fm.l { background: rgba(255,92,92,.15); color: var(--err); }
.maps.center { justify-content: center; margin-top: 12px; }
.fhead { font-size: 12px; font-weight: 700; color: var(--muted); margin: 10px 0 4px; }
.card-h + .fhead { margin-top: 0; }
.frow { display: flex; align-items: center; gap: 8px; font-size: 13px;  }
.frow .fo { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow b { font-variant-numeric: tabular-nums; }
.blist .brow { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.blist .brow:first-child { border-top: 0; }
.brow .plink { flex: 1; min-width: 0; }
.brow .pk { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 4px; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .pk.a { background: rgba(76,141,255,.15); color: var(--a); }
.brow .pk.b { background: rgba(255,92,122,.15); color: var(--b); }
.brow .num { font-variant-numeric: tabular-nums; min-width: 50px; text-align: right; }
.note.flush { margin: 8px 0 0; }
.note a { color: var(--accent); }

/* map-score options */
.opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.opt { position: relative; display: grid;  justify-items: center;   background: var(--panel-2); border: 1px solid var(--line); text-align: center; min-width: 0; }
label.opt { cursor: pointer; }

.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .ol { font-size: 12px;  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt b {  font-variant-numeric: tabular-nums; }
.opt small { font-size: 11px; color: var(--muted); }
.opt.a:has(input:checked) { border-color: var(--a); background: rgba(76,141,255,.10); }
.opt.b:has(input:checked) { border-color: var(--b); background: rgba(255,92,122,.10); }
.opt.mine { border-color: var(--accent); }
.opt.dim { opacity: .5; }
.slip.mb-slip { padding: 10px 0 0; }
#mapbet .slip.mb-slip { display: none; }
#mapbet:has(.opt input:checked) .slip.mb-slip { display: flex; }

/* pick'em */
.chips-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.evchip { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; white-space: nowrap; }
.evchip small { color: var(--muted);  }
.evchip.on { border-color: var(--accent); background: rgba(255,138,61,.08); }
.evchip.done { opacity: .65; }
.pkline { display: grid;  gap: 12px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); }
.pkline:first-child { border-top: 0; }
.pkline .more {  text-align: center; }
.pickrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
.pickrow .note { grid-column: 1 / -1; margin: 0; }
.pkb {    border: 1px solid var(--line); background: var(--panel-2); font-weight: 600; font-size: 13px;  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.pkb:hover { border-color: #33404f; }
.pkb.a.on { border-color: var(--a); background: rgba(76,141,255,.14); }
.pkb.b.on { border-color: var(--b); background: rgba(255,92,122,.14); }
.pkb.right { border-color: var(--ok); background: rgba(47,191,113,.14); }
.pkb.wrong { border-color: var(--err); background: rgba(255,92,92,.1);  }
.pkb.winner:not(.on) { color: var(--ok); }
span.pkb { cursor: default; }

/* leagues */
.lrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.lrow:first-child { border-top: 0; }
.lrow:hover { background: var(--panel-2); }
.lrow b { flex: 1; }
.rkpill { font-weight: 800; font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 999px; background: rgba(255,138,61,.12); color: var(--accent); font-size: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.field { display: flex; gap: 8px; }
.field input { flex: 1; min-width: 0; padding: 7px 10px;  border: 1px solid var(--line); background: var(--bg); }
.invite { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.invite code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 8px;  background: var(--bg); border: 1px solid var(--line); }
.empty a { color: var(--accent); }

/* profile: badges, chart, team accuracy */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); background: var(--panel); }
.badge.r1 { border-color: #f5c542; color: #f5c542; background: rgba(245,197,66,.08); }
.badge.r2 { border-color: #c0c7d4; color: #c0c7d4; }
.badge.r3 { border-color: #d08a4e; color: #d08a4e; }
.badge.pk { color: var(--a); border-color: rgba(76,141,255,.4); }
.chart svg { width: 100%; height: 120px; display: block; }
.chart .zero { stroke: var(--line); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.chart .ln { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart .ln.pos { stroke: var(--ok); }
.chart .ln.neg { stroke: var(--err); }
.chart .area.pos { fill: rgba(47,191,113,.12); }
.chart .area.neg { fill: rgba(255,92,92,.1); }
.acc-bar { display: inline-block; width: 50px; height: 4px;   vertical-align: middle; overflow: hidden; }
.acc-bar i { display: block; height: 100%; background: var(--accent); }

/* tablet: one column, quests above matches, nav moves to the tab bar */
.tabbar { display: none; }
@media (max-width: 960px) {
  .home, .mgrid { grid-template-columns: 1fr; gap: 0; }
  .home { display: flex; flex-direction: column; }
  .side-col, .mgrid > aside { position: static; }
  .side-col { order: -1; }
  .home .side-col > .card:not(#quests) { display: none; }
}
@media (max-width: 960px) and (min-width: 641px) {
  .nav a { padding: 6px 7px; }
}
@media (max-width: 640px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .nav { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;   border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 0 7px; font-size: 10px; font-weight: 600; color: var(--muted); }
  .tabbar a.on { color: var(--accent); }
  .tabbar svg { width: 22px; height: 22px; fill: currentColor; }
  .top .wrap { gap: 10px; }
  .brand span { display: none; }
  .me .logout, .me .plink { display: none; }
  .qbadge { padding: 3px 8px; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .hero { flex-direction: column; align-items: stretch; }
  .results .res { grid-template-columns: 1fr 44px 1fr; }
  .res .ev { display: none; }
  
  .two { grid-template-columns: 1fr; }
  
  .pkline .when { grid-column: 1 / -1; }
  
  
  
  .mt b { font-size: 14px; }
  .event .more { opacity: 1; }
}

/* overflow guards */
.home > *, .mgrid > *, .sides > *, .row > * { min-width: 0; }
.me { min-width: 0; }
@media (max-width: 640px) { .qbadge { display: none; } .me { gap: 6px; } .btn.bonus { padding: 5px 9px; } }
@media (max-width: 960px) { .home { align-items: stretch; } }
footer.wrap { margin-top: 40px; margin-bottom: 24px; }
.when .delayed { color: var(--accent); font-weight: 700; font-size: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }

/* --- badges: admin chip + medal row in the profile banner --- */
.admin-chip { position: relative; display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; margin-left: 6px; padding: 3px 10px 3px 7px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #fff; background: linear-gradient(120deg, #ff3d6e, #a14cff); box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 0 14px rgba(255,61,110,.55); overflow: hidden; }
.admin-chip svg { width: 14px; height: 14px; fill: currentColor; }
.admin-chip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); animation: shine 3.5s ease-in-out infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.medals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.medal { --c1: #33404f; --c2: #1b2130; --fg: #e6e9ef; display: inline-flex; align-items: center; height: 30px; padding: 0 3px; border-radius: 999px; background: linear-gradient(135deg, var(--c1), var(--c2)); color: var(--fg); box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 2px 6px rgba(0,0,0,.35); cursor: default; outline: none; transition: padding .15s; }
.medal svg { width: 24px; height: 24px; padding: 4px; fill: currentColor; flex: none; }
.medal em { font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; max-width: 0; overflow: hidden; transition: max-width .2s, margin .2s; }
.medal:hover, .medal:focus { padding-right: 10px; }
.medal:hover em, .medal:focus em { max-width: 220px; margin-left: 2px; }
.medal.t-gold   { --c1: #ffd76a; --c2: #c98a12; --fg: #3a2600; }
.medal.t-silver { --c1: #eef1f6; --c2: #9aa3b2; --fg: #242a36; }
.medal.t-bronze { --c1: #f0b183; --c2: #9b5a2c; --fg: #2e1606; }
.medal.t-blue   { --c1: #6fa6ff; --c2: #2c57b8; --fg: #fff; }
.medal.t-green  { --c1: #4fd893; --c2: #1d7d4c; --fg: #04210f; }
.medal.t-orange { --c1: #ffb347; --c2: #e0611f; --fg: #2b1100; }
@media (max-width: 640px) {
  
  .admin-chip { font-size: 11px; }
}

/* featured badge next to names + clickable medals */
.pnw { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; }
.pnw > .pn, .pnw { min-width: 0; }
.fb { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--c1, #33404f), var(--c2, #1b2130)); color: var(--fg, #fff); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset; }
.fb svg { width: 11px; height: 11px; fill: currentColor; }
.fb.t-gold { --c1: #ffd76a; --c2: #c98a12; --fg: #3a2600; } .fb.t-silver { --c1: #eef1f6; --c2: #9aa3b2; --fg: #242a36; } .fb.t-bronze { --c1: #f0b183; --c2: #9b5a2c; --fg: #2e1606; }
.fb.t-blue { --c1: #6fa6ff; --c2: #2c57b8; } .fb.t-green { --c1: #4fd893; --c2: #1d7d4c; --fg: #04210f; } .fb.t-orange { --c1: #ffb347; --c2: #e0611f; --fg: #2b1100; }
.fb.t-admin, .medal.t-admin { --c1: #ff3d6e; --c2: #a14cff; --fg: #fff; }
.fb.t-admin { box-shadow: 0 0 6px rgba(255,61,110,.6); }
button.medal { border: 0; font: inherit; cursor: pointer; }
.medal.featured { box-shadow: 0 0 0 2px var(--accent), 0 0 10px rgba(255,138,61,.5); }
.medal-hint { margin: 6px 0 0; font-size: 11px; color: #c3c9d4; }
.profile-head h1 .fb { display: none; }

/* ======================= v15: 2026 polish ======================= */

/* --- page transitions (native View Transitions, cross-document) --- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .08s ease both; }
::view-transition-new(root) { animation: vt-in .16s ease both; }
::view-transition-group(*) { animation-duration: .32s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
.top { view-transition-name: topbar; }
.tabbar { view-transition-name: tabbar; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* --- depth & texture --- */
:root { --line-soft: #1F2732; --glass: rgba(14,18,25,.72); }

body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.top {   border-bottom-color: var(--line-soft); }

.card, .list { border-color: var(--line-soft); }
.match { transition: background .15s; }
.match:hover { background: rgba(255,255,255,.018); }
.pick, .pkb, .opt, .btn { transition: border-color .15s, background .15s, transform .12s, box-shadow .15s; }

.btn:active, label.pick:active { transform: translateY(0) scale(.98); }





/* --- live numbers --- */
time.soon { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.coins { transition: color .3s, box-shadow .3s; }
.coins.up { color: var(--ok); box-shadow: 0 0 0 1px rgba(47,191,113,.5), 0 0 16px rgba(47,191,113,.35); }
.coins.down { color: #ffb0b0; }
.odds.flash-up { animation: flashUp 1.4s ease; }
.odds.flash-down { animation: flashDown 1.4s ease; }
@keyframes flashUp { 0%, 40% { color: var(--ok); text-shadow: 0 0 10px rgba(47,191,113,.7); } }
@keyframes flashDown { 0%, 40% { color: var(--err); text-shadow: 0 0 10px rgba(255,92,92,.7); } }

/* --- spotlight bento --- */
.bento { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px;  }
.spot { position: relative; display: block;    overflow: hidden;
  
    }

.spot-top { display: flex; align-items: center; gap: 10px; font-size: 12px; min-width: 0; }
.spot-top .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-tag { flex: none;         }
.spot-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;  }
.st { display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; }
.st img, .st .ini {   object-fit: contain;  }
.st .ini { display: grid; place-items: center;  font-weight: 800; font-size: 20px; }
.st .ini.a { background: rgba(76,141,255,.18); color: var(--a); }
.st .ini.b { background: rgba(255,92,122,.18); color: var(--b); }
.st b {  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st .odds { font-weight: 800;  font-variant-numeric: tabular-nums; }
.spot-mid { display: grid; justify-items: center; gap: 2px; min-width: 96px; }
.spot-time {  font-weight: 800;  font-variant-numeric: tabular-nums; }
.spot-cd { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.spot-cta { display: flex; justify-content: center; }
.bento-side { display: grid; gap: 12px; align-content: start; }
.card.tight { padding: 10px 12px; }
.ob { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.ob:first-of-type { border-top: 0; }
.ob-t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob small { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob b { font-variant-numeric: tabular-nums; }
.ob:hover .ob-t { color: var(--accent); }
.steps .step { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; }
.steps .step i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;  font-weight: 800; font-size: 12px; color: #111; background: var(--accent); }
.stat-tile { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.stat-tile b {  font-variant-numeric: tabular-nums; }
.mini-empty { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 4px 0; }
.mini-empty svg { width: 18px; height: 18px; fill: currentColor; opacity: .6; flex: none; }

/* --- team page --- */
.thead { display: flex; align-items: center; gap: 18px;    
   }
.tbig { width: 84px; height: 84px; object-fit: contain; flex: none;  }
.tbig.ini { display: grid; place-items: center; border-radius: 18px; font-weight: 800; font-size: 26px;   }
.tinfo { flex: 1; min-width: 0; }
.tinfo h1 { margin: 0 0 8px;  }
.tinfo .tform { align-items: center; gap: 4px; }
.tinfo .tform small { margin-left: 6px; }
.tstats { display: flex;  }
.tstats div { display: grid; text-align: right; }
.tstats b {  font-variant-numeric: tabular-nums; }
.tstats span {  color: var(--muted); }
a.tname { font-weight: 700; font-size: 16px; }
a.tname:hover, .fhead a:hover { color: var(--accent); }
.frow .logo-sm { margin-right: 0; }

/* --- empty states --- */
.empty {  justify-items: center;   border-style: dashed;   }
.empty > svg {    opacity: .5;  }


.empty:not(:has(svg))::before { content: ""; width: 34px; height: 34px; opacity: .45; background: var(--muted);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z'/></svg>") center / contain no-repeat; }

/* --- loading states (htmx adds .htmx-request to the element making the request) --- */
.htmx-request .btn.primary, .btn.primary.htmx-request { position: relative; color: transparent !important; pointer-events: none; }
.htmx-request .btn.primary::after, .btn.primary.htmx-request::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(17,17,17,.35); border-top-color: #111; animation: spin .7s linear infinite; }
form.htmx-request .pick, form.htmx-request .opt { opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { position: relative; overflow: hidden; background: var(--panel-2); border-radius: 6px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
  .bento-side { grid-template-columns: 1fr auto; }
  .thead { flex-wrap: wrap; }
  .tstats { width: 100%; justify-content: space-between; }
  .tstats div { text-align: left; }
}
@media (max-width: 640px) {
  
  
  
  .bento-side { grid-template-columns: 1fr; }
  .stat-tile { display: none; }
}

/* ======================= v17: pick'em + leagues rework ======================= */

/* event navigation */
.evnav { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.evnav::-webkit-scrollbar { display: none; }
.evchip { display: inline-flex; align-items: center; gap: 6px; }
.evchip small { margin-left: 2px; }
.evsep { flex: none; align-self: center; padding: 0 4px 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line); margin-left: 4px; }
.dot-live.sm { width: 6px; height: 6px; margin: 0; background: var(--ok); }

/* event header */
.evhead { display: flex; align-items: center; gap: 22px; margin-top: 12px; padding: 18px 20px;  
  
   }
.evinfo { flex: 1; min-width: 0; }
.evinfo h2 { margin: 8px 0 4px; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.evinfo p { margin: 0; }
.evinfo time.soon, .evinfo b time { color: var(--accent); }
.prizes { display: flex; align-items: flex-end; gap: 6px; }
.pz { display: grid; justify-items: center; gap: 2px; width: 58px; padding: 8px 0 6px; border-radius: 10px 10px 4px 4px; }
.pz b { font-size: 15px; font-variant-numeric: tabular-nums; }
.pz span { font-size: 10px; font-weight: 700;   opacity: .8; }
.pz.p1 { height: 74px; justify-content: center; background: linear-gradient(180deg, rgba(255,215,106,.28), rgba(255,215,106,.06)); color: #ffd76a; }
.pz.p2 { height: 62px; justify-content: center; background: linear-gradient(180deg, rgba(220,226,236,.22), rgba(220,226,236,.05)); color: #dfe4ec; }
.pz.p3 { height: 54px; justify-content: center; background: linear-gradient(180deg, rgba(240,177,131,.24), rgba(240,177,131,.05)); color: #f0b183; }
.ring { --p: 0; flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); }
.ring > div { width: 68px; height: 68px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; align-content: center; }
.ring b { font-size: 17px; font-variant-numeric: tabular-nums; line-height: 1; }
.ring span { font-size: 10px; color: var(--muted);   }

/* match lines */

.pkline.s-final, .pkline.s-cancelled { background: rgba(0,0,0,.12); }
.pkline .when .live { color: var(--err); font-weight: 700; font-size: 12px; }
.pkline .when .live::before { content: "● "; }
.pkb { display: flex; align-items: center; gap: 8px; text-align: left; padding: 9px 10px; min-width: 0; }
.pkb img, .pkb .pi { width: 22px; height: 22px; flex: none; object-fit: contain; }
.pkb .pi { display: grid; place-items: center; border-radius: 5px; font-size: 10px; font-weight: 800; background: rgba(255,255,255,.06); color: var(--muted); }
.pkb .pt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkb .pmark { flex: none; font-size: 12px; font-weight: 800; }
.pkb.on .pmark { color: var(--accent); }
.pkb.right .pmark { color: var(--ok); }
.pkb.wrong .pmark { color: var(--err); }
.pkb.wrong { text-decoration: none; }
.pkb.wrong .pt { text-decoration: line-through; opacity: .7; }
.pkb.loser:not(.on) { opacity: .5; }
.pickrow.has-pick .pkb:not(.on):not(.winner) { opacity: .7; }
button.pkb:hover { opacity: 1 !important; }

/* your standing + rules */
.mine-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mine-stats div { display: grid; justify-items: center; padding: 8px 0; border-radius: 8px;  }
.mine-stats b { font-size: 18px; font-variant-numeric: tabular-nums; }
.mine-stats span { font-size: 11px; color: var(--muted); }
.mini li.me { margin: 0 -6px; padding: 3px 6px; border-radius: 6px; background: rgba(255,138,61,.08); }
.rules summary { cursor: pointer; font-size: 13px; list-style: none; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary::after { content: " +"; color: var(--muted); }
.rules[open] summary::after { content: " –"; }
.rules ul { margin: 8px 0 0; padding-left: 18px; font-size: 12px; color: var(--muted); display: grid; gap: 4px; }

/* leagues list */
.lhero { display: flex; align-items: center; gap: 20px;     }

.lhero p { margin: 0; }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.lcard { display: grid; gap: 12px; padding: 14px 16px;     }

.lc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lc-name { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-foot { display: flex; justify-content: space-between; gap: 8px; }
.lc-lead { color: var(--text); }
.stack { display: flex; }
.stack img, .stack span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--panel); margin-left: -8px; object-fit: cover; }
.stack > :first-child { margin-left: 0; }
.stack span { display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--panel-2); color: var(--muted); }
.stack span.more { font-size: 11px; }

/* league page */
.lhead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 10px;   
   }
.lh-main { flex: 1; min-width: 200px; }
.lh-main h1 { margin: 0 0 2px;  }
.lh-main p { margin: 0; }
.lhead .invite { margin: 0; flex: 1 1 340px; padding: 6px 6px 6px 10px; border-radius: 10px;   }
.lhead .invite code { border: 0; background: none; padding: 0; color: var(--muted); }
.head-row.sub { margin: 22px 0 10px; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; max-width: 640px; margin: 4px auto 18px; }
.pod { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.pod-medal { font-size: 22px; line-height: 1; }
.pod-av { width: 56px; height: 56px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); }
.pod.p1 .pod-av { width: 68px; height: 68px; border-color: #ffd76a;  }
.pod.p2 .pod-av { border-color: #dfe4ec; }
.pod.p3 .pod-av { border-color: #f0b183; }
.avatar.ph { display: inline-grid; place-items: center; background: var(--panel-2); color: var(--muted); font-weight: 700; }
.pod-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pod b { font-variant-numeric: tabular-nums; }
.pod-step { width: 100%; margin-top: 4px; display: grid; place-items: center; font-weight: 800; font-size: 20px;  border-radius: 10px 10px 0 0;  border-bottom: 0; }
.pod.p1 .pod-step { height: 70px;  }
.pod.p2 .pod-step { height: 50px;  }
.pod.p3 .pod-step { height: 36px;  }
.pod.me .pod-name { color: var(--accent); }
.pod:hover .pod-name { text-decoration: underline; }
.manage { margin-top: 10px; }
.manage summary { cursor: pointer; }
.btn.leave { width: 100%; justify-content: center; color: var(--muted); }
.btn.leave:hover { color: var(--err); }

@media (max-width: 760px) {
  .evhead { flex-wrap: wrap; gap: 14px; }
  .evinfo { flex-basis: 100%; }
  .lhero { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  
  .pz { width: 50px; }
  .ring { width: 70px; height: 70px; }
  .ring > div { width: 56px; height: 56px; }
  .pod-av { width: 44px; height: 44px; }
  .pod.p1 .pod-av { width: 54px; height: 54px; }
}
td .plink + .tag, td .tag { vertical-align: middle; margin-left: 6px; }
.brand img { display: block; filter: drop-shadow(0 2px 8px rgba(255,138,61,.35)); transition: transform .3s; }
.brand:hover img { transform: rotate(90deg); }


/* --- instant feedback --- */
a, button, label, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn:active, button.pkb:active, label.pick:active, label.opt:active, .evtile:active, .lcard:active, .spot:active, .res:active, .lrow:active, .ob:active, .tabbar a:active, .nav a:active, .chip:active, .medal:active { transform: scale(.97); transition-duration: .05s; }
.pkb.htmx-request { opacity: .85; }

/* --- pick'em event grid (wraps, no hidden horizontal scroll) --- */
.evgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.evtile { display: grid; gap: 4px; padding: 10px 12px;    transition: border-color .15s, background .15s, transform .12s; min-width: 0; }
.evtile b { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }


.evtile.done { opacity: .75; }
.evtile time.soon { font-weight: 700; }
.evbar { height: 3px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 2px; }
.evbar i { display: block; height: 100%; background: var(--accent); }
.evdone { margin-top: 10px; }
.evdone summary { cursor: pointer; margin-bottom: 8px; }
@media (max-width: 640px) { .evgrid { grid-template-columns: 1fr 1fr; } .evtile { padding: 8px 10px; } }

.evselect { display: none; }
.evselect select { width: 100%; padding: 10px 12px;  border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-weight: 600; }
@media (max-width: 640px) {
  .evpick { display: none; }
  .evselect { display: grid; gap: 4px; }
}

/* --- admin panel --- */
.admin-chip.mod { background: linear-gradient(120deg, #3b82f6, #22d3ee); box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 0 14px rgba(59,130,246,.5); }
.role { display: inline-block; vertical-align: middle; padding: 1px 8px; border-radius: 999px; font-size: 11px;    color: #fff; }


h1 .role { font-size: 11px; margin-left: 6px; }
.admin-tabs { margin: 4px 0 16px; width: max-content; max-width: 100%; overflow-x: auto; }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.kpi { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-soft);  }
.kpi b { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi span { font-size: 12px; color: var(--muted); }

.kpi.bad b { color: var(--err); }
.kpi.warn b { color: var(--accent); }
table.perm { border: 0; box-shadow: none; background: none; font-size: 12px; }
table.perm th, table.perm td { padding: 5px 4px; border-top: 1px solid var(--line-soft); background: none; text-align: center; }
table.perm td:first-child, table.perm th:first-child { text-align: left; }
.searchbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.searchbar input { flex: 1; min-width: 200px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); }
.chip.on { color: var(--text); border-color: var(--accent); }
.urow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--line-soft); }
.urow:first-child { border-top: 0; }
.urow.banned { background: rgba(255,92,92,.05); }
.urow.banned .uname { text-decoration: line-through; opacity: .7; }
.urow.flagged { background: rgba(255,138,61,.05); }
.uname { font-weight: 700; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.umeta { flex: 1; min-width: 160px; }
.uact { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-left: auto; }



.ban-pop { position: relative; }
.ban-pop summary { list-style: none; cursor: pointer; }
.ban-pop summary::-webkit-details-marker { display: none; }
.ban-form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; display: flex; gap: 6px; padding: 8px; width: 340px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2);  }
.ban-form input { flex: 1; min-width: 0; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); }
.modlog .lrow2 { display: flex; gap: 12px; align-items: baseline; padding: 8px 14px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.modlog .lrow2:first-child { border-top: 0; }
.modlog time { flex: none; width: 64px; }
.add-match { margin-bottom: 12px; }
.add-match summary { cursor: pointer; }
.form.flat { padding: 12px 0 0; border: 0; background: none; box-shadow: none; }
@media (max-width: 640px) { .ban-form { position: static; width: 100%; margin-top: 6px; } .uact { margin-left: 0; } }

/* --- profile settings --- */
.settings { display: grid; gap: 18px; }
.fld { display: grid; gap: 6px; }
.fld textarea, .team-filter { width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font: inherit; color: var(--text); resize: vertical; }
.teampick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 300px; overflow-y: auto; padding: 2px; }
.teampick label { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line-soft); background: var(--panel-2); cursor: pointer; font-size: 13px; min-width: 0; }
.teampick label span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teampick label[hidden] { display: none; }
.teampick input { position: absolute; opacity: 0; pointer-events: none; }
.teampick img, .tp-none { width: 22px; height: 22px; object-fit: contain; flex: none; }
.tp-none { display: grid; place-items: center; border-radius: 5px; font-size: 10px; font-weight: 800; background: rgba(255,255,255,.06); color: var(--muted); }
.teampick label:has(input:checked) { border-color: var(--accent); background: rgba(255,138,61,.1); }
.setlink { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.setlink:first-of-type { border-top: 0; }
.setlink svg { width: 22px; height: 22px; fill: var(--accent); flex: none; }
.setlink span { display: grid; }
.setlink:hover b { color: var(--accent); }
.bio { margin: 8px 0 0; font-size: 13px; color: #d6dae3; font-style: italic; max-width: 560px; }
.favteam { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.favteam img { width: 16px; height: 16px; object-fit: contain; }
.favteam:hover { color: var(--accent); }
.ph-actions { display: flex; gap: 8px;  }
.ubio { font-size: 12px; font-style: italic; color: var(--muted); max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- achievements on profile --- */
.ach-progress {  border-radius: 3px;  overflow: hidden;  }
.ach-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ffd76a); }
.ach-cat { display: flex; align-items: center; gap: 6px;   font-weight: 700;  }
.ach-cat svg { width: 14px; height: 14px; fill: var(--accent); }
.ach .bar { margin: 4px 0 0; }
.ach.secret { border-style: dashed; }
.ach.secret b { letter-spacing: .2em; }

/* ======================= shop v2: rarity, frames, effects, banners ======================= */
.shop-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.shop-top .preview { margin: 0; padding: 18px; gap: 14px; border-radius: 14px; }
.pv-name { font-size: 18px; font-weight: 700; }
.deal { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 14px;   overflow: hidden; }
.deal .spot-tag { position: absolute; top: 10px; left: 12px; }
.deal-sw { flex: none; width: 120px; height: 72px; display: grid; place-items: center; margin-top: 14px; border-radius: 10px;  }
.deal-sw .bswatch { width: 100%; height: 100%; }
.deal-info { display: grid; gap: 3px; margin-top: 14px; }
.deal-info s { font-size: 12px; }
.shop-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 0; }
.shop-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;  border: 1px solid var(--line-soft); background: var(--panel); font-size: 13px; }

.shop-nav svg { width: 14px; height: 14px; fill: var(--accent); }
.shop-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.item { position: relative; transition: transform .15s, border-color .15s, box-shadow .15s; }

.item .swatch { height: 86px; }
.item.owned:not(.equipped) .swatch::after { content: "Owned"; position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 700; color: var(--ok); }
.rarity { position: absolute; top: 7px; left: 8px; z-index: 1;     opacity: .9; }
.deal-tag { position: absolute; top: 6px; right: 6px; z-index: 1; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 800; color: #111; background: var(--accent); }
.item.r-common .rarity { color: #9aa3b5; }
.item.r-rare { border-color: rgba(76,141,255,.35); } .item.r-rare .rarity { color: #6fa6ff; }
.item.r-epic { border-color: rgba(180,140,255,.45); box-shadow: 0 0 18px -10px rgba(180,140,255,.8); } .item.r-epic .rarity { color: #b48cff; }
.item.r-legendary { border-color: rgba(255,215,106,.55); box-shadow: 0 0 22px -8px rgba(255,190,60,.7); background-image: linear-gradient(180deg, rgba(255,215,106,.07), transparent 50%); } .item.r-legendary .rarity { color: #ffd76a; }
.item.equipped {  outline-offset: -1px; }
.avatar.lg { width: 48px; height: 48px; }

/* avatar frames */
.frame { position: relative; display: inline-grid; place-items: center; border-radius: 50%; padding: 3px; }
.frame > img, .frame > .avatar { display: block; position: relative; z-index: 1; }
.frame-steel { background: linear-gradient(135deg, #e6e9ef, #6b7385, #c9ced8); }
.frame-gold { background: linear-gradient(135deg, #fff1b8, #d9a21b, #ffe08a, #a86b00); box-shadow: 0 0 12px rgba(255,138,61,.45); }
.frame-neon { background: #22d3ee; box-shadow: 0 0 10px #22d3ee, 0 0 22px rgba(34,211,238,.6); }
.frame-toxic { background: linear-gradient(135deg, #c6f432, #2fbf71); box-shadow: 0 0 14px rgba(150,240,60,.55); }
.frame-fire { background: conic-gradient(from 0deg, #ff3d00, #ffb300, #ff6a00, #ff1744, #ff3d00); animation: spinbg 2.4s linear infinite; box-shadow: 0 0 16px rgba(255,90,0,.6); }
.frame-holo { background: conic-gradient(from 0deg, #ff5c7a, #ff8a3d, #9be15d, #22d3ee, #b48cff, #ff5c7a); animation: spinbg 4s linear infinite; box-shadow: 0 0 18px rgba(180,140,255,.55); }
@keyframes spinbg { to { filter: hue-rotate(360deg); } }

.profile-head .frame { padding: 4px; border-radius: 16px; }


/* name effects */
.fx { display: inline-block; position: relative; }
.fx-glow .pn, .fx-glow { text-shadow: 0 0 8px currentColor, 0 0 18px currentColor; }
.fx-shimmer > * { background: linear-gradient(100deg, currentColor 40%, #fff 50%, currentColor 60%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer-t 2.6s linear infinite; }
.fx-shimmer { color: var(--text); }
@keyframes shimmer-t { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.fx-fire > * { background: linear-gradient(0deg, #ff1744, #ff6a00 45%, #ffd54f); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 6px rgba(255,100,0,.55)); }
.fx-ice > * { background: linear-gradient(180deg, #ffffff, #8be9ff 50%, #3b82f6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 6px rgba(100,200,255,.55)); }
.fx-gold > * { background: linear-gradient(180deg, #fff1b8, #f5c542 45%, #b8860b 55%, #ffe08a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 1px 4px rgba(255,138,61,.6)); }
.fx-glitch::before, .fx-glitch::after { content: attr(data-t); position: absolute; inset: 0; font-weight: 700; pointer-events: none; }
.fx-glitch::before { color: #22d3ee; transform: translate(-1px, 0); clip-path: inset(0 0 55% 0); animation: glitch 2.2s steps(1) infinite; }
.fx-glitch::after { color: #ff3d6e; transform: translate(1px, 0); clip-path: inset(50% 0 0 0); animation: glitch 2.2s steps(1) infinite reverse; }
@keyframes glitch { 0%, 88%, 100% { transform: translate(0); opacity: 0; } 90% { transform: translate(-2px, 1px); opacity: 1; } 94% { transform: translate(2px, -1px); opacity: 1; } }

/* new banners */
.banner-carbon { background: repeating-linear-gradient(45deg, #1a1d24 0 6px, #22262f 6px 12px), #1a1d24; }
.banner-synth { background: linear-gradient(180deg, #1b0b3a 0%, #5b1a8a 45%, #ff3d9a 75%, #ffb347 100%); }
.banner-aurora { background: linear-gradient(120deg, #052e2b, #0f766e, #22d3ee, #7c3aed, #052e2b); background-size: 300% 300%; animation: aurora 12s ease infinite; }
@keyframes aurora { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.banner-goldrush { background: radial-gradient(circle at 30% 20%, #fff1b8, #f5c542 30%, #a86b00 70%, #3a2600); }

@media (max-width: 760px) { .shop-top { grid-template-columns: 1fr; } }

.btn .price, .item-foot .price { white-space: nowrap; }


/* --- legal pages + footer --- */
.legal { max-width: 760px; margin: 0 auto; padding-bottom: 20px; line-height: 1.65; }
.legal h1 { font-size: 28px; margin: 22px 0 4px; }
.legal h2 { font-size: 17px; margin: 28px 0 8px;  }

.legal ul { padding-left: 20px; display: grid; gap: 4px; }
.legal a { color: var(--accent); }
.legal code { padding: 1px 6px;  background: var(--panel-2); font-size: 12px; }
.legal-nav { display: flex; gap: 4px; margin-top: 18px; }
.legal-nav a { padding: 6px 12px;  font-size: 13px; color: var(--muted) !important; border: 1px solid var(--line-soft); }
.legal-nav a.on { color: var(--text) !important; border-color: var(--accent); }
.tldr { margin: 16px 0 8px; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(255,138,61,.3); background: rgba(255,138,61,.06); }
.tldr ul { margin: 8px 0 0; }
.legal-table { margin: 8px 0; font-size: 13px; }
.legal-table td, .legal-table th { vertical-align: top; }
.hero-cta { display: grid; gap: 6px;  flex: none; max-width: 260px;  }
.hero-cta small a { color: var(--accent); }
footer.wrap { display: grid; gap: 8px; justify-items: center; }
.foot-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.foot-links a:hover { color: var(--text); }
.privacy-card form { margin: 0; }
.danger-zone { margin-top: 10px; }
.danger-zone summary { cursor: pointer; color: #ff9b9b; }
.danger-zone p { margin: 6px 0; }

/* --- levels --- */
.lvl { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 6px; font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; vertical-align: middle; color: #111; flex: none; }
.lvl.t1 { background: #8a93a6; }
.lvl.t2 { background: linear-gradient(135deg, #6fa6ff, #3b82f6); color: #fff; }
.lvl.t3 { background: linear-gradient(135deg, #c4a5ff, #8b5cf6); color: #fff; }
.lvl.t4 { background: linear-gradient(135deg, #ffe08a, #ff8a3d); box-shadow: 0 0 8px rgba(255,138,61,.5); }
.plink .lvl { margin-right: -2px; }
.lvlbar { display: flex; align-items: center; gap: 8px;  max-width: 320px; }
.lvlbar .lvl { height: 20px; font-size: 11px; }
.lv-track { flex: 1;  border-radius: 3px;  overflow: hidden; }
.lv-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ffd76a); }
.lvlbar small { font-size: 11px; color: rgba(255,255,255,.75); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lock { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.join-card { max-width: 520px; margin: 40px auto; padding: 28px;  text-align: center; border: 1px solid var(--line-soft);  }
.join-card h1 { margin: 12px 0 6px; font-size: 26px; }
.join-card form { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }

/* --- referrals --- */
.invite-card { border-color: rgba(255,138,61,.35);  }
.invite-card .invite { margin: 0 0 10px; padding: 6px 6px 6px 10px; border-radius: 8px; background: rgba(0,0,0,.25); }
.invite-card .invite code { border: 0; background: none; padding: 0; color: var(--muted); }
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ref-stats div { display: grid; justify-items: center; padding: 6px 0; border-radius: 8px; background: rgba(255,255,255,.03); }
.ref-stats b { font-size: 17px; font-variant-numeric: tabular-nums; }
.ref-stats span { font-size: 11px; color: var(--muted); }

/* --- settings hub --- */
.settings-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.set-nav { position: sticky; top: 70px; display: grid; gap: 4px; }
.set-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; color: var(--muted); }
.set-nav a svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.set-nav a span { display: grid; flex: 1; min-width: 0; }
.set-nav a b { color: var(--text); font-size: 14px; }
.set-nav a small { font-size: 11px; }
.set-nav a:hover { background: var(--panel); }
.set-nav a.on {   color: var(--accent);  }
.set-body { display: grid; gap: 14px; }
.set-h { margin-bottom: 12px; }
.set-h h2 { margin: 0 0 2px; font-size: 18px; }
.set-h p { margin: 0; }
.look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 12px 0; }
.look { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; background: rgba(255,255,255,.03); border: 1px solid var(--line-soft); }
.ref-how { display: grid; gap: 8px; margin-bottom: 14px; }
.ref-how div { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ref-how i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-weight: 800; font-size: 12px; color: #111; background: var(--accent); }
.invite-card .ref-stats { grid-template-columns: repeat(4, 1fr); }
.acct { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.acct code { font-size: 11px; padding: 1px 5px; border-radius: 4px; background: var(--panel-2); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; margin: 0 0 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.data-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.data-row:first-of-type { border-top: 0; padding-top: 0; }
.data-row > div { flex: 1; }
.data-row p { margin: 2px 0 0; }
.data-row.danger b { color: #ff9b9b; }
.gear { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); }
.gear svg { width: 18px; height: 18px; fill: currentColor; }
.gear:hover { color: var(--text); background: var(--panel); }
@media (max-width: 760px) {
  .settings-wrap { grid-template-columns: 1fr; gap: 12px; }
  .set-nav { position: static; display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .set-nav a { flex: none; padding: 7px 12px; border-color: var(--line-soft); border-radius: 999px; }
  .set-nav a small, .set-nav a svg { display: none; }
  .set-nav a.on { box-shadow: none; border-color: var(--accent); }
  .invite-card .ref-stats { grid-template-columns: repeat(2, 1fr); }
  .data-row { flex-direction: column; align-items: stretch; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
}
@media (max-width: 640px) { .gear { display: none; } }

/* --- badge rarity --- */
.medal.t-common, .fb.t-common { --c1: #9aa3b5; --c2: #4b5263; --fg: #0d1016; }
.medal.t-rare, .fb.t-rare { --c1: #7fb2ff; --c2: #2c57b8; --fg: #fff; }
.medal.t-epic, .fb.t-epic { --c1: #c9a8ff; --c2: #6d3fd6; --fg: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 0 12px rgba(160,110,255,.55); }
.medal.t-legendary, .fb.t-legendary { --c1: #fff1b8; --c2: #d99a14; --fg: #3a2600; position: relative; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 0 0 14px rgba(255,190,60,.65); }
.medal.t-legendary::after, .fb.t-legendary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%); transform: translateX(-130%); animation: shine 3s ease-in-out infinite; pointer-events: none; }
.medal.t-mythic, .fb.t-mythic { --fg: #fff; background: conic-gradient(from 0deg, #ff5c7a, #ff8a3d, #9be15d, #22d3ee, #b48cff, #ff5c7a); animation: spinbg 5s linear infinite; box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 0 16px rgba(180,140,255,.7); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.medal.t-mythic svg, .fb.t-mythic svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)); }
.medal.t-mod, .fb.t-mod { --c1: #3b82f6; --c2: #22d3ee; --fg: #fff; }
.medal.more { color: var(--text); background: var(--panel-2); padding: 0 10px; font-size: 12px; font-weight: 700; }
.rcount { margin-left: 8px;   }
.rlabel { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.r-common { color: #9aa3b5; } .r-rare { color: #7fb2ff; } .r-epic { color: #c9a8ff; } .r-legendary { color: #ffd76a; } .r-mythic { color: #ff9ad5; } .r-staff { color: #ff7aa2; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));  }
.bcard { display: flex; align-items: center; gap: 10px;   border: 1px solid var(--line-soft); background: var(--panel); }
.bcard > div:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.bcard b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcard small { font-size: 11px; color: var(--muted); }
.bcard .bmeta { display: grid; justify-items: end; text-align: right; gap: 1px; }
.bcard.r-epic { border-color: rgba(160,110,255,.35); }
.bcard.r-legendary { border-color: rgba(255,200,80,.45); background-image: linear-gradient(180deg, rgba(255,215,106,.06), transparent 60%); }
.bcard.r-mythic { border-color: rgba(255,154,213,.5); background-image: linear-gradient(120deg, rgba(255,92,122,.08), rgba(34,211,238,.06), rgba(180,140,255,.08)); }
.bcard { color: inherit; }
.bcard .medal { flex: none; }
.fpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.fpick form { margin: 0; }
.fopt { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--panel-2); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.fopt span:last-child { display: grid; min-width: 0; }
.fopt b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fopt:hover { border-color: #33404f; }

.fopt .medal { flex: none; }

/* --- getting started --- */
.starter { border-color: rgba(255,138,61,.4); background-image: radial-gradient(300px 120px at 100% 0%, rgba(255,138,61,.14), transparent 70%); }
.steps-list { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 4px; }
.steps-list a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 13px; }
.steps-list a:hover { background: rgba(255,255,255,.04); }
.steps-list .chk { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); font-size: 11px; font-weight: 800; color: #111; }
.steps-list li.done .chk { background: var(--ok); border-color: var(--ok); }
.steps-list li.done a { color: var(--muted); text-decoration: line-through; }
.btn[disabled] { opacity: .55; cursor: default; }

/* --- event hub --- */
.hub-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px;   
   transition: transform .15s; }

.hub-banner b { font-size: 15px; }
.hub-banner .hb-go { margin-left: auto; color: var(--accent); font-weight: 700; font-size: 13px; }
.hubhead { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 10px; padding: 20px; border-radius: 14px; border: 1px solid var(--line-soft);
  background: radial-gradient(500px 200px at 0% 0%, rgba(76,141,255,.18), transparent 70%), var(--panel); }
.hubhead.big { background: radial-gradient(600px 240px at 0% 0%, rgba(255,138,61,.22), transparent 70%), radial-gradient(500px 200px at 100% 100%, rgba(161,76,255,.16), transparent 70%), var(--panel); border-color: rgba(255,138,61,.35); }
.hubhead > div:first-child { flex: 1; min-width: 240px; }
.hubhead h1 { margin: 8px 0 2px; font-size: 26px; }
.hubhead p { margin: 0; }
.hubstats { display: flex; gap: 20px; }
.hubstats div { display: grid; text-align: right; }
.hubstats b {  font-variant-numeric: tabular-nums; }
.hubstats span { font-size: 11px; color: var(--muted); }
.champ-banner { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255,215,106,.5);  }
.champ-banner svg { width: 22px; height: 22px;  flex: none; }
.mev a:hover, .hub-link:hover { color: var(--accent); }
.hub-link { font-size: 13px; font-weight: 600; color: var(--accent); margin-left: 8px; }

/* --- notifications bell --- */
.bell-wrap { position: relative; }
.bell { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 0; background: none; color: var(--muted); }
.bell svg { width: 19px; height: 19px; fill: currentColor; }
.bell:hover { color: var(--text); background: var(--panel); }
.bellcnt { position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--err); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.np { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 340px; max-height: 70vh; overflow-y: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); box-shadow: 0 20px 50px -16px rgba(0,0,0,.85); }
.np.open { display: block; }
.np-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.np-list { list-style: none; margin: 0; padding: 4px; }
.np-list a { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 8px; font-size: 13px; }
.np-list a:hover { background: rgba(255,255,255,.04); }
.np-list svg { width: 18px; height: 18px; fill: var(--accent); flex: none; margin-top: 1px; }
.np-list span { display: grid; gap: 1px; }
.np-list small { color: var(--muted); font-size: 11px; }
.np-list li.unread a { background: rgba(255,138,61,.06); }
@media (max-width: 640px) { .np { position: fixed; left: 8px; right: 8px; top: 60px; width: auto; } }

/* --- follows, share, events --- */
.fcounts { margin-top: 4px; color: rgba(255,255,255,.75); }
.share-mini { float: right; margin-left: 8px; font-weight: 700; color: var(--accent); }
.share-page { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 22px; }
.share-img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line-soft);  }
.share-side { display: grid; gap: 12px; justify-items: start; }
.share-side h1 { margin: 0;  }
.share-side p { margin: 0; }
.share-side .invite { width: 100%; }
@media (max-width: 760px) { .share-page { grid-template-columns: 1fr; } }

.boost { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.boost svg { width: 20px; height: 20px;  flex: none; }
.boost span { display: grid; }
.challenge { padding: 8px 0; border-top: 1px solid var(--line-soft); }
.challenge:first-of-type { border-top: 0; }
.evform .ch-only { display: none; }
.evform.is-challenge .ch-only { display: grid; }
.form select { padding: 7px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }

/* --- admin event form --- */
.evf { display: grid; gap: 16px; padding: 18px 20px; }
.evf-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.evf-h h2 { margin: 0; font-size: 18px; }
.evf-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 16px; align-items: start; border: 0; padding: 0; margin: 0; min-width: 0; }
.evf-row > :not(.evf-l) { grid-column: 2; }
.evf-l { font-size: 13px; font-weight: 700; padding-top: 9px; color: var(--muted); }
.in { width: 100%; box-sizing: border-box; height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
select.in { padding-right: 6px; }
.in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,138,61,.15); }
.evf-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tcard { position: relative; display: grid; gap: 3px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--panel-2); cursor: pointer; }
.tcard input { position: absolute; opacity: 0; pointer-events: none; }
.tcard b { font-size: 13px; }
.tcard small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.tcard:hover { border-color: #33404f; }
.tcard:has(input:checked) { border-color: var(--accent);   }
.evf-when, .evf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.evf-when label, .evf-grid label { display: grid; gap: 4px; min-width: 0; }
.evf-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.evf-ch { display: none; }
.evf.is-challenge .evf-ch { display: grid; }
.evf-foot { display: flex; align-items: center; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.evf-sum { flex: 1; margin: 0; }
@media (max-width: 760px) {
  .evf-row { grid-template-columns: 1fr; }
  .evf-row > :not(.evf-l) { grid-column: 1; }
  .evf-l { padding-top: 0; }
  .evf-types, .evf-when, .evf-grid { grid-template-columns: 1fr; }
  .evf-foot { flex-direction: column; align-items: stretch; }
}

/* --- browser alert state --- */
.alert-state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.set-sub .alert-state { padding: 8px 0 0; border: 0; }
.as-label { color: var(--muted); }
.as { font-weight: 700; padding: 1px 8px; border-radius: 999px; font-size: 12px; }
.as-on { color: var(--ok); background: rgba(47,191,113,.14); }
.as-off { color: var(--muted); background: rgba(255,255,255,.06); }
.as-blocked { color: var(--err); background: rgba(255,92,92,.12); }
.alert-state .btn { margin-left: auto; }
.set-sub { margin: 14px 0; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.set-sub p { margin: 2px 0 0; }

.cellrow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cellrow .tag { margin: 0; flex: none; }
.mgrid.tight > aside { margin-top: 0; }

/* ======================= Redesign L "gaming platform" (2026-11): shell + home =======================
   Blue-grey slate, one orange accent for actions and live energy, gold only on the coin itself,
   rounded panels, odds as bold neutral chips. The spotlight's glowing edge is the one loud element. */
:root { --line-soft: #1F2732; --glass: rgba(14,18,25,.88); --coin: #F5C542; --r-lg: 14px; }
body { background: radial-gradient(900px 420px at 50% -120px, rgba(255,138,61,.07), transparent 70%), var(--bg); background-attachment: scroll; }
body::before { display: none; }
.list, .card, table, .stats div, .ach, .item, .mhead, .thead, .hero { background-image: none; box-shadow: none; }
label.pick:hover, button.pkb:hover, label.opt:hover { transform: none; box-shadow: none; }
#live + .list { box-shadow: none; border-color: rgba(255,92,92,.35); }
h1, h2, h3 { letter-spacing: -.025em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* buttons */
.btn { border-radius: 8px; padding: 7px 13px; }
.btn.primary { color: #1f0e02; font-weight: 700; box-shadow: none; }
.btn.primary:hover { filter: none; background: #ff9b57; border-color: #ff9b57; }
.btn.primary.lg { padding: 11px 22px; font-size: 15px; border-radius: 10px; }
.btn.bonus { border-radius: 8px; }

/* top bar */
.top { background: var(--glass); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { height: 60px; }
.brand { font-size: 16px; letter-spacing: -.02em; }
.brand em { font-style: normal; color: inherit; }
.nav a { padding: 7px 12px; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: var(--panel); }
.nav a.on { background: var(--panel-2); color: var(--text); }
.coins { border-radius: 8px; background: var(--panel-2); border-color: transparent; padding: 5px 11px; }
.coins::before { background: var(--coin); box-shadow: none; }

/* logged-out hero */
.hero { margin: 34px 0 6px; padding: 0 0 26px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; align-items: flex-end; gap: 40px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; max-width: 16ch; margin: 0 0 12px; }
.hero p { max-width: 54ch; font-size: 15px; }
.hero p b { color: var(--text); }
.hero-cta { justify-items: start; text-align: left; }

/* event hub strip */
.hub-banner { border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); padding: 12px 16px; }
.hub-banner:hover { transform: none; border-color: rgba(255,138,61,.5); }
.hub-banner .spot-tag { background: rgba(255,138,61,.14); color: var(--accent); }

/* spotlight: glowing orange edge (gradient border), slate inside */
.bento { margin-top: 20px; }
.spot { border: 1px solid transparent; border-radius: var(--r-lg); padding: 18px 20px;
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
              linear-gradient(120deg, rgba(255,138,61,.75), rgba(232,237,244,.06) 40%, rgba(232,237,244,.06) 60%, rgba(255,138,61,.4)) border-box;
  box-shadow: 0 24px 60px -36px rgba(255,138,61,.45); transition: box-shadow .2s; }
.spot:hover { transform: none; box-shadow: 0 24px 60px -30px rgba(255,138,61,.6); }
.spot-tag { background: rgba(255,138,61,.14); color: var(--accent); letter-spacing: 0; text-transform: none; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.spot-teams { margin: 16px 0 14px; }
.st img, .st .ini { width: 64px; height: 64px; filter: none; }
.st .ini { border-radius: 12px; }
.st b { font-size: 18px; letter-spacing: -.02em; }
.st .odds { color: var(--text); background: var(--panel-2); border-radius: 8px; padding: 3px 11px; font-size: 16px; }
.spot-time { font-size: 34px; letter-spacing: -.035em; }
.spot-cd { min-height: 1.4em; }
.spot-cd time.soon { color: var(--accent); }
.split.big {  border-radius: 2px; }

/* side cards */
.card { border-radius: var(--r); border-color: var(--line); }
.card-h b { letter-spacing: -.01em; }
.card-more { color: var(--accent); }
.steps .step i { font-style: normal; }
.stat-tile b { font-size: 22px; }

/* day headings: sentence-case headings, not tracked caps */
.day { margin: 28px 0 10px; font-size: 17px; font-weight: 700; letter-spacing: -.015em; text-transform: none; color: var(--text); display: flex; align-items: center; }
.day .cnt { background: var(--panel-2); color: var(--muted); font-size: 12px; padding: 1px 7px; border-radius: 6px; margin-left: 8px; }

/* match rows */
.list { border-radius: var(--r); border-color: var(--line); }
.row { padding: 12px 14px; }
.when b { font-size: 15px; }
.event .more { color: var(--accent); }
.pick { border-radius: 8px; border-color: transparent; background: var(--panel-2); padding: 9px 11px; }
.pick .odds { color: var(--text); }
label.pick:hover { border-color: #33404f; }
.pick.a:has(input:checked), .pick.b:has(input:checked) { border-color: var(--accent); background: rgba(255,138,61,.10); }
.pick.mine::after { border-radius: 6px; color: #1f0e02; }
.split { border-radius: 2px; }
.slip input[type=number] { border-radius: 8px; }
.chip { border-radius: 8px; }

/* mobile */
@media (max-width: 640px) {
  .tabbar { background: var(--glass); backdrop-filter: blur(12px); }
  .hero { gap: 18px; margin-top: 22px; }
  .spot { padding: 14px 12px; }
  .st img, .st .ini { width: 48px; height: 48px; }
  .st b { font-size: 15px; }
  .spot-time { font-size: 28px; }
  .row { padding: 12px 10px; }
  .sides { gap: 6px; }
  .pick { padding: 8px; gap: 6px; }
  .pick .tm { font-size: 13px; }
  .pick .logo, .pick .ini { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) { .spot, .btn, .pick { transition: none; } }

/* --- L: match page --- */
.back { margin-top: 20px; }
.mhead { margin-top: 12px; padding: 22px 20px 18px; border: 1px solid transparent; border-radius: var(--r-lg);
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
              linear-gradient(120deg, rgba(255,138,61,.75), rgba(232,237,244,.06) 40%, rgba(232,237,244,.06) 60%, rgba(255,138,61,.4)) border-box;
  box-shadow: 0 24px 60px -36px rgba(255,138,61,.45); }
.mev { margin-bottom: 16px; }
.mev a { color: var(--text); font-weight: 600; }
.mteams { gap: 20px; }
.mt { gap: 8px; }
.tlogo { width: 76px; height: 76px; }
.tlogo.ini { border-radius: 16px; font-size: 22px; }
.mt b, .mt .tname { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.mt.w b, .mt.w .tname { color: var(--ok); }
.mmid { min-width: 150px; gap: 6px; }
.mmid .big { font-size: 46px; letter-spacing: -.04em; }
.mmid .big.time { font-size: 40px; }
.mmid .live { color: var(--accent); }
.mmid .live::before { color: var(--err); }
.fm { border-radius: 5px; }
.mgrid > aside { margin-top: 28px; }
.mhead ~ .mgrid .match .when, .mhead ~ .mgrid .match .evrow, .mhead ~ .mgrid .match .maps { display: none; }
.mhead ~ .mgrid .match .row { grid-template-columns: 1fr; }
.mhead ~ .mgrid .match .slip, .mhead ~ .mgrid .match .note { padding-left: 14px; margin-left: 14px; }
.mgrid #mapbet { margin-top: 24px; }
#mapbet .card-h b { font-size: 17px; letter-spacing: -.015em; }
.opt { border-radius: 10px; border-color: transparent; padding: 12px 8px; gap: 3px; }
label.opt:hover { border-color: #33404f; }
.opt .ol { color: var(--muted); font-weight: 500; }
.opt b { color: var(--text); font-size: 20px; letter-spacing: -.02em; }
.opt.a:has(input:checked), .opt.b:has(input:checked) { border-color: var(--accent); background: rgba(255,138,61,.10); }
.brow .pk.a, .brow .pk.b { border-radius: 6px; }
.pkb { border-radius: 8px; border-color: transparent; }
.pkb.a.on, .pkb.b.on { border-color: var(--accent); background: rgba(255,138,61,.12); }
@media (max-width: 640px) {
  .mhead { padding: 16px 12px 14px; }
  .mteams { gap: 8px; }
  .tlogo { width: 52px; height: 52px; }
  .mt b, .mt .tname { font-size: 15px; }
  .mmid { min-width: 0; }
  .mmid .big { font-size: 32px; }
  .mmid .big.time { font-size: 28px; }
  .mmid small { max-width: 92px; text-align: center; font-size: 11px; line-height: 1.35; }
  .opts { grid-template-columns: 1fr 1fr; }
}

/* --- L: tables everywhere (sentence-case headers instead of tracked caps) --- */
table { border-radius: var(--r); border-color: var(--line); }
th { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; background: var(--panel); border-bottom: 1px solid var(--line); }
tbody tr:hover td { background: rgba(232,237,244,.025); }

/* --- L: profile --- */
.profile-head { margin-top: 22px; padding: 26px 24px; border-radius: var(--r-lg); align-items: center; gap: 20px; border-color: var(--line); }
.profile-head::after { background: linear-gradient(90deg, rgba(13,17,23,.75), rgba(13,17,23,.25) 70%); }
.profile-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.035em; margin-bottom: 8px; }
.avatar.xl { width: 92px; height: 92px; border-radius: 18px; border: 0; }
.profile-head .frame > img, .profile-head .frame > .avatar { border-radius: 16px; }
.lvlbar { margin: 0 0 8px; }
.lv-track { height: 6px; background: rgba(232,237,244,.12); }
.lv-track i, .ach-progress i { background: var(--accent); }
.ph-actions { align-self: center; }
.stats { gap: 10px; margin-top: 12px; }
.stats div { border-radius: var(--r); padding: 14px 16px; }
.stats b { font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.chart { border-radius: var(--r); }
.chart .card-h b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.acc-bar { border-radius: 3px; background: rgba(232,237,244,.08); }
.badge-grid { gap: 10px; }
.bcard { border-radius: var(--r); border-color: var(--line); padding: 12px 14px; }
.rcount { font-size: 12px; font-weight: 600; letter-spacing: 0; }
.ach-progress { height: 4px; background: rgba(232,237,244,.08); margin: -2px 0 8px; }
.ach-cat { font-size: 13px; color: var(--text); margin: 18px 0 8px; }
.ach-grid { gap: 10px; }
.ach { border-radius: var(--r); border-color: var(--line); padding: 12px 14px; opacity: .55; }
.ach.got { opacity: 1; border-color: rgba(255,138,61,.5); background: linear-gradient(180deg, rgba(255,138,61,.08), var(--panel) 70%); }
.ach .bar { border-radius: 2px; }
@media (max-width: 640px) {
  .profile-head { flex-wrap: wrap; padding: 18px 16px; gap: 14px; }
  .avatar.xl { width: 68px; height: 68px; border-radius: 14px; }
  .profile-head h1 { font-size: 24px; }
  .ph-actions { width: 100%; flex-wrap: wrap; }
  .stats b { font-size: 20px; }
  .stats div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* --- L: page headings (all pages) --- */
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }

/* --- L: pickem --- */

/* event header: flat slate panel, no gradient/shadow */
.evhead {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: none;
}

/* prize podium: flat neutral, numbers white bold, sentence-case labels */
.pz { border: 1px solid var(--line); background: var(--panel-2); }
.pz.p1, .pz.p2, .pz.p3 { background: var(--panel-2); color: var(--text); }
.pz b { color: var(--text); font-weight: 800; }
.pz span { text-transform: none; letter-spacing: 0; color: var(--muted); }

/* progress ring: sentence-case label, bold number */
.ring span { text-transform: none; letter-spacing: 0; }
.ring b { font-weight: 800; }

/* event tiles: card radius/line, flat selected state */
.evtile { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.evtile:hover { border-color: #33404f; background: var(--panel-2); }
.evtile.on { border-color: var(--accent); background: rgba(255,138,61,.10); }

/* hint callout: flat neutral */
.hint { background: var(--panel-2); border: 1px solid var(--line); }

/* your-standing stats: panel tiles, bold numbers */
.mine-stats div { background: var(--panel-2); }
.mine-stats b { font-weight: 800; }

/* match rows: room for the "Details" link, accent on hover */
.pkline { grid-template-columns: 84px 1fr auto; }
.pkline .more { color: var(--muted); font-size: 12px; padding: 0 2px; }
.pkline .more:hover { color: var(--accent); }

/* event select: input radius */
.evselect select { border-radius: 8px; }

@media (max-width: 640px) {
  .pkline { grid-template-columns: 1fr auto; }
}

/* --- L: leagues --- */

/* logged-out hero: flat slate panel with the one glowing orange edge allowed per page */
.lhero {
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  padding: 24px 24px 22px;
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
              linear-gradient(120deg, rgba(255,138,61,.75), rgba(232,237,244,.06) 40%, rgba(232,237,244,.06) 60%, rgba(255,138,61,.4)) border-box;
  box-shadow: 0 24px 60px -36px rgba(255,138,61,.45);
}
.lhero h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }

/* league cards: flat, no lift, no shadow */
.lcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .15s;
}
.lcard:hover { transform: none; border-color: rgba(255,138,61,.5); box-shadow: none; }
.lc-name { font-weight: 700; letter-spacing: -.015em; }
.stack img, .stack span { border-color: var(--panel); }

/* league page hero: same glowing orange edge as .mhead */
.lhead {
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  padding: 22px 22px 20px;
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
              linear-gradient(120deg, rgba(255,138,61,.75), rgba(232,237,244,.06) 40%, rgba(232,237,244,.06) 60%, rgba(255,138,61,.4)) border-box;
  box-shadow: 0 24px 60px -36px rgba(255,138,61,.45);
}
.lh-main h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.lhead .invite { background: var(--bg); border: 1px solid var(--line); }

/* podium: flat steps instead of gradients, no avatar glow */
.pod.p1 .pod-av { box-shadow: none; }
.pod-step {
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.pod.p1 .pod-step { background: rgba(255,215,106,.12); }
.pod.p2 .pod-step { background: rgba(220,226,236,.08); }
.pod.p3 .pod-step { background: rgba(240,177,131,.10); }

/* inputs inside league forms share the 8px chip radius */


@media (max-width: 640px) {
  .lhero { padding: 18px 16px; }
  .lhead { padding: 16px 14px 14px; }
  .lh-main h1 { font-size: 22px; }
  .lhead .invite { flex-basis: 100%; }
  .podium { gap: 6px; }
  .pod-step { font-size: 16px; }
}

/* --- L: leaderboard + team --- */

/* leaderboard page title (matches profile/match heading scale) */
.head-row { margin: 22px 0 16px; }
.head-row h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.tabs a { font-weight: 500; }
.tabs a.on { font-weight: 600; }

/* team hero — same glowing orange edge as the match header, no blue gradient */
.thead { margin-top: 12px; padding: 22px 20px 18px; border: 1px solid transparent; border-radius: var(--r-lg);
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
              linear-gradient(120deg, rgba(255,138,61,.75), rgba(232,237,244,.06) 40%, rgba(232,237,244,.06) 60%, rgba(255,138,61,.4)) border-box;
  box-shadow: 0 24px 60px -36px rgba(255,138,61,.45); }
.tbig { filter: none; }
.tbig.ini { background: var(--panel-2); color: var(--text); }
.tinfo h1 { font-size: 30px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 10px; }
.tstats { gap: 22px; }
.tstats b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.tstats span { font-size: 12px; }

/* recent form + results as flat lists */
.frow { padding: 7px 0; border-top: 1px solid var(--line); }
.frow:first-child { border-top: 0; }
.results .res:hover { background: rgba(232,237,244,.03); }

@media (max-width: 640px) {
  .head-row { margin-top: 16px; }
  .head-row h1 { font-size: 23px; }
  .thead { padding: 16px 12px 14px; gap: 14px; }
  .tbig { width: 60px; height: 60px; }
  .tinfo h1 { font-size: 22px; }
  .tstats { gap: 14px; }
  .tstats b { font-size: 18px; }
}

/* --- L: shop --- */

/* Today's deal: the shop's one hero, same glowing orange edge as .spot/.mhead */
.deal {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(120deg, rgba(255,138,61,.75), rgba(232,237,244,.06) 40%, rgba(232,237,244,.06) 60%, rgba(255,138,61,.4)) border-box;
  box-shadow: 0 24px 60px -36px rgba(255,138,61,.45);
}
.deal-sw { background: var(--panel-2); }

/* flat item cards: no lift, no rarity glow */
.item:hover { transform: none; }
.item.r-epic, .item.r-legendary { box-shadow: none; background-image: none; }
.item.equipped { outline: none; border-color: var(--accent); background: rgba(255,138,61,.10); }

/* rarity tag: sentence case, not tracked caps */
.rarity { text-transform: capitalize; letter-spacing: 0; font-size: 10px; font-weight: 600; }

/* coin dot is gold, not orange */


/* nav chips */
.shop-nav a { border-radius: 8px; border-color: var(--line); }
.shop-nav a:hover { border-color: var(--accent); }

/* preview helper text */
.shop-top .preview small { color: var(--muted); }

@media (max-width: 640px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .deal { padding: 14px; gap: 10px; }
  .deal-sw { width: 88px; height: 60px; }
}

/* --- L: settings + my bets --- */

/* page headings */
.me-h { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.set-h h2 { font-weight: 700; letter-spacing: -.02em; }

/* selected / chosen states: orange border + tint, no inset bar or ring */
.set-nav a.on { border-color: var(--accent); background: rgba(255,138,61,.10); box-shadow: none; }
.fopt.on { border-color: var(--accent); background: rgba(255,138,61,.10); box-shadow: none; }

/* flat tiles and inputs: panel tokens, no translucent fills or decorative gradients */
.look, .ref-stats div { background: var(--panel-2); border: 1px solid var(--line); }
.teampick label, .fopt { border-color: var(--line); }
.invite-card { background-image: none; }
.field input { border-radius: 8px; }

.acct code, .tag { border-radius: 6px; }

/* dividers */
.data-row, .set-sub { border-top-color: var(--line); }
.alert-state { border-bottom-color: var(--line); }

@media (max-width: 640px) {
  .me-h { font-size: 23px; }
}

/* --- L: hub + legal + share + join + error + side cards --- */

/* event hub hero: flat panel, the one orange glowing edge on the hub page */
.hubhead, .hubhead.big {
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
              linear-gradient(120deg, rgba(255,138,61,.75), rgba(232,237,244,.06) 40%, rgba(232,237,244,.06) 60%, rgba(255,138,61,.4)) border-box;
  box-shadow: 0 24px 60px -36px rgba(255,138,61,.45);
}
.hubhead h1 { font-weight: 800; letter-spacing: -.035em; }
.hubstats b { font-weight: 800; letter-spacing: -.02em; font-size: 24px; }

/* champion banner: accent instead of gold (gold is coin-only) */
.champ-banner { border-color: rgba(255,138,61,.4); background: rgba(255,138,61,.08); }
.champ-banner svg { fill: var(--accent); }

/* legal */
.legal h1 { font-weight: 800; letter-spacing: -.035em; }
.legal h2 { font-weight: 700; letter-spacing: -.02em; }
.legal p, .legal li { color: var(--text); }
.legal p.muted { color: var(--muted); }
.legal-nav a { border-radius: 8px; border-color: var(--line); }
.legal-nav a.on { background: rgba(255,138,61,.10); }
.legal code { border-radius: 6px; }

/* share */
.share-img { box-shadow: none; }
.share-side h1 { font-weight: 800; letter-spacing: -.03em; font-size: 26px; }
.invite code { border-radius: 8px; }

/* join */
.join-card { background: var(--panel); border-color: var(--line); border-radius: var(--r-lg); }
.join-card h1 { font-weight: 800; letter-spacing: -.03em; }

/* error / empty state */


/* side cards: gold coin dot, flat event card, count chips in headers */
.price::before { background: var(--coin); box-shadow: none; }
.events-card { border-color: var(--line); background-image: none; }
.boost svg { fill: var(--accent); }
.card-h .cnt { background: var(--panel-2); color: var(--muted); font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 6px; margin-left: 0; }

@media (max-width: 640px) {
  .hubhead { padding: 16px 14px; }
  .hubhead h1 { font-size: 22px; }
  .hubstats { width: 100%; justify-content: space-between; gap: 12px; }
  .hubstats b { font-size: 20px; }
  .share-side h1 { font-size: 22px; }
  .legal h1 { font-size: 24px; }
  .join-card { margin: 24px auto; padding: 20px 16px; }
}

/* --- L: admin --- */

/* role badges: sentence case, flat, no gradient */
.role { text-transform: none; letter-spacing: 0; font-weight: 700; }
.role.r-admin { background: rgba(255,138,61,.14); color: var(--accent); }
.role.r-mod { background: var(--panel-2); color: var(--muted); }

/* KPI cards: flat panels, big numbers 800 */
.kpi { border-color: var(--line); background: var(--panel); }
.kpi b { font-weight: 800; }
a.kpi:hover { border-color: var(--accent); }

/* selected filter chip */
.chip.on { background: rgba(255,138,61,.10); }

/* small tags + count chips */
.tag { border-radius: 6px; }
.cnt.warn { background: rgba(255,138,61,.14); color: var(--accent); }

/* danger controls on token colours */
.btn.danger { border-color: rgba(255,92,92,.4); color: var(--err); }
.btn.danger:hover { background: rgba(255,92,92,.10); }
.danger-text { color: var(--err) !important; }

/* flat popover, no drop shadow */
.ban-form { box-shadow: none; }

/* event type cards: selected = orange border + tint, no inner ring */
.tcard:has(input:checked) { background: rgba(255,138,61,.10); box-shadow: none; }

/* empty state on tokens */
.empty { border-color: var(--line);  }

@media (max-width: 640px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .umeta { min-width: 0; }
  .ubio { max-width: 100%; }
}

/* --- L: pool split bar, quieter (a full-width saturated bar read like an error line) --- */
.split { height: 2px; gap: 2px; background: none; margin-top: 10px; }
.split .sa, .split .sb { border-radius: 2px; min-width: 0; }
.split .sa { background: rgba(232,237,244,.55); }
.split .sb { background: rgba(232,237,244,.22); }
.split .sa:empty[style*="width:0%"], .split .sb:empty[style*="width:0%"] { display: none; }
.split.big { height: 3px; }
.meta { margin-top: 5px; }

/* --- L: keep dark team logos visible on the dark UI (soft light outline, harmless on bright logos) --- */
.pick .logo, .st img, img.tlogo, .pkb img, .logo-sm, .favteam img, .thead img {
  filter: drop-shadow(0 0 1px rgba(232,237,244,.55)) drop-shadow(0 0 5px rgba(232,237,244,.10));
}

/* --- L: match card (round 2): live edge + pulsing dot, filter attrs, mobile bet-slip sheet --- */
.match.is-live { box-shadow: inset 3px 0 0 var(--err); }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.match.is-live .when .live::before { animation: livePulse 1.5s ease-in-out infinite; }

/* sheet header + picked-team spans hidden by default; shown only inside the mobile sheet */
.sheet-head { display: none; }
.sheet-pick { display: none; }
.chip-row { display: contents; }

@media (max-width: 640px) {
  .match:has(.pick input:checked) .slip {
    position: fixed;
    left: 0; right: 0;
    bottom: calc(62px + env(safe-area-inset-bottom));
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    margin: 0;
    background: var(--panel);
    border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -18px 44px -16px rgba(0, 0, 0, .75);
    animation: sheetUp .22s ease;
  }
  .slip .sheet-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
  form:has(input[name=pick][value="a"]:checked) .slip .sheet-pick-a,
  form:has(input[name=pick][value="b"]:checked) .slip .sheet-pick-b {
    display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; font-weight: 700;
  }
  .sheet-pick b { font-weight: 800; color: var(--text); flex: none; }
  .sheet-close {
    margin-left: auto; flex: none;
    width: 36px; height: 36px; padding: 0;
    display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 8px;
    background: var(--panel-2); color: var(--muted);
    font-size: 20px; line-height: 1; cursor: pointer;
  }
  .sheet-close:hover { color: var(--text); border-color: #33404f; }
  .slip input[type=number] { width: 100%; padding: 12px 14px; font-size: 16px; }
  .slip .chip-row { display: flex; gap: 8px; }
  .slip .chip { flex: 1; padding: 12px 0; font-size: 14px; text-align: center; }
  .slip .win { margin-left: 0; font-size: 13px; }
  .slip .btn.primary { width: 100%; padding: 14px 16px; font-size: 16px; }
}

@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .match.is-live .when .live::before { animation: none; }
  .match:has(.pick input:checked) .slip { animation: none; }
}

/* --- L: r2-layout (bet confirmation, win toast, skeletons, open-bets quick view) --- */

/* Bet placed: card border flashes orange once, then settles. */
.match.bet-flash { box-shadow: inset 0 0 0 2px var(--accent); }

/* Flying gold coin (spawned by JS) and the coins-pill pop. */
.fly-coin { position: fixed; z-index: 60; width: 16px; height: 16px; border-radius: 50%; background: var(--coin); box-shadow: 0 0 8px rgba(245,181,68,.7); pointer-events: none; }
.coins.pop { animation: coins-pop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes coins-pop { 0% { transform: scale(1); } 45% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* Win moment: gold-bordered toast with coin icon and a short confetti burst. */
.win-toast { position: fixed; z-index: 70; top: 72px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: min(92vw, 420px); padding: 12px 16px; border-radius: var(--r); background: var(--panel-2); border: 1px solid var(--coin); box-shadow: 0 16px 40px -16px rgba(0,0,0,.6); animation: win-in .3s ease; }
.win-toast.out { opacity: 0; transform: translateX(-50%) translateY(-6px); transition: opacity .4s, transform .4s; }
.win-coin { width: 22px; height: 22px; flex: none; display: grid; place-items: center; }
.win-coin svg { width: 22px; height: 22px; fill: var(--coin); }
.win-text { font-weight: 700; font-size: 14px; }
@keyframes win-in { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } }
.confetti { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.confetti i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 2px; background: var(--c); opacity: 0; animation: confetti-burst .9s cubic-bezier(.2,.6,.3,1) forwards; }
@keyframes confetti-burst { 0% { transform: translate(-50%,-50%) translate(0,0) rotate(0); opacity: 1; } 100% { transform: translate(-50%,-50%) translate(var(--dx), var(--dy)) rotate(300deg); opacity: 0; } }

/* Bell panel loading skeleton (shown until htmx replaces #np). */
.np-skel { padding: 10px 12px; display: grid; gap: 10px; }
.np-skel span { display: block; height: 14px; border-radius: 6px; background: var(--panel-2); position: relative; overflow: hidden; }
.np-skel span:nth-child(2) { width: 80%; }
.np-skel span:nth-child(3) { width: 60%; }
.np-skel span::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(232,237,244,.08), transparent); animation: skel-shimmer 1.4s infinite; }
@keyframes skel-shimmer { 100% { transform: translateX(100%); } }

/* Open-bets button + dropdown (mirrors .bell / .np). */
.ob-wrap { position: relative; }
.obbtn { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 0; background: none; color: var(--muted); }
.obbtn svg { width: 19px; height: 19px; fill: currentColor; }
.obbtn:hover { color: var(--text); background: var(--panel); }
.obcnt { position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #1f0e02; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.obp { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 340px; max-height: 70vh; overflow-y: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); box-shadow: 0 20px 50px -16px rgba(0,0,0,.85); }
.obp.open { display: block; }
.ob-list { list-style: none; margin: 0; padding: 4px; }
.ob-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px; border-radius: 8px; font-size: 13px; }
.ob-item:hover { background: rgba(255,255,255,.04); }
.ob-main { display: grid; gap: 1px; min-width: 0; }
.ob-main b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-main small { font-size: 11px; }
.ob-nums { display: grid; gap: 1px; text-align: right; flex: none; }
.ob-nums b { font-variant-numeric: tabular-nums; font-weight: 700; }
.ob-nums small { font-size: 11px; }
.ob-item:hover .ob-main b { color: var(--accent); }
.ob-foot { display: block; margin: 4px; padding: 9px 8px; text-align: center; border-top: 1px solid var(--line-soft); color: var(--accent); font-size: 13px; font-weight: 600; border-radius: 8px; }
.ob-foot:hover { background: rgba(255,138,61,.08); }

@media (max-width: 640px) {
  .obp { position: fixed; left: 8px; right: 8px; top: 66px; width: auto; }
  .win-toast { top: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  .np-skel span::after { animation: none; }
  .coins.pop { animation: none; }
}

/* --- L: home filters --- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 4px; }
.fchip {
  appearance: none; border: 1px solid var(--line); background: var(--panel-2);
  color: var(--muted); font-weight: 600; font-size: 13px; padding: 7px 13px;
  border-radius: 8px; cursor: pointer; transition: none;
}
.fchip:hover { border-color: #33404f; color: var(--text); }
.fchip[aria-pressed="true"] { border-color: var(--accent); background: rgba(255,138,61,.10); color: var(--accent); }
.filter-empty {
  margin: 20px 0; padding: 22px 16px; border: 1px dashed var(--line);
  border-radius: var(--r); text-align: center; color: var(--muted);
}
.filter-empty .btn { margin-left: 10px; vertical-align: middle; }
.filtered-out { display: none !important; }

@media (max-width: 640px) {
  .filters { margin: 16px 0 2px; }
  .fchip { font-size: 12px; padding: 6px 11px; }
  .filter-empty { padding: 18px 12px; }
}

/* --- L: empty states --- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 44px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  color: var(--muted);
}
.empty > svg {
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  padding: 11px;
  fill: var(--accent);
  background: rgba(255, 138, 61, .10);
  border: 1px solid rgba(255, 138, 61, .25);
  border-radius: 12px;
  margin-bottom: 10px;
}
.empty > b {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.empty > span {
  font-size: 13px;
  line-height: 1.5;
  max-width: 340px;
}
.empty .btn {
  margin-top: 10px;
}

@media (max-width: 640px) {
  .empty { padding: 36px 20px; }
}

/* --- live header: empty open-bets slot takes no space --- */
.ob-wrap:empty { display: none; }

/* --- L: profiles --- */

/* Steam presence dot (small variant reused in the profile header) */
.pdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex: none; }
.pdot.p-cs { background: var(--accent); }
.pdot.p-on { background: var(--ok); }
.pdot.p-off { background: #3a4554; }
.pdot.sm { width: 9px; height: 9px; vertical-align: 2px; margin-right: 8px; }

/* Steam card under the stats row */
.steam-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.steam-presence { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.steam-presence b { font-weight: 700; letter-spacing: -.01em; }
.steam-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: 13px; }
.steam-badge { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font-weight: 700; padding: 2px 9px; border-radius: 6px; }
.steam-card .acc { color: var(--accent); font-weight: 600; }

/* settings: checkbox row + vanity prefix */
.chk { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; cursor: pointer; }
.chk input { margin-top: 3px; flex: none; accent-color: var(--accent); width: 16px; height: 16px; }
.chk b { display: block; font-size: 14px; }
.chk small { display: block; }
.vanity-wrap { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); overflow: hidden; }
.vanity-prefix { padding: 9px 11px; color: var(--muted); border-right: 1px solid var(--line); background: var(--panel); white-space: nowrap; font-size: 13px; }
.vanity-wrap input { flex: 1; min-width: 0; padding: 9px 11px; border: 0; background: transparent; color: var(--text); }

@media (max-width: 640px) {
  .steam-meta { gap: 6px 12px; }
  .vanity-wrap { flex-direction: column; align-items: stretch; }
  .vanity-prefix { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* --- L: profile v2 (banner hero with Steam integrated, stat strip, two-column body) --- */
.phero { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); overflow: hidden; }
.phero-banner { height: 132px; position: relative; }
.phero-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20,26,34,.85)); }
.phero-body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; padding: 0 24px 18px; }
.phero-av { position: relative; margin-top: -52px; align-self: start; border-radius: 22px; }
.phero-av .avatar.xl { width: 112px; height: 112px; border-radius: 20px; border: 4px solid var(--panel); background: var(--panel-2); }
.phero-av.frame { padding: 4px; border-radius: 24px; }
.phero-av.frame .avatar.xl { border: 0; }
.av-dot { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; border: 4px solid var(--panel); z-index: 2; }
.av-dot.p-on, .pdot.p-on { background: var(--ok); }
.av-dot.p-cs, .pdot.p-cs { background: var(--accent); }
.pdot.p-off { background: var(--muted); }
.pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.phero-main { padding-top: 14px; min-width: 0; }
.phero-main h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.035em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.phero-main .bio { margin: 6px 0 0; font-style: normal; color: var(--muted); font-size: 14px; max-width: 60ch; }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pchip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 8px; background: var(--panel-2); color: var(--muted); font-size: 13px; white-space: nowrap; }
.pchip b { color: var(--text); font-weight: 700; }
.pchip.live { color: var(--accent); background: rgba(255,138,61,.12); font-weight: 600; }
.pchip.live .pdot { animation: blink 1.4s infinite; }
.pchip.favteam { color: var(--text); }
.pchip.favteam img { width: 16px; height: 16px; object-fit: contain; }
a.pchip:hover { color: var(--text); background: #263040; }
.pchip.steam-link { color: var(--accent); }
.phero-note { margin: 8px 0 0; }
.phero-main .medals { margin-top: 12px; }
.phero-side { padding-top: 14px; display: grid; justify-items: end; align-content: start; gap: 10px; }
.phero-side .ph-actions { align-self: auto; }
.pfollow { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.pfollow b { color: var(--text); }
.phero-level { display: flex; align-items: center; gap: 10px; padding: 0 24px 16px; }
.phero-level .lv-track { flex: 1; max-width: 420px; }
.phero-level small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pstats { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); }
.pstats div { padding: 14px 18px; border-left: 1px solid var(--line); display: grid; gap: 2px; }
.pstats div:first-child { border-left: 0; }
.pstats span { font-size: 12px; color: var(--muted); }
.pstats b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pstats .coin-num { display: inline-flex; align-items: center; gap: 6px; }
.pstats .coin-num::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--coin); }
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.pside { display: grid; gap: 12px; margin-top: 28px; position: sticky; top: 76px; }
.ach-sum .ach-progress { margin: 4px 0 8px; }
.ach-sum p { margin: 0 0 10px; }
.ach-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.ach-row > span:last-child { display: grid; min-width: 0; }
.ach-row b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ach-row small { font-size: 11px; }
.ach-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,138,61,.12); flex: none; }
.ach-ic svg { width: 16px; height: 16px; fill: var(--accent); }
.ach-all { margin-top: 6px; }
.ach-all > summary { cursor: pointer; list-style: none; }
.ach-all > summary::-webkit-details-marker { display: none; }
.ach-all > summary::after { content: "Show all"; margin-left: auto; font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0; }
.ach-all[open] > summary::after { content: "Hide"; }
@media (max-width: 960px) {
  .pgrid { grid-template-columns: 1fr; gap: 0; }
  .pside { position: static; }
  .pstats { grid-template-columns: repeat(4, 1fr); }
  .pstats div:nth-child(5) { border-left: 0; }
  .pstats div:nth-child(n+5) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .phero-banner { height: 92px; }
  .phero-body { grid-template-columns: 1fr; gap: 0; padding: 0 16px 14px; }
  .phero-av { margin-top: -44px; }
  .phero-av .avatar.xl { width: 88px; height: 88px; border-radius: 18px; }
  .phero-main { padding-top: 10px; }
  .phero-main h1 { font-size: 24px; }
  .phero-side { justify-items: start; padding-top: 12px; }
  .phero-level { padding: 0 16px 14px; }
  .pstats { grid-template-columns: repeat(2, 1fr); }
  .pstats div { border-left: 0; border-top: 1px solid var(--line); padding: 12px 16px; }
  .pstats div:nth-child(even) { border-left: 1px solid var(--line); }
  .pstats div:nth-child(-n+2) { border-top: 0; }
  .pstats div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.phero-banner.banner-default { background: radial-gradient(600px 180px at 85% 0%, rgba(255,138,61,.22), transparent 70%), linear-gradient(120deg, #1d2530, #141a22); }
.phero-av { justify-self: start; width: max-content; }

/* --- L: perks (admin shop access + Steam profile background banner) --- */

/* admin shop tag: shown instead of a price/buy button; equip still works */
.admin-act { display: inline-flex; align-items: center; gap: 6px; }
.admin-tag { font-size: 11px; font-weight: 700; color: var(--accent); background: rgba(255,138,61,.14); padding: 2px 7px; border-radius: 6px; white-space: nowrap; }

/* Steam profile background as the banner */
.phero-banner.steam-bg { height: 200px; background-size: cover; background-position: center; }
.phero-banner.steam-bg .phero-bgvideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.phero-banner.steam-bg::after { z-index: 1; }

@media (max-width: 640px) {
  .phero-banner.steam-bg { height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .phero-banner.steam-bg .phero-bgvideo { display: block; }
}

/* --- L: shop cosmetics (animated) --- */

/* ===== animated name colours (gradient text) ===== */
.pn.rainbow {
  background: linear-gradient(90deg, #ff5c7a, #ff8a3d, #9be15d, #6fd3ff, #b48cff, #ff5c7a);
  background-size: 200% auto;
  animation: pnflow 6s linear infinite;
}
.pn-anim {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-size: 200% auto;
}
.pn-anim.pn-molten    { background-image: linear-gradient(90deg, #ff1f3d, #ff6a00, #ffd54f, #ff6a00, #ff1f3d); animation: pnflow 6s linear infinite; }
.pn-anim.pn-aurora    { background-image: linear-gradient(90deg, #2fbf71, #22d3ee, #7c3aed, #22d3ee, #2fbf71); animation: pnflow 8s linear infinite; }
.pn-anim.pn-toxicwave { background-image: linear-gradient(90deg, #a3e635, #4ade80, #22c55e, #a3e635); animation: pnflow 4s linear infinite, pnbright 3s ease-in-out infinite; }
.pn-anim.pn-frostbite { background-image: linear-gradient(90deg, #ffffff, #8be9ff, #3b82f6, #ffffff); animation: pnflow 8s ease-in-out infinite; }
.pn-anim.pn-vapor     { background-image: linear-gradient(90deg, #ff5c7a, #22d3ee, #7c3aed, #ff5c7a); animation: pnflow 7s linear infinite; }
.pn-anim.pn-pulse     { background-image: linear-gradient(90deg, #ff8a3d, #ffc38a, #ff8a3d); animation: pnflow 3s ease-in-out infinite; }
@keyframes pnflow   { to { background-position: 200% center; } }
@keyframes pnbright { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25); } }

/* ===== animated titles ===== */
.pt-neon  { color: #9ff5ff; background: rgba(34,211,238,.12); text-shadow: 0 0 4px #22d3ee, 0 0 12px #22d3ee; animation: neonFlicker 4s linear infinite; }
.pt-holo  { color: #0d1117; background: linear-gradient(90deg, #ff5c7a, #ff8a3d, #9be15d, #22d3ee, #b48cff, #ff5c7a); background-size: 300% auto; animation: pnflow 5s linear infinite; }
.pt-scope { position: relative; overflow: hidden; }
.pt-scope::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 34%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-160%); animation: scopeSweep 2.8s ease-in-out infinite; pointer-events: none; }
.pt-fire  { color: #1a0505; background: linear-gradient(90deg, #ff1f3d, #ff6a00, #ffd54f, #ff1f3d); background-size: 200% auto; animation: pnflow 4s linear infinite; box-shadow: 0 0 10px rgba(255,100,0,.4); }
.pt-gold  { color: #3a2600; background: linear-gradient(90deg, #fff1b8, #f5c542, #a86b00, #fff1b8); background-size: 200% auto; animation: pnflow 5s linear infinite; box-shadow: 0 0 10px rgba(255,190,60,.45); }
.pt-plain { color: #c9ced8; background: rgba(150,160,180,.16); }
@keyframes neonFlicker { 0%, 7%, 9%, 60%, 100% { opacity: 1; } 8% { opacity: .4; } 61% { opacity: .55; } 62% { opacity: 1; } }
@keyframes scopeSweep  { 0% { transform: translateX(-160%); } 55%, 100% { transform: translateX(320%); } }

/* ===== new name effects ===== */
.fx-neon .pn { text-shadow: 0 0 5px currentColor, 0 0 12px currentColor; animation: neonDim 3.5s linear infinite; }
.fx-holo .pn { background: linear-gradient(90deg, #ff5c7a, #ff8a3d, #9be15d, #22d3ee, #b48cff, #ff5c7a); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: pnflow 5s linear infinite; }
.fx-electric::before, .fx-electric::after { content: attr(data-t); position: absolute; inset: 0; font-weight: 700; pointer-events: none; }
.fx-electric::before { color: #7cc4ff; animation: crackle 1.6s steps(1) infinite; }
.fx-electric::after  { color: #ffffff; animation: crackle 1.6s steps(1) infinite reverse; }
.fx-pulse  { animation: heartbeat 2.4s ease-in-out infinite; }
.fx-shadow .pn { animation: shadowStep 3.2s ease-in-out infinite; }
@keyframes neonDim   { 0%, 6%, 8%, 58%, 100% { opacity: 1; } 7% { opacity: .55; } 59% { opacity: .6; } 60% { opacity: 1; } }
@keyframes crackle   { 0%, 82%, 100% { transform: translate(0); opacity: 0; } 84% { transform: translate(-1px, 1px); opacity: .6; } 88% { transform: translate(1px, -1px); opacity: .5; } 92% { transform: translate(-1px, -1px); opacity: .6; } }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.06); } 28% { transform: scale(1); } 42% { transform: scale(1.06); } 56% { transform: scale(1); } }
@keyframes shadowStep { 0%, 100% { text-shadow: 1px 2px 0 rgba(0,0,0,.4); } 50% { text-shadow: 3px 5px 3px rgba(0,0,0,.7); } }

/* ===== new frames ===== */
.frame-orbit { background: rgba(34,211,238,.12); }
.frame-orbit::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: conic-gradient(from 0deg, #22d3ee 0 40deg, transparent 40deg 360deg); animation: frameSpin 3s linear infinite; }
.frame-pulse { background: linear-gradient(135deg, #ff8a3d, #ffb066); }
.frame-pulse::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(255,138,61,.7); animation: framePulse 2s ease-out infinite; }
.frame-bomb { background: linear-gradient(135deg, #ff1f3d, #7a0d1f); }
.frame-bomb::after { content: ""; position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; border-radius: 50%; background: #ff1f3d; box-shadow: 0 0 8px #ff1f3d; animation: ledBlink 1.1s steps(2) infinite; }
@keyframes frameSpin  { to { transform: rotate(360deg); } }
@keyframes framePulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes ledBlink   { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ===== new banners ===== */
.banner-dust { background: linear-gradient(120deg, #2a1c0e, #7a5a2e 40%, #d9a45b 80%, #2a1c0e); background-size: 200% 200%; animation: dustDrift 14s ease-in-out infinite; }
.banner-nightmarket { position: relative; isolation: isolate; background: #0d0f1a; }
.banner-nightmarket::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 22% 22%, rgba(255,61,158,.6), transparent 45%), radial-gradient(circle at 78% 78%, rgba(34,211,238,.55), transparent 45%); animation: nightPulse 5s ease-in-out infinite; }
.banner-radar { position: relative; isolation: isolate; background: radial-gradient(circle, #0a2417, #06120c 70%); }
.banner-radar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: conic-gradient(from 0deg, rgba(47,191,113,.5) 0 40deg, transparent 40deg 360deg); animation: frameSpin 4s linear infinite; }
@keyframes dustDrift  { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes nightPulse { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }

/* ===== animated tag in the shop grid ===== */
.item-tags { position: absolute; top: 7px; left: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; }
.item-tags .rarity { position: static; opacity: 1; }
.anim-tag { padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 700; color: var(--accent); background: rgba(255,138,61,.12); border: 1px solid rgba(255,138,61,.35); }

.pn.rainbow { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.frame-orbit { background: rgba(34,211,238,.3); }
.frame-orbit::before { filter: drop-shadow(0 0 4px #22d3ee); }
.swatch .avatar.ph { display: grid; place-items: center; border-radius: 50%; background: var(--panel-2); color: var(--muted); font-weight: 700; font-size: 15px; }

/* --- L: shop cards v2 (tags in flow, inset preview, name above action; nothing overlaps) --- */
.shop-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.item { padding: 10px; gap: 10px; border-radius: var(--r); }
.item-tags { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-height: 20px; }
.item-tags > * { position: static; display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; }
.item-tags .rarity { padding-left: 0; font-weight: 700; text-transform: capitalize; letter-spacing: 0; opacity: 1; }
.item-tags .rarity::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; }
.item.r-common .rarity { color: #9aa3b5; }
.item.r-rare .rarity { color: #7fb2ff; }
.item.r-epic .rarity { color: #c9a8ff; }
.item.r-legendary .rarity { color: #ffd76a; }
.lvl-tag { background: var(--panel-2); color: var(--muted); }
.item-tags .anim-tag { border: 0; background: rgba(255,138,61,.12); color: var(--accent); }
.own-tag { background: rgba(76,195,138,.12); color: var(--ok); margin-left: auto; }
.own-tag.on { background: rgba(255,138,61,.16); color: var(--accent); }
.item-tags .deal-tag { margin-left: auto; background: var(--accent); color: #1f0e02; font-weight: 800; }
.item.owned:not(.equipped) .swatch::after { content: none; }
.item .swatch { height: 92px; border-radius: 10px; padding: 10px; overflow: hidden; }
.item .swatch.k-banner { padding: 0; }
.item .swatch.k-banner .bswatch { border-radius: 10px; }
.item-foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 0; }
.item-foot b { font-size: 14px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; overflow-wrap: anywhere; }
.item-foot form, .item-foot .admin-act, .item-foot > .price, .item-foot .lock { justify-self: stretch; }
.item-foot form { margin: 0; }
.item-foot form .btn { width: 100%; justify-content: center; }
.item-foot > .price { justify-content: flex-start; }
.item-foot .admin-act { display: flex; justify-content: space-between; }
.item-foot .admin-act form { flex: 1; max-width: 60%; }
.item-foot .lock { display: flex; align-items: center; justify-content: center; height: 30px; border-radius: 8px; background: var(--panel-2); }
.item.r-legendary { border-color: rgba(255,215,106,.4); }
.item.r-epic { border-color: rgba(201,168,255,.35); }
.item.r-rare { border-color: rgba(127,178,255,.3); }
.item.equipped { border-color: var(--accent); background: rgba(255,138,61,.08); }
@media (max-width: 640px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .item { padding: 8px; gap: 8px; }
  .item .swatch { height: 76px; }
}
.item { display: grid; grid-template-rows: auto 1fr auto; }
.item .swatch { height: auto; min-height: 92px; }
@media (max-width: 640px) { .item .swatch { min-height: 76px; } }

/* --- L: shop v3 (deal hero, sticky try-on bar with tabs, fixed-size cards) --- */
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 26px 0 16px; }
.shop-head h1 { margin: 0 0 4px; }
.shop-head p { margin: 0; font-size: 13px; max-width: 60ch; }
.shop-wallet { display: grid; justify-items: end; gap: 4px; flex: none; }
.shop-wallet .coins { font-size: 18px; padding: 6px 12px; }

.deal-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border: 1px solid transparent; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
              linear-gradient(120deg, rgba(255,138,61,.75), rgba(232,237,244,.06) 45%, rgba(232,237,244,.06) 60%, rgba(255,138,61,.4)) border-box;
  box-shadow: 0 24px 60px -40px rgba(255,138,61,.5); }
.deal-stage { min-height: 210px; display: grid; place-items: center; background: radial-gradient(420px 220px at 50% 40%, var(--rg, rgba(255,138,61,.16)), transparent 70%), var(--panel-2); padding: 20px; position: relative; overflow: hidden; }
.deal-stage .pn, .deal-stage .fx { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.deal-stage .ptitle { font-size: 18px; padding: 4px 14px; }
.deal-stage .frame .avatar.lg { width: 96px; height: 96px; }
.deal-stage.k-banner { padding: 0; }
.deal-stage.k-banner .bswatch { position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; }
.deal-body { padding: 22px 24px; display: grid; align-content: center; justify-items: start; gap: 6px; }
.deal-chip { font-size: 12px; font-weight: 700; color: var(--accent); background: rgba(255,138,61,.14); padding: 4px 10px; border-radius: 999px; }
.deal-body h2 { margin: 4px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.deal-body p { margin: 0; font-size: 13px; }
.deal-price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.deal-price s { color: var(--muted); font-size: 14px; }
.price.big { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.price.big::before { width: 12px; height: 12px; }
.deal-act { width: 100%; max-width: 260px; margin: 4px 0 2px; }

.shop-bar { position: sticky; top: 60px; z-index: 5; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) auto; align-items: center; gap: 14px;
  margin: 18px 0 6px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(20,26,34,.92); backdrop-filter: blur(12px); }
.tryon { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; height: 52px; padding: 0 12px 0 8px; border-radius: 10px; overflow: hidden; isolation: isolate; }
.tryon::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,17,23,.78), rgba(13,17,23,.35)); z-index: -1; }
.tryon > * { position: relative; }
.to-frame { flex: none; }
.to-frame .avatar.lg { width: 34px; height: 34px; }
.to-frame.frame { padding: 2px; }
.to-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.to-title { flex: none; }
.to-reset { margin-left: auto; flex: none; font-size: 12px; font-weight: 600; color: var(--text); background: rgba(13,17,23,.6); border: 1px solid rgba(232,237,244,.15); border-radius: 6px; padding: 3px 8px; }
.shop-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.shop-tabs::-webkit-scrollbar { display: none; }
.shop-tabs button { flex: none; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 13px; padding: 8px 12px; border-radius: 8px; }
.shop-tabs button:hover { color: var(--text); background: var(--panel-2); }
.shop-tabs button[aria-selected="true"] { color: var(--text); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--accent); }
.shop-filters { display: flex; gap: 6px; }
.shop-filters .fchip { font-size: 12px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--muted); font-weight: 600; white-space: nowrap; }
.shop-filters .fchip[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: rgba(255,138,61,.10); }

.shop-sec-h { display: flex; align-items: center; gap: 8px; margin: 28px 0 12px; font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.shop-sec-h svg { width: 16px; height: 16px; fill: var(--accent); }
.shop-sec-h .cnt { margin-left: 2px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }

.sitem { --rc: #9aa3b5; --rg: rgba(154,163,181,.10); position: relative; display: grid; grid-template-rows: auto auto auto; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); transition: border-color .15s, background .15s; }
.sitem.r-rare { --rc: #7fb2ff; --rg: rgba(127,178,255,.16); }
.sitem.r-epic { --rc: #c9a8ff; --rg: rgba(201,168,255,.18); }
.sitem.r-legendary { --rc: #ffd76a; --rg: rgba(255,215,106,.18); }
.sitem::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 2px; border-radius: 0 0 2px 2px; background: var(--rc); opacity: .85; }
.sitem:hover { border-color: #33404f; }
.sitem.trying { border-color: var(--accent); }
.sitem.equipped { border-color: rgba(255,138,61,.6); background: linear-gradient(180deg, rgba(255,138,61,.07), var(--panel) 60%); }
.sitem[hidden], .shop-sec[hidden] { display: none; }
.sprev { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; width: 100%; padding: 12px; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; color: inherit;
  background: radial-gradient(160px 110px at 50% 45%, var(--rg), transparent 75%), var(--panel-2); }
.sprev:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sprev-in { display: grid; place-items: center; max-width: 100%; }
.sprev .pn, .sprev .fx { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.sprev .ptitle { font-size: 13px; padding: 3px 10px; }
.sprev .frame .avatar.lg, .sprev .frame .avatar.ph { width: 56px; height: 56px; }
.sprev.k-banner { padding: 0; }
.sprev.k-banner .sprev-in, .sprev.k-banner .bswatch { position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; }
.sbadge, .sanim, .slvl { position: absolute; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 700; line-height: 1; backdrop-filter: blur(6px); }
.sbadge svg, .slvl svg { width: 12px; height: 12px; fill: currentColor; }
.sbadge { top: 8px; left: 8px; color: var(--ok); background: rgba(13,17,23,.72); }
.sbadge.on { color: #1f0e02; background: var(--accent); }
.sbadge.deal { color: #1f0e02; background: var(--accent); }
.sanim { top: 8px; right: 8px; width: 22px; padding: 0; justify-content: center; color: var(--accent); background: rgba(13,17,23,.72); }
.sanim svg { width: 13px; height: 13px; fill: currentColor; }
.slvl { bottom: 8px; left: 8px; color: var(--text); background: rgba(13,17,23,.72); }
.slvl.locked { color: var(--muted); }
.sinfo { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.sinfo b { min-width: 0; font-size: 14px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rar { flex: none; font-size: 12px; font-weight: 600; }
.rar.r-common { color: #9aa3b5; } .rar.r-rare { color: #7fb2ff; } .rar.r-epic { color: #c9a8ff; } .rar.r-legendary { color: #ffd76a; }
.sitem form, .deal-act form { margin: 0; }
.btn.act { width: 100%; height: 36px; justify-content: center; border-radius: 8px; font-weight: 700; }
.btn.act.buy { background: var(--panel-2); border-color: transparent; }
.btn.act.buy:hover { border-color: var(--accent); }
.btn.act.buy.off { opacity: .5; }
.btn.act.locked { color: var(--muted); background: transparent; border: 1px dashed var(--line); cursor: default; }
.btn.act.locked svg { width: 13px; height: 13px; fill: currentColor; }
.btn.act.ghost { border-color: var(--line); }
.deal-act .btn.act.buy { background: var(--accent); color: #1f0e02; }
.deal-act .btn.act.buy .price::before { background: #1f0e02; }
.shop-empty { text-align: center; padding: 40px 0; }

@media (max-width: 960px) {
  .shop-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .tryon { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .shop-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .shop-wallet { justify-items: start; }
  .deal-hero { grid-template-columns: 1fr; }
  .deal-stage { min-height: 150px; }
  .deal-stage .pn, .deal-stage .fx { font-size: 26px; }
  .deal-body { padding: 16px; }
  .deal-body h2 { font-size: 22px; }
  .deal-act { max-width: none; }
  .shop-bar { top: 56px; grid-template-columns: 1fr; gap: 8px; padding: 8px; }
  .shop-filters { overflow-x: auto; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sitem { padding: 8px; gap: 8px; }
  .sprev .pn, .sprev .fx { font-size: 16px; }
  .sprev .ptitle { font-size: 11px; padding: 2px 7px; }
  .sprev .frame .avatar.lg, .sprev .frame .avatar.ph { width: 44px; height: 44px; }
  .sinfo { flex-direction: column; gap: 0; }
  .sinfo b { font-size: 13px; max-width: 100%; }
  .btn.act { height: 34px; font-size: 12px; }
}
.deal-body h2 { color: var(--text); }
.deal-stage { min-height: 180px; }
.deal-stage .ptitle { font-size: 22px; padding: 6px 16px; }
.tryon { width: 100%; }
.tryon::before { content: none; }
.to-name { background: rgba(13,17,23,.66); padding: 3px 8px; border-radius: 6px; }
.to-frame .avatar.ph, .sprev .avatar.ph, .deal-stage .avatar.ph { display: grid; place-items: center; border-radius: 50%; background: var(--panel-2); color: var(--muted); font-weight: 700; }
.to-frame .avatar.ph { font-size: 13px; }
.sprev .avatar.ph, .deal-stage .avatar.ph { font-size: 18px; }
.shop-bar { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.shop-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.shop-row .shop-tabs { flex: 0 1 auto; min-width: 0; }
.shop-row .shop-filters { margin-left: auto; flex: none; }
@media (max-width: 960px) { .shop-bar { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .tryon { height: 42px; }
  .to-frame .avatar.lg { width: 28px; height: 28px; }
  .shop-row { overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .shop-row::-webkit-scrollbar { display: none; }
  .shop-row .shop-tabs { overflow: visible; flex: none; }
  .shop-row .shop-filters { margin-left: 0; }
  .shop-tabs button { padding: 7px 10px; }
}

/* --- L: animated banners v2 (layered, sized by banner height via cqh). Only ::before is used: the profile banner keeps its own ::after fade. --- */
.banner-radar, .banner-smoke, .banner-molotov, .banner-grid, .banner-space, .banner-foil { position: relative; overflow: hidden; isolation: isolate; container-type: size; }
.banner-radar::before, .banner-smoke::before, .banner-molotov::before, .banner-grid::before, .banner-space::before, .banner-foil::before,
.banner-radar::after, .banner-molotov::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }

/* Radar: just the sweep. A registered angle drives both the sweep and a mask over the blips, so a blip lights up
   exactly when the sweep passes it and fades with the trail. */
@property --sweep { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
.banner-radar {
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 78% 50%, #0e3a24, #072016 38%, #030b07 75%);
  animation: sweepTurn 4s linear infinite;
}
.banner-radar::before, .banner-radar::after { inset: 0; width: auto; height: auto; transform: none; animation: none; border-radius: 0; box-shadow: none; }
.banner-radar::before {
  background:
    radial-gradient(circle 88cqh at 78% 50%, transparent calc(100% - 2px), rgba(95,227,154,.35) calc(100% - 1px), transparent 100%),
    conic-gradient(from var(--sweep) at 78% 50%, transparent 0 250deg, rgba(95,227,154,.14) 300deg, rgba(95,227,154,.42) 345deg, rgba(120,240,170,.7) 358deg, rgba(210,255,225,.95) 360deg);
  -webkit-mask-image: radial-gradient(circle 88cqh at 78% 50%, #000 calc(100% - 1px), transparent 100%);
  mask-image: radial-gradient(circle 88cqh at 78% 50%, #000 calc(100% - 1px), transparent 100%);
}
.banner-radar::after {
  background:
    radial-gradient(circle 8px at 71% 26%, #eafff1 0 2px, rgba(95,227,154,.75) 3px, transparent),
    radial-gradient(circle 8px at 86% 70%, #eafff1 0 2px, rgba(95,227,154,.75) 3px, transparent),
    radial-gradient(circle 8px at 73% 74%, #ffe2dc 0 2px, rgba(255,90,74,.8) 3px, transparent),
    radial-gradient(circle 8px at 89% 34%, #eafff1 0 2px, rgba(95,227,154,.75) 3px, transparent);
  -webkit-mask-image: conic-gradient(from var(--sweep) at 78% 50%, transparent 0 210deg, rgba(0,0,0,.35) 300deg, #000 360deg);
  mask-image: conic-gradient(from var(--sweep) at 78% 50%, transparent 0 210deg, rgba(0,0,0,.35) 300deg, #000 360deg);
}
@keyframes sweepTurn { to { --sweep: 360deg; } }

/* Smoke Screen: big soft smoke puffs rolling across a dark wall */
.banner-smoke { background: radial-gradient(ellipse at 15% 110%, rgba(120,98,70,.45), transparent 55%), linear-gradient(180deg, #1c1f24, #0f1115); }
.banner-smoke::before {
  inset: -30% -20%;
  background:
    radial-gradient(ellipse 11% 30% at 14% 58%, rgba(236,238,241,.55), rgba(200,204,210,.12) 60%, transparent),
    radial-gradient(ellipse 15% 38% at 30% 42%, rgba(214,218,224,.42), rgba(180,186,194,.1) 60%, transparent),
    radial-gradient(ellipse 10% 26% at 46% 64%, rgba(242,244,246,.5), rgba(210,214,220,.12) 60%, transparent),
    radial-gradient(ellipse 14% 34% at 62% 46%, rgba(220,224,230,.42), rgba(190,196,204,.1) 60%, transparent),
    radial-gradient(ellipse 9% 24% at 76% 60%, rgba(240,242,245,.5), rgba(205,210,216,.12) 60%, transparent),
    radial-gradient(ellipse 13% 32% at 90% 44%, rgba(214,218,224,.4), transparent);
  filter: blur(7px);
  animation: smokeDrift 18s ease-in-out infinite alternate;
}
@keyframes smokeDrift {
  0%   { transform: translateX(-4%) scale(1); }
  50%  { transform: translateX(3%) scale(1.08) translateY(-3%); }
  100% { transform: translateX(6%) scale(1.03); }
}

/* Molotov: three flame layers plus bright cores (one pseudo, several layers with their own sizes and drift) blended
   additively, a glowing bed, and 60 randomly placed embers that rise in a seamless stream (the ember field is drawn
   twice, one field-height apart, and moves exactly one field-height per loop). */
.banner-molotov { background: radial-gradient(ellipse 90% 60% at 50% 112%, #ff7a12 0%, #b3240a 30%, #3a0a04 60%, #0f0303 100%); }
.banner-molotov::before { left: 0; right: 0; bottom: 0; height: min(100%, 230px); mix-blend-mode: screen; background-repeat: repeat-x;
  background-image:
    radial-gradient(ellipse 50% 100% at 50% 100%, rgba(255,250,225,.95), rgba(255,205,90,.7) 35%, transparent 66%),
    radial-gradient(ellipse 50% 100% at 50% 100%, rgba(255,240,190,.9), rgba(255,170,45,.6) 35%, transparent 66%),
    radial-gradient(ellipse 50% 100% at 50% 100%, rgba(255,96,12,.95), rgba(205,34,4,.55) 45%, transparent 72%),
    radial-gradient(ellipse 50% 100% at 50% 100%, rgba(255,128,24,.9), rgba(220,44,6,.5) 45%, transparent 72%),
    radial-gradient(ellipse 50% 100% at 50% 100%, rgba(255,72,0,.85), rgba(170,20,0,.4) 45%, transparent 72%);
  background-size: 38px 44%, 53px 56%, 64px 78%, 86px 100%, 47px 62%;
  background-position: 9px 100%, 30px 100%, 0 100%, 21px 100%, 37px 100%;
  filter: blur(2px);
  animation: flamesA 2.2s ease-in-out infinite alternate;
}
@keyframes flamesA {
  0%   { background-position: 9px 100%, 30px 100%, 0 100%, 21px 100%, 37px 100%;  background-size: 38px 44%, 53px 56%, 64px 78%, 86px 100%, 47px 62%; }
  25%  { background-position: 15px 100%, 22px 100%, 9px 100%, 12px 100%, 48px 100%; background-size: 38px 56%, 53px 46%, 64px 90%, 86px 86%, 47px 74%; }
  50%  { background-position: 4px 100%, 36px 100%, -6px 100%, 30px 100%, 30px 100%; background-size: 38px 40%, 53px 62%, 64px 70%, 86px 96%, 47px 82%; }
  75%  { background-position: 12px 100%, 26px 100%, 3px 100%, 18px 100%, 42px 100%; background-size: 38px 52%, 53px 50%, 64px 84%, 86px 88%, 47px 70%; }
  100% { background-position: 6px 100%, 33px 100%, 5px 100%, 16px 100%, 44px 100%;  background-size: 38px 46%, 53px 58%, 64px 86%, 86px 80%, 47px 66%; }
}
.banner-molotov::after {
  left: 0; bottom: 0; width: 2px; height: 2px; border-radius: 50%; background: transparent;
  mix-blend-mode: normal; filter: none; height: 2px;
  box-shadow:
    663px -77px 0 1px rgba(255,214,140,.95),
    1097px -48px 0 0px rgba(255,214,140,.4),
    1039px -109px 0 0px rgba(255,130,60,.95),
    856px -35px 0 0px rgba(255,196,110,.95),
    869px -30px 0 1px rgba(255,170,80,.95),
    1291px -31px 0 1px rgba(255,130,60,.4),
    101px -113px 0 0px rgba(255,170,80,.4),
    593px -214px 0 0px rgba(255,214,140,.4),
    1169px -157px 0 1px rgba(255,214,140,.85),
    1191px -96px 0 0px rgba(255,196,110,.95),
    1458px -32px 0 1px rgba(255,196,110,.95),
    421px -254px 0 2px rgba(255,130,60,.4),
    1591px -160px 0 1px rgba(255,130,60,.4),
    740px -153px 0 0px rgba(255,170,80,.85),
    167px -153px 0 1px rgba(255,236,190,.55),
    1493px -229px 0 0px rgba(255,214,140,.4),
    241px -214px 0 0px rgba(255,170,80,.7),
    1001px -215px 0 0px rgba(255,196,110,.95),
    1173px -160px 0 0px rgba(255,196,110,.7),
    1017px -233px 0 0px rgba(255,236,190,.95),
    970px -33px 0 0px rgba(255,196,110,.7),
    1395px -228px 0 0px rgba(255,236,190,.55),
    46px -236px 0 0px rgba(255,196,110,.85),
    239px -252px 0 0px rgba(255,236,190,.85),
    264px -126px 0 1px rgba(255,130,60,.55),
    165px -85px 0 1px rgba(255,196,110,.55),
    569px -70px 0 1px rgba(255,236,190,.4),
    1446px -212px 0 0px rgba(255,170,80,.55),
    309px -42px 0 0px rgba(255,170,80,.85),
    1348px -119px 0 0px rgba(255,196,110,.55),
    373px -134px 0 0px rgba(255,170,80,.95),
    858px -189px 0 1px rgba(255,236,190,.4),
    257px -27px 0 1px rgba(255,130,60,.4),
    815px -204px 0 1px rgba(255,130,60,.95),
    1299px -205px 0 0px rgba(255,214,140,.85),
    427px -225px 0 0px rgba(255,236,190,.95),
    1230px -26px 0 0px rgba(255,196,110,.95),
    309px -51px 0 0px rgba(255,214,140,.4),
    144px -106px 0 1px rgba(255,170,80,.55),
    1299px -129px 0 0px rgba(255,236,190,.4),
    971px -62px 0 0px rgba(255,130,60,.55),
    983px -247px 0 0px rgba(255,170,80,.95),
    209px -175px 0 2px rgba(255,130,60,.7),
    1417px -82px 0 1px rgba(255,170,80,.95),
    1081px -185px 0 0px rgba(255,214,140,.4),
    1552px -152px 0 2px rgba(255,236,190,.95),
    1061px -187px 0 0px rgba(255,170,80,.7),
    1090px -257px 0 0px rgba(255,196,110,.85),
    1553px -99px 0 0px rgba(255,170,80,.55),
    409px -252px 0 0px rgba(255,214,140,.95),
    572px -241px 0 0px rgba(255,196,110,.85),
    705px -228px 0 2px rgba(255,236,190,.7),
    164px -112px 0 0px rgba(255,130,60,.85),
    402px -172px 0 0px rgba(255,196,110,.55),
    1249px 0px 0 1px rgba(255,214,140,.7),
    1352px -61px 0 1px rgba(255,130,60,.85),
    365px -222px 0 2px rgba(255,214,140,.7),
    1478px -202px 0 1px rgba(255,214,140,.55),
    1484px -81px 0 0px rgba(255,214,140,.85),
    309px -238px 0 2px rgba(255,196,110,.85),
    663px 183px 0 1px rgba(255,214,140,.95),
    1097px 212px 0 0px rgba(255,214,140,.4),
    1039px 151px 0 0px rgba(255,130,60,.95),
    856px 225px 0 0px rgba(255,196,110,.95),
    869px 230px 0 1px rgba(255,170,80,.95),
    1291px 229px 0 1px rgba(255,130,60,.4),
    101px 147px 0 0px rgba(255,170,80,.4),
    593px 46px 0 0px rgba(255,214,140,.4),
    1169px 103px 0 1px rgba(255,214,140,.85),
    1191px 164px 0 0px rgba(255,196,110,.95),
    1458px 228px 0 1px rgba(255,196,110,.95),
    421px 6px 0 2px rgba(255,130,60,.4),
    1591px 100px 0 1px rgba(255,130,60,.4),
    740px 107px 0 0px rgba(255,170,80,.85),
    167px 107px 0 1px rgba(255,236,190,.55),
    1493px 31px 0 0px rgba(255,214,140,.4),
    241px 46px 0 0px rgba(255,170,80,.7),
    1001px 45px 0 0px rgba(255,196,110,.95),
    1173px 100px 0 0px rgba(255,196,110,.7),
    1017px 27px 0 0px rgba(255,236,190,.95),
    970px 227px 0 0px rgba(255,196,110,.7),
    1395px 32px 0 0px rgba(255,236,190,.55),
    46px 24px 0 0px rgba(255,196,110,.85),
    239px 8px 0 0px rgba(255,236,190,.85),
    264px 134px 0 1px rgba(255,130,60,.55),
    165px 175px 0 1px rgba(255,196,110,.55),
    569px 190px 0 1px rgba(255,236,190,.4),
    1446px 48px 0 0px rgba(255,170,80,.55),
    309px 218px 0 0px rgba(255,170,80,.85),
    1348px 141px 0 0px rgba(255,196,110,.55),
    373px 126px 0 0px rgba(255,170,80,.95),
    858px 71px 0 1px rgba(255,236,190,.4),
    257px 233px 0 1px rgba(255,130,60,.4),
    815px 56px 0 1px rgba(255,130,60,.95),
    1299px 55px 0 0px rgba(255,214,140,.85),
    427px 35px 0 0px rgba(255,236,190,.95),
    1230px 234px 0 0px rgba(255,196,110,.95),
    309px 209px 0 0px rgba(255,214,140,.4),
    144px 154px 0 1px rgba(255,170,80,.55),
    1299px 131px 0 0px rgba(255,236,190,.4),
    971px 198px 0 0px rgba(255,130,60,.55),
    983px 13px 0 0px rgba(255,170,80,.95),
    209px 85px 0 2px rgba(255,130,60,.7),
    1417px 178px 0 1px rgba(255,170,80,.95),
    1081px 75px 0 0px rgba(255,214,140,.4),
    1552px 108px 0 2px rgba(255,236,190,.95),
    1061px 73px 0 0px rgba(255,170,80,.7),
    1090px 3px 0 0px rgba(255,196,110,.85),
    1553px 161px 0 0px rgba(255,170,80,.55),
    409px 8px 0 0px rgba(255,214,140,.95),
    572px 19px 0 0px rgba(255,196,110,.85),
    705px 32px 0 2px rgba(255,236,190,.7),
    164px 148px 0 0px rgba(255,130,60,.85),
    402px 88px 0 0px rgba(255,196,110,.55),
    1249px 260px 0 1px rgba(255,214,140,.7),
    1352px 199px 0 1px rgba(255,130,60,.85),
    365px 38px 0 2px rgba(255,214,140,.7),
    1478px 58px 0 1px rgba(255,214,140,.55),
    1484px 179px 0 0px rgba(255,214,140,.85),
    309px 22px 0 2px rgba(255,196,110,.85);
  animation: embersRise 7s linear infinite;
}
@keyframes embersRise { from { transform: translateY(0); } to { transform: translateY(-260px); } }

/* Neon Grid: starry sky, glowing horizon, big striped sun, thin perspective floor scrolling towards you */
.banner-grid {
  background:
    linear-gradient(180deg, transparent calc(58% - 1px), rgba(255,150,210,.9) calc(58% - 1px) calc(58% + 1px), transparent calc(58% + 1px)),
    radial-gradient(ellipse 70% 14% at 50% 58%, rgba(255,92,168,.55), transparent 70%),
    radial-gradient(circle 1px, rgba(255,255,255,.8), transparent) 0 0 / 83px 37px,
    radial-gradient(circle .8px, rgba(255,220,255,.6), transparent) 29px 13px / 47px 29px,
    linear-gradient(180deg, #08031c 0%, #22093f 34%, #6e1460 56%, #12052a 58%, #05020d 100%);
}
.banner-grid::after {
  content: ""; position: absolute; z-index: -2; pointer-events: none;
  left: 50%; top: 58%; width: 66cqh; height: 33cqh; transform: translate(-50%, -100%);
  border-radius: 33cqh 33cqh 0 0;
  background: linear-gradient(180deg, #fff3b0, #ffb347 42%, #ff4f9a 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0 42%, transparent 42%), repeating-linear-gradient(180deg, #000 0 2.4cqh, transparent 2.4cqh 3.6cqh);
  mask-image: linear-gradient(180deg, #000 0 42%, transparent 42%), repeating-linear-gradient(180deg, #000 0 2.4cqh, transparent 2.4cqh 3.6cqh);
  mask-composite: add;
  filter: drop-shadow(0 0 3cqh rgba(255,92,168,.55));
}
.banner-grid::before {
  z-index: -1;
  left: -60%; right: -60%; top: 58%; bottom: -90%;
  background:
    linear-gradient(90deg, rgba(34,211,238,.5) 0 2px, transparent 2px) 0 0 / 64px 44px repeat,
    linear-gradient(180deg, rgba(255,92,168,.55) 0 2px, transparent 2px) 0 0 / 64px 44px repeat,
    linear-gradient(180deg, #1c0740, #05020d 60%) 0 0 / 100% 100% no-repeat;
  transform: perspective(150px) rotateX(62deg);
  transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%);
  animation: gridRun 2s linear infinite;
}
@keyframes gridRun { from { background-position: 0 0, 0 0, 0 0; } to { background-position: 0 44px, 0 44px, 0 0; } }

/* Deep Space: three parallax star layers at irregular spacing, twinkling bright stars, drifting nebula */
.banner-space {
  background:
    radial-gradient(circle 1.8px, #fff, rgba(255,255,255,.35) 55%, transparent) 0 0 / 137px 83px,
    radial-gradient(circle 1.3px, rgba(215,228,255,1), transparent) 41px 23px / 91px 61px,
    radial-gradient(circle .9px, rgba(255,255,255,.7), transparent) 13px 11px / 59px 47px,
    radial-gradient(circle .7px, rgba(255,240,220,.55), transparent) 37px 29px / 83px 71px,
    radial-gradient(ellipse 60% 80% at 30% 50%, rgba(60,30,120,.5), transparent 70%),
    #04050d;
  animation: starsDrift 60s linear infinite;
}
.banner-space::before {
  inset: -40%;
  background:
    radial-gradient(ellipse 18% 32% at 62% 46%, rgba(255,92,168,.32), transparent 70%),
    radial-gradient(ellipse 22% 38% at 38% 56%, rgba(124,58,237,.45), transparent 70%),
    radial-gradient(ellipse 16% 28% at 50% 50%, rgba(34,211,238,.22), transparent 70%);
  filter: blur(12px);
  animation: nebulaTurn 28s ease-in-out infinite alternate;
}
@keyframes starsDrift { to { background-position: -1096px 0, -728px 23px, -472px 11px, -166px 29px, 0 0, 0 0; } }
@keyframes nebulaTurn { 0% { transform: rotate(-6deg) scale(1); } 100% { transform: rotate(10deg) scale(1.2); } }

/* Holo Foil: brushed silver; the iridescent sheen is a repeating stripe on an oversized layer that moves exactly
   one period per loop, so it glides forever with no jump. */
.banner-foil {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 3px),
    linear-gradient(115deg, rgba(255,140,180,.25), rgba(140,220,255,.25) 50%, rgba(200,160,255,.25)),
    linear-gradient(135deg, #7d8699, #dfe3ec 35%, #6b7385 55%, #d2d7e1 80%, #7a8394);
}
.banner-foil::before {
  top: 0; bottom: 0; left: -484px; right: -484px;
  background: repeating-linear-gradient(115deg,
    transparent 0px, transparent 120px,
    rgba(255,92,122,.75) 165px, rgba(255,214,90,.75) 195px, rgba(120,255,170,.75) 225px, rgba(80,200,255,.75) 255px, rgba(190,120,255,.75) 285px,
    rgba(255,255,255,.85) 300px, transparent 330px, transparent 420px);
  mix-blend-mode: overlay;
  opacity: .85;
  animation: foilGlide 6s linear infinite;
}
@keyframes foilGlide { from { transform: translateX(0); } to { transform: translateX(-463.42px); } }

/* Reduced motion: static, but the shop and profiles keep animating so people see what they own */
@media (prefers-reduced-motion: reduce) {
  :root:not(:has(.shop-grid, .phero, .pv-track, .col-grid)) .banner-radar,
  :root:not(:has(.shop-grid, .phero, .pv-track, .col-grid)) .banner-smoke::before, :root:not(:has(.shop-grid, .phero, .pv-track, .col-grid)) .banner-molotov, :root:not(:has(.shop-grid, .phero, .pv-track, .col-grid)) .banner-molotov::before, :root:not(:has(.shop-grid, .phero, .pv-track, .col-grid)) .banner-molotov::after,
  :root:not(:has(.shop-grid, .phero, .pv-track, .col-grid)) .banner-grid::before, :root:not(:has(.shop-grid, .phero, .pv-track, .col-grid)) .banner-space, :root:not(:has(.shop-grid, .phero, .pv-track, .col-grid)) .banner-space::before,
  :root:not(:has(.shop-grid, .phero, .pv-track, .col-grid)) .banner-foil::before { animation: none !important; }
}

/* profile banner: fade into the panel with a mask so cosmetic banners keep both pseudo elements */
.phero-banner::after { content: none; }
.phero-banner { -webkit-mask-image: linear-gradient(180deg, #000 45%, rgba(0,0,0,.25)); mask-image: linear-gradient(180deg, #000 45%, rgba(0,0,0,.25)); }

/* --- L: profile hero, banner fills the whole box (behind a readability scrim) --- */
.phero { position: relative; isolation: isolate; }
.phero-banner, .phero-banner.steam-bg { position: absolute; inset: 0; height: auto; z-index: -2; -webkit-mask-image: none; mask-image: none; }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(13,17,23,.05) 0%, rgba(13,17,23,.35) 30%, rgba(13,17,23,.78) 62%, rgba(13,17,23,.9) 100%); }
.phero-body { padding-top: 104px; }
.phero-av { margin-top: 0; }
.phero-av .avatar.xl { border-color: rgba(13,17,23,.6); }
.av-dot { border-color: #10151c; }
.phero-main h1 { text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.phero-main .bio, .pfollow { color: rgba(232,237,244,.78); }
.pchip { background: rgba(13,17,23,.55); backdrop-filter: blur(6px); }
a.pchip:hover { background: rgba(13,17,23,.75); }
.pstats { background: rgba(13,17,23,.6); backdrop-filter: blur(8px); border-top-color: rgba(232,237,244,.08); }
.pstats div { border-left-color: rgba(232,237,244,.08); }
@media (max-width: 640px) {
  .phero-body { padding-top: 72px; }
  .phero-av { margin-top: 0; }
}
.phero::before { background: linear-gradient(180deg, transparent 0%, rgba(13,17,23,.15) 35%, rgba(13,17,23,.5) 65%, rgba(13,17,23,.68) 100%); }
.pstats { background: rgba(13,17,23,.42); }

/* --- Neon v2: a lit tube instead of a blinking word. Steady layered glow that hums softly, plus one short,
   realistic double flicker every ~9 seconds (opacity steps, so it snaps like a real tube). --- */
.fx-neon .pn {
  text-shadow: 0 0 1px rgba(255,255,255,.9), 0 0 3px currentColor, 0 0 8px currentColor, 0 0 18px currentColor;
  animation: neonHum 2.8s ease-in-out infinite alternate, neonBuzz 9s step-end infinite;
}
.fx-neon .pn:not([style]):not(.pn-anim):not(.rainbow) { color: #7df9ff; }   /* no name colour: classic cyan tube */
.pt-neon {
  color: #c8fbff; background: rgba(34,211,238,.06); border: 1px solid rgba(125,249,255,.75);
  box-shadow: 0 0 6px rgba(34,211,238,.55), inset 0 0 6px rgba(34,211,238,.35);
  text-shadow: 0 0 1px #fff, 0 0 4px #22d3ee, 0 0 10px #22d3ee;
  animation: neonHumBox 2.8s ease-in-out infinite alternate, neonBuzz 11s step-end infinite;
}
@keyframes neonHum {
  from { text-shadow: 0 0 1px rgba(255,255,255,.9), 0 0 3px currentColor, 0 0 7px currentColor, 0 0 15px currentColor; }
  to   { text-shadow: 0 0 1px rgba(255,255,255,.95), 0 0 4px currentColor, 0 0 10px currentColor, 0 0 24px currentColor; }
}
@keyframes neonHumBox {
  from { box-shadow: 0 0 5px rgba(34,211,238,.45), inset 0 0 5px rgba(34,211,238,.3); }
  to   { box-shadow: 0 0 10px rgba(34,211,238,.7), inset 0 0 8px rgba(34,211,238,.45); }
}
@keyframes neonBuzz { 0% { opacity: 1; } 90% { opacity: .45; } 90.6% { opacity: 1; } 92% { opacity: .7; } 92.5% { opacity: 1; } }

/* --- forum signature box (own profile, aside) --- */
.sig-box { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-2); }
.sig-box summary { cursor: pointer; font-weight: 700; }
.sig-preview img { display: block; width: 100%; max-width: 300px; border-radius: 6px; margin: 10px 0; }
.sig-field { margin-top: 10px; }
.sig-field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.sig-row { display: flex; gap: 8px; }
.sig-row input { flex: 1; min-width: 0; width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; color: var(--text); }
.sig-row button { flex: none; background: var(--accent); color: #1b0d02; border: 0; border-radius: 6px; padding: 7px 10px; font-weight: 700; }

/* guests see no Steam chips: drop the empty row */
.pchips:not(:has(*)) { display: none; }

/* --- Season Wrapped v2: banner hero, bento stats with profit curve and win-rate ring, match cards with real logos --- */
.wr { --wr-accent: var(--accent); display: grid; gap: 14px; padding: 18px 0 28px; }
.wr .up { color: var(--ok); }
.wr .down { color: var(--err, #ef4444); }
.wr-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.wr-sub { font-size: 13px; color: var(--muted); line-height: 1.45; }
.wr-big { display: block; font-size: 52px; line-height: 1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wr-mid { display: block; font-size: 26px; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.wr-card { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }

.wr-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; gap: 22px; min-height: 260px; padding: 28px;
  border-radius: var(--r-lg); border: 1px solid var(--line); }
.wr-hero-bg { position: absolute; inset: 0; z-index: -2; }
.wr-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,17,23,.1) 0%, rgba(13,17,23,.55) 45%, rgba(13,17,23,.95)); }
.wr-av { flex: none; position: relative; }
.wr-av .avatar { width: 112px; height: 112px; border-radius: 50%; display: block; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.wr-hero-txt { display: grid; gap: 6px; min-width: 0; }
.wr-kicker { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--wr-accent); font-weight: 800; font-size: 14px; }
.wr-kicker span { color: #c9d1dc; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 12px; }
.wr-hero h1 { margin: 0; font-size: 40px; line-height: 1.05; }
.wr-hero p { margin: 0; color: #c9d1dc; font-size: 15px; }
.wr-switch { position: absolute; top: 16px; right: 16px; }
.wr-switch select { background: rgba(13,17,23,.75); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; backdrop-filter: blur(6px); }

.wr-bento { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.wr-profit { grid-row: span 2; color: var(--ok); }
.wr-profit .wr-label, .wr-profit .wr-sub { color: var(--muted); }
.wr-profit:has(.wr-big.down) { color: var(--err, #ef4444); }
.wr-chart { width: 100%; height: 150px; margin-top: auto; overflow: visible; }
.wr-line { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px currentColor); }
.wr-zero { stroke: rgba(255,255,255,.14); stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.wr-rate { grid-row: span 2; align-items: center; justify-content: space-between; text-align: center; }
.wr-ring { --p: 0; width: 150px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--panel) 78%, transparent 79%), conic-gradient(var(--wr-accent) calc(var(--p) * 1%), var(--panel-2) 0);
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--wr-accent) 35%, transparent)); }
.wr-ring b { font-size: 36px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wr-dots { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: auto; }
.wr-dots i { height: 18px; border-radius: 4px; background: var(--panel-2); }
.wr-dots i.on { background: linear-gradient(180deg, #ffd166, var(--wr-accent)); box-shadow: 0 0 8px color-mix(in srgb, var(--wr-accent) 60%, transparent); }
.wr-pct { height: 8px; border-radius: 999px; background: var(--panel-2); overflow: hidden; margin-top: auto; }
.wr-pct i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--wr-accent), var(--coin)); }

.wr-call { padding: 22px; background: radial-gradient(90% 120% at 50% 0%, color-mix(in srgb, var(--wr-accent) 18%, transparent), transparent 65%), var(--panel); }
.wr-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 8px 0; }
.wr-side { display: grid; justify-items: center; gap: 10px; text-align: center; font-weight: 700; opacity: .55; }
.wr-side.wr-picked { opacity: 1; }
.wr-side.wr-picked .wr-logo, .wr-side.wr-picked .wr-ini { box-shadow: 0 0 0 3px var(--wr-accent), 0 0 26px color-mix(in srgb, var(--wr-accent) 55%, transparent); }
.wr-vs-x { color: var(--muted); font-weight: 800; font-size: 14px; }
.wr-logo, .wr-ini { width: 84px; height: 84px; border-radius: 18px; object-fit: contain; background: var(--panel-2); padding: 10px; box-sizing: border-box; }
.wr-ini { display: grid; place-items: center; font-weight: 800; font-size: 26px; color: #c9d1dc; }
.wr-logo.sm, .wr-ini.sm { width: 34px; height: 34px; border-radius: 9px; padding: 4px; font-size: 12px; }
.wr-logo.lg, .wr-ini.lg { width: 96px; height: 96px; }
.wr-call-foot { display: grid; justify-items: center; gap: 4px; text-align: center; }
.wr-call-foot b { font-size: 28px; font-weight: 800; }

.wr-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wr-duo:empty { display: none; }
.wr-odds .wr-big { color: var(--coin); }
.wr-mini-vs { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.wr-team-bg { position: absolute; z-index: -1; right: -40px; top: 50%; width: 240px; height: 240px; object-fit: contain; transform: translateY(-50%) rotate(-12deg); opacity: .09; filter: blur(1px); }
.wr-team-main { display: flex; align-items: center; gap: 16px; }
.wr-link { font-size: 13px; font-weight: 700; color: var(--wr-accent); margin-top: auto; }

.wr-event { background: linear-gradient(120deg, color-mix(in srgb, var(--wr-accent) 14%, var(--panel)), var(--panel) 60%); }

.wr-share { flex-direction: row; align-items: center; gap: 24px; }
.wr-share-txt { display: grid; gap: 8px; flex: 1; min-width: 0; }
.wr-share-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.wr-share-img { width: min(46%, 440px); border-radius: var(--r); border: 1px solid var(--line); box-shadow: 0 16px 40px -18px rgba(0,0,0,.8); transform: rotate(1.5deg); }

.wr-anim .wr-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.wr-anim .wr-reveal.wr-in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .wr-hero { flex-direction: column; align-items: flex-start; min-height: 0; padding: 22px 18px; padding-top: 56px; }
  .wr-hero h1 { font-size: 30px; }
  .wr-av .avatar { width: 84px; height: 84px; }
  .wr-bento { grid-template-columns: 1fr 1fr; }
  .wr-profit { grid-column: 1 / -1; grid-row: auto; }
  .wr-rate { grid-row: span 2; }
  .wr-ring { width: 120px; }
  .wr-big { font-size: 42px; }
  .wr-duo { grid-template-columns: 1fr; }
  .wr-logo, .wr-ini { width: 64px; height: 64px; }
  .wr-share { flex-direction: column; align-items: stretch; }
  .wr-share-img { width: 100%; transform: none; }
}
.pchip.wrapped { color: var(--accent); border-color: rgba(255,138,61,.35); }

/* --- season pass (free): nav dot and home teaser bar --- */
.pass-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: 2px; box-shadow: 0 0 6px rgba(255,138,61,.8); }
.pass-bar { height: 8px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.pass-bar > div { height: 100%; background: linear-gradient(90deg, var(--accent), #f5b544); border-radius: 999px; }

/* --- season pass exclusive cosmetics: "Season Elite" (orange/gold, premium) --- */
.pn-anim.pn-elite { background-image: linear-gradient(90deg, #ffd54f, #ff8a3d, #fff1b8, #ff8a3d, #ffd54f); animation: pnflow 5s linear infinite, pnbright 3s ease-in-out infinite; }
.pt-elite { color: #2a1c00; background: linear-gradient(90deg, #fff1b8, #f5b544, #ff8a3d, #f5b544, #fff1b8); background-size: 200% auto; animation: pnflow 4s linear infinite; box-shadow: 0 0 10px rgba(255,190,60,.5); }
.frame-elite { background: linear-gradient(135deg, #3a2600, #8a5a00, #ffd54f, #8a5a00); box-shadow: 0 0 14px rgba(255,190,60,.45); }
.frame-elite::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: conic-gradient(from 0deg, #ffd54f 0 40deg, transparent 40deg 360deg); animation: frameSpin 3.2s linear infinite; }
.banner-elite { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(120deg, #1a1206, #2a1c0a 45%, #0d0d12 100%); }
.banner-elite::before { content: ""; position: absolute; z-index: -1; pointer-events: none; top: 0; bottom: 0; left: -100px; right: -100px; background: repeating-linear-gradient(115deg, rgba(255,138,61,0) 0 44px, rgba(255,180,70,.18) 54px, rgba(255,220,140,.5) 62px, rgba(255,138,61,.18) 70px, rgba(255,138,61,0) 80px 84px); mix-blend-mode: screen; animation: eliteGlide 5s linear infinite; }
@keyframes eliteGlide { to { transform: translateX(92.68px); } }  /* one horizontal period: 84px / sin(115deg) */
.sbadge.pass { color: #1f0e02; background: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  :root:not(:has(.shop-grid, .phero, .pv-track, .col-grid)) .banner-elite::before { animation: none !important; }
}

/* --- Combo (parlay) v2: combo mode toggle, picks marked on the cards, collapsible dock --- */
.fchip.combo-toggle { display: inline-flex; align-items: center; gap: 6px; }
.fchip.combo-toggle::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .15s; }
.fchip.combo-toggle[aria-pressed="true"] { color: #1f0e02; background: var(--accent); border-color: var(--accent); }
.fchip.combo-toggle[aria-pressed="true"]::before { background: #1f0e02; }

body.combo-mode .match .pick { cursor: copy; }
body.combo-mode .match .pick:not([data-cmatch]) { opacity: .4; cursor: not-allowed; }
body.combo-mode .match .pick[data-cmatch]:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.match .pick.cpicked { position: relative; box-shadow: inset 0 0 0 2px var(--accent); background: rgba(255,138,61,.12); }
.match .pick.cpicked::after { content: ""; position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231f0e02' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: 0 0 0 2px var(--bg); }

.cslip { position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 330px; max-width: calc(100vw - 24px); background: var(--panel-2);
  border: 1px solid #2c3746; border-radius: var(--r-lg); box-shadow: 0 24px 60px -18px rgba(0,0,0,.75), 0 0 0 1px rgba(255,138,61,.08); overflow: hidden; }
.cslip[hidden] { display: none; }
.cslip-bar { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.cslip-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: var(--accent); color: #1f0e02; font-weight: 800; font-size: 13px; }
.cslip-title { font-weight: 800; flex: 1; }
.cslip-odds { font-weight: 800; color: var(--coin); font-variant-numeric: tabular-nums; }
.cslip-chev { width: 20px; height: 20px; fill: var(--muted); transition: transform .2s; }
.cslip:not(.collapsed) .cslip-chev { transform: rotate(180deg); }
.cslip.collapsed .cslip-body { display: none; }
.cslip-body { display: grid; gap: 10px; padding: 0 14px 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.cslip-hint { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.cslip-legs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 40vh; overflow-y: auto; }
.cslip-legs li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.cl-main { display: grid; min-width: 0; flex: 1; }
.cl-main b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-main small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-odds { font-weight: 800; font-size: 13px; color: var(--coin); font-variant-numeric: tabular-nums; }
.cl-rm { width: 24px; height: 24px; border-radius: 50%; border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.cl-rm:hover { background: rgba(239,68,68,.15); color: var(--err, #ef4444); }
.cslip-stake { display: grid; grid-template-columns: 1fr 96px; gap: 8px; }
.cslip-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.cslip-quick button { height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.cslip-quick button.on, .cslip-quick button:hover { border-color: var(--accent); color: var(--accent); }
.cslip-stake input { height: 36px; box-sizing: border-box; width: 100%; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-weight: 700; text-align: right; }
.cslip-stake input:focus { outline: none; border-color: var(--accent); }
.cslip-sum { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--muted); }
.cslip-sum b { font-size: 22px; color: var(--ok); font-variant-numeric: tabular-nums; }
.cslip .btn.primary { width: 100%; justify-content: center; height: 42px; }
.cslip .btn.primary:disabled { opacity: .45; cursor: not-allowed; }
.cslip-exit { background: none; border: 0; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; padding: 2px; }
.cslip-exit:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 720px) {
  .cslip { left: 8px; right: 8px; width: auto; max-width: none; bottom: calc(66px + env(safe-area-inset-bottom)); }
  .cslip-legs { max-height: 30vh; }
}

/* --- Season pass page v2: hero with the Elite banner, progress ring, next-reward spotlight, rail track --- */
.pv-hero { position: relative; isolation: isolate; overflow: hidden; margin: 22px 0 14px; padding: 26px 28px 22px; border-radius: var(--r-lg); border: 1px solid rgba(245,181,68,.35);
  display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; align-items: center; box-shadow: 0 18px 50px -24px rgba(255,138,61,.45); }
.pv-hero-bg { position: absolute; inset: 0; z-index: -2; }
.pv-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,17,23,.92) 20%, rgba(13,17,23,.45) 70%, rgba(13,17,23,.2)); pointer-events: none; }
.pv-season { display: inline-flex; align-items: center; gap: 10px; color: var(--coin); font-weight: 700; font-size: 13px; }
.pv-left { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pv-hero h1 { margin: 8px 0; font-size: 34px; letter-spacing: -.01em; }
.pv-hero p { margin: 0; max-width: 54ch; color: #c9d1dc; line-height: 1.5; }
.pv-claimall { margin-top: 16px; box-shadow: 0 0 0 0 rgba(255,138,61,.6); animation: pvPulse 2s ease-out infinite; }
@keyframes pvPulse { 70% { box-shadow: 0 0 0 12px rgba(255,138,61,0); } 100% { box-shadow: 0 0 0 0 rgba(255,138,61,0); } }
.pv-ring { --p: 0; width: 132px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); box-shadow: 0 0 30px rgba(255,138,61,.25); }
.pv-ring-in { width: calc(100% - 16px); aspect-ratio: 1; border-radius: 50%; background: rgba(13,17,23,.92); display: grid; place-content: center; text-align: center; line-height: 1.05; }
.pv-ring-in b { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pv-ring-in small { color: var(--muted); font-size: 12px; font-weight: 600; }
.pv-bar { grid-column: 1 / -1; display: grid; gap: 6px; }
.pv-bar-track { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.pv-bar-track > div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--coin)); box-shadow: 0 0 12px rgba(255,138,61,.6); }
.pv-bar span { font-size: 13px; color: var(--muted); }
.pv-bar b { color: #fff; }

.pv-next { display: flex; align-items: center; gap: 16px; padding: 14px 16px; margin-bottom: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.pv-next-prev { width: 150px; min-height: 64px; display: grid; place-items: center; flex: none; }
.pv-next-txt { display: grid; gap: 2px; }
.pv-next-txt b { font-size: 16px; }

.pv-track { --col: 150px; position: relative; display: flex; overflow-x: auto; padding: 6px 0 14px; scroll-behavior: smooth; scrollbar-width: thin; }
.pv-rail { position: absolute; left: 0; top: 23px; width: calc(var(--col) * var(--tiers, 20)); height: 4px; background: var(--panel-2); border-radius: 999px; }
.pv-rail-fill { position: relative; height: 100%; width: calc(max(0px, (var(--fill) - .5) * var(--col))); background: linear-gradient(90deg, var(--accent), var(--coin)); border-radius: inherit; box-shadow: 0 0 10px rgba(255,138,61,.6); }
.pv-you { position: absolute; right: -15px; top: 50%; transform: translateY(-50%); z-index: 2; border-radius: 50%; box-shadow: 0 0 0 3px var(--accent), 0 0 14px rgba(255,138,61,.7); }
.pv-you .avatar { width: 30px; height: 30px; border-radius: 50%; display: block; }
.pv-col { flex: 0 0 var(--col); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 6px; }
.pv-node { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800;
  background: var(--panel); border: 2px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; }
.pv-node svg { width: 16px; height: 16px; fill: currentColor; }
.pv-col.claimed .pv-node, .pv-col.claimable .pv-node { background: var(--accent); border-color: var(--accent); color: #1f0e02; }
.pv-col.cos .pv-node { border-color: var(--coin); }
.pv-card { width: 100%; min-height: 178px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 10px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); text-align: center; transition: transform .15s ease, border-color .15s ease; }
.pv-card:hover { transform: translateY(-2px); border-color: #334155; }
.pv-prev { flex: 1; width: 100%; display: grid; place-items: center; }
.pv-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.pv-coins { display: inline-flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 800; color: var(--coin); font-variant-numeric: tabular-nums; }
.pv-coins::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe7a3, var(--coin) 55%, #b9791c); box-shadow: 0 0 10px rgba(245,181,68,.45); }
.pv-state { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.pv-state svg { width: 13px; height: 13px; fill: currentColor; }
.pv-state.ok { color: var(--ok); }
.pv-card form, .pv-card .btn { width: 100%; }
.pv-col.locked .pv-card { opacity: .62; }
.pv-col.locked.cos .pv-card { opacity: .9; }
.pv-col.claimable .pv-card { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 22px rgba(255,138,61,.35); }
.pv-col.claimed .pv-card { border-color: rgba(46,204,113,.45); }
.pv-col.cos .pv-card { border-color: rgba(245,181,68,.5); background: radial-gradient(120% 80% at 50% 0%, rgba(245,181,68,.16), transparent 60%), var(--panel); }
.pv-col.cos .pn { font-size: 17px; font-weight: 800; }
.pv-col .frame .avatar, .pv-next .frame .avatar { width: 54px; height: 54px; border-radius: 50%; display: block; }
.pv-bn { position: relative; width: 100%; height: 70px; border-radius: 8px; display: grid; place-items: center; }
.pv-bn span { font-weight: 800; font-size: 13px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.7); }

.pv-earn { margin-top: 18px; }
.pv-earn h2 { font-size: 18px; margin: 0 0 10px; }
.pv-earn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 10px; }
.pv-earn-tile { display: grid; gap: 2px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.pv-earn-tile b { font-size: 20px; color: var(--accent); font-variant-numeric: tabular-nums; }
.pv-earn-tile span { font-weight: 700; }
.pv-earn-tile small { color: var(--muted); font-size: 12px; }

@media (max-width: 640px) {
  .pv-hero { grid-template-columns: 1fr; padding: 20px 18px; }
  .pv-ring { width: 104px; justify-self: start; grid-row: 1; }
  .pv-ring-in b { font-size: 34px; }
  .pv-hero h1 { font-size: 28px; }
  .pv-track { --col: 134px; }
}
@media (prefers-reduced-motion: reduce) { .pv-claimall { animation: none; } .pv-track { scroll-behavior: auto; } }
.pv-track { padding-left: 18px; padding-right: 18px; }
.pv-rail { left: 18px; }
@media (max-width: 640px) { .pv-next-prev { width: 96px; } }

/* --- Season quarters: pass hero label + wrapped span --- */
.pv-span { color: var(--muted); font-weight: 600; }
.pv-theme { color: var(--accent); background: rgba(255,138,61,.12); border: 1px solid rgba(255,138,61,.4); padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.wseason-span { margin-top: 4px; font-size: 14px; font-weight: 600; }

/* Getting started: the settings-row .chk rule (padding, flex) was stretching the step circles */
.steps-list .chk { display: grid; place-items: center; padding: 0; gap: 0; width: 20px; height: 20px; aspect-ratio: 1; line-height: 1; font-size: 12px; cursor: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wr-duo > :only-child { grid-column: 1 / -1; }
.wr-hero { min-height: 0; padding-top: 72px; }
.wr-mosaic { position: absolute; z-index: -1; top: -30px; right: -40px; width: 62%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; transform: rotate(-10deg); opacity: .22;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.wr-mosaic img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.04); filter: grayscale(.3); }
.wr-hero:has(.wr-mosaic) .wr-hero-bg.banner-default { background: radial-gradient(70% 120% at 85% 20%, color-mix(in srgb, var(--wr-accent) 28%, transparent), transparent 60%), var(--panel); }
@media (max-width: 760px) { .wr-mosaic { width: 100%; opacity: .14; } }
.wr-hero-bg { container-type: size; }


/* --- season pass exclusive cosmetics: Season 2 Frost, Season 3 Toxic, Season 4 Inferno --- */
.pn-anim.pn-glacier { background-image: linear-gradient(90deg, #dff1ff, #7fb9ff, #ffffff, #8fd0ff, #dff1ff); animation: pnflow 7s linear infinite, pnbright 4s ease-in-out infinite; }
.pn-anim.pn-hazmat  { background-image: linear-gradient(90deg, #c6ff2e, #6bff1a, #d9ff3a, #6bff1a, #c6ff2e); animation: pnflow 3s linear infinite, pnbright 1.6s ease-in-out infinite; }
.pn-anim.pn-magma   { background-image: linear-gradient(90deg, #5a0a00, #e63900, #ff8a1a, #ffcf6b, #e63900, #5a0a00); animation: pnflow 12s linear infinite, pnbright 5s ease-in-out infinite; }

.pt-glacier { color: #eaf6ff; background: linear-gradient(120deg, rgba(225,243,255,.34), rgba(140,200,255,.14), rgba(255,255,255,.40), rgba(140,200,255,.14), rgba(225,243,255,.34)); background-size: 200% auto; animation: pnflow 6s linear infinite; border: 1px solid rgba(255,255,255,.38); box-shadow: 0 0 10px rgba(150,220,255,.35), inset 0 0 6px rgba(255,255,255,.25); text-shadow: 0 0 6px rgba(160,225,255,.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pt-hazmat  { color: #eaffd0; background: repeating-linear-gradient(45deg, #c8f22b 0 10px, #0a0a0a 10px 20px); animation: hazmatSlide 2s linear infinite; border: 1px solid rgba(200,242,43,.6); box-shadow: 0 0 10px rgba(160,220,30,.45); text-shadow: 0 1px 2px rgba(0,0,0,.9); }
.pt-magma   { color: #1a0500; background: linear-gradient(90deg, #3a0a00, #ff3d00, #ffb300, #3a0a00); background-size: 200% auto; animation: pnflow 6s linear infinite; box-shadow: 0 0 10px rgba(255,120,20,.5); text-shadow: 0 0 4px rgba(255,160,60,.6); }
@keyframes hazmatSlide { to { background-position: 28.284px 0; } }  /* one horizontal period: 20px / sin(45deg) */

.frame-glacier { background: linear-gradient(135deg, #eaf6ff, #9fd4ff, #3b82f6, #bfe9ff); box-shadow: 0 0 14px rgba(150,220,255,.55); }
.frame-glacier::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: conic-gradient(from 0deg, #ffffff 0 16deg, transparent 16deg 50deg, #bfe9ff 50deg 66deg, transparent 66deg 100deg, #eaf6ff 100deg 116deg, transparent 116deg 150deg, #ffffff 150deg 166deg, transparent 166deg 200deg, #bfe9ff 200deg 216deg, transparent 216deg 260deg, #eaf6ff 260deg 276deg, transparent 276deg 320deg, #ffffff 320deg 336deg, transparent 336deg 360deg); animation: frameSpin 9s linear infinite; }
.frame-hazmat  { background: linear-gradient(135deg, #0a0a0a, #2a2f00, #c8f22b, #0a0a0a); box-shadow: 0 0 14px rgba(160,220,30,.5); }
.frame-hazmat::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, #c8f22b 0 22deg, #0a0a0a 22deg 44deg); animation: frameSpin 5s linear infinite; }
.frame-magma   { background: linear-gradient(135deg, #2a0a00, #7a1a00, #ff3d00, #2a0a00); box-shadow: 0 0 16px rgba(255,90,0,.7); }
.frame-magma::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: conic-gradient(from 0deg, #ff3d00, #ffb300, #ff6a00, #ff1744, #ff3d00); animation: flameFlicker 1.6s ease-in-out infinite; }
@keyframes flameFlicker { 0%, 100% { opacity: .55; } 25% { opacity: .95; } 50% { opacity: .5; } 75% { opacity: .85; } }

.banner-glacier { position: relative; isolation: isolate; overflow: hidden; background:
  radial-gradient(ellipse 60% 50% at 50% 112%, rgba(120,220,255,.28), transparent 62%),
  radial-gradient(ellipse 50% 36% at 30% 18%, rgba(110,240,180,.22), transparent 60%),
  linear-gradient(180deg, #060b1a 0%, #0a1e3a 45%, #0b2740 70%, #05090f 100%); }
.banner-glacier::before, .banner-glacier::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.banner-glacier::before {
  background-image: radial-gradient(circle 2.6px, #ffffff, rgba(255,255,255,.5) 60%, transparent), radial-gradient(circle 1.8px, rgba(220,240,255,.85), transparent);
  background-size: 92px 92px, 138px 138px;
  background-position: 0 0, 40px 20px;
  animation: snowFast 7s linear infinite;
}
.banner-glacier::after {
  background-image: radial-gradient(circle 1.2px, rgba(210,235,255,.75), transparent);
  background-size: 58px 58px;
  background-position: 20px 10px;
  animation: snowSlow 13s linear infinite;
}
@keyframes snowFast { to { background-position: 0 92px, 40px 158px; } }
@keyframes snowSlow { to { background-position: 20px 68px; } }

.banner-hazmat { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, #050a04 0%, #0a1405 45%, #060b04 100%); }
.banner-hazmat::before { content: ""; position: absolute; inset: -30% -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 12% 30% at 16% 60%, rgba(150,230,80,.42), rgba(90,180,60,.12) 60%, transparent),
    radial-gradient(ellipse 15% 38% at 38% 44%, rgba(120,220,60,.34), rgba(80,170,55,.1) 60%, transparent),
    radial-gradient(ellipse 10% 26% at 58% 64%, rgba(170,240,90,.4), rgba(100,190,65,.12) 60%, transparent),
    radial-gradient(ellipse 14% 34% at 76% 46%, rgba(130,220,70,.34), rgba(90,180,60,.1) 60%, transparent),
    radial-gradient(ellipse 9% 24% at 90% 60%, rgba(160,235,85,.4), rgba(100,190,65,.12) 60%, transparent);
  filter: blur(8px);
  animation: hazmatDrift 16s ease-in-out infinite alternate;
}
.banner-hazmat::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0, transparent calc(50% - 8px), rgba(182,255,46,0) calc(50% - 2px), rgba(182,255,46,.6) 50%, rgba(182,255,46,0) calc(50% + 2px), transparent calc(50% + 8px), transparent 100%);
  animation: scanDown 4s linear infinite;
}
@keyframes hazmatDrift { 0% { transform: translateX(-5%) scale(1); } 50% { transform: translateX(3%) scale(1.1) translateY(-4%); } 100% { transform: translateX(6%) scale(1.04); } }
@keyframes scanDown { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

.banner-magma { position: relative; isolation: isolate; overflow: hidden; background:
  radial-gradient(ellipse 90% 60% at 50% 115%, rgba(255,80,0,.16), transparent 60%),
  linear-gradient(180deg, #0c0604 0%, #160a06 55%, #050302 100%); }
.banner-magma::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 48%, rgba(255,90,10,.95) 50%, transparent 52%) 0 0 / 240px 160px,
    linear-gradient(25deg, transparent 49%, rgba(255,140,40,.8) 50%, transparent 51%) 60px 40px / 200px 140px,
    linear-gradient(70deg, transparent 49%, rgba(255,60,0,.9) 50%, transparent 51%) -30px 80px / 260px 170px,
    linear-gradient(140deg, transparent 49.5%, rgba(255,180,60,.7) 50%, transparent 50.5%) 120px -20px / 180px 130px,
    linear-gradient(155deg, transparent 48.5%, rgba(255,110,20,.85) 50%, transparent 51.5%) 40px 100px / 220px 150px;
  filter: blur(1px);
  animation: magmaPulse 3.2s ease-in-out infinite;
}
@keyframes magmaPulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

/* Reduced motion: static, but the shop and profiles keep animating so people see what they own */
@media (prefers-reduced-motion: reduce) {
  :root:not(:has(.shop-grid, .phero, .pv-track, .col-grid)) .banner-glacier::before,
  :root:not(:has(.shop-grid, .phero, .pv-track, .col-grid)) .banner-glacier::after,
  :root:not(:has(.shop-grid, .phero, .pv-track, .col-grid)) .banner-hazmat::before,
  :root:not(:has(.shop-grid, .phero, .pv-track, .col-grid)) .banner-hazmat::after,
  :root:not(:has(.shop-grid, .phero, .pv-track, .col-grid)) .banner-magma::before { animation: none !important; }
}

/* --- Settings > Appearance: your collection (shop + season pass), equip in place --- */
.col-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 4px 0 14px; padding-bottom: 2px; }
.col-tabs a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.col-tabs a.on { color: var(--text); border-color: var(--accent); background: rgba(255,138,61,.1); }
.col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.col-item { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); }
.col-item.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.col-prev { height: 74px; display: grid; place-items: center; border-radius: 8px; background: var(--bg); overflow: hidden; }
.col-prev .pn { font-weight: 800; font-size: 16px; }
.col-prev .frame .avatar { width: 50px; height: 50px; border-radius: 50%; display: block; }
.col-bn { width: 100%; height: 100%; }
.col-info { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.col-info b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-tag { flex: none; font-size: 10.5px; font-weight: 700; color: #1f0e02; background: var(--coin); padding: 2px 7px; border-radius: 999px; }
.col-item form .btn { width: 100%; justify-content: center; }
.col-empty { display: grid; gap: 6px; justify-items: start; padding: 18px; border: 1px dashed var(--line); border-radius: var(--r); }
.col-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.settings-wrap > *, .col-card { min-width: 0; }
@media (max-width: 480px) { .col-grid { grid-template-columns: 1fr 1fr; } .col-prev { height: 60px; } }
.col-item { min-width: 0; }
.col-tabs { scrollbar-width: none; }
.col-tabs::-webkit-scrollbar { display: none; }

/* Settings > Appearance preview: animated banners use size containment, so the box needs its own height */
.settings-wrap .preview { min-height: 140px; box-sizing: border-box; align-items: flex-end; padding: 18px; border-radius: var(--r); }
.settings-wrap .look-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.pass-off { margin: 24px 0; display: grid; gap: 10px; justify-items: start; padding: 24px; }
.pass-off h1 { margin: 0; font-size: 24px; }
.pass-off p { margin: 0; max-width: 60ch; }

/* Profile hero v3: icon-led Steam chips on one line, Steam and Wrapped as corner buttons */
.phero-corner { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; gap: 8px; }
.phc { height: 36px; min-width: 36px; padding: 0 9px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 999px;
  background: rgba(13,17,23,.6); border: 1px solid rgba(255,255,255,.14); color: #e6edf3; backdrop-filter: blur(8px); text-decoration: none; font-size: 12.5px; font-weight: 700; transition: background .15s, border-color .15s, color .15s; }
.phc svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.phc:hover { background: rgba(13,17,23,.85); border-color: rgba(255,255,255,.3); }
.phc.steam:hover { color: #66c0f4; }
.phc.wrapped { color: var(--coin); border-color: rgba(245,181,68,.45); }
.phc.wrapped span { white-space: nowrap; }
.pchip.ic svg { width: 14px; height: 14px; fill: currentColor; opacity: .75; flex: none; }
.pchip b { color: var(--text); }
.slvl-ring { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; box-sizing: border-box; border-radius: 999px; border: 2px solid #66c0f4; color: #fff; font-size: 11px; font-weight: 800; }
.pchips { gap: 6px; }
@media (max-width: 640px) {
  .phc.wrapped span { display: none; }
  .phero-corner { top: 10px; right: 10px; }
}
/* Steam level ring: number centred on its own box, colour by tens like Steam (repeats every 100 levels) */
.slvl-ring { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; box-sizing: border-box; border-radius: 999px;
  border: 2px solid var(--sl, #9b9b9b); line-height: 1; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
.slvl-ring.sl0 { --sl: #9b9b9b; } .slvl-ring.sl1 { --sl: #c02942; } .slvl-ring.sl2 { --sl: #d95b43; } .slvl-ring.sl3 { --sl: #fecc23; } .slvl-ring.sl4 { --sl: #467a3c; }
.slvl-ring.sl5 { --sl: #4e8ddb; } .slvl-ring.sl6 { --sl: #7652c9; } .slvl-ring.sl7 { --sl: #c252c9; } .slvl-ring.sl8 { --sl: #542437; } .slvl-ring.sl9 { --sl: #997c52; }
.pchip.steamlvl { padding: 0 4px; }
.pchip.steamlvl .slvl-ring { height: 24px; min-width: 24px; font-size: 12px; }
.slvl-sprite { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: -4px -2px; background-repeat: no-repeat; font-size: 12px; font-weight: 800; line-height: 1; color: #fff; text-shadow: 1px 1px #1a1a1a; font-variant-numeric: tabular-nums; }
/* Steam level badge sits on the avatar, top right (the status dot keeps bottom right) */
.phero-av { position: relative; }
.av-lvl { position: absolute; top: -8px; right: -10px; z-index: 2; display: grid; place-items: center; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.av-lvl .slvl-sprite { margin: 0; }
.av-lvl .slvl-ring { background: var(--bg); height: 26px; min-width: 26px; font-size: 12px; }
/* Steam level badge next to the name */
.name-lvl { display: inline-flex; vertical-align: middle; margin: 0 2px; }
.name-lvl .slvl-sprite { margin: 0; width: 32px; height: 32px; font-size: 12px; }
.name-lvl .slvl-ring { height: 26px; min-width: 26px; font-size: 12px; }
/* optical centring of the level number inside Steam badges */
.slvl-sprite, .slvl-ring { font-variant-numeric: normal; letter-spacing: -.02em; }
.slvl-sprite { padding-top: 1px; box-sizing: border-box; }

/* Profile XP: a full-width progress line on the seam between hero and stats, labels underneath */
.pxp { position: relative; background: rgba(13,17,23,.6); backdrop-filter: blur(8px); border-top: 1px solid rgba(232,237,244,.08); }
.pxp-bar { height: 4px; background: rgba(255,255,255,.06); }
.pxp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--coin)); box-shadow: 0 0 12px rgba(255,138,61,.7); border-radius: 0 999px 999px 0; }
.pxp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 18px; font-size: 13px; color: var(--muted); }
.pxp-lvl { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; }
.pxp-num b { color: var(--text); font-variant-numeric: tabular-nums; }
.pxp-next { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line); }
.pxp + .pstats { border-top: 1px solid rgba(232,237,244,.08); }
@media (max-width: 640px) { .pxp-next { display: none; } .pxp-row { padding: 8px 16px; } }

/* the profile banner always fills the hero, whatever position a banner cosmetic sets for itself */
.phero > .phero-banner { position: absolute; inset: 0; height: auto; }

/* Match cards with a bet: one compact line instead of tag + pool row + note; picked side marked like combo picks */
.pick.mine::after { content: ""; top: -6px; right: -6px; width: 18px; height: 18px; padding: 0; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231f0e02' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: 0 0 0 2px var(--bg); }
.pick.mine { box-shadow: inset 0 0 0 1.5px var(--accent); }
.mybet { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 0; padding: 7px 10px; border-radius: 8px;
  background: rgba(46,204,113,.07); border: 1px solid rgba(46,204,113,.18); font-size: 12.5px; color: var(--muted); }
.mybet b { color: var(--text); font-weight: 700; }
.mybet-r { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.mybet-pay { color: var(--ok) !important; font-variant-numeric: tabular-nums; }
.mybet-share { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--muted); }
.mybet-share svg { width: 14px; height: 14px; fill: currentColor; }
.mybet-share:hover { color: var(--accent); background: rgba(255,138,61,.1); }
.coins { white-space: nowrap; }
/* bet line in the same quiet style as the pool meta row, no box */
.mybet { background: none; border: 0; padding: 0; margin: 8px 0 0; border-radius: 0; font-size: 12px; }
.mybet-pay { color: var(--text) !important; }
.mybet-share { width: 22px; height: 22px; margin-right: -4px; }
.mybet { margin-top: 6px; font-size: 11.5px; }
/* pool share as a faint fill inside each pick (replaces the separate split line) */
.match .pick[style*="--share"] { background-image: linear-gradient(90deg, rgba(232,237,244,.07) var(--share), transparent var(--share)); }

/* --- Header v2: one rewards button and an account menu instead of a row of buttons --- */
.brand span { white-space: nowrap; }
.top .me { gap: 8px; }
.hdrop { position: relative; }
.hdrop > summary { list-style: none; cursor: pointer; }
.hdrop > summary::-webkit-details-marker { display: none; }
.hicon { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--panel-2); color: var(--coin); }
.hicon svg { width: 20px; height: 20px; fill: currentColor; }
.hicon:hover { background: #253040; }
.hicon.glow { box-shadow: 0 0 0 1px rgba(245,181,68,.5), 0 0 16px rgba(245,181,68,.35); animation: hglow 2.4s ease-in-out infinite; }
@keyframes hglow { 50% { box-shadow: 0 0 0 1px rgba(245,181,68,.8), 0 0 22px rgba(245,181,68,.55); } }
.hcnt { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent); color: #1f0e02; font-size: 11px; font-weight: 800; box-shadow: 0 0 0 2px var(--bg); }
.hpanel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 290px; padding: 8px; background: var(--panel-2); border: 1px solid #2c3746; border-radius: var(--r-lg);
  box-shadow: 0 20px 50px -14px rgba(0,0,0,.75); display: grid; gap: 4px; }
.hpanel-h { font-size: 13px; padding: 6px 8px 4px; }
.hrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px; border-radius: 10px; color: var(--text); text-decoration: none; }
.hrow:hover { background: rgba(255,255,255,.04); }
.hrow > span:first-child { display: grid; gap: 1px; min-width: 0; }
.hrow b { font-size: 13px; }
.hrow small { font-size: 11.5px; color: var(--muted); }
.umenu > summary.plink { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 3px; border-radius: 999px; background: var(--panel-2); }
.umenu > summary.plink:hover { background: #253040; }
.umenu > summary .avatar { width: 32px; height: 32px; border-radius: 50%; display: block; }
.umenu > summary .chev { width: 18px; height: 18px; fill: var(--muted); transition: transform .15s; }
.umenu[open] > summary .chev { transform: rotate(180deg); }
.umenu .hpanel { width: 230px; }
.umenu-who { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.umenu-who span { display: grid; min-width: 0; }
.umenu-who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.umenu-who small { font-size: 11.5px; color: var(--muted); }
.umenu-link { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font: inherit; font-size: 13.5px; background: none; border: 0; cursor: pointer; }
.umenu-link:hover { background: rgba(255,255,255,.05); }
.umenu-link.out { color: var(--muted); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }
.umenu form { margin: 0; }
@media (max-width: 720px) { .hpanel { position: fixed; left: 8px; right: 8px; top: 62px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .hicon.glow { animation: none; } }
.hrow > span:not(.btn) { display: grid; gap: 1px; min-width: 0; }
.hrow .btn { flex: none; }

/* --- Banner previews: the banner is drawn at profile-hero size (975 x 381) and scaled down to cover the swatch,
   so shop, deal, try-on and collection previews look exactly like the profile (patterns use px and container units). --- */
.bpv { position: relative; overflow: hidden; container-type: size; }
.bpv > i { position: absolute; left: 50%; top: 0; width: 975px; height: 381px; transform-origin: 50% 0;
  transform: translateX(-50%) scale(max(tan(atan2(100cqw, 975px)), tan(atan2(100cqh, 381px)))); }

/* Gradient-text names freeze inside the sticky sidebar (Chrome does not repaint background-clip:text there); own layer fixes it */
.pn.rainbow, .pn-anim, .fx-holo .pn, .fx-neon .pn { will-change: background-position; }

/* --- Mobile pass (375 px) --- */
.umenu > summary .avatar.ph { display: grid; place-items: center; font-size: 14px; color: var(--text); background: #2c3746; }
@media (max-width: 480px) {
  /* Team names got cut to ~8 chars: odds go under the name so the full name fits */
  .match .pick { display: grid; grid-template-columns: auto 1fr; column-gap: 7px; row-gap: 1px; align-items: center; }
  .match .pick .logo, .match .pick .ini { grid-row: 1 / span 2; width: 22px; height: 22px; }
  .match .pick .tm { font-size: 13px; line-height: 1.2; }
  .match .pick .odds { grid-column: 2; font-size: 12px; line-height: 1.2; }
  /* Pick'em: Details moves up next to the time, the teams get the full row */
  .pkline { grid-template-columns: 1fr auto; row-gap: 6px; }
  .pkline .when { grid-column: 1; grid-row: 1; }
  .pkline .more { grid-column: 2; grid-row: 1; }
  .pkline .pickrow { grid-column: 1 / -1; grid-row: 2; }
  /* Season pass: chips wrap as whole chips instead of breaking inside */
  .pv-season { flex-wrap: wrap; white-space: nowrap; row-gap: 6px; }
  /* Wrapped: flatter profit chart */
  .wr-chart { height: 90px; }
}
/* --- Duels (challenge a friend) --- */
.duel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duel-card .card-h { margin-bottom: 10px; }
.duel-card form { display: flex; flex-direction: column; gap: 4px; }
.duel-l { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.duel-l .in { margin-top: 4px; }
.duel-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.duel-side { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; }
.duel-side.a:has(input:checked) { border-color: var(--a); background: rgba(76,141,255,.10); }
.duel-side.b:has(input:checked) { border-color: var(--b); background: rgba(255,92,122,.10); }
.duel-side input { accent-color: var(--accent); }
.duel-card .btn { width: 100%; }
.duel-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.duel-row:last-child { border-bottom: 0; }
.duel-info { flex: 1; min-width: 0; }
.duel-info b { display: block; font-size: 14px; }
.duel-info small { color: var(--muted); }
.duel-actions { display: flex; gap: 6px; flex: none; }
.duel-status { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; flex: none; }
.duel-status.won { background: rgba(47,191,113,.15); color: var(--ok); }
.duel-status.pending { background: rgba(255,138,61,.15); color: var(--accent); }
@media (max-width: 720px) { .duel-grid { grid-template-columns: 1fr; } }
/* --- Admin economy overview (econ- prefixed to avoid collisions with .in/.pick/.slvl) --- */
.econ-spark { margin-top: 4px; }
.econ-spark-rows { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding: 6px 2px 0; }
.econ-spark-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; height: 100%; }
.econ-spark-col small { font-size: 10px; color: var(--muted); white-space: nowrap; }
.econ-bar { display: block; width: 100%; max-width: 14px; border-radius: 3px 3px 0 0; min-height: 1px; }
.econ-bar-bets { background: var(--accent); }
.econ-bar-staked { background: #5b9dff; opacity: .55; }
.econ-spark-legend { display: flex; gap: 14px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.econ-spark-legend span { display: inline-flex; align-items: center; gap: 5px; }
.econ-dot-bets, .econ-dot-staked { width: 9px; height: 9px; border-radius: 2px; display: inline-block; flex: none; }
.econ-dot-bets { background: var(--accent); }
.econ-dot-staked { background: #5b9dff; opacity: .55; }

/* Profile jump links land below the sticky header */
#achievements, #badges { scroll-margin-top: 76px; }

/* --- Web push notifications (settings > account) --- */
.push-state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.push-state .btn { margin-left: auto; }
.push-state .as { font-weight: 700; padding: 1px 8px; border-radius: 999px; font-size: 12px; }
.push-prefs { display: flex; flex-direction: column; gap: 10px; padding: 12px 0 4px; }
.push-prefs .chk { margin: 0; }
.push-prefs .right { margin-top: 4px; }
.push-hint { color: var(--muted); font-size: 12px; margin: 8px 0 0; }

/* --- Notification panel v2: day groups, type icons, unread dot, wins in gold --- */
.np { width: 360px; padding-bottom: 4px; }
.np-head { position: sticky; top: 0; z-index: 1; background: inherit; }
.np-day { padding: 10px 14px 4px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.np-list { padding: 0 4px; }
.np-item { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; font-size: 13px; line-height: 1.4; color: var(--text); }
a.np-item:hover { background: rgba(255,255,255,.045); }
.np-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.06); }
.np-ic svg { width: 16px; height: 16px; fill: var(--muted); margin: 0; }
.np-list li.won .np-ic { background: rgba(245,197,66,.14); }
.np-list li.won .np-ic svg { fill: var(--coin); }
.np-txt { display: grid; gap: 2px; min-width: 0; padding-right: 12px; }
.np-txt small { color: var(--muted); font-size: 11px; }
.np-list li.unread a.np-item, .np-list li.unread div.np-item { background: none; }
.np-list li.unread .np-item::after { content: ""; position: absolute; right: 8px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.np-list li.unread .np-txt { font-weight: 600; }
.np-empty { display: grid; justify-items: center; gap: 6px; padding: 26px 18px 22px; text-align: center; }
.np-empty svg { width: 26px; height: 26px; fill: var(--muted); opacity: .6; }
.np-empty span { font-size: 12.5px; color: var(--muted); max-width: 240px; }
.bellcnt[hidden] { display: none; }

.push-note { margin: 8px 0 0; color: var(--muted); }
.push-note.bad { color: var(--err, #ef4444); }

/* --- ITEM 3: leaderboard own-row highlight + sticky "you" bar --- */
.lb-me td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.mini li.me { box-shadow: inset 3px 0 0 var(--accent); }
.lb-you { display: inline-block; padding: 1px 7px; font-size: 11px; font-weight: 700; line-height: 1.6; border-radius: 999px; background: rgba(255,138,61,.14); color: var(--accent); border: 1px solid rgba(255,138,61,.4); flex: none; white-space: nowrap; }

.lb-me-bar { position: sticky; bottom: 0; margin-top: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 -6px 16px rgba(0,0,0,.28); }
.lb-bar { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 14px; }
.lb-bar .avatar, .lb-bar .avatar.ph { width: 24px; height: 24px; flex: none; }
.lb-bar .avatar.ph { font-size: 11px; }
.lb-bar-rk { min-width: 34px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.lb-bar-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lb-bar-none .lb-bar-name { flex: 0 1 auto; }
.lb-bar-val { font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.lb-bar-hint { color: var(--muted); font-size: 12px; min-width: 0; }
@media (max-width: 720px) {
  .lb-me-bar { bottom: calc(64px + env(safe-area-inset-bottom)); }
}
/* --- Quick search: header button + dialog (ITEM 7) --- */
.sbtn { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--panel-2); color: var(--muted); cursor: pointer; }
.sbtn svg { width: 19px; height: 19px; fill: currentColor; }
.sbtn:hover { color: var(--text); background: #253040; }

.sdlg { width: min(560px, calc(100vw - 32px)); max-width: 560px; padding: 0; border: 1px solid #2c3746; border-radius: 14px; background: var(--panel-2); color: var(--text); box-shadow: 0 24px 60px -18px rgba(0,0,0,.8); animation: sd-in .15s ease; }
.sdlg::backdrop { background: rgba(5,8,12,.6); }
@keyframes sd-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sd-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.sd-top svg { width: 18px; height: 18px; fill: var(--muted); flex: none; }
.sd-input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font-size: 15px; outline: none; }
.sd-input::placeholder { color: var(--muted); }
.sd-kbd { flex: none; font-size: 11px; color: var(--muted); border: 1px solid var(--line-soft); border-radius: 6px; padding: 2px 6px; }
.sd-results { max-height: 60vh; overflow-y: auto; padding: 8px; }
.sd-group + .sd-group { margin-top: 6px; }
.sd-gtitle { padding: 6px 8px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.sd-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--text); text-decoration: none; }
.sd-item:hover { background: rgba(255,255,255,.04); }
.sd-item.on { background: rgba(255,138,61,.10); }
.sd-ico { width: 26px; height: 26px; flex: none; object-fit: contain; }
.sd-ava { border-radius: 50%; }
.sd-logo { border-radius: 6px; }
.sd-txt { display: grid; gap: 1px; min-width: 0; }
.sd-txt b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-txt small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 13px; }

@media (max-width: 640px) {
  .sdlg { position: fixed; inset: 0 0 auto 0; margin: 0; width: 100%; max-width: 100%; border-radius: 0 0 14px 14px; }
  .sd-input { font-size: 16px; }
  .sd-results { max-height: calc(100vh - 140px); }
}
@media (prefers-reduced-motion: reduce) { .sdlg { animation: none; } }
/* ======================= ITEM 10: accessibility + keyboard pass =======================
   Keyboard focus ring (reinforces the earlier :focus-visible rule; outline hugs border-radius),
   and reduced motion for non-cosmetic infinite animation. Cosmetic name effects, frames and
   banners keep animating on purpose. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cslip-stake input:focus { box-shadow: 0 0 0 3px rgba(255,138,61,.15); }
@media (prefers-reduced-motion: reduce) {
  .btn.pulse, .dot-live, .pchip.live .pdot, .skeleton::after { animation: none; }
}
/* ============================================================================
   UX pass: unified header menus, toast stack, htmx loading treatment
   ============================================================================ */

/* Unified header menus (rewards, account, bell, open bets): same panel look and
   the same short fade + 4 px slide on open (none under reduced motion). */
.hpanel, .np, .obp {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -14px rgba(0,0,0,.75);
}
.hpanel, .np.open, .obp.open { animation: menu-in .14s ease; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }

/* Toasts live in one fixed stack: bottom on desktop, under the header on mobile. */
.toasts {
  position: fixed; z-index: 80; left: 0; right: 0; bottom: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.toasts .toast { position: static; left: auto; bottom: auto; transform: none; }

/* htmx loading treatment: a subtle shimmer over a match card while it refreshes,
   and a minimum height on whole-list swaps so the page does not jump. */
.match.htmx-request { position: relative; }
.match.htmx-request::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(232,237,244,.055) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: match-shimmer 1.4s linear infinite;
}
@keyframes match-shimmer { from { background-position: 220% 0; } to { background-position: -220% 0; } }
#quests.htmx-swapping, #quests.htmx-settling { min-height: 200px; }
#obp.htmx-swapping, #obp.htmx-settling, #obp:empty { min-height: 96px; }

@media (max-width: 720px) {
  .toasts { bottom: auto; top: calc(64px + env(safe-area-inset-top)); }
  .toast { animation: fade 4s forwards, toast-in .2s ease; }
  .toasts .win-toast { position: relative; top: auto; left: auto; transform: none; animation: win-in-toast .3s ease; }
  .toasts .win-toast.out { transform: translateY(-6px); }
}
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } }
@keyframes win-in-toast { from { opacity: 0; transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
  .hpanel, .np.open, .obp.open, .match.htmx-request::after { animation: none; }
  .toast { animation: fade 4s forwards; }
  .toasts .win-toast { animation: none; }
}
/* --- UX items: home order (mobile), single-bet success, live score (public/ux.js) --- */

/* ITEM 1 — quests fold to a one-line summary on mobile; desktop keeps the full card */
.quests-summary { display: none; list-style: none; }
.quests-summary::-webkit-details-marker { display: none; }
/* desktop shows the body because the <details> is rendered open (see views/_quests.php) */

@media (max-width: 960px) {
  .quests-summary {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; cursor: pointer;
  }
  .quests-summary .cnt { margin-left: 0; }
  .quests-chev { width: 16px; height: 16px; fill: var(--muted); margin-left: auto; transition: transform .2s; }
  .quests-fold[open] .quests-chev { transform: rotate(180deg); }
  .quests-fold:not([open]) > .quests-body { display: none; }
  .quests-fold .card-h { display: none; }

  /* side column becomes source-order children: matches sit under the spotlight, feed drops below */
  .side-col { display: contents; }
  .side-col > #quests { margin: 12px 0; }
  .main-col { order: 1; }
  .side-col > .following-feed,
  .side-col > #feed { order: 2; margin-top: 12px; }
}

/* ITEM 2 — single-bet success moment (class + badge driven by data-justbet) */
.ux-bet-flash { position: relative; box-shadow: inset 0 0 0 2px var(--accent); }
.ux-bet-check {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--ok); color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800; line-height: 1;
  pointer-events: none;
  animation: ux-bet-check .9s ease-out forwards;
}
@keyframes ux-bet-check {
  0% { opacity: 0; transform: scale(.4); }
  20% { opacity: 1; transform: scale(1.05); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}

/* ITEM 9 — live card: current-map chip, pulsing dot, score-digit pop */
.ux-live-map {
  display: inline-block; margin-left: 6px; padding: 1px 8px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 11px; font-weight: 600; color: var(--muted);
  vertical-align: middle; line-height: 1.4;
}
.when .live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--err); display: inline-block;
  margin-right: 5px; vertical-align: middle;
}
.ux-sc-a, .ux-sc-b { display: inline-block; }
.ux-sc-pop { color: var(--accent); animation: ux-sc-pop .5s ease-out; }
@keyframes ux-sc-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .quests-chev { transition: none; }
  .ux-bet-check { animation: none; }
  .ux-sc-pop { animation: none; }
}

/* --- match intel: map pool & head to head (lazy-loaded via htmx) --- */
.intel-skel span { display: block; height: 12px; border-radius: 6px; margin: 8px 0;
  background: linear-gradient(90deg, var(--line) 25%, var(--panel) 50%, var(--line) 75%);
  background-size: 200% 100%; animation: intel-shimmer 1.2s linear infinite; }
.intel-skel span:nth-child(2) { width: 80%; }
.intel-skel span:nth-child(3) { width: 60%; }
@keyframes intel-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.intel-none { margin: 4px 0 0; }
.intel-h2h { margin: 2px 0 8px; }
.intel-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.intel-table { width: 100%; border-collapse: collapse; min-width: 320px; }
.intel-table th, .intel-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.intel-table thead th { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.intel-table thead th.a { color: var(--a); }
.intel-table thead th.b { color: var(--b); }
.intel-table td b { display: block; font-size: 13px; }
.intel-table td .sub { display: block; font-size: 11px; color: var(--muted); }
.intel-map { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.intel-map img { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; background: var(--line); }
.intel-edge-h { width: 22px; text-align: center; }
.intel-edge { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; font-weight: 800; color: #fff; }
.intel-edge.a { background: var(--a); }
.intel-edge.b { background: var(--b); }
.intel-grey td { opacity: .4; }
.intel-fade td { opacity: .7; }
.intel-foot { margin-top: 8px; font-size: 11px; }
@media (max-width: 375px) {
  .intel-table { min-width: 0; }
  .intel-table th, .intel-table td { padding: 6px 4px; }
  .intel-map { white-space: normal; }
}

.day .intel-src { margin-left: 8px; font-weight: 500; letter-spacing: 0; }
.intel-table tbody tr:hover td { background: none; }
.intel-toggle { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; }
.day .intel-hidden { margin-left: 8px; font-size: 11px; font-weight: 600; }

/* --- admin panel layout (adm-) --- */
.adm { display: flex; align-items: flex-start; gap: 24px; }
.adm-side { position: sticky; top: 76px; width: 240px; flex: 0 0 240px; display: flex; flex-direction: column; gap: 2px; }
.adm-main { flex: 1; min-width: 0; }
.adm-brand { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 14px; }
.adm-brand-t { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.adm-note { padding: 0 10px 12px; }
.adm-group { margin: 16px 10px 6px; font-size: 11px; font-weight: 700; color: var(--muted); }
.adm-link { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.adm-link:hover { color: var(--text); background: var(--panel); }
.adm-link.on { color: var(--text); background: var(--panel-2); font-weight: 600; }
.adm-badge { margin-left: auto; padding: 0 7px; border-radius: 999px; background: rgba(255,138,61,.14); color: var(--accent); font-size: 11px; font-weight: 700; }

.adm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 4px 0 8px; }
.adm-head-t h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.adm-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.adm-head-act { flex: 0 0 auto; }

.adm-sec { margin: 22px 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.adm-head + .adm-sec { margin-top: 16px; }

.adm-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.adm-calm { background: rgba(47,191,113,.07); border-color: rgba(47,191,113,.3); color: var(--ok); font-size: 13px; }

.adm-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.adm-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.adm-tile b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; }
.adm-tile > span { font-size: 12px; font-weight: 500; color: var(--text); }
.adm-tile small { font-size: 11px; color: var(--muted); }
.adm-tile.bad b { color: var(--err); }

.adm-attn { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.adm-attn-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); min-height: 56px; }
.adm-attn-row:first-child { border-top: 0; }
.adm-attn-n { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; background: rgba(255,138,61,.14); color: var(--accent); font-weight: 800; font-size: 13px; }
.adm-attn-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.adm-attn-t b { font-size: 13px; }
.adm-attn-t small { font-size: 12px; }

.adm-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; align-items: start; }

/* matches list */
.adm-mlist { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.adm-mrow { display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: 44px; border-top: 1px solid var(--line); }
.adm-mrow:first-child { border-top: 0; }
.adm-mtime { width: 150px; flex: 0 0 150px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-mteams { flex: 1; min-width: 0; }
.adm-mteams a { display: inline-flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--text); }
.adm-mteams a:hover { text-decoration: underline; }
.adm-mteams small { display: block; font-size: 11px; }
.adm-mstat { display: flex; align-items: center; gap: 6px; }
.adm-mact { display: flex; gap: 6px; align-items: center; }

/* dropdown menus (actions / settle) */
.adm-menu { position: relative; }
.adm-menu summary { list-style: none; cursor: pointer; }
.adm-menu summary::-webkit-details-marker { display: none; }
.adm-menu-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 12; display: flex; flex-direction: column; gap: 6px; padding: 10px; min-width: 220px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.adm-menu-body form.inline { display: flex; }
.adm-menu-body .btn { width: 100%; justify-content: flex-start; }
.adm-menu-ban { display: flex; flex-direction: column; gap: 6px; }
.adm-menu-ban input { padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.adm-menu-none { padding: 4px 0; }

/* add-match dropdown in the header */
.adm-add { position: relative; }
.adm-add > summary { list-style: none; cursor: pointer; }
.adm-add > summary::-webkit-details-marker { display: none; }
.adm-add-form { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 360px; padding: 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.adm-add-form label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.adm-add-form input { padding: 7px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.adm-add-form button { grid-column: 1 / -1; }

/* system settings */
.adm-set { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.adm-set-row { display: flex; align-items: center; gap: 16px; padding: 16px; }
.adm-set-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.adm-set-info b { font-size: 14px; }
.adm-set-info .muted { font-size: 12px; }
.adm-set-state { font-size: 12px; color: var(--muted); white-space: nowrap; }
.adm-set-state.on { color: var(--ok); }
.adm-toggle { display: flex; align-items: center; }
.adm-switch { position: relative; width: 40px; height: 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; padding: 0; }
.adm-switch-th { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.adm-switch.on { background: var(--accent); border-color: var(--accent); }
.adm-switch.on .adm-switch-th { transform: translateX(18px); background: #fff; }

@media (max-width: 1100px) {
  .adm-grid { grid-template-columns: 1fr 1fr; }
  .adm-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .adm { flex-direction: column; gap: 12px; }
  .adm-side { position: static; width: 100%; flex: none; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 2px 2px 8px; scrollbar-width: thin; }
  .adm-brand, .adm-note, .adm-group { display: none; }
  .adm-link { flex: 0 0 auto; padding: 6px 12px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; }
  .adm-link.on { background: var(--panel-2); }
  .adm-badge { margin-left: 6px; }
  .adm-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .adm-grid { grid-template-columns: 1fr; }
  .adm-mrow { flex-wrap: wrap; padding: 10px 12px; }
  .adm-mtime { flex: 0 0 auto; width: auto; }
  .adm-mteams { flex: 1 1 100%; }
  .adm-mact { margin-left: auto; }
  .adm-attn-row { flex-wrap: wrap; }
  .adm-add-form { position: fixed; left: 12px; right: 12px; width: auto; }
  .adm-menu-body { position: fixed; left: 12px; right: 12px; top: auto; }
}
@media (max-width: 375px) {
  .adm-tiles { grid-template-columns: 1fr; }
  .adm-head-t h1 { font-size: 21px; }
  .adm-add-form { grid-template-columns: 1fr; }
}

/* Admin pop menus (Actions, Rename, Ban): never clipped by their list, clearly lifted above the page */
.list:has(.adm-menu), .list:has(.ban-pop), .adm-main .list { overflow: visible; }
.adm-menu[open], .ban-pop[open] { z-index: 41; }
.adm-menu-body, .ban-form { z-index: 40; background: #1f2833; border-color: #33404f; box-shadow: 0 18px 48px -12px rgba(0,0,0,.75), 0 0 0 1px rgba(0,0,0,.25); animation: adm-pop .14s ease-out; }
@keyframes adm-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .adm-menu-body, .ban-form { animation: none; } }

/* --- team ratings (Elo) --- */
.rt-model { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.rt-tip { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin-left: 6px; border-radius: 50%; background: var(--panel-2); color: var(--muted); font-size: 10px; font-style: normal; font-weight: 700; line-height: 1; cursor: help; position: relative; vertical-align: -2px; }
.rt-tip-b { position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%); width: 220px; padding: 8px 10px; border-radius: 8px; background: var(--panel-2); color: var(--text); font-size: 12px; font-weight: 400; line-height: 1.4; text-align: left; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s, visibility .15s; z-index: 5; }
.rt-tip:hover .rt-tip-b, .rt-tip:focus .rt-tip-b { opacity: 1; visibility: visible; }
.rt-hidden { margin-left: 8px; font-size: 11px; font-weight: 600; }
.rt-num { font-variant-numeric: tabular-nums; }
/* Any admin container holding a pop menu must not clip it (matches list, settings, user list) */
.adm-mlist, .adm-set, .adm-attn, :where(.list, .card):has(details.adm-menu, details.ban-pop) { overflow: visible; }

/* --- match data: tier, LAN, watch, forfeit, reschedule, game advantage --- */
.evrow { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.evrow .event { flex: 1; min-width: 0; margin-bottom: 0; }
.tier-badge { display: inline-block; padding: 0 6px; border-radius: 999px; font-size: 10px; font-weight: 700; line-height: 16px; vertical-align: 1px; }
.tier-badge.tier-s { background: rgba(255,213,79,.16); color: #ffd54f; }
.tier-badge.tier-a { background: rgba(91,157,255,.16); color: var(--a); }
.lan-chip { display: inline-block; padding: 0 6px; border-radius: 5px; font-size: 10px; font-weight: 700; line-height: 16px; vertical-align: 1px; background: rgba(47,191,113,.14); color: var(--ok); }
.watch { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(255,138,61,.4); background: rgba(255,138,61,.12); color: var(--accent); font-size: 12px; font-weight: 700; flex: none; }
.watch:hover { background: rgba(255,138,61,.2); }
.wlang { font-size: 10px; font-weight: 600; opacity: .8; }
.when .forfeit { display: block; color: var(--accent); font-weight: 700; font-size: 12px; }
.resched { font-size: 11px; margin-top: 6px; }
.watchbox { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.watch-list { display: flex; gap: 4px; flex-wrap: wrap; }
.watch-list a { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: var(--muted); }
.watch-list a.on, .watch-list a:hover { color: var(--accent); border-color: rgba(255,138,61,.4); }
.ga-note { margin: 0 0 10px; font-size: 12px; color: var(--accent); font-weight: 600; }
.mhead .ga-note { text-align: center; }
.opt.imp { opacity: .45; cursor: not-allowed; }
.opt.imp .ol { text-decoration: line-through; }
/* --- event tournament blocks (lazy htmx) --- */
.evt-lazy { min-height: 44px; }
.evt-card { margin-top: 12px; }
.evt-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 10px; }
.evt-meta-i { display: flex; flex-direction: column; gap: 1px; }
.evt-meta-i .muted { font-size: 11px; }
.evt-meta-i b { font-size: 13px; font-weight: 600; }
.evt-bracket { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.evt-round { flex: 0 0 150px; display: flex; flex-direction: column; gap: 6px; }
.evt-round-t { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.evt-match { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.evt-team { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evt-team.w { font-weight: 700; color: var(--text); }
.evt-score { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.evt-stand { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.evt-stand th, .evt-stand td { text-align: left; padding: 6px 8px; border-top: 1px solid var(--line); }
.evt-stand th { font-size: 11px; color: var(--muted); font-weight: 600; }
.evt-stand th:first-child, .evt-stand td:first-child { width: 40px; }
.evt-stand th:last-child, .evt-stand td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* --- team roster card --- */
.ros-flag { font-size: 15px; line-height: 1; flex: 0 0 auto; }

/* --- Watch button v2: one clear button, other streams in a small language menu --- */
.wbox { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 0 16px; }
.wbtn { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px 0 5px; border-radius: 999px;
  background: linear-gradient(180deg, #232c38, #1a212b); border: 1px solid #33404f; color: var(--text); font-weight: 700; font-size: 14px;
  box-shadow: 0 6px 18px -10px rgba(0,0,0,.8); transition: border-color .15s, transform .15s, box-shadow .15s; }
.wbtn:hover { border-color: rgba(255,138,61,.55); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(255,138,61,.45); color: var(--text); }
.wbtn-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); }
.wbtn-ic svg { width: 14px; height: 14px; fill: #1f0e02; margin-left: 2px; }
.wbtn-t small { font-weight: 500; color: var(--muted); font-size: 13px; }
.wbtn.live .wbtn-ic { background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.55); animation: wlive 1.8s ease-out infinite; }
.wbtn.live .wbtn-ic svg { fill: #fff; }
@keyframes wlive { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); } 100% { box-shadow: 0 0 0 10px rgba(239,68,68,0); } }
@media (prefers-reduced-motion: reduce) { .wbtn.live .wbtn-ic { animation: none; } }
.wlang-one { height: 38px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; }
.wlang-menu { position: relative; }
.wlang-menu summary { list-style: none; cursor: pointer; height: 38px; display: inline-flex; align-items: center; gap: 2px; padding: 0 8px 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; }
.wlang-menu summary::-webkit-details-marker { display: none; }
.wlang-menu summary svg { width: 18px; height: 18px; fill: currentColor; transition: transform .15s; }
.wlang-menu[open] summary { color: var(--text); border-color: #33404f; }
.wlang-menu[open] summary svg { transform: rotate(180deg); }
.wlang-list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); min-width: 190px; padding: 6px; border-radius: 12px;
  background: #1f2833; border: 1px solid #33404f; box-shadow: 0 18px 48px -12px rgba(0,0,0,.75); display: grid; gap: 2px; }
.wlang-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 13px; }
.wlang-list a:hover { background: rgba(255,255,255,.05); }
.wlang-list b { width: 26px; font-size: 12px; }
.wlang-list span { flex: 1; color: var(--muted); }
.wlang-list i { font-style: normal; color: var(--ok); font-size: 12px; }
.wmini { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 3px; border-radius: 999px; border: 1px solid #33404f; background: #1d2530; color: var(--text); font-size: 12px; font-weight: 700; vertical-align: middle; margin-left: 6px; }
.wmini:hover { border-color: rgba(239,68,68,.6); color: var(--text); }
.wmini-ic { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #ef4444; }
.wmini-ic svg { width: 10px; height: 10px; fill: #fff; margin-left: 1px; }

/* --- lineups / stand-ins (li- prefixed) --- */
.li-card { padding: 12px 14px; }
.li-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.li-side + .li-side { border-left: 1px solid var(--line); padding-left: 16px; }
.li-head { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.li-head b { letter-spacing: -.01em; }
.li-badge { flex: 0 0 auto; font-size: 10px; font-weight: 700; letter-spacing: .02em; padding: 2px 7px; border-radius: 6px;
  background: rgba(255,179,64,.15); color: #ffb340; border: 1px solid rgba(255,179,64,.35); white-space: nowrap; }
.match .pick .li-badge { position: absolute; top: -8px; left: 8px; z-index: 1; }
.li-note { font-size: 12px; line-height: 1.4; color: #ffb340; background: rgba(255,179,64,.10);
  border: 1px solid rgba(255,179,64,.30); border-radius: 8px; padding: 6px 9px; margin-bottom: 8px; }
.li-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.li-side .li-row:first-of-type { border-top: 0; }
.li-photo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.li-photo.ini { display: grid; place-items: center; background: var(--panel-2); color: var(--muted); font-weight: 700; font-size: 12px; }
.li-nick { font-weight: 700; }
.li-real { color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-flag { font-size: 15px; line-height: 1; flex: 0 0 auto; }
.li-empty { color: var(--muted); font-size: 13px; padding: 8px 0; }
.li-loading { color: var(--muted); font-size: 13px; padding: 16px; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--r); background: var(--panel); }
.li-league { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; vertical-align: -3px; margin-right: 6px; }
.ros-photo { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.ros-photo.ini { display: grid; place-items: center; background: var(--panel-2); color: var(--muted); font-weight: 700; font-size: 11px; }
@media (max-width: 640px) {
  .li-grid { grid-template-columns: 1fr; gap: 12px; }
  .li-side + .li-side { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 12px; }
}
/* --- event calendar page (prefix cal-) --- */
.cal-head { margin-bottom: 8px; }
.cal-head h1 { margin: 24px 0 4px; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.cal-head > p { margin: 0 0 14px; max-width: 62ch; }
.cal-filters { display: flex; gap: 8px; margin-bottom: 6px; }
.cal-chip { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cal-chip:hover { color: var(--text); border-color: #33404f; }
.cal-chip.on { color: var(--text); border-color: var(--accent); background: rgba(255,138,61,.10); }
.cal-list { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.cal-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.cal-row + .cal-row { border-top: 1px solid var(--line); }
.cal-logo { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; background: var(--panel-2); flex: none; }
.cal-logo.ini { display: grid; place-items: center; font-size: 15px; font-weight: 800; color: var(--text); }
.cal-body { flex: 1; min-width: 0; }
.cal-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-name { font-weight: 700; font-size: 15px; color: var(--text); }
a.cal-name:hover { color: var(--accent); }
.cal-tier, .cal-online { display: inline-block; padding: 0 6px; border-radius: 5px; font-size: 10px; font-weight: 700; line-height: 16px; vertical-align: 1px; background: var(--panel-2); color: var(--muted); }
.cal-online { background: rgba(139,150,168,.12); }
.cal-s { font-size: 12px; margin-top: 1px; }
.cal-meta { display: flex; flex-wrap: wrap; gap: 3px 0; margin-top: 5px; font-size: 12px; color: var(--muted); }
.cal-meta > * + *::before { content: ' · '; color: #3a4553; }
.cal-open { color: var(--accent); font-weight: 600; }
.cal-open:hover { text-decoration: underline; }
.cal-side { flex: none; }
.cal-follow { display: inline-flex; }
.hub-follow { margin: 10px 0 6px; }
.cal-follow { background: transparent; }
.cal-follow.on { color: var(--ok); border-color: rgba(47,191,113,.4); }

/* --- PWA install --- */
.pwa-install[hidden] { display: none; }
.pwa-sheet { position: fixed; inset: 0; z-index: 200; display: grid; place-items: end center; padding: 16px; background: rgba(6, 9, 14, .6); }
.pwa-sheet[hidden] { display: none; }
.pwa-sheet-card { width: 100%; max-width: 420px; background: var(--panel-2); border: 1px solid #2c3746; border-radius: 16px; padding: 18px; text-align: center; }
.pwa-sheet-card b { display: block; font-size: 15px; margin-bottom: 8px; }
.pwa-sheet-card p { color: var(--muted); margin: 0 0 16px; }
.pwa-sheet-card .btn { width: 100%; justify-content: center; }

/* --- Page switches: header and tab bar stay put (no snapshot cross-fade), quicker root fade --- */
/* Backdrop blur is not captured in view-transition snapshots, so the glass bars looked smeared during page changes. */
::view-transition-group(topbar), ::view-transition-group(tabbar),
::view-transition-old(topbar), ::view-transition-new(topbar),
::view-transition-old(tabbar), ::view-transition-new(tabbar) { animation: none; }
::view-transition-old(topbar), ::view-transition-old(tabbar) { display: none; }
::view-transition-group(*) { animation-duration: .18s; }
@media (max-width: 640px) {
  .tabbar { background: rgba(13,17,23,.97); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .top { background: rgba(13,17,23,.97); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tabbar a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  .tabbar a.tapped { color: var(--accent); }
  .tabbar:has(a.tapped) a.on:not(.tapped) { color: var(--muted); }
}

/* --- Inline stream player on the match page (click to load) --- */
.wp { margin: 16px 0 6px; scroll-margin-top: 72px; }
.wp-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #07090c; border: 1px solid var(--line); }
.wp-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wp-facade { position: absolute; inset: 0; width: 100%; display: grid; place-items: center; align-content: center; gap: 14px; border: 0; cursor: pointer; color: var(--text); font: inherit;
  background: radial-gradient(70% 90% at 50% 40%, rgba(255,138,61,.16), transparent 70%), linear-gradient(180deg, #131a23, #07090c); }
.wp-play { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--accent); box-shadow: 0 12px 34px -8px rgba(255,138,61,.6); transition: transform .15s; }
.wp-play svg { width: 28px; height: 28px; fill: #1f0e02; margin-left: 4px; }
.wp[data-live="1"] .wp-play { background: #ef4444; box-shadow: 0 12px 34px -8px rgba(239,68,68,.6); }
.wp[data-live="1"] .wp-play svg { fill: #fff; }
.wp-facade:hover .wp-play { transform: scale(1.06); }
.wp-cap { display: grid; gap: 4px; text-align: center; padding: 0 16px; }
.wp-cap b { font-size: 17px; letter-spacing: -.01em; }
.wp-cap small { color: var(--muted); font-size: 13px; }
.wp-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.wp-tabs { display: flex; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; }
.wp-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.wp-tab b { color: var(--text); font-size: 12px; }
.wp-tab i { font-style: normal; color: var(--ok); font-size: 11px; }
.wp-tab.on { border-color: rgba(255,138,61,.55); color: var(--text); background: rgba(255,138,61,.08); }
.wp-out { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.wp-out:hover { color: var(--text); }
@media (max-width: 640px) { .wp { margin: 12px -12px 6px; } .wp-frame { border-radius: 0; border-left: 0; border-right: 0; } .wp-bar { padding: 0 12px; } .wp-play { width: 56px; height: 56px; } }
.wp-frame { width: min(100%, calc(72vh * 16 / 9)); margin: 0 auto; }

/* ============================================================================
   Matchday theme (md- prefix on NEW classes): Barlow Condensed numerals + chrome
   ============================================================================ */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-latin-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-latin-700.woff2) format('woff2'); }

/* Panels + day headings */
.card, .list { border-radius: 16px; background: var(--panel); border-color: var(--line); }
.day { margin: 28px 0 10px; display: flex; align-items: center; font-family: var(--font-num); font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--text); }
.day .cnt { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.day .intel-src, .day .intel-hidden { font-family: Inter, system-ui, sans-serif; text-transform: none; }

/* Buttons */
.btn.primary { background: var(--accent); border-color: var(--accent); color: #1f0e02; font-weight: 700; }
.btn.primary:not(.sm) { min-height: 44px; }

/* Filter + stake chips: 36px pill; selected = accent border + tinted bg */
.chip, .fchip { min-height: 36px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--line); background: var(--panel); color: #C4CDD9; font-weight: 600; font-size: 13px; }
.chip.on, .fchip[aria-pressed="true"] { border-color: var(--accent); background: rgba(255,138,61,.12); color: var(--accent); }

/* Tier + LAN tags: gold / green outlined small caps */
.tier-badge.tier-s { background: transparent; color: #F5C542; border: 1px solid #5c4a1a; border-radius: 5px; text-transform: uppercase; letter-spacing: .02em; }
.tier-badge.tier-a { background: transparent; color: var(--a); border: 1px solid rgba(91,155,255,.4); border-radius: 5px; text-transform: uppercase; letter-spacing: .02em; }
.lan-chip { background: transparent; color: #34C77B; border: 1px solid #1f4d36; border-radius: 5px; text-transform: uppercase; letter-spacing: .02em; }

/* Header: brand, nav, icon buttons, coins, avatar */
.nav a.on { font-weight: 600; }
.sbtn, .hicon, .bell, .obbtn { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.sbtn:hover, .bell:hover, .obbtn:hover { background: var(--panel-2); }
.coins { height: 40px; padding: 0 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-family: var(--font-num); font-size: 19px; font-weight: 600; }
.umenu > summary.plink { background: none; padding: 0; }
.umenu > summary .avatar, .umenu > summary .avatar.ph { width: 40px; height: 40px; }
.umenu > summary .avatar.ph { font-size: 18px; }

/* Mobile tab bar: 22px accent bar above the active label */
.tabbar a { font-size: 11px; font-weight: 600; }
.tabbar a::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: transparent; margin-bottom: 1px; }
.tabbar a.on::before { background: var(--accent); }

/* Skeleton shimmer for lazily-loaded panels */
.md-skel { position: relative; overflow: hidden; border-radius: 6px; background: var(--panel-2); height: 14px; }
.md-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(232,237,244,.09), transparent); animation: md-shimmer 1.4s infinite; }
@keyframes md-shimmer { to { transform: translateX(100%); } }
.md-skel-row { display: grid; gap: 10px; padding: 12px; min-height: 96px; }
.obbtn.htmx-request { opacity: .6; pointer-events: none; }

@media (max-width: 640px) {
  .coins { font-size: 17px; padding: 0 11px; }
}
@media (prefers-reduced-motion: reduce) { .md-skel::after { animation: none; } }
/* ======================= Matchday: home + match cards =======================
   Ground #0E1219, panel #151B24, raised #1B2330, border #26303D, row divider #1F2732,
   text #E8EDF4, muted #93A0B2, soft #C4CDD9, accent var(--accent), team A #5B9BFF on #102038
   (border #23406b), team B #FF6B8B on #331520 (border #6b2a3c), live #F05252, win #34C77B,
   coin #F5C542. Numbers/odds/times/team names use var(--font-num) (Barlow Condensed). */
.md-num { font-family: var(--font-num, "Inter", sans-serif); }

/* --- Featured card --- */
.md-spot { border: 1px solid #26303D; background: #151B24; border-radius: 18px; padding: 0; box-shadow: none; overflow: hidden; color: #E8EDF4; }
.md-spot:hover { box-shadow: none; }
.md-spot-head { display: flex; align-items: center; gap: 10px; padding: 16px 24px; border-bottom: 1px solid #222B37; font-size: 13px; color: #93A0B2; flex-wrap: wrap; }
.md-spot-head .spot-tag { flex: none; }
.md-spot-ev { color: #E8EDF4; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-spot-bo { white-space: nowrap; }
.md-spot-open { margin-left: auto; color: var(--accent); font-weight: 600; }
.md-spot-open:hover { color: var(--accent); text-decoration: underline; }
.md-tag { padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 700; line-height: 16px; }
.md-tag-s { border: 1px solid #5c4a1a; color: #F5C542; }
.md-tag-lan { border: 1px solid #1f4d36; color: #34C77B; }

.md-spot-mid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; padding: 32px 24px 20px; }
.md-spot-team { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.md-spot-tm { font-family: var(--font-num, "Inter", sans-serif); font-size: 30px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.md-tile { width: 84px; height: 84px; border-radius: 20px; display: grid; place-items: center; flex: none; }
.md-tile.md-a { background: #102038; border: 1px solid #23406b; }
.md-tile.md-b { background: #331520; border: 1px solid #6b2a3c; }
.md-tile img { width: 56px; height: 56px; object-fit: contain; }
.md-tile .md-ini { font-family: var(--font-num, "Inter", sans-serif); font-size: 34px; font-weight: 700; }
.md-tile.md-a .md-ini { color: #5B9BFF; }
.md-tile.md-b .md-ini { color: #FF6B8B; }

.md-spot-c { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.md-spot-label { font-size: 12px; color: #93A0B2; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.md-spot-cd { font-family: var(--font-num, "Inter", sans-serif); font-size: 56px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.md-spot-cd time.soon { color: var(--accent); }
.md-spot-t { font-size: 13px; color: #93A0B2; }

.md-spot-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 24px; }
.md-back { height: 64px; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; font: inherit; font-weight: 600; color: #E8EDF4; min-width: 0; transition: transform .12s; }
.md-back:hover { color: #E8EDF4; }
.md-back:active { transform: scale(.98); }
.md-back span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-back b { font-family: var(--font-num, "Inter", sans-serif); font-size: 30px; font-weight: 700; flex: none; }
.md-back-a { border: 1px solid #23406b; background: #102038; }
.md-back-a b { color: #5B9BFF; }
.md-back-b { border: 1px solid #6b2a3c; background: #331520; }
.md-back-b b { color: #FF6B8B; }

.md-split { padding: 18px 24px 22px; display: flex; flex-direction: column; gap: 8px; }
.md-split-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #93A0B2; flex-wrap: wrap; }
.md-split-meta b { color: #E8EDF4; }
.md-split-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 3px; }
.md-split-bar .md-sa { background: #5B9BFF; }
.md-split-bar .md-sb { flex: 1; background: #FF6B8B; }
.md-spot .spot-cta { padding: 0 24px 22px; }

/* --- "Your day" sidebar card (quests + season pass) --- */
.md-day { border-radius: 16px; border-color: #26303D; background: #151B24; padding: 18px; }
.md-day-h { margin: 0 0 14px; font-size: 14px; font-weight: 700; }
.md-day-h b { letter-spacing: -.01em; }
.quests-summary { display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; padding-bottom: 2px; }
.quests-summary::-webkit-details-marker { display: none; }
.md-ring { --p: 0; flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), #26303D 0); }
.md-ring b { width: 40px; height: 40px; border-radius: 50%; background: #151B24; display: grid; place-items: center;
  font-family: var(--font-num, "Inter", sans-serif); font-size: 18px; font-weight: 700; }
.md-day-q { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.md-day-q b { font-size: 13px; }
.md-day-q span { font-size: 12px; color: #93A0B2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-claim { height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 700; flex: none; }
.quests-chev { width: 16px; height: 16px; fill: #93A0B2; flex: none; margin-left: 0; transition: transform .2s; }
.quests-fold[open] .quests-chev { transform: rotate(180deg); }
.quests-fold:not([open]) > .quests-body { display: none; }
.quests-body { margin-top: 12px; border-top: 1px solid #222B37; padding-top: 4px; }
.md-pass { padding-top: 14px; border-top: 1px solid #222B37; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.md-pass-h { display: flex; justify-content: space-between; font-size: 13px; }
.md-pass-h b { font-size: 13px; }
.md-pass-bar { height: 6px; border-radius: 3px; background: #26303D; overflow: hidden; }
.md-pass-bar i { display: block; height: 100%; background: var(--accent); }
.md-pass p { font-size: 12px; color: #93A0B2; }
.md-pass .card-more { font-size: 12px; }

/* --- day headings --- */
.day { font-family: var(--font-num, "Inter", sans-serif); font-size: 22px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #E8EDF4; margin: 28px 0 10px; display: flex; align-items: center; gap: 10px; }
.day .dot-live { width: 9px; height: 9px; border-radius: 50%; background: #F05252; margin-right: 0; flex: none; }
.day .cnt { font-family: "Inter", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #93A0B2; background: #1B2330; padding: 2px 8px; border-radius: 6px; margin-left: 0; }

/* --- filter chips --- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 4px; }
.fchip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #26303D; background: #151B24; color: #C4CDD9; font-weight: 600; font-size: 13px; }
.fchip:hover { border-color: #33404f; color: #E8EDF4; }
.fchip[aria-pressed="true"] { border-color: var(--accent); background: rgba(255,138,61,.12); color: var(--accent); }
.fchip.combo-toggle { border-style: dashed; border-color: #3a4656; background: transparent; color: #C4CDD9; }
.fchip.combo-toggle::before { display: none; }
.fchip.combo-toggle[aria-pressed="true"] { border-style: solid; color: #1f0e02; background: var(--accent); border-color: var(--accent); }

/* --- match list + rows --- */
.list { border-radius: 16px; border-color: #26303D; background: #151B24; }
#live + .list { border-color: #26303D; }
.match { border-top: 1px solid #1F2732; }
.match:first-child { border-top: 0; }
.row { grid-template-columns: 96px minmax(0, 1fr) 72px; gap: 16px; padding: 14px 20px; }
.md-cen { min-width: 0; }
.md-more { justify-self: end; align-self: center; font-size: 13px; color: var(--accent); font-weight: 600; }
.md-more:hover { color: var(--accent); text-decoration: underline; }

.when b { font-family: var(--font-num, "Inter", sans-serif); font-size: 20px; font-weight: 700; letter-spacing: .01em; }
.when .live { color: #F05252; }
.when .score { font-family: var(--font-num, "Inter", sans-serif); font-size: 20px; }
.evrow .event { font-size: 12px; color: #93A0B2; }
.match .tier-badge { border: 1px solid #5c4a1a; background: transparent; color: #F5C542; text-transform: uppercase; letter-spacing: .02em; border-radius: 4px; padding: 1px 6px; }
.match .tier-badge.tier-a { border-color: #23406b; color: #5B9BFF; }
.match .lan-chip { border: 1px solid #1f4d36; background: transparent; color: #34C77B; border-radius: 4px; padding: 1px 6px; }

.match .pick { height: 46px; border-radius: 11px; border-color: #26303D; background-color: #1B2330; padding: 0 14px; gap: 10px; }
.match .pick:hover { border-color: #33404f; }
.match .pick .tm { font-weight: 600; }
.match .pick .odds { font-family: var(--font-num, "Inter", sans-serif); font-size: 20px; font-weight: 700; color: #E8EDF4; }
.match .pick .ini, .match .pick .logo { width: 24px; height: 24px; }
.match .pick .ini { border-radius: 7px; font-size: 10px; font-weight: 800; }
.match .pick.a .ini { background: #102038; color: #5B9BFF; }
.match .pick.b .ini { background: #331520; color: #FF6B8B; }
.match .pick.a[style*="--share"] { background-image: linear-gradient(90deg, rgba(91,155,255,.14) var(--share), transparent var(--share)); }
.match .pick.b[style*="--share"] { background-image: linear-gradient(90deg, rgba(255,107,139,.14) var(--share), transparent var(--share)); }
.match .pick:has(input:checked) { background-image: none; }

/* --- skeleton shimmer (md-skel) --- */
.md-skel { position: relative; overflow: hidden; background: #1B2330; border-radius: 8px; }
.md-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); animation: md-shimmer 1.2s infinite; }
@keyframes md-shimmer { to { transform: translateX(100%); } }
#quests.htmx-request, #quests.htmx-swapping { min-height: 200px; }
#feed.htmx-request, #feed.htmx-swapping { min-height: 96px; }

/* --- responsive --- */
@media (max-width: 760px) {
  .md-spot-mid { gap: 12px; padding: 24px 16px 16px; }
  .md-tile { width: 60px; height: 60px; border-radius: 16px; }
  .md-tile img { width: 42px; height: 42px; }
  .md-tile .md-ini { font-size: 24px; }
  .md-spot-tm { font-size: 20px; }
  .md-spot-cd { font-size: 36px; }
  .md-spot-btns { padding: 0 16px; }
  .md-back { height: 52px; border-radius: 12px; padding: 0 14px; }
  .md-back b { font-size: 24px; }
  .md-split { padding: 14px 16px 18px; }
  .md-spot .spot-cta { padding: 0 16px 18px; }
  .md-spot-head { padding: 12px 16px; }
}

@media (max-width: 640px) {
  .row { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 12px 12px; }
  .md-more { display: none; }
  .when b { font-size: 18px; }
  .match .pick { padding: 0 10px; gap: 8px; }
  .fchip { height: 34px; padding: 0 12px; font-size: 12.5px; }
  .day { font-size: 20px; }
}

@media (max-width: 480px) {
  .match .pick { height: auto; min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .md-skel::after, .md-spot-cd time, .md-back { animation: none; transition: none; }
}
/* ======================= MATCHDAY: match page ======================= */
/* Scoped to .md-page so team/home pages sharing .card/.frow/.day/.fm are untouched. */
.md-page {
  --font-num: "Barlow Condensed", "Inter", system-ui, sans-serif;
  --md-a: #5B9BFF; --md-a-bg: #102038; --md-a-line: #23406b;
  --md-b: #FF6B8B; --md-b-bg: #331520; --md-b-line: #6b2a3c;
  --md-panel: #151B24; --md-raised: #1B2330; --md-line: #26303D; --md-divider: #1F2732;
  --md-text: #E8EDF4; --md-muted: #93A0B2; --md-live: #F05252; --md-win: #34C77B;
}

/* --- broadcast header --- */
.md-page .mhead { margin-top: 12px; padding: 24px 20px 22px; border: 1px solid #222B37; border-radius: 18px; background: #121821; box-shadow: none; }
.md-page .mev { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 0; font-size: 13px; color: var(--md-muted); }
.md-page .mev a { color: var(--md-text); font-weight: 600; }
.md-page .mhead .ga-note { text-align: center; }
.md-page .mteams { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 32px; padding-top: 24px; }
.md-page .mt { display: flex; align-items: center; gap: 18px; }
.md-page .md-team-a { justify-content: flex-end; }
.md-page .md-team-b { justify-content: flex-start; }
.md-page .md-team-id { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.md-page .md-team-a .md-team-id { align-items: flex-end; }
.md-page .md-team-b .md-team-id { align-items: flex-start; }
.md-page .mt b, .md-page .mt .tname { font-family: var(--font-num); font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--md-text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-page .mt.w b, .md-page .mt.w .tname { color: var(--md-win); }
.md-page .tlogo { width: 96px; height: 96px; border-radius: 22px; object-fit: contain; }
.md-page .tlogo.ini { display: grid; place-items: center; font-family: var(--font-num); font-size: 38px; font-weight: 700; }
.md-page .md-team-a .tlogo { background: var(--md-a-bg); border: 1px solid var(--md-a-line); color: var(--md-a); }
.md-page .md-team-b .tlogo { background: var(--md-b-bg); border: 1px solid var(--md-b-line); color: var(--md-b); }
.md-page .tform { gap: 4px; }
.md-page .fm { width: 20px; height: 20px; border-radius: 5px; font-size: 10px; font-weight: 800; }
.md-page .fm.w { background: rgba(52, 199, 123, .16); color: var(--md-win); }
.md-page .fm.l { background: rgba(240, 82, 82, .16); color: #F27474; }
.md-page .mmid { min-width: 150px; gap: 6px; }
.md-page .mmid .big { font-family: var(--font-num); font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: .02em; }
.md-page .mmid .big span { color: var(--md-muted); margin: 0 6px; }
.md-page .mmid small.muted { font-size: 13px; text-align: center; }
.md-page .mmid .live { color: var(--md-live); font-weight: 700; font-size: 12px; }
.md-page .wbox { margin: 8px 0 0; }

/* --- section nav --- */
.md-page .md-nav { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.md-page .md-nav a { padding: 12px 16px; border-bottom: 2px solid transparent; color: var(--md-muted); font-weight: 700; font-size: 13px; }
.md-page .md-nav a:hover { color: var(--md-text); }

/* --- section headings --- */
.md-page .md-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.md-page .md-h { font-family: var(--font-num); font-size: 24px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1.1; }
.md-page .md-card-h .md-h { margin: 0; }
.md-page .md-h-sub { font-size: 12px; color: var(--md-muted); }
#bet, #watch, #lineups, #form, #bettors { scroll-margin-top: 80px; }

/* --- winner card (match_card is untouched; only its tiles are restyled here) --- */
.md-page .md-winner { border-radius: 18px; background: var(--md-panel); border: 1px solid var(--md-line); padding: 22px; }
.md-page .md-winner .match { border-top: 0; }
.md-page .md-winner .sides { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.md-page .md-winner .pick { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--md-line); background: var(--md-raised); }
.md-page .md-winner .pick:hover { border-color: #33404f; }
.md-page .md-winner .pick .logo, .md-page .md-winner .pick .ini { display: none; }
.md-page .md-winner .pick .tm { order: 1; font-size: 14px; font-weight: 600; color: var(--md-text); }
.md-page .md-winner .pick .odds { order: 2; font-family: var(--font-num); font-size: 38px; font-weight: 700; line-height: 1; letter-spacing: .02em; }
.md-page .md-winner .pick.a .odds { color: var(--md-a); }
.md-page .md-winner .pick.b .odds { color: var(--md-b); }
.md-page .md-winner .pick::before { order: 3; content: var(--share) " of the pool"; font-size: 12px; color: var(--md-muted); }
.md-page .md-winner .pick.a:has(input:checked) { border-color: var(--md-a); background: var(--md-a-bg); }
.md-page .md-winner .pick.b:has(input:checked) { border-color: var(--md-b); background: var(--md-b-bg); }
.md-page .md-winner .meta { display: none; }
.md-page .md-winner .match .slip { padding: 14px 0 0; margin: 0; gap: 10px; }
.md-page .md-winner .match .note { padding-left: 0; margin-left: 0; margin-top: 10px; }

/* --- exact series score --- */
.md-page .md-mapbet { border-radius: 18px; background: var(--md-panel); border: 1px solid var(--md-line); padding: 22px; margin-top: 24px; }
.md-page .md-mapbet .ga-note { margin: 0 0 12px; }
.md-page .md-mapbet .opts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.md-page .md-mapbet .opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border-radius: 12px; border: 1px solid var(--md-line); background: var(--md-raised); }
.md-page .md-mapbet .opt .ol { font-size: 12px; color: var(--md-muted); font-weight: 500; }
.md-page .md-mapbet .opt b { font-family: var(--font-num); font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: var(--md-text); }
.md-page .md-mapbet .opt.a b { color: var(--md-a); }
.md-page .md-mapbet .opt.b b { color: var(--md-b); }
.md-page .md-mapbet .opt small { font-size: 11px; color: var(--md-muted); }
.md-page .md-mapbet .opt.a:has(input:checked) { border-color: var(--md-a); background: var(--md-a-bg); }
.md-page .md-mapbet .opt.b:has(input:checked) { border-color: var(--md-b); background: var(--md-b-bg); }

/* --- lineups --- */
.md-page .md-li-card { border-radius: 18px; background: var(--md-panel); border: 1px solid var(--md-line); padding: 22px; }
.md-page .md-li-card .li-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
.md-page .md-li + .md-li { border-left: 0; padding-left: 0; }
.md-page .md-li .li-head b { font-family: var(--font-num); font-size: 15px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.md-page .md-li-a .li-head b { color: var(--md-a); }
.md-page .md-li-b .li-head b { color: var(--md-b); }
.md-page .md-li .li-row { border-top: 1px solid var(--md-divider); gap: 10px; }
.md-page .md-li .li-row:first-of-type { border-top: 0; }
.md-page .md-li .li-photo { width: 30px; height: 30px; }
.md-page .md-li .li-photo.ini { background: var(--md-line); color: var(--md-muted); }
.md-page .md-li .li-real { color: var(--md-muted); }

/* --- sidebar --- */
.md-page .md-aside .card { border-radius: 16px; background: var(--md-panel); border: 1px solid var(--md-line); padding: 18px; }
.md-page .md-aside .card-h { margin-bottom: 12px; }
.md-page .md-aside .card-h b { font-size: 14px; font-weight: 700; letter-spacing: 0; }
.md-page .md-aside .fhead { color: var(--md-muted); font-size: 12px; font-weight: 700; margin: 12px 0 4px; }
.md-page .md-aside .frow { border-top-color: var(--md-divider); gap: 10px; }
.md-page .md-aside .frow b { font-family: var(--font-num); font-size: 16px; font-weight: 700; }
.md-page .md-rt-nums { display: flex; justify-content: space-between; font-family: var(--font-num); font-size: 30px; font-weight: 700; line-height: 1; }
.md-page .md-rt-nums .a { color: var(--md-a); }
.md-page .md-rt-nums .b { color: var(--md-b); }
.md-page .md-rt-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 3px; margin: 8px 0 10px; }
.md-page .md-rt-bar i:first-child { flex: none; background: var(--md-a); }
.md-page .md-rt-bar i:last-child { flex: 1; background: var(--md-b); }
.md-page .md-rt-note { margin: 0; font-size: 12px; color: var(--md-muted); line-height: 1.5; }

/* --- skeletons + in-flight states --- */
.md-page .md-skel { display: block; height: 16px; border-radius: 6px; background: linear-gradient(90deg, #1B2330 25%, #26303D 50%, #1B2330 75%); background-size: 200% 100%; animation: md-shimmer 1.4s ease-in-out infinite; }
.md-page .md-skel-lineup { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 22px; border: 1px solid var(--md-line); border-radius: 18px; background: var(--md-panel); }
.md-page .md-skel-col { display: flex; flex-direction: column; gap: 12px; }
.md-page .md-skel-col .md-skel:first-child { width: 40%; height: 15px; }
@keyframes md-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.md-page form.htmx-request button[type=submit] { opacity: .6; pointer-events: none; }
.md-page button.pkb.htmx-request { opacity: .6; pointer-events: none; }

@media (max-width: 640px) {
  .md-page .mhead { padding: 18px 12px 16px; }
  .md-page .mteams { gap: 10px; padding-top: 18px; }
  .md-page .mt { gap: 10px; }
  .md-page .tlogo { width: 52px; height: 52px; border-radius: 12px; }
  .md-page .tlogo.ini { font-size: 20px; }
  .md-page .mt b, .md-page .mt .tname { font-size: 22px; }
  .md-page .mmid { min-width: 0; }
  .md-page .mmid .big { font-size: 40px; }
  .md-page .mmid small.muted { font-size: 11px; }
  .md-page .md-winner { padding: 16px; }
  .md-page .md-winner .pick { padding: 14px 12px; }
  .md-page .md-winner .pick .odds { font-size: 30px; }
  .md-page .md-mapbet { padding: 16px; }
  .md-page .md-mapbet .opts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .md-page .md-li-card { padding: 16px; }
  .md-page .md-li-card .li-grid { grid-template-columns: 1fr; gap: 14px; }
  .md-page .md-li + .md-li { border-left: 0; border-top: 1px solid var(--md-divider); padding-left: 0; padding-top: 14px; }
  .md-page .md-skel-lineup { grid-template-columns: 1fr; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .md-page .md-skel { animation: none; background: #1B2330; }
}

.md-split-empty { margin: 0; padding: 14px 24px 18px; font-size: 13px; color: var(--muted); text-align: center; }

/* Match page WINNER card on top of the new match-card structure: only the two big pick tiles and the bet slip */
.md-page .md-winner .match { border: 0; background: none; padding: 0; box-shadow: none; }
.md-page .md-winner .match.is-live { border-left: 0; }
.md-page .md-winner .match .row { display: block; padding: 0; }
.md-page .md-winner .match .when, .md-page .md-winner .match .evrow, .md-page .md-winner .match .md-more,
.md-page .md-winner .match .resched, .md-page .md-winner .match .maps, .md-page .md-winner .match .meta { display: none; }
.md-page .md-winner .match .pick { height: auto; min-height: 104px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 16px 18px; }
.md-page .md-winner .match .pick .tm { font-size: 14px; white-space: normal; }
.md-page .md-winner .pick::before { content: none; }
@media (max-width: 480px) { .md-page .md-winner .match .pick { min-height: 92px; } }
.md-back em { font-style: normal; }
.md-back span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { .md-back em { display: none; } }

/* Header never pushes the account controls off: the right side keeps its size, nav links scroll if space runs out */
.top .me { flex: none; }
.top .nav { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.top .nav::-webkit-scrollbar { display: none; }
.top .nav a { flex: none; }
@media (max-width: 1080px) and (min-width: 641px) { .top .nav a { padding: 7px 9px; } }

/* Featured match adapts to its own width (narrow column on tablets), not only the screen */
.md-spot { container-type: inline-size; }
@container (max-width: 560px) {
  .md-spot-cd { font-size: 34px !important; }
  .md-tile { width: 60px !important; height: 60px !important; }
  .md-spot-tm { font-size: 20px !important; }
  .md-back { height: 52px; padding: 0 14px; }
  .md-back em { display: none; }
  .md-back b { font-size: 24px; }
}

/* --- design audit: phone match header, section nav, stream bar, stand-in badge --- */
@media (max-width: 480px) {
  .md-page .mteams { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "a b" "mid mid"; row-gap: 14px; }
  .md-page .md-team-a { grid-area: a; flex-direction: column-reverse; }
  .md-page .md-team-b { grid-area: b; flex-direction: column; }
  .md-page .md-mid { grid-area: mid; }
  .md-page .md-team-a .md-team-id, .md-page .md-team-b .md-team-id { align-items: center; max-width: 100%; }
  .md-page .mt { justify-content: flex-start; gap: 8px; }
  .md-page .mt b, .md-page .mt .tname { font-size: 24px; }
  .md-page .md-nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 10px -12px 0; padding: 0 12px; }
  .md-page .md-nav::-webkit-scrollbar { display: none; }
  .md-page .md-nav a { flex: none; padding: 12px 10px; white-space: nowrap; }
  .wp-bar { flex-wrap: nowrap; }
}
.match .pick .li-badge { left: 50%; transform: translateX(-50%); }

/* ==== home: spotlight header stats, live list, right-rail gap ==== */

/* event strip folded into the spotlight card: open/staked numbers sit beside the chips */
.md-spot-stats { font-family: var(--font-num, "Inter", sans-serif); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* right rail: the spotlight's side boxes render at the top of .side-col, so they stack with Your day */
.home .main-col > .md-spot { margin-top: 22px; }

/* live-now rail list (replaces the bare count tile) */
.home-live-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.home-live-head b { font-size: 22px; font-variant-numeric: tabular-nums; }
.home-live-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.home-live-row:hover .hl-t { color: var(--accent); }
.hl-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.hl-t.r { text-align: right; }
.hl-sc { flex: none; font-family: var(--font-num, "Inter", sans-serif); font-variant-numeric: tabular-nums; font-weight: 700; }
.home-live-more { display: block; margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line-soft); text-align: center; color: var(--accent); font-size: 12px; font-weight: 600; }
.home-live-more:hover { text-decoration: underline; }
@media (max-width: 640px) { .home-live { display: none; } }
/* --- pick'em spacing + alignment --- */
.pk-grid { margin-top: 16px; }                 /* header card -> notice/day: 16px */
.pk-grid > aside { margin-top: 0; }            /* rail starts level with the notice */
.pk-grid .hint { margin: 0; }                  /* day heading carries the gap below */
.pk-grid .day { margin: 16px 0; }              /* same 16px above/below every day */
.pk-head .prizes { align-items: center; }      /* prize boxes centred against the ring */
.pk-head .pz.p1, .pk-head .pz.p2, .pk-head .pz.p3 { height: 74px; }
.pk-head .pz b { font-family: var(--font-num); font-size: 18px; }
.pk-grid .pkb { height: 42px; }                /* every pick tile the same height */
.pk-grid .pkb .pmark { line-height: 1; }       /* check mark never changes height */
/* one column: open bets live in the header button and the live list in the match list, so only the guest steps stay */
@media (max-width: 960px) { .home .side-col .bento-side > .card:not(.steps) { display: none; } }
/* match page: Winner card and the aside start on the same line, 16px under the player/stream bar */
.md-page .mgrid { margin-top: 16px; }
.md-page .mgrid > aside { margin-top: 0; }
.md-page .mgrid > div > :first-child { margin-top: 0; }

/* --- task: calmer match-card meta row (mc-) --- */
.mc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mc-stake { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border: 1px solid rgba(255,138,61,.35); border-radius: 6px; color: var(--accent); font-family: var(--font-num, "Inter", sans-serif); font-weight: 700; font-size: 13px; white-space: nowrap; }
.mc-arrow { opacity: .55; font-weight: 400; }
.mc-map { padding: 2px 7px; border: 1px solid #26303D; border-radius: 6px; }
.mc-map b { font-weight: 700; }
.mc-map b.mc-pa { color: var(--a); }
.mc-map b.mc-pb { color: var(--b); }
.mc-map.live { color: #F05252; border-color: currentColor; }
.mc-resched { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); white-space: nowrap; }
.mc-resched svg { width: 13px; height: 13px; fill: currentColor; }
.mc-share { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--muted); margin-left: auto; }
.mc-share svg { width: 14px; height: 14px; fill: currentColor; }
.mc-share:hover { color: var(--accent); background: rgba(255,138,61,.1); }
/* match page (md-winner) hides map chips + rescheduled icon as before, keeps the stake chip and share link */
.md-page .md-winner .match .mc-map,
.md-page .md-winner .match .mc-resched { display: none; }

/* ======================= leaderboard podium + rows (lbp-) ======================= */
.lbp-podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.lbp-pod { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1 1 0; min-width: 0; max-width: 240px; padding: 22px 10px 14px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.lbp-pod-1 { padding: 34px 12px 20px; border-color: rgba(245,197,66,.55); background: linear-gradient(180deg, rgba(245,197,66,.16), rgba(245,197,66,.04)), var(--panel); box-shadow: 0 16px 34px -22px rgba(245,197,66,.55); }
.lbp-pod-rank { position: absolute; top: 8px; left: 10px; font-family: var(--font-num); font-size: 16px; font-weight: 700; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.lbp-pod-1 .lbp-pod-rank { color: #F5C542; font-size: 20px; }
.lbp-pod > .avatar { width: 52px; height: 52px; }
.lbp-pod-1 > .avatar { width: 68px; height: 68px; }
.lbp-pod > .avatar.ph { font-size: 22px; }
.lbp-pod-1 > .avatar.ph { font-size: 26px; }
.lbp-pod-name { width: 100%; min-width: 0; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbp-pod-1 .lbp-pod-name { font-size: 15px; }
.lbp-pod-val { font-family: var(--font-num); font-size: 20px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lbp-pod-1 .lbp-pod-val { font-size: 26px; }

.lbp-list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lbp-row { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; border-top: 1px solid var(--line); min-width: 0; }
.lbp-row:first-child { border-top: 0; }
a.lbp-row:hover { background: rgba(232,237,244,.03); }
.lbp-row.lbp-me { background: rgba(255,138,61,.06); box-shadow: inset 3px 0 0 var(--accent); }
.lbp-hd { height: 32px; color: var(--muted); font-size: 12px; font-weight: 600; }
.lbp-rank { font-family: var(--font-num); font-size: 15px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; width: 26px; flex: none; }
.lbp-row > .avatar { width: 28px; height: 28px; flex: none; }
.lbp-row > .avatar.ph { font-size: 12px; }
.lbp-name { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.lbp-name .lvl { vertical-align: middle; }
.lbp-bets { flex: none; width: 44px; text-align: right; font-family: var(--font-num); font-variant-numeric: tabular-nums; color: var(--muted); }
.lbp-val { flex: none; font-family: var(--font-num); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.lbp-hd .lbp-rank, .lbp-hd .lbp-val, .lbp-hd .lbp-bets { font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: 12px; color: var(--muted); }

.lbp-youbar { position: sticky; bottom: 0; margin-top: 8px; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 -6px 16px rgba(0,0,0,.28); }
.lbp-youbar .lbp-rank { width: 34px; }
.lbp-youbar > .avatar, .lbp-youbar > .avatar.ph { width: 24px; height: 24px; flex: none; }
.lbp-youbar > .avatar.ph { font-size: 11px; }
.lbp-youbar .lbp-name { font-weight: 600; }
.lbp-youbar .lbp-val { font-size: 16px; }
.lbp-youbar .lbp-hint { color: var(--muted); font-size: 12px; min-width: 0; }

@media (max-width: 640px) {
  .lbp-youbar { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .lbp-podium { gap: 6px; }
  .lbp-pod { padding: 18px 6px 12px; gap: 5px; }
  .lbp-pod-1 { padding: 26px 8px 16px; }
  .lbp-pod > .avatar { width: 40px; height: 40px; }
  .lbp-pod-1 > .avatar { width: 52px; height: 52px; }
  .lbp-pod > .avatar.ph { font-size: 18px; }
  .lbp-pod-1 > .avatar.ph { font-size: 20px; }
  .lbp-pod-name { font-size: 12px; }
  .lbp-pod-1 .lbp-pod-name { font-size: 13px; }
  .lbp-pod-val { font-size: 17px; }
  .lbp-pod-1 .lbp-pod-val { font-size: 22px; }
  .lbp-row { gap: 10px; padding: 0 12px; }

}
/* profile stats: condensed numerals */
.pstats.pstats b { font-family: var(--font-num); font-size: 18px; font-weight: 700; letter-spacing: 0; }

/* --- season pass: vertical tier list on phones (<640px) --- */
@media (max-width: 640px) {
  .pv-track { display: flex; flex-direction: column; overflow: visible; padding: 6px 0; }
  .pv-rail { display: none; }
  .pv-col { flex: none; width: 100%; flex-direction: row; align-items: center; gap: 12px; padding: 0; }
  .pv-col + .pv-col { margin-top: 10px; }
  .pv-node { flex: none; }
  .pv-card { flex: 1; min-width: 0; min-height: 0; flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; }
  .pv-prev { flex: 0 1 auto; width: auto; min-width: 0; max-width: 42%; min-height: 0; }
  .pv-col .pn, .pv-col .ptitle { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pv-label { display: none; }
  .pv-card form, .pv-card .btn { width: auto; }
  .pv-state, .pv-card form { margin-left: auto; }
  .pv-coins { font-size: 16px; }
  .pv-coins::before { width: 14px; height: 14px; }
  .pv-bn { width: 64px; height: 44px; }
  .pv-col .frame .avatar { width: 44px; height: 44px; }
  .pv-col.cos .pv-card { border: 1px solid var(--coin); }
}

/* --- Favourite team picker (ft-) ------------------------------------------------ */
.ft { position: relative; }
.ft-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 34px; padding: 5px 6px 5px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); font-size: 13px; }
.ft-chip .ft-chip-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-chip.ft-none { color: var(--muted); }
.ft-media { display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
.ft-media img { width: 22px; height: 22px; object-fit: contain; }
.ft-ini { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; font-size: 10px; font-weight: 800; background: rgba(255,255,255,.06); color: var(--muted); }
.ft-clear { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: none; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; }
.ft-clear:hover { background: rgba(255,255,255,.16); color: var(--text); }
.ft-search { width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font: inherit; color: var(--text); }
.ft-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,138,61,.15); }
.ft-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin-top: 4px; max-height: 320px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.ft-list[hidden] { display: none; }
.ft-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; min-width: 0; }
.ft-item:hover, .ft-item.on { background: rgba(255,138,61,.12); }
.ft-item .ft-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-follow { flex: none; padding: 1px 7px; border-radius: 999px; background: rgba(255,138,61,.12); color: var(--accent); font-size: 10px; font-weight: 700; }
.ft-group { padding: 6px 8px 3px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.ft-empty { padding: 10px 8px; color: var(--muted); font-size: 12px; }

/* --- empty states (es-) -------------------------------------------------- */
.es-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 16px; }
.es-title { color: var(--text); font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.es-text { color: var(--muted); font-size: 12.5px; line-height: 1.5; max-width: 320px; }
.es-empty .btn { margin-top: 10px; }
.ft-clear[hidden] { display: none; }
