/* Pre-rendered pages: home, game pages, /sell, /pro, /faq. Loaded after
   styles.css and built on its tokens (colours, fonts, radii, light/dark). */

:root { --hero-glow: rgb(62 212 90 / 0.2); --glow-soft: rgb(62 212 90 / 0.12); }
:root[data-theme="light"] { --hero-glow: rgb(52 201 85 / 0.18); --glow-soft: rgb(52 201 85 / 0.14); }

body.site { padding-bottom: 0; }
body.site main { max-width: none; margin: 0; padding: 0; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 30; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--accent); background: var(--surface); color: var(--text); font-weight: 600; }
.skip:focus { top: 8px; }
.site a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.s-wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .s-wrap { padding-inline: 28px; } }
@media (prefers-reduced-motion: reduce) { .site *, .site *::before { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Header ---------- */
.s-top .top-actions { gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font: 700 16px/1.15 var(--font-display); letter-spacing: 0.02em; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, filter 0.15s, color 0.15s;
}
.btn-primary { background: var(--brand-grad); color: var(--accent-ink); box-shadow: 0 6px 22px var(--glow-soft); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 14px; }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row .btn { flex: 1 1 100%; }
@media (min-width: 520px) { .cta-row .btn { flex: 0 0 auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 28px 0 44px; overflow: clip; }
.hero::before { content: ''; position: absolute; inset: -120px 0 auto; height: 560px; background: radial-gradient(60% 70% at 50% 0%, var(--hero-glow), transparent 72%); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 32px; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 56px; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  font-size: 13px; font-weight: 600; color: var(--text-2); box-shadow: 0 0 28px var(--glow-soft);
}
.vm { flex: none; display: block; }
/* Headline: Sora, heavy and tight; the second sentence in the brand green. */
.hero h1 { font: 800 clamp(34px, 9.4vw, 60px)/1.04 Sora, Inter, system-ui, sans-serif; letter-spacing: -0.035em; text-wrap: balance; margin: 0 0 16px; }
.hero h1 .h1-a, .hero h1 .h1-b { display: block; }
.hero h1 .h1-b { color: var(--accent-text); text-shadow: 0 0 36px var(--glow-soft); }
.hero-lead { margin: 0 0 24px; max-width: 54ch; color: var(--text-2); font-size: 18px; line-height: 1.55; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 24px 0 0; padding: 0; color: var(--text-2); font-size: 14px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts .ic { color: var(--accent-text); flex: none; }
/* One line from tablet up; on a phone the three facts do not fit side by side, so they wrap. */
@media (min-width: 640px) { .hero-facts { flex-wrap: nowrap; gap: 10px clamp(12px, 1.6vw, 22px); font-size: clamp(12px, 1.25vw, 14px); } .hero-facts li { white-space: nowrap; gap: 6px; } }

/* App preview in the hero: a transparent cut-out with its green glow baked in as soft translucent light, so it sits straight on the page in both themes. */
.hero-art { justify-self: center; width: 100%; max-width: 560px; }
.hero-art img { display: block; width: 100%; height: auto; }
@media (min-width: 960px) { .hero-art { width: 116%; max-width: none; margin-inline: -8%; } } /* the image has glow padding all round, so let it run a little past its column */
:root[data-theme="light"] .hero-art { filter: drop-shadow(0 22px 30px rgb(15 25 20 / 0.16)); }
/* The quick checker, now just under the hero. */
.s-section.is-checker { padding-top: 8px; overflow-x: clip; } /* the phones' glow and rings bleed past the picture; clip them at the page's edge so nothing scrolls sideways */
.is-checker .hc { max-width: 680px; margin-inline: auto; }

/* Trade checker preview */
.hc { display: grid; gap: 16px; padding: 18px; border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); box-shadow: 0 24px 60px rgb(0 0 0 / 0.35), 0 0 80px var(--glow-soft); }
:root[data-theme="light"] .hc { box-shadow: 0 18px 44px rgb(15 25 20 / 0.12), 0 0 60px var(--glow-soft); }
.hc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hc-head h2 { font: 700 22px/1.15 var(--font-display); }
.hc-tag { padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); font-size: 13px; font-weight: 700; }
.hc-search { display: grid; gap: 6px; }
.hc-search label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.hc-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hc-row input { flex: 1 1 220px; min-width: 0; }
.hc-row .btn { flex: 1 1 auto; min-height: 44px; padding: 8px 16px; font-size: 14px; }
@media (min-width: 960px) { .hc-row .btn { flex: none; } }
/* Matching cards under the search box as you type (home-search.js). */
.hc-suggest { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: max-content; gap: 8px; max-height: 360px; overflow-y: auto; overscroll-behavior: contain; } /* max-content: rows keep their height instead of squeezing to min-height when the list scrolls */
.hc-suggest li[role=option] { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; min-height: 44px; }
.hc-suggest li[role=option]:hover, .hc-suggest li[role=option][aria-selected=true] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.hc-suggest img, .hc-suggest .thumb-ph { width: 40px; height: 56px; object-fit: cover; border-radius: 4px; background: var(--surface-3); }
.hc-opt-text { display: grid; gap: 3px; justify-items: start; min-width: 0; }
.hc-opt-text .game-chip { margin-top: 2px; font-size: 12px; }
.hc-games { margin-top: 2px; }
.hc-opt-text strong { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.hc-opt-text small { color: var(--muted); font-size: 12px; }
.hc-opt-price { font: 700 15px/1 var(--font-display); white-space: nowrap; }
.hc-note { display: flex; align-items: center; gap: 8px; padding: 6px 2px; color: var(--muted); font-size: 14px; }
.hc-note.error { color: var(--bad); }
.hc-sides { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.hc-side { --side: var(--give); display: grid; gap: 14px; align-content: space-between; min-height: 116px; padding: 12px; border: 1px solid var(--border); border-top: 3px solid var(--side); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color 0.15s; }
.hc-side.get { --side: var(--get); }
.hc-side:hover { border-color: var(--side); }
.hc-side-h { font: 700 17px/1.1 var(--font-display); }
.hc-add { padding: 9px 4px; border: 1px dashed var(--border); border-radius: var(--radius-sm); color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; white-space: nowrap; }
.hc-swap { color: var(--muted); font-size: 18px; }
.hc-verdict { margin: 0; padding-left: 12px; border-left: 2px solid var(--accent); color: var(--text-2); font-size: 14px; }
.hc-open { width: 100%; }

/* ---------- Sections ---------- */
.s-section { padding: 52px 0; }
@media (min-width: 768px) { .s-section { padding: 84px 0; } }
.s-section.is-tint { background: color-mix(in srgb, var(--surface) 55%, transparent); border-block: 1px solid var(--border); }
.s-head { max-width: 720px; margin-bottom: 30px; }
.s-h2 { font: 700 clamp(26px, 5.6vw, 40px)/1.12 var(--font-display); letter-spacing: -0.005em; text-wrap: balance; margin: 0 0 12px; }
.s-answer { margin: 0; max-width: 62ch; color: var(--text-2); font-size: 17px; line-height: 1.55; }
.s-text { margin: 22px 0 0; max-width: 66ch; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.s-section .cta-row { margin-top: 24px; }
.ph { padding: 0 4px; border-radius: 4px; background: color-mix(in srgb, var(--warn) 22%, transparent); color: inherit; outline: 1px dashed var(--warn); }
.ph-block { border: 2px dashed var(--warn); }

/* How it works: a timeline, because it is a sequence */
.steps { --n: 3; list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.step { position: relative; padding-left: 64px; }
.step-n { position: absolute; left: 0; top: 0; width: 40px; height: 40px; display: grid; place-items: center; font: 700 22px/1 var(--font-display); color: var(--accent-ink); background: var(--brand-grad); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.step h3 { font: 600 20px/1.2 var(--font-display); margin: 6px 0 6px; }
.step p { margin: 0; max-width: 46ch; color: var(--text-2); }
.step:not(:last-child)::after { content: ''; position: absolute; left: 19px; top: 48px; bottom: -24px; width: 2px; background: linear-gradient(var(--accent), transparent); opacity: 0.5; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 40px; }
  .step { padding: 58px 0 0; }
  .step:not(:last-child)::after { left: 52px; right: -28px; top: 19px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
}

/* Four paths: one ruled block, the free tool leading */
.paths { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.path { display: grid; gap: 8px; align-content: start; padding: 22px; background: var(--surface); }
.path.is-main { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 72%); }
.path-tag { justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 700; }
.is-main .path-tag { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-text); }
.path h3 { font: 700 22px/1.2 var(--font-display); }
.path p { margin: 0; color: var(--text-2); }
.path .btn { justify-self: start; margin-top: 8px; padding: 10px 16px; font-size: 15px; }
@media (min-width: 640px) { .paths { grid-template-columns: 1fr 1fr; } .path.is-main { grid-column: 1 / -1; } }
@media (min-width: 960px) { .paths { grid-template-columns: 1.35fr 1fr 1fr 1fr; } .path.is-main { grid-column: auto; } .path { padding: 26px; } }
.soon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.soon h3 { font: 600 18px/1.25 var(--font-display); margin: 0 0 4px; }
.soon p { margin: 0; color: var(--text-2); max-width: 60ch; font-size: 15px; }

.inspect { display: flex; gap: 16px; align-items: flex-start; margin-top: 20px; }
.inspect h3 { font: 600 18px/1.2 var(--font-display); margin: 0 0 6px; }
.inspect p { margin: 0; color: var(--text-2); max-width: 68ch; font-size: 15px; }

/* Games: rows, not cards */
.games { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.game { display: grid; gap: 10px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.game-top { display: grid; justify-content: start; gap: 6px; } /* status always sits under the name, so every row lines up */
.game-name { font: 700 22px/1.15 var(--font-display); }
.game-name a { color: var(--text); text-decoration: none; }
.game-name a:hover { color: var(--accent-text); }
.game-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--warn); }
.game-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.is-live .game-status { color: var(--accent-text); }
.is-live .game-status::before { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.game p { margin: 0; color: var(--text-2); }
.game .btn { justify-self: start; }
@media (min-width: 768px) {
  .game { grid-template-columns: 250px minmax(0, 1fr) auto; align-items: center; gap: 28px; }
}

/* Free vs Pro */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 14px 12px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { font: 700 16px/1.2 var(--font-display); }
.cmp thead th small { display: block; font: 500 13px/1.3 Inter, system-ui, sans-serif; color: var(--muted); }
.cmp th[scope="row"] { text-align: left; font-weight: 500; color: var(--text); width: 46%; }
.cmp td { color: var(--text-2); font-size: 14px; }
.cmp .cmp-pro { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.cmp td .ic { display: inline-block; vertical-align: middle; }
.cmp td:nth-child(2) .ic { color: var(--muted); }
.cmp .cmp-pro .ic { color: var(--accent-text); }
.pro-cta { display: grid; gap: 10px; justify-items: start; margin-top: 24px; }
.pro-cta .note { max-width: 56ch; font-size: 13px; }

/* Trust */
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 768px) { .trust { grid-template-columns: 1fr 1fr; gap: 38px 56px; } }
.trust-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 16px; align-items: start; }
.trust-item > .ic { color: var(--accent-text); margin-top: 2px; }
.trust-item h3 { font: 600 19px/1.2 var(--font-display); margin: 0 0 6px; }
.trust-item p { margin: 0; color: var(--text-2); max-width: 52ch; }
.testis { display: grid; gap: 14px; margin-top: 40px; }
@media (min-width: 768px) { .testis { grid-template-columns: 1fr 1fr; } }
.testi { margin: 0; padding: 20px; border-radius: var(--radius); color: var(--text-2); }
.testi blockquote { margin: 0 0 10px; font-size: 17px; line-height: 1.5; }
.testi figcaption { font-size: 14px; color: var(--muted); }

/* FAQ */
.s-section .faq { max-width: 820px; }

/* Closing */
.s-close { position: relative; overflow: clip; border-top: 1px solid var(--border); }
.s-close::before { content: ''; position: absolute; inset: auto 0 -200px; height: 360px; background: radial-gradient(60% 80% at 50% 100%, var(--hero-glow), transparent 70%); pointer-events: none; }
.s-close .s-wrap { position: relative; }
.s-close .s-h2 { max-width: 20ch; }

/* ---------- Secondary pages ---------- */
.page-hero { position: relative; padding: 40px 0 8px; overflow: clip; }
.page-hero::before { content: ''; position: absolute; inset: -140px 0 auto; height: 420px; background: radial-gradient(55% 70% at 50% 0%, var(--hero-glow), transparent 72%); pointer-events: none; }
.page-hero .s-wrap { position: relative; }
.page-hero h1 { font: 700 clamp(30px, 7.4vw, 50px)/1.08 var(--font-display); letter-spacing: -0.01em; text-wrap: balance; max-width: 22ch; margin: 0 0 14px; }
@media (min-width: 768px) { .page-hero { padding: 72px 0 12px; } }
.prose { max-width: 760px; }
.prose p { margin: 0 0 16px; color: var(--text-2); font-size: 16px; line-height: 1.65; }
.prose .btn { margin: 4px 8px 0 0; }
.prose .s-h2 { font-size: clamp(22px, 4.6vw, 30px); }

/* ---------- Footer ---------- */
.s-foot { padding: 48px 0 60px; border-top: 1px solid var(--border); background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 20px; }
.foot-brand { grid-column: 1 / -1; display: grid; gap: 12px; align-content: start; }
.foot-brand p { margin: 0; color: var(--text-2); max-width: 30ch; }
.foot-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
.foot-h { margin: 0 0 8px; font: 600 14px/1.2 var(--font-display); letter-spacing: 0.04em; color: var(--muted); }
.s-foot ul { list-style: none; margin: 0; padding: 0; }
.s-foot li a { display: inline-block; padding: 10px 0; color: var(--text-2); text-decoration: none; }
.s-foot li a:hover { color: var(--accent-text); text-decoration: underline; }
.legal { margin: 26px 0 0; max-width: 84ch; color: var(--muted); font-size: 13px; line-height: 1.55; }
.legal + .legal { margin-top: 8px; }

/* ---------- Menu and waitlist dialogs ---------- */
.nav-list .nav-games { margin-top: 2px; }
.wl-lede { margin: 0; color: var(--text-2); }
.wl-error { margin: 0; color: var(--bad); font-size: 14px; font-weight: 600; }
.wl-done { display: grid; gap: 10px; justify-items: start; padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); }
.wl-done h3 { font: 700 22px/1.2 var(--font-display); }
.wl-done p { margin: 0; color: var(--text-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Home: the paths' buttons, the two explainers, the games carousel ---------- */
.phone-copy { display: grid; gap: 16px; align-content: center; justify-items: start; }
.phone-copy .s-answer { margin: 0; }
.phone-copy .tease-points { margin: 0; }
.phone-copy .cta-row .btn { flex: 0 1 auto; }
.path-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.path-cta .btn, .paths .path > .btn { margin-top: 0; }
.explain { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 768px) { .explain { grid-template-columns: 1fr 1fr; } }
.explain .panel { display: grid; gap: 8px; align-content: start; padding: 20px; }
.explain h3 { font: 600 18px/1.25 var(--font-display); margin: 0; }
.explain p { margin: 0; color: var(--text-2); font-size: 15px; }
.explain .note { color: var(--muted); font-size: 14px; }
.explain .btn { margin-top: 6px; }
.gcar { position: relative; }
.gcar-bar { display: flex; justify-content: flex-end; gap: 8px; margin: -6px 0 12px; }
.gcar-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.gcar-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-text); }
.gcar-btn:disabled { opacity: 0.35; cursor: default; }
.gcar-btn:focus-visible, .gcar-track:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.gcar-track { list-style: none; margin: 0; padding: 4px 2px 16px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.gc-slide { flex: 0 0 min(300px, 84%); scroll-snap-align: start; display: grid; gap: 12px; align-content: start; justify-items: start; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.gc-slide .game-holo { grid-row: auto; grid-column: auto; width: 150px; height: 211px; justify-self: center; margin-bottom: 4px; }
.gc-slide .game-img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); box-shadow: var(--shadow-img); background: var(--surface-3); display: block; }
.gc-slide[data-game] .game-img { border-color: color-mix(in srgb, var(--g-fill) 55%, var(--border)); }
.gc-slide.is-live { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 65%); }
.gc-top { display: grid; gap: 4px; }
.gc-name { font: 700 22px/1.15 var(--font-display); margin: 0; }
.gc-name a { color: var(--text); text-decoration: none; }
.gc-name a:hover { color: var(--accent-text); }
.gc-slide p { margin: 0; color: var(--text-2); }
.gc-slide .btn { margin-top: 4px; }
.share textarea { min-height: 96px; }

/* ---------- Shipping & protection ---------- */
.s-sub { margin: 0 0 24px; max-width: 62ch; color: var(--text); font: 600 17px/1.45 var(--font-display); }
.s-h3 { margin: 44px 0 16px; font: 700 22px/1.2 var(--font-display); }
.tier-note { margin: 16px 0 0; max-width: 70ch; color: var(--muted); font-size: 14px; line-height: 1.55; }
.tier-note a, .s-text a { color: var(--accent-text); }

/* Workflow: vertical on phones, a row of six on wide screens */
.wflow { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.wflow-step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.wflow-ic { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--border)); border-radius: 50%; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent-text); }
.wflow-step h3 { font: 600 17px/1.25 var(--font-display); margin: 2px 0 4px; }
.wflow-step p { margin: 0; color: var(--text-2); font-size: 14px; }
.wflow-step:not(:last-child)::after { content: ''; position: absolute; left: 21px; top: 48px; bottom: -20px; width: 2px; background: linear-gradient(var(--accent), transparent); opacity: 0.4; }
@media (min-width: 1100px) {
  .wflow { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .wflow-step { display: block; }
  .wflow-ic { margin-bottom: 14px; }
  .wflow-step:not(:last-child)::after { left: 56px; right: -10px; top: 21px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }
}

/* Shipping levels: stacked cards on phones, two across on tablets, one row on desktop */
.tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tier { display: grid; gap: 6px; align-content: start; padding: 18px; border: 1px solid var(--border); border-top: 3px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.tier.is-gated { border-top-color: var(--accent); }
.tier h3 { font: 700 18px/1.2 var(--font-display); }
.tier-range { margin: 0; font: 700 24px/1.1 var(--font-display); color: var(--text); }
.tier.is-gated .tier-range { color: var(--accent-text); }
.tier-price { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.4; }
.tier-chip { justify-self: start; margin-top: 4px; padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); font-size: 12px; font-weight: 700; }
.tier-chip.is-gated { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text); }
.tier-features { list-style: none; margin: 10px 0 0; padding: 12px 0 0; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.tier-features li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; color: var(--text-2); font-size: 14px; }
.tier-features .ic { color: var(--accent-text); margin-top: 2px; }
@media (min-width: 640px) { .tiers { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Chain of custody */
.custody { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.custody li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); font-weight: 500; }
.custody .ic { flex: none; box-sizing: content-box; padding: 5px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); }
@media (min-width: 768px) { .custody { grid-auto-flow: column; grid-template-rows: repeat(5, auto); column-gap: 48px; } }

/* Shipping summary and estimator */
.ship-calc { display: grid; gap: 12px; max-width: 560px; }
.ship-calc label { color: var(--text-2); font-size: 14px; font-weight: 600; }
.ship-summary { display: grid; gap: 14px; }
.ship-summary dl { margin: 0; display: grid; gap: 0; }
.ship-summary dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ship-summary dt { color: var(--muted); font-size: 14px; }
.ship-summary dd { margin: 0; max-width: 62%; text-align: right; font-weight: 500; }
.ship-summary .note { margin: 0; }

/* Trades, documentation, packaging */
.legs { margin-top: 34px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.legs h3 { font: 700 20px/1.2 var(--font-display); margin: 0 0 12px; }
.leg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 8px; }
.leg span, .leg b { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); font-weight: 600; }
.leg b { border-color: var(--accent); color: var(--accent-text); }
.leg i { color: var(--muted); font-style: normal; font-size: 18px; }
.legs .note { margin: 12px 0 0; font-size: 13px; }
.docs, .pack { display: grid; gap: 28px; }
@media (min-width: 768px) { .docs { grid-template-columns: 1fr 1fr; gap: 48px; } .pack { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; } }
.docs h3, .pack h3 { font: 600 19px/1.2 var(--font-display); margin: 0 0 10px; }
.docs ol, .pack ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--text-2); }
.docs li::marker, .pack li::marker { color: var(--accent-text); font-weight: 700; }
.pack .note { margin: 12px 0 0; }

