/* ==========================================================================
   PC build simulator (loaded after app.css; uses its tokens, so dark mode and the violet/orange palette carry over)
   ========================================================================== */

.bd-hero {
  position: relative; overflow: hidden; color: #fff; padding: 44px 0 40px;
  background:
    radial-gradient(800px 380px at 90% -20%, rgba(139, 92, 255, 0.8), transparent 62%),
    radial-gradient(600px 380px at -5% 0%, rgba(62, 30, 160, 0.9), transparent 60%),
    linear-gradient(180deg, #170c3f, #0f0829);
}
.bd-hero::before { content: ''; position: absolute; inset: 0; opacity: 0.3; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1.4px); background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%); }
.bd-hero .container { position: relative; }
.bd-hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; letter-spacing: -0.04em; margin: 16px 0 12px; max-width: 760px; }
.bd-hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffb59c, #ff6a3d 55%, #ffd29c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bd-hero .lede { margin-bottom: 0; max-width: 680px; }

.bd-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 24px; align-items: start; margin-top: 28px; }
.bd-side { position: sticky; top: 84px; display: grid; gap: 14px; max-height: calc(100dvh - 100px); overflow-y: auto; padding: 2px; scrollbar-width: thin; }

/* ---------- Slots ---------- */
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.slot { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.slot.is-empty, .slot.is-missing { box-shadow: none; border-style: dashed; background: color-mix(in srgb, var(--surface) 70%, var(--bg)); }
.slot.is-blocked .slot-note .ic { color: var(--bad); }
.slot.bad { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); }
.slot-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--brand-700); background: var(--brand-50); }
:root[data-theme='dark'] .slot-ico { color: var(--brand); }
.slot-body { min-width: 0; display: grid; gap: 10px; }
.slot-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slot-head h3 { font-size: 17px; font-weight: 750; letter-spacing: -0.01em; }
.slot-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.slot-hint { margin: 0; font-size: 14px; color: var(--ink-3); }
.slot-hint code { font: 700 12.5px ui-monospace, 'Cascadia Code', Consolas, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; color: var(--ink-2); }
.slot-empty-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.slot-fill { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.slot-thumb { position: relative; width: 78px; aspect-ratio: 1; border-radius: 12px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.slot-thumb img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
.slot-thumb .noimg, .pk-thumb .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #c8c2e4; }
.slot-name { font-weight: 650; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slot-info { min-width: 0; display: grid; gap: 7px; }
.slot-price { text-align: right; display: grid; gap: 4px; justify-items: end; min-width: 108px; }
.slot-price .price { font-size: 24px; line-height: 1.1; }
.slot-price small { color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.slot-price .unpriced { color: var(--warn); font-size: 12.5px; font-weight: 700; max-width: 150px; line-height: 1.3; }
.slot-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 10px; border-top: 1px dashed var(--line); }
.slot-actions .spacer { flex: 1; }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 7px 8px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.linkbtn:hover { background: var(--surface-2); color: var(--ink); }
.linkbtn.danger:hover { background: var(--bad-bg); color: var(--bad); }
.linkbtn[aria-expanded='true'] .ic-chev { transform: rotate(180deg); }
.note { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.note.warn { color: var(--warn); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); overflow: hidden; }
.qty button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink-2); }
.qty button:hover:not(:disabled) { background: var(--surface-3); color: var(--ink); }
.qty button:disabled { opacity: 0.35; cursor: default; }
.qty output { min-width: 28px; text-align: center; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }

.mark { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 750; background: var(--surface-2); color: var(--ink-2); cursor: help; }
.mark.fail { background: var(--bad-bg); color: var(--bad); }
.mark.warn { background: var(--warn-bg); color: var(--warn); }
.marks { display: flex; flex-wrap: wrap; gap: 6px; }

.slot-stores { display: grid; gap: 8px; padding-top: 2px; }
.so-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.so-row.best { background: var(--good-bg); }
.so-row.dim { opacity: 0.62; }
.so-who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.so-who b { font-size: 14px; }
.so-who span.t { display: block; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-amt { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; text-align: right; font-variant-numeric: tabular-nums; }
.so-amt small { display: block; font-family: var(--font-text); font-size: 11.5px; font-weight: 700; letter-spacing: 0; color: var(--ink-3); }

.slot-skel { display: grid; grid-template-columns: 78px 1fr; gap: 14px; }
.slot-skel .sk:first-child { aspect-ratio: 1; border-radius: 12px; }
.slot-skel .sk-l { margin-bottom: 9px; }
.slot-note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.slot-note .ic { color: var(--warn); margin-top: 3px; }

/* ---------- Summary ---------- */
.sum { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 18px; }
.sum h2 { font-size: 15px; font-family: var(--font-text); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sum-total { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.sum-sub { color: var(--ink-3); font-size: 13.5px; margin: 4px 0 12px; }
.lines { display: grid; gap: 2px; margin: 0 0 12px; padding: 0; list-style: none; }
.line { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.line:last-child { border-bottom: 0; }
.line .k { font-weight: 800; color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.line .v { min-width: 0; color: var(--ink-2); }
.line .v span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line .v small { color: var(--ink-3); font-size: 12px; }
.line .a { font-weight: 800; font-variant-numeric: tabular-nums; }
.line.off .a { color: var(--warn); font-weight: 700; font-size: 12px; text-align: right; max-width: 130px; }
.basket { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; }
.basket b { color: var(--ink); }
.basket .row { display: flex; align-items: center; gap: 8px; }
.basket .row .amt { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.sum-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sum-actions .btn { flex: 1; }
.fine { font-size: 12.5px; color: var(--ink-3); margin: 12px 0 0; }

.verdict { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: 0; text-transform: none; background: var(--surface-2); color: var(--ink-2); }
.verdict.ok { background: var(--good-bg); color: var(--good); }
.verdict.warn { background: var(--warn-bg); color: var(--warn); }
.verdict.fail { background: var(--bad-bg); color: var(--bad); }

.checks { display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
.check .st { margin-top: 1px; color: var(--ink-3); }
.check.ok .st { color: var(--good); }
.check.warn .st { color: var(--warn); }
.check.fail .st { color: var(--bad); }
.check b { display: block; font-size: 14px; }
.check p { margin: 3px 0 0; font-size: 13px; color: var(--ink-2); }
.check.pending { opacity: 0.62; }
.check.pending p { color: var(--ink-3); }
.check .say { display: inline-block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin-left: 6px; vertical-align: 1px; color: var(--ink-3); }
.check.ok .say { color: var(--good); }
.check.warn .say { color: var(--warn); }
.check.fail .say { color: var(--bad); }
.check .bios { display: flex; gap: 6px; margin-top: 6px; padding: 7px 10px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 12.5px; font-weight: 600; }
.check .bios .ic { margin-top: 2px; }
.meter { margin: 10px 0 2px; }
.meter-bar { position: relative; height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--good); }
.meter-bar i.warn { background: var(--warn); }
.meter-bar i.fail { background: var(--bad); }
.meter-bar u { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink); opacity: 0.7; }
.meter-legend { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-3); margin-top: 5px; font-weight: 600; }
.still { font-size: 13.5px; color: var(--ink-2); margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); }
.still b { color: var(--ink); }
.limits { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); display: grid; gap: 5px; }
details.sum > summary, .sum details > summary { cursor: pointer; font-weight: 800; font-size: 14px; list-style: none; display: flex; align-items: center; gap: 8px; }
.sum details > summary::-webkit-details-marker { display: none; }
.sum details[open] > summary .ic-chev { transform: rotate(180deg); }

/* ---------- Picker ---------- */
#picker { width: min(100% - 24px, 860px); }
.pk-search { display: flex; gap: 8px; background: var(--surface-2); padding: 6px; border-radius: 16px; border: 1px solid var(--line); }
.pk-search:focus-within { box-shadow: var(--ring); }
.pk-search .field { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 8px; color: var(--ink-3); min-width: 0; }
.pk-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 16px var(--font-text); padding: 10px 0; }
.pk-search input:focus-visible { box-shadow: none; border-radius: 0; }
.pk-ex { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: 13px; color: var(--ink-3); }
.pk-ex .pill { padding: 5px 12px; font-size: 13px; }
.pk-opts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pk-status { font-size: 14px; color: var(--ink-3); min-height: 20px; }
.pk-status b { color: var(--ink-2); }
.pk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pk-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.pk-row.fail { background: color-mix(in srgb, var(--bad-bg) 40%, var(--surface)); }
.pk-thumb { position: relative; width: 72px; aspect-ratio: 1; border-radius: 12px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.pk-thumb img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: contain; }
.pk-info { min-width: 0; display: grid; gap: 6px; }
.pk-title { font-weight: 650; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pk-fit { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; font-weight: 650; color: var(--ink-3); }
.pk-fit .ic { margin-top: 2px; }
.pk-fit.ok { color: var(--good); }
.pk-fit.warn { color: var(--warn); }
.pk-fit.fail { color: var(--bad); }
.pk-buy { text-align: right; display: grid; gap: 6px; justify-items: end; }
.pk-buy .price { font-size: 22px; }
.pk-buy small { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.pk-skel { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; }
.pk-skel .sk:first-child { aspect-ratio: 1; }
.pk-empty { text-align: center; padding: 34px 16px; border: 1px dashed var(--line); border-radius: 16px; color: var(--ink-2); }
.pk-empty h3 { font-size: 18px; margin-bottom: 6px; color: var(--ink); }

/* ---------- What this PC can do (games / mining / AI) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.perf { margin: 24px 0 8px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.pf-top h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -0.03em; }
.pf-top p { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; max-width: 780px; }
.pf-top p b { color: var(--ink); }
.pf-tabs { display: flex; gap: 6px; margin: 18px 0 16px; padding: 5px; background: var(--surface-2); border-radius: 14px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.pf-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font: 700 14px var(--font-text); white-space: nowrap; cursor: pointer; }
.pf-tabs button:hover { color: var(--ink); }
.pf-tabs button[aria-selected='true'] { background: var(--surface); color: var(--brand-700); box-shadow: var(--shadow-1); }
:root[data-theme='dark'] .pf-tabs button[aria-selected='true'] { color: var(--brand); background: var(--surface-3); }

.pf-head { margin: 0 0 12px; font-size: 15px; color: var(--ink-2); }
.pf-head b { color: var(--ink); }
.pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.pf-stat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); min-width: 0; }
.pf-stat > b { font-family: var(--font-display); font-size: 32px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.pf-stat > b small { font-size: 16px; color: var(--ink-3); font-weight: 700; letter-spacing: 0; }
.pf-stat > span { font-size: 13px; color: var(--ink-2); line-height: 1.4; min-width: 0; }
.pf-stat em { display: block; font-style: normal; font-weight: 800; color: var(--ink); font-size: 14px; }
.pf-stat.wide { align-items: flex-start; }
.pf-stat.wide .ic { margin-top: 1px; color: var(--brand-700); flex: none; }
:root[data-theme='dark'] .pf-stat.wide .ic { color: var(--brand); }
.pf-stat span b { color: var(--ink); }
.pf-notes { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.pf-notes li { display: flex; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 13px; font-weight: 600; line-height: 1.4; }
.pf-notes .ic { margin-top: 2px; flex: none; }
.pf-multi { display: flex; gap: 10px; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.pf-multi > .ic { flex: none; margin-top: 2px; color: var(--ink-3); }
.pf-multi.counted > .ic { color: var(--good); }
.pf-multi b { display: block; margin-bottom: 2px; font-size: 14px; color: var(--ink); }
.pf-multi p { margin: 0; }
.mn-both { display: block; margin-top: 2px; font: 600 12.5px var(--font-text); letter-spacing: 0; color: var(--ink-3); }
.mn-partial { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.pf-empty { display: flex; gap: 12px; align-items: flex-start; padding: 22px; border-radius: 16px; background: var(--surface-2); border: 1px dashed var(--line); color: var(--ink-2); }
.pf-empty p { margin: 0; font-size: 14.5px; }
.pf-empty .ic { flex: none; color: var(--ink-3); margin-top: 1px; }
.pf-fine { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.pf-fine b, .pf-fine em { color: var(--ink-2); }
.pf-box { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.pf-box h4 { display: flex; align-items: center; gap: 7px; font-size: 14px; margin: 0 0 6px; color: var(--ink); }
.pf-box p { margin: 0; }
.pf-box ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; }
.pf-box li b { color: var(--ink); }

/* games */
.gm-wrap { margin-top: 6px; overflow-x: auto; }
.gm { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.gm thead th { text-align: center; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.gm thead th:first-child { text-align: left; }
.gm-group th { text-align: left; padding: 18px 0 6px; font-size: 13.5px; font-weight: 800; color: var(--ink); border: 0; }
.gm-group small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12.5px; margin-top: 1px; }
.gm tbody tr:not(.gm-group) > * { padding: 7px 6px; border-bottom: 1px solid var(--line); }
.gm-name { text-align: left; font-weight: 400; }
.gm-name b { display: block; font-size: 14px; font-weight: 650; line-height: 1.3; }
.gm-name small { color: var(--ink-3); font-size: 12px; }
.gm-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; margin-top: 1px; }
.gm-buy { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--brand-700); font: 700 12px var(--font-text); cursor: pointer; }
.gm-buy:hover { background: var(--surface-2); }
:root[data-theme='dark'] .gm-buy { color: var(--brand); }
.pf-upcoming { display: flex; gap: 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line); font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.pf-upcoming > .ic { flex: none; margin-top: 2px; color: var(--ink-3); }
.pf-upcoming b { margin-right: 8px; font-size: 14px; color: var(--ink); }
.pf-upcoming p { margin: 4px 0 0; }

/* where to buy a game (dialog) */
#gamebuy { width: min(100% - 24px, 680px); }
.gb-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 10px; font-size: 15px; font-weight: 750; }
.gb-h small { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.gb-h .ic { color: var(--ink-3); }
.gb-rows, .gb-others { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gb-others { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gb-other { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.gb-other:hover { background: var(--surface-2); }
.gb-cov { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding: 0; font-size: 12.5px; color: var(--ink-3); }
.gb-cov li { display: inline-flex; align-items: center; gap: 7px; }
.gb-cov em { font-style: normal; font-weight: 650; color: var(--warn); }
.gb-wait { margin: 0; font-size: 14px; color: var(--ink-3); }
.gb-free { display: flex; gap: 12px; padding: 16px; border-radius: 16px; background: var(--good-bg); }
.gb-free > .ic { flex: none; margin-top: 2px; color: var(--good); }
.gb-free b { display: block; font-size: 15px; }
.gb-free p { margin: 4px 0 8px; font-size: 14px; color: var(--ink-2); }
.gm td { text-align: center; width: 96px; }
.fps { display: inline-flex; align-items: baseline; justify-content: center; gap: 5px; min-width: 64px; padding: 4px 9px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.fps b { font-size: 15px; font-weight: 800; }
.fps i { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; }
.fps.great { background: var(--good-bg); color: var(--good); box-shadow: inset 0 0 0 1.5px var(--good); }
.fps.good { background: var(--good-bg); color: var(--good); }
.fps.ok { background: var(--warn-bg); color: var(--warn); }
.fps.low { background: var(--bad-bg); color: var(--bad); }
.pf-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--ink-2); }
.pf-legend li { display: flex; align-items: center; gap: 7px; }
.pf-legend .fps { min-width: 26px; padding: 1px 7px; }

/* mining */
.mn-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.mn-card { padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.mn-top b { display: block; font-size: 16px; }
.mn-top span { color: var(--ink-3); font-size: 13px; }
.mn-rate { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.mn-asic { display: grid; gap: 6px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.mn-asic p { margin: 0; }
.mn-asic b, .cn-vs b { color: var(--ink); }
.mn-asic .pill-st { justify-self: start; }
.mn-asic .pf-src, .cn-card .pf-src { font-size: 12.5px; margin-right: 8px; }
.cn-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.cn-card { padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 9px; align-content: start; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.cn-row { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; align-items: baseline; }
.cn-k { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.cn-row b { color: var(--ink); }
.cn-row small { color: var(--ink-3); }
.cn-none { display: inline-flex; gap: 7px; align-items: baseline; }
.cn-none .ic { flex: none; align-self: flex-start; margin-top: 3px; color: var(--ink-3); }
.cn-vs { margin: 0; padding-top: 9px; border-top: 1px dashed var(--line); }
.cn-card .cn-vs .pf-src { margin-right: 0; }
.mn-none { display: flex; gap: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.mn-none .ic { flex: none; margin-top: 2px; color: var(--ink-3); }
.mn-card.toolittle .mn-none .ic, .mn-card.unsupported .mn-none .ic { color: var(--bad); }
.mn-card.supported .mn-none .ic { color: var(--good); }
.mn-card > .pf-links { margin-top: 0; font-size: 12.5px; }

/* AI */
.ai-h { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 15px; font-weight: 800; margin: 24px 0 4px; font-family: var(--font-text); letter-spacing: 0; }
.ai-h .ic { color: var(--brand-700); }
:root[data-theme='dark'] .ai-h .ic { color: var(--brand); }
.ai-h small { font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.ai-list { list-style: none; margin: 0; padding: 0; }
.ai-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 6px 18px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ai-row:last-child { border-bottom: 0; }
.ai-name b { font-size: 14.5px; font-weight: 700; }
.ai-name .tag { margin-left: 4px; background: var(--brand-50); color: var(--brand-700); font-size: 10.5px; }
.ai-name small { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.4; margin-top: 1px; }
.ai-res { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.pill-st { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 800; }
.pill-st.good { background: var(--good-bg); color: var(--good); }
.pill-st.warn { background: var(--warn-bg); color: var(--warn); }
.pill-st.bad { background: var(--bad-bg); color: var(--bad); }
.pill-st.mute { background: var(--surface-2); color: var(--ink-3); }
.ai-sub { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }

.pf-how { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.pf-how > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; list-style: none; }
.pf-how > summary::-webkit-details-marker { display: none; }
.pf-how > summary .chev { margin-left: auto; display: inline-flex; }
.pf-how[open] > summary .ic-chev { transform: rotate(180deg); }
.pf-how ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 9px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.pf-how li b { color: var(--ink); }
.pf-how + .pf-how { margin-top: 12px; }
.pf-sh { margin: 14px 0 0; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.pf-sp { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* citations: plain external links to the maker's own page */
.pf-src { display: inline-flex; align-items: center; gap: 3px; color: var(--brand-700); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand-700) 35%, transparent); text-underline-offset: 2px; }
.pf-src:hover { text-decoration-color: currentColor; }
.pf-src svg { flex: none; opacity: 0.8; }
.pf-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13px; }
.ai-name small .pf-src { font-size: inherit; }

/* ---------- Mobile dock ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(30, 10, 90, 0.12); }
.dock .d-total { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.1; letter-spacing: -0.03em; }
.dock .d-sub { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.dock .btn { margin-left: auto; }

@media (max-width: 1020px) {
  .bd-wrap { grid-template-columns: minmax(0, 1fr); }
  .bd-side { position: static; max-height: none; overflow: visible; }
  .dock:not([hidden]) { display: flex; }
  body.build-page .site-footer { margin-bottom: 64px; }
}
@media (max-width: 400px) {
  .pf-tabs button .ic { display: none; } /* three tabs and their icons don't fit a very narrow phone */
}
@media (max-width: 640px) {
  .bd-hero { padding: 30px 0 28px; }
  .slot { grid-template-columns: 1fr; padding: 14px; }
  .slot-ico { display: none; }
  .slot-fill { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .slot-thumb { width: 64px; }
  .slot-price { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; gap: 6px 12px; padding: 10px 12px; background: var(--surface-2); border-radius: 12px; min-width: 0; }
  .slot-price .price { font-size: 22px; }
  .slot-price .unpriced { max-width: none; }
  .so-row { grid-template-columns: minmax(0, 1fr) auto; }
  .so-row .btn { grid-column: 1 / -1; }
  .sum-total { font-size: 34px; }
  .pk-search { flex-direction: column; }
  .pk-search .btn { width: 100%; }
  .pk-row { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .pk-thumb { width: 56px; }
  .pk-buy { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; }

  .perf { padding: 16px; margin-top: 18px; }
  .pf-tabs { width: 100%; }
  .pf-tabs button { flex: 1 1 auto; justify-content: center; padding: 9px 8px; font-size: 13px; gap: 5px; }
  .pf-tabs button .ic { width: 15px; height: 15px; }
  .pf-stats { grid-template-columns: minmax(0, 1fr); }
  .pf-stats:not(.ai-stats) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pf-stats:not(.ai-stats) .pf-stat { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; }
  .pf-stats:not(.ai-stats) .pf-stat > b { font-size: 26px; }
  .pf-stats:not(.ai-stats) .pf-stat > span { font-size: 12px; }
  .gm td { width: 58px; }
  .gm-name b { font-size: 13.5px; }
  .fps { flex-direction: column; align-items: center; gap: 0; min-width: 50px; padding: 3px 5px; }
  .fps i { font-size: 9px; line-height: 1.1; }
  .ai-row { grid-template-columns: minmax(0, 1fr); }
  .mn-grid, .cn-grid { grid-template-columns: minmax(0, 1fr); }
  .cn-row { grid-template-columns: 1fr; gap: 1px; }
}
