/* NOBK Online — shared styles. Each game page sets a theme class on <body>. */
:root {
  --bg: #0a0a0b;
  --panel: #141416;
  --panel-2: #1b1b1e;
  --line: #26262b;
  --text: #f2f2f4;
  --muted: #9a9aa3;
  --accent: #e4202a;
  --accent-2: #ff4b4f;
  --accent-ink: #ffffff;
  --win: #ff5a5f;
  --warn: #f5b84b;
  --radius: 14px;
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* FIFA 09: red / black */
.theme-fifa09 {
  --bg: #0a0a0b; --panel: #141416; --panel-2: #1c1c1f; --line: #29292e;
  --text: #f4f4f5; --muted: #a0a0a8; --accent: #e4202a; --accent-2: #ff4b4f; --accent-ink: #fff;
  --win: #ff5a5f;
}
/* NASCAR 09: yellow / charcoal */
.theme-nascar09 {
  --bg: #121212; --panel: #1b1b1b; --panel-2: #232323; --line: #303030;
  --text: #f5f5f5; --muted: #a3a3a3; --accent: #ffc400; --accent-2: #ffd54a; --accent-ink: #111;
  --win: #ffc400;
}
/* PES 13: white / blue */
.theme-pes13 {
  --bg: #f3f6fb; --panel: #ffffff; --panel-2: #eef3fa; --line: #d9e2ef;
  --text: #0c1a33; --muted: #5d6b83; --accent: #0b5cd6; --accent-2: #2f7bf0; --accent-ink: #fff;
  --win: #0b5cd6;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { font: 800 22px/1 var(--head); letter-spacing: .06em; text-decoration: none; white-space: nowrap; text-transform: uppercase; }
.brand b { color: var(--accent); }
.games { display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.games::-webkit-scrollbar { display: none; }
.gtab { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  text-decoration: none; color: var(--muted); font: 700 16px/1 var(--head); letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap; border: 1px solid transparent; }
.gtab img, .gtab .ph { width: 24px; height: 24px; border-radius: 50%; }
.gtab .ph { display: inline-block; background: var(--panel-2); border: 1px solid var(--line); }
.gtab:hover { color: var(--text); }
.gtab.on { color: var(--text); background: var(--panel); border-color: var(--line); }
.gtab small { font: 600 11px/1 var(--body); letter-spacing: 0; text-transform: none; opacity: .65; }
.acct { display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 9px 16px; font: 700 14px/1 var(--body);
  text-decoration: none; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-2); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #d9dbe0; }
.hero .art { width: 100%; height: clamp(220px, 32vw, 420px); object-fit: cover; object-position: 50% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, color-mix(in srgb, var(--bg) 85%, transparent) 88%, var(--bg) 100%); }
.hero .plate { position: absolute; left: max(16px, calc((100vw - 1160px) / 2 + 16px)); top: 28px; z-index: 2;
  width: clamp(120px, 22vw, 300px); }
.hero .plate img { width: 100%; filter: drop-shadow(0 6px 18px rgba(0,0,0,.18)); }

/* ---------- game sub-nav ---------- */
.subnav { position: relative; z-index: 3; margin-top: -26px; }
.subnav .wrap { display: flex; gap: 6px; align-items: flex-end; flex-wrap: wrap; }
.subnav a { font: 800 18px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: 14px 20px; border-radius: 12px 12px 0 0; color: var(--muted); background: color-mix(in srgb, var(--panel) 80%, transparent); }
.subnav a.on { color: var(--accent-ink); background: var(--accent); }
.subnav a:not(.on):hover { color: var(--text); }
.subnav .rule { height: 3px; background: var(--accent); }

/* ---------- page heading ---------- */
.pagehead { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; padding: 30px 0 18px; }
h1 { margin: 0; font: 800 clamp(30px, 4vw, 44px)/1 var(--head); letter-spacing: .01em; text-transform: uppercase; }
h1 em { font-style: normal; color: var(--accent); }
.lead { margin: 8px 0 0; color: var(--muted); max-width: 640px; }
.pulse { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
.dot.down { background: var(--muted); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: .9; }
.stat b { display: block; font: 800 34px/1.05 var(--head); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }

/* ---------- sections ---------- */
section { margin-top: 30px; }
h2 { font: 800 20px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; width: 14px; height: 14px; background: var(--accent); transform: skewX(-18deg); }
.grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.empty { padding: 22px 18px; color: var(--muted); }

/* live cards */
.live { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.lcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.lcard .meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.lcard .vs { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 800 20px/1.1 var(--head); text-transform: uppercase; }
.tag { font: 700 11px/1 var(--body); padding: 4px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.tag.hot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tag.ranked { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

/* results */
.row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.side { min-width: 0; }
.side.r { text-align: right; }
.side .p { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .t { color: var(--muted); font-size: 13px; }
.side.win .p { color: var(--win); }
.score { text-align: center; min-width: 76px; }
.score b { display: inline-block; font: 800 24px/1 var(--head); font-variant-numeric: tabular-nums; background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.score small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.dc { color: var(--warn); font: 700 10px/1 var(--body); margin: 0 6px; }

/* table */
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 12px; text-align: right; }
th { color: var(--muted); font: 700 12px/1 var(--body); text-transform: uppercase; letter-spacing: .06em; background: var(--panel-2); }
th:nth-child(2), td:nth-child(2) { text-align: left; }
th:first-child, td:first-child { width: 40px; text-align: center; color: var(--muted); }
tbody tr { border-top: 1px solid var(--line); }
tbody tr:first-child td:first-child { color: var(--accent); font-weight: 800; }
td.pts { font: 800 18px/1 var(--head); color: var(--accent); }
.note { color: var(--muted); font-size: 13px; padding: 10px 16px; border-top: 1px solid var(--line); }

/* how to play */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 18px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: 800 44px/1 var(--head); color: var(--accent); }
.step h3 { margin: 2px 0 6px; font: 800 24px/1.1 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.step p { margin: 6px 0; color: var(--muted); }
.step p b, .step li b { color: var(--text); }
.step ul { margin: 8px 0 4px; padding-left: 18px; color: var(--muted); }
.step .act { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.soon { font-size: 12px; color: var(--muted); }
.req { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.req div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.req b { display: block; font: 800 17px/1.2 var(--head); text-transform: uppercase; letter-spacing: .03em; }
.req span { color: var(--muted); font-size: 13px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-top: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 10px 0 2px; }
.callout { border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 9%, var(--panel));
  border-radius: var(--radius); padding: 14px 18px; color: var(--text); }

/* coming soon */
.soonbox { min-height: 46vh; display: grid; place-items: center; text-align: center; padding: 60px 16px; }
.soonbox h1 { font-size: clamp(40px, 7vw, 72px); }

footer { color: var(--muted); font-size: 13px; padding: 34px 0 30px; border-top: 1px solid var(--line); margin-top: 48px; }

/* ---------- crests ---------- */
.crest { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.crest b { font: 800 11px/1 var(--head); letter-spacing: .02em; color: var(--muted); }
.crest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--panel); padding: 2px; }
.crest:has(img) { border-color: transparent; background: transparent; }
.crest.unknown b { font-size: 14px; }
.crest.lg { width: 56px; height: 56px; } .crest.lg b { font-size: 16px; }
.crest.xl { width: clamp(72px, 12vw, 120px); height: clamp(72px, 12vw, 120px); } .crest.xl b { font-size: 26px; }
.plink { text-decoration: none; } .plink:hover { color: var(--accent); text-decoration: underline; }
.on-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; margin-right: 6px; vertical-align: 1px; }

/* result rows with crests (links) */
.mrow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 12px 16px;
  border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.mrow:first-child { border-top: 0; }
.mrow:hover { background: var(--panel-2); }
.mrow .side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mrow .side > div { min-width: 0; }
.mrow .side.r { justify-content: flex-end; }
.more { display: block; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--accent); font-weight: 700; text-decoration: none; text-align: center; }
.lcard .vs { gap: 10px; }
.lcard .lp { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lcard .lp span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* results page */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar input { flex: 1; min-width: 180px; max-width: 320px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 10px 12px; font: 14px var(--body); }
.toolbar .count { color: var(--muted); font-size: 13px; margin-left: auto; }
#loadmore { margin: 14px auto 0; display: flex; }

/* match detail */
.board { margin-top: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 26px;
  position: relative; overflow: hidden; }
.board::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); }
.bmeta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 13px; }
.bmain { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 18px; }
.mside { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; min-width: 0; }
.mside .tn { font: 800 clamp(18px, 2.6vw, 28px)/1.05 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.mside .pn { color: var(--muted); font-weight: 600; }
.mside.win .tn { color: var(--win); }
.bscore { font: 800 clamp(48px, 9vw, 96px)/1 var(--head); font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
.bscore i { font-style: normal; color: var(--accent); margin: 0 .15em; }
.bscore small { display: block; font: 600 13px/1.4 var(--body); color: var(--muted); margin-top: 8px; }
.tag.ok { color: #3ddc84; border-color: color-mix(in srgb, #3ddc84 40%, var(--line)); }
.cmpwrap { padding: 8px 18px 14px; }
.cmp { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; row-gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.cmp:first-child { border-top: 0; }
.cmp > b { font: 800 22px/1 var(--head); font-variant-numeric: tabular-nums; }
.cmp > b:last-of-type { text-align: right; }
.cmp > span { text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.cmp .bar { grid-column: 1 / -1; display: flex; gap: 4px; height: 6px; }
.cmp .bar i { display: block; border-radius: 3px; background: var(--accent); }
.cmp .bar i + i { background: color-mix(in srgb, var(--text) 30%, var(--panel-2)); }

/* player profile */
.phead { display: flex; gap: 18px; align-items: center; padding: 30px 0 18px; }
.avatar { width: 84px; height: 84px; border-radius: 18px; display: grid; place-items: center; flex: none;
  background: var(--accent); color: var(--accent-ink); font: 800 44px/1 var(--head); }
.pmeta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.form { display: inline-flex; gap: 4px; }
.form .f { font: 800 12px/1 var(--body); font-style: normal; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; }
.f.w { background: #1f7a45; color: #fff; } .f.d { background: #55555e; color: #fff; } .f.l { background: #9c1c22; color: #fff; }
.stats.six { grid-template-columns: repeat(6, 1fr); }
.trow { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
.trow:first-child { border-top: 0; }
.trow .tn { flex: 1; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nums { color: var(--muted); font-size: 13px; white-space: nowrap; }
.nums b { color: var(--text); }

/* game stats */
.teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tcard { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tcard .crest { grid-row: span 2; }
.tcard .tn { font: 800 19px/1.1 var(--head); text-transform: uppercase; letter-spacing: .02em; padding-right: 30px; }
.tcard .nums { white-space: normal; margin-top: 4px; }
td:nth-child(2) { white-space: nowrap; }
.tcard .rk { position: absolute; top: 10px; right: 12px; font: 800 18px/1 var(--head); color: var(--accent); }
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.lboard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.lboard h3 { margin: 0; font: 800 18px/1.1 var(--head); text-transform: uppercase; letter-spacing: .03em; }
.lboard p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.lboard ol { list-style: none; padding: 0; margin: 10px 0 0; counter-reset: lb; }
.lboard li { counter-increment: lb; display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.lboard li::before { content: counter(lb); width: 18px; color: var(--muted); font: 700 12px/1 var(--body); }
.lboard li:first-child::before { color: var(--accent); }
.lboard li b { margin-left: auto; font: 800 18px/1 var(--head); font-variant-numeric: tabular-nums; }
.lboard li:first-child b { color: var(--accent); }
.lboard .empty { padding: 12px 0 0; }

/* ---------- account ---------- */
.flag { display: inline-block; width: 1.35em; height: 1em; object-fit: cover; border-radius: 2px; margin-right: 7px; vertical-align: -0.1em;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
h1 .flag { width: .9em; height: .68em; vertical-align: .06em; margin-right: 12px; }
.userchip { display: inline-flex; align-items: center; gap: 2px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); text-decoration: none; font: 700 14px/1 var(--body); white-space: nowrap; }
.userchip:hover { border-color: var(--accent); }
.authwrap { display: grid; place-items: center; min-height: 64vh; padding-top: 30px; }
.authcard { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; position: relative; overflow: hidden; }
.authcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); }
.authcard .lead { margin-bottom: 18px; }
label { display: block; font-weight: 700; font-size: 13px; margin-top: 14px; }
label small { display: block; font-weight: 400; color: var(--muted); margin-top: 5px; }
input, select { display: block; width: 100%; margin-top: 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 11px 12px; font: 15px var(--body); }
input:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; border-color: var(--accent); }
.btn.wide { width: 100%; justify-content: center; margin-top: 20px; padding: 12px 16px; }
.ferr { margin-top: 14px; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 14%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); }
.alt { text-align: center; color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.alt a { color: var(--accent); font-weight: 700; }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.acgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }
.acbox { padding: 18px 20px; }
.acbox h2 { margin-bottom: 6px; }
.acbox form .btn { margin-top: 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 12px 0; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; font-weight: 700; }
code { font: 600 13px ui-monospace, Consolas, monospace; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.saved { color: #3ddc84; font-size: 13px; font-weight: 700; margin-left: 8px; }

/* ---------- profile customisation ---------- */
img.avatar { object-fit: cover; background: var(--panel-2); display: block; }
.avatar.big { width: 128px; height: 128px; border-radius: 24px; font-size: 64px; }
.userchip .mini { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; margin-right: 8px; }
.span2 { grid-column: span 2; }
.profedit { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: start; margin-top: 8px; }
.avbox { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.avbox .btn { width: 128px; justify-content: center; }
.avbox p { margin: 0; }
textarea { display: block; width: 100%; margin-top: 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 11px 12px; font: 15px/1.5 var(--body); resize: vertical; min-height: 96px; }
textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; border-color: var(--accent); }
.teampick { display: flex; align-items: center; gap: 10px; }
.teampick input { flex: 1; }
.teampick #teamprev img { width: 38px; height: 38px; object-fit: contain; margin-top: 6px; }
.pabout { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; }
.pabout .bio { margin: 0 0 12px; white-space: pre-line; line-height: 1.6; max-width: 760px; }
.pchips { display: flex; flex-wrap: wrap; gap: 10px; }
.pchip { display: inline-flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 7px 14px 7px 8px; font-weight: 700; }
.pchip small { display: block; font: 600 11px/1.2 var(--body); color: var(--muted); }
.pchip .dlogo { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #5865f2; color: #fff; font: 800 15px/1 var(--head); }
.pchip:last-child .dlogo { background: var(--accent); }

@media (max-width: 900px) {
  .span2 { grid-column: auto; }
  .profedit { grid-template-columns: 1fr; }
  .acgrid { grid-template-columns: 1fr; }
  .stats.six { grid-template-columns: repeat(3, 1fr); }
  .stats.six .stat:last-child { grid-column: auto; }
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:last-child { grid-column: span 2; }
  .req { grid-template-columns: repeat(2, 1fr); }
  .acct .btn:not(.primary) { display: none; }
}
@media (max-width: 560px) {
  .top .wrap { gap: 12px; }
  .acct .btn:not(.primary) { display: none; }
  .acct .btn.primary { padding: 8px 12px; }
  .userchip span { max-width: 70px; overflow: hidden; text-overflow: ellipsis; }
  .hero .plate { top: 14px; }
  .subnav a { font-size: 16px; padding: 12px 14px; }
  .step { grid-template-columns: 1fr; gap: 6px; }
  .stats.six { grid-template-columns: repeat(2, 1fr); }
  .mrow { gap: 8px; padding: 12px; }
  .mrow .crest { width: 26px; height: 26px; }
  .mrow .side { gap: 6px; }
  .bmain { gap: 8px; }
  .phead .avatar { width: 64px; height: 64px; font-size: 34px; }
  .cmp { grid-template-columns: 52px 1fr 52px; }
}