/* FAQ answers that hold more than a paragraph */
.faq-item .faq-a { padding: 0 14px 14px; color: var(--text-2); font-size: 14px; }
.faq-a p { margin: 10px 0 0; }
.ship-table { width: 100%; margin: 12px 0 0; border-collapse: collapse; font-size: 14px; }
.ship-table th, .ship-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.ship-table thead th { color: var(--muted); font-weight: 600; }
.flow-lines { margin-top: 10px; }
@media (max-width: 480px) { .leg { gap: 6px 8px; } .leg span, .leg b { padding: 6px 8px; font-size: 14px; } }
.tier-range { white-space: nowrap; font-size: 22px; }

/* ---------- Logo (the header's size is in styles.css, so every page matches) ---------- */
.nav-logo .logo-img { width: 56px; height: 56px; }
.foot-logo .logo-img { width: 64px; height: 64px; border-radius: 14px; }
.foot-logo .brand-word { font-size: 26px; }

/* ---------- Game rows with card images ---------- */
.game { grid-template-columns: 84px minmax(0, 1fr); column-gap: 16px; row-gap: 8px; align-items: start; }
.game-img { grid-row: 1 / span 3; width: 84px; height: 118px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); box-shadow: var(--shadow-img); background: var(--surface-2); }
.game > :not(.game-img) { grid-column: 2; }
@media (min-width: 768px) {
  .game { grid-template-columns: 84px 220px minmax(0, 1fr) auto; align-items: center; column-gap: 28px; }
  .game-img { grid-row: auto; }
  .game > :not(.game-img) { grid-column: auto; }
}

/* ---------- Process illustrations ---------- */
.illus { display: block; width: 100%; max-width: 150px; height: auto; }
.il-card { fill: var(--surface-2); stroke: color-mix(in srgb, var(--text) 40%, transparent); stroke-width: 2; stroke-linejoin: round; }
.il-card.is-front { fill: var(--surface-3); }
.il-line { fill: none; stroke: var(--accent-text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.il-line.is-thick { stroke-width: 6; }
.il-line.is-dash { stroke-dasharray: 1 9; stroke-width: 4; }
.il-acc { fill: var(--accent); }
.il-ink { fill: none; stroke: var(--accent-ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.il-bar { fill: var(--surface-3); stroke: color-mix(in srgb, var(--text) 40%, transparent); stroke-width: 2; }
.il-lens { fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: var(--accent-text); stroke-width: 4; }
.il-edge { fill: none; stroke: color-mix(in srgb, var(--text) 40%, transparent); stroke-width: 2; stroke-linejoin: round; }
.step-art { margin-top: 16px; }
.step-art .illus { max-width: 132px; }
@media (min-width: 768px) {
  .step { display: flex; flex-direction: column; }
  .step-art { order: -1; margin: 0 0 14px; }
}
.s-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.s-art { display: none; }
@media (min-width: 768px) { .s-art { display: block; flex: none; width: 190px; margin-top: -6px; } .s-art .illus { max-width: 190px; } }
.inspect-art { display: none; }
@media (min-width: 640px) { .inspect-art { display: block; flex: none; width: 128px; margin-left: auto; align-self: center; } }

/* ---------- Carriers ---------- */
.carriers { display: grid; gap: 10px; margin-bottom: 26px; }
.carriers-h { margin: 0; color: var(--text-2); font-size: 14px; font-weight: 600; }
.carrier-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.carrier { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 18px; border: 1px solid #d8dedb; border-radius: 8px; background: #fff; font: 800 21px/1 Arial, 'Helvetica Neue', Inter, system-ui, sans-serif; letter-spacing: -0.02em; }
.carrier img { display: block; max-width: 100%; height: auto; }
.carrier-ups { padding-inline: 14px; }
.cr-usps { color: #333366; border-bottom: 3px solid #da291c; }
.cr-ups { color: #351c15; border-bottom: 3px solid #ffb500; }
.cr-fedex i { color: #4d148c; font-style: normal; }
.cr-fedex b { color: #ff6200; font-weight: 800; }
.carrier-dhl { background: #ffcc00; border-color: #ffcc00; }
.cr-dhl { color: #d40511; font-style: italic; }
.carriers .note { max-width: 70ch; }

/* ---------- Games: header menu, game pages, market panel, picker, Pro tease ---------- */
/* Game hubs: the hero glow and the switcher take the game's colour. */
.page-hero[data-game]::before { background: radial-gradient(55% 70% at 50% 0%, color-mix(in srgb, var(--g-fill) 24%, transparent), transparent 72%); }
.page-hero[data-game] h1::after { content: ''; display: block; width: 56px; height: 4px; margin-top: 14px; border-radius: 2px; background: var(--g-fill); }
.page-hero .gswitch { margin-top: 24px; max-width: 640px; }
.game[data-game] .game-img { border-color: color-mix(in srgb, var(--g-fill) 55%, var(--border)); }

/* Market panel: movers + Top 10. */
.mkt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.mkt-view { justify-self: start; }
.mkt-movers { display: grid; gap: 4px 24px; padding: 14px; border: 1px solid var(--border); border-top: 3px solid var(--g-fill, var(--accent)); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 640px) { .mkt-movers { grid-template-columns: 1fr 1fr; } .mkt-movers-head { grid-column: 1 / -1; } }
.mkt-h-main { margin: 0 0 4px; font: 700 17px/1.2 var(--font-display); }
.mkt-h { margin: 6px 0 4px; font: 700 12px/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mover-list { list-style: none; margin: 0; padding: 0; display: grid; }
.mover-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; border-bottom: 1px solid var(--border); }
.mover-list li:last-child { border-bottom: 0; }
.mover-list a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.mover-list a:hover { color: var(--accent-text); text-decoration: underline; }
.mover-list b { font: 700 15px/1 var(--font-display); white-space: nowrap; }
.mover-list b.up { color: var(--good); } .mover-list b.down { color: var(--bad); }
.mkt-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.mkt-bar .tabs { margin: 0; padding: 0; min-width: 0; max-width: 100%; }
.mkt .rank-list { margin: 0; }
.mkt .rank-name::after { content: none; }
.mkt-soon-note a { color: var(--accent-text); }
.mkt-fallback { margin: 0; }

/* A game with no data yet: the same layout, locked. */
.mkt.is-soon { position: relative; }
.mkt-skel { display: grid; gap: 8px; opacity: 0.55; }
.mkt-skel-row { display: grid; grid-template-columns: 18px 52px minmax(0, 1fr) 70px; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.mkt-skel-rank { text-align: center; font-weight: 800; color: var(--muted); }
.mkt-skel-img { height: 72px; border-radius: 6px; background: var(--surface-3); }
.mkt-skel-lines { display: grid; gap: 8px; } .mkt-skel-lines i { display: block; height: 11px; border-radius: 6px; background: var(--surface-3); } .mkt-skel-lines i:first-child { width: 70%; } .mkt-skel-lines i:last-child { width: 45%; }
.mkt-skel-val { height: 22px; border-radius: 6px; background: var(--surface-3); }
.mkt-soon-cta { position: absolute; inset: 50% 0 auto; transform: translateY(-50%); margin-inline: auto; width: min(460px, calc(100% - 24px)); display: grid; gap: 10px; justify-items: start; border-top: 3px solid var(--g-fill, var(--accent)); box-shadow: var(--shadow); }
.mkt-soon-cta h3 { margin: 0; font: 700 21px/1.2 var(--font-display); }
.mkt-soon-cta p { margin: 0; color: var(--text-2); }
.mkt-soon-cta .cta-row { margin: 0; }
.mkt-soon-cta .btn { min-height: 44px; padding: 8px 16px; font-size: 14px; }
@media (max-width: 479px) { .mkt-soon-cta { position: static; transform: none; width: auto; margin-top: -4px; } .mkt-skel { max-height: 150px; overflow: hidden; } }

/* Sets: chips pick a set, the panel below lists that set's cards from the Top 10 lists. */
.sets { display: grid; gap: 16px; }
.set-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.set-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; }
.set-chip small { min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 700; text-align: center; }
.set-chip:hover { border-color: var(--accent); color: var(--accent-text); }
.set-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.set-chip[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent-text); }
.set-chip[aria-pressed="true"] small { background: var(--accent); color: var(--accent-ink); }
.sets.is-soon { display: flex; flex-wrap: wrap; gap: 8px; }
.set-chip.is-ph { width: 120px; background: var(--surface-3); border-color: transparent; opacity: 0.55; }
.set-detail { display: grid; gap: 10px; border-top: 3px solid var(--accent); }
.set-detail-h { margin: 0; font: 700 20px/1.2 var(--font-display); }
.set-detail > .note { margin: 0; max-width: 70ch; }
.rank-row.set-card { grid-template-columns: 52px minmax(0, 1fr) auto; }
.set-places { gap: 4px; margin-top: 6px; }
.set-places .chip { font-size: 12px; padding: 2px 8px; }
@media (min-width: 720px) { .rank-row.set-card { grid-template-columns: 64px minmax(0, 1fr) auto; } }
@media (max-width: 370px) { .rank-row.set-card { grid-template-columns: 44px minmax(0, 1fr) auto; } }

/* First-visit picker */
dialog.home-game { width: min(520px, 100vw); }
.hg { display: grid; gap: 12px; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.hg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hg-opt { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: center; text-align: left; min-height: 72px; padding: 10px; border: 1px solid var(--border); border-top: 3px solid var(--g-fill); border-radius: var(--radius); background: var(--surface-2); color: var(--text); cursor: pointer; }
.hg-opt:hover, .hg-opt:focus-visible { border-color: var(--g); outline: none; background: color-mix(in srgb, var(--g) 10%, var(--surface-2)); }
.hg-opt img { grid-row: 1 / span 2; width: 44px; height: 62px; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow-img); }
.hg-name { font: 700 16px/1.15 var(--font-display); align-self: end; }
.hg-status { font-size: 12px; font-weight: 600; color: var(--muted); align-self: start; }
@media (max-width: 380px) { .hg-grid { grid-template-columns: 1fr; } }

/* Pro tease */
.tease { display: grid; gap: 16px; padding: 22px; border-top: 3px solid var(--accent); }
.tease-copy { display: grid; gap: 8px; justify-items: start; }
.tease-copy .s-h3 { margin: 0; }
.tease-copy p { margin: 0; max-width: 62ch; color: var(--text-2); }
.tease-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tease-actions .btn { flex: 1 1 100%; }
@media (min-width: 640px) { .tease { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 28px; } .tease-actions .btn { flex: 0 0 auto; } }
.tease-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.tease-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); } .tease-points .ic { color: var(--accent-text); flex: none; margin-top: 2px; }

/* /collection preview (not live data) */
.coll { display: grid; gap: 16px; opacity: 0.92; pointer-events: none; user-select: none; }
.coll-top { display: grid; justify-items: center; gap: 8px; padding: 6px 0 2px; }
.coll-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.coll-total { display: block; width: 180px; height: 44px; border-radius: 10px; background: var(--surface-3); }
.coll-acts { display: flex; gap: 14px; margin-top: 6px; } .coll-acts i { width: 44px; height: 44px; border: 1.5px solid var(--border); border-radius: 50%; }
.coll-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .coll-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.coll-tile { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.coll-img { justify-self: center; width: 72%; aspect-ratio: 63 / 88; border-radius: 6px; background: var(--surface-3); }
.coll-lines { display: grid; gap: 7px; } .coll-lines i { display: block; height: 10px; width: 40%; border-radius: 5px; background: var(--surface-3); }
.coll-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.coll-val { width: 52px; height: 18px; border-radius: 5px; background: var(--surface-3); }
@media (max-width: 479px) { .coll-val { display: none; } }
dialog.zoom .zoom-caption { color: #fff; }

/* ---------- Legal pages (/privacy, /terms) ---------- */
.legal-meta { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.legal-toc { max-width: 760px; margin-top: 22px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.legal-toc ol { margin: 0; padding: 0; list-style: none; columns: 2 220px; column-gap: 28px; counter-reset: lt; }
.legal-toc li { break-inside: avoid; counter-increment: lt; }
.legal-toc li::before { content: counter(lt) '.'; display: inline-block; min-width: 1.7em; color: var(--muted); font-size: 14px; }
.legal-toc a { display: inline-block; padding: 6px 0; color: var(--text-2); text-decoration: none; font-size: 15px; }
.legal-toc a:hover { color: var(--accent-text); text-decoration: underline; }
.prose { overflow-wrap: anywhere; }
.prose h3 { margin: 24px 0 8px; font: 600 18px/1.25 var(--font-display); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.prose li::marker { color: var(--accent-text); font-weight: 700; }
.prose li b, .prose p b { color: var(--text); }
.prose a:not(.btn) { color: var(--link); } /* a button inside prose keeps its own colours (green text on the green button was unreadable) */
.table-wrap { margin: 4px 0 20px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal-table th, .legal-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; color: var(--text-2); overflow-wrap: normal; }
.legal-table thead th { color: var(--muted); font-weight: 600; background: var(--surface); }
.legal-table tbody th { color: var(--text); font-weight: 600; width: 26%; }
.legal-table tbody tr:last-child > * { border-bottom: 0; }
.s-section[id] { scroll-margin-top: 72px; }
.legal-sec .s-h2 { max-width: 760px; font-size: clamp(22px, 4.6vw, 30px); }
.legal-sec .prose { max-width: 760px; }
.legal-sec { padding-block: 4px; }
@media (max-width: 639px) {
  /* Tables stack as labeled rows: no sideways scrolling on a phone. */
  .table-wrap { overflow: visible; border: 0; }
  .legal-table { min-width: 0; display: block; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; width: auto; }
  .legal-table tr { margin: 0 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
  .legal-table tbody th { width: auto; padding: 10px 12px 4px; border: 0; font-size: 15px; }
  .legal-table td { padding: 4px 12px 10px; border: 0; }
  .legal-table td::before { content: attr(data-label); display: block; margin-bottom: 1px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
}
@media print {
  .s-head-row, .legal-toc { break-inside: avoid; }
  .s-top, .s-foot, dialog { display: none !important; }
}

/* ---------- Sign-in and the signed-in collection (/collection) ---------- */
[data-auth-only] { display: none; } /* shown by auth.css once sign-in is set up */
.cl-app { display: grid; gap: 14px; }
.cl-add label { font-size: 14px; color: var(--text-2); }
.cl-add input { min-height: 46px; }
.cl-results { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.cl-hit { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.cl-hit img, .cl-hit .thumb-ph { width: 40px; height: 56px; object-fit: contain; border-radius: 3px; }
.cl-hit-text { display: grid; min-width: 0; } .cl-hit-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-hit-text small { color: var(--muted); font-size: 12px; }
.cl-hit .pill { min-height: 40px; }
.cl-note, .cl-empty { color: var(--muted); font-size: 14px; padding: 8px 2px; }
.cl-empty { grid-column: 1 / -1; text-align: center; padding: 28px 8px; list-style: none; border: 1px dashed var(--border); border-radius: var(--radius); }
.cl-msg { margin: 0; font-size: 14px; color: var(--text-2); } .cl-msg.is-bad { color: var(--bad); font-weight: 600; }
.cl-qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.cl-qty button { width: 44px; height: 42px; border: 0; background: none; color: var(--text); font-size: 20px; cursor: pointer; } .cl-qty button:disabled { opacity: 0.35; cursor: default; }
.cl-qty output { min-width: 32px; text-align: center; font-weight: 700; font-size: 16px; }
.cl-wait { color: var(--muted); font-size: 13px; }
.cl-locked { display: grid; gap: 10px; justify-items: start; } .cl-locked p { margin: 0; color: var(--text-2); max-width: 60ch; }
.cl-offer { margin: 6px 0 0; color: var(--text-2); font-size: 13px; max-width: 60ch; } .cl-offer:empty { display: none; } .cl-offer a { color: var(--link); }
.cl-more { grid-column: 1 / -1; list-style: none; text-align: center; padding: 6px 0; }

/* The portfolio: what you own and its 30-day move, the tools, then the cards as tiles. */
.pf-head { display: grid; justify-items: center; gap: 4px; padding: 22px 16px 18px; text-align: center; }
.pf-title { margin: 0; font: 700 clamp(20px, 5vw, 26px)/1.2 var(--font-display); }
.pf-title span { color: var(--accent-text); }
.pf-colbox label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); } .pf-colbox select { min-height: 40px; max-width: 260px; }
.pf-total { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.pf-sum { font: 800 clamp(40px, 11vw, 60px)/1.05 var(--font-display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.pf-sum.is-hidden { letter-spacing: 0.04em; }
.pf-eye { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-3); color: var(--text-2); cursor: pointer; }
.pf-eye[aria-pressed="true"] { color: var(--accent-text); }
.pf-sub { min-height: 1.4em; font-size: 15px; }
.pf-chg { font-weight: 700; } .pf-chg.is-up, .pf-val i.is-up { color: var(--good); } .pf-chg.is-down, .pf-val i.is-down { color: var(--bad); }
.pf-when { color: var(--muted); font-size: 13px; }
.pf-count { color: var(--muted); font-size: 13px; }
.pf-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; width: 100%; max-width: 560px; margin-top: 14px; }
.pf-act { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 2px 0; border: 0; background: none; color: var(--accent-text); font: 600 13px/1.25 inherit; text-align: center; text-decoration: none; cursor: pointer; }
.pf-ic { display: grid; place-items: center; width: 56px; height: 56px; border: 1.5px solid var(--border); border-radius: 50%; background: var(--surface); }
.pf-ic.is-ring { border: 2.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from 200deg, var(--accent), var(--warn), var(--give), var(--get), var(--accent)) border-box; }
.pf-act:hover .pf-ic { border-color: var(--accent); }
.pf-act:focus-visible .pf-ic { border-color: var(--focus); }
@media (max-width: 379px) { .pf-ic { width: 48px; height: 48px; } .pf-act { font-size: 12px; } }
.pf-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pf-bar .seg { min-height: 40px; padding-inline: 16px; }
.pf-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); } .pf-sort select { min-height: 40px; }
.pf-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1040px) { .pf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pf-card { min-width: 0; }
.pf-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 14px 14px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pf-open:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.pf-art { position: relative; align-self: center; width: 100%; max-width: 168px; margin-bottom: 12px; }
.pf-art img, .pf-art .thumb-ph { display: grid; place-items: center; width: 100%; aspect-ratio: 63 / 88; height: auto; object-fit: contain; border-radius: 7px; background: var(--surface-3); box-shadow: var(--shadow-img); }
.pf-badges { position: absolute; top: 6px; left: 6px; right: 6px; display: flex; justify-content: space-between; pointer-events: none; }
.pf-cond, .pf-cam { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border-radius: 6px; background: rgb(3 6 5 / 0.78); color: #f3f5f4; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.pf-name { font: 700 clamp(16px, 4.2vw, 19px)/1.2 var(--font-display); overflow-wrap: anywhere; }
.pf-set, .pf-meta { margin-top: 3px; color: var(--text-2); font-size: clamp(13px, 3.5vw, 15px); line-height: 1.3; overflow-wrap: anywhere; }
.pf-variant { color: var(--muted); }
.pf-col { margin-top: 3px; color: var(--muted); font-size: 12px; }
.pf-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 14px; }
.pf-qty { color: var(--text-2); font-size: clamp(13px, 3.5vw, 15px); white-space: nowrap; }
.pf-price { display: grid; justify-items: end; text-align: right; min-width: 0; }
.pf-val { font: 700 clamp(16px, 4.4vw, 20px)/1.15 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-val i { font-style: normal; font-size: 0.7em; vertical-align: 0.1em; }
.pf-move { color: var(--text-2); font-size: clamp(11px, 3vw, 13px); white-space: nowrap; }
.pf-wait { color: var(--muted); font-size: 13px; }

/* One card's sheet. */
dialog.pf-sheet { width: min(620px, 100vw); }
.pf-sheet-form { gap: 14px; overflow-y: auto; }
.pf-sheet-top { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr); gap: 14px; align-items: start; }
.pf-sheet-art img, .pf-sheet-art .thumb-ph { display: grid; place-items: center; width: 100%; aspect-ratio: 63 / 88; height: auto; object-fit: contain; border-radius: 7px; background: var(--surface-3); box-shadow: var(--shadow-img); }
.pf-sheet-facts { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.pf-sheet-facts p { margin: 0; }
.pf-sheet-set { color: var(--text-2); font-size: 14px; }
.pf-sheet-price b { font: 800 26px/1.1 var(--font-display); } .pf-sheet-price small { color: var(--muted); font-size: 13px; }
.pf-sheet-extra, .pf-sheet-tags { color: var(--text-2); font-size: 13px; }
.pf-sheet-note { color: var(--muted); font-size: 12px; }
.pf-sheet-link { color: var(--link); font-size: 14px; font-weight: 600; }
.pf-sheet-ctl { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.pf-sheet-ctl label { display: grid; gap: 4px; font-size: 13px; color: var(--text-2); } .pf-sheet-ctl select { min-height: 44px; }
.pf-photos { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.pf-photos h4 { margin: 0; font-size: 15px; } .pf-photos .note { margin: 0; font-size: 13px; }
.pf-photo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pf-photo { display: grid; justify-items: center; gap: 6px; margin: 0; }
.pf-photo-img { display: grid; place-items: center; width: 100%; max-width: 112px; aspect-ratio: 3 / 4; overflow: hidden; border: 1px dashed var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.pf-photo-img img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.pf-photo-empty { padding: 8px; color: var(--muted); font-size: 12px; text-align: center; }
.pf-photo figcaption { font-size: 13px; font-weight: 700; color: var(--text-2); }
.pf-photo-btns { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; }
.pf-photo-pick { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--field-border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; }
.pf-photo-pick:hover { border-color: var(--accent); }
.pf-photo-pick:focus-within { border-color: var(--focus); }
.pf-photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pf-photo-pick.is-busy { opacity: 0.6; cursor: progress; }
.pf-photo-rm { min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; } .pf-photo-rm:hover { color: var(--bad); }
.pf-photo-msg { margin: 0; min-height: 1.2em; font-size: 13px; color: var(--text-2); } .pf-photo-msg.is-bad { color: var(--bad); font-weight: 600; }
.pf-sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-sheet-actions .btn { flex: 1 1 auto; justify-content: center; }
.pf-danger { color: var(--bad); }
